You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-05-22] [$250] Move Copilot settings to its own section under Preferences #89113
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Customers are reporting confusion finding Copilot settings in New Expensify. The current placement is not intuitive, and users are erroneously assuming they've lost access. The flow has more friction than Classic (3 clicks vs 2, navigation in two different places).
Agreed Changes
Based on team discussion, the following changes were agreed upon:
1. Move Copilot to its own section under Preferences
Remove Copilot from the Security settings page
Add Copilot as its own dedicated menu item under Account settings, placed under Preferences
2. Reorganize the Copilot page layout
Position "You can access these accounts" at the top of the page
Use two separate cards to clearly distinguish:
Accounts you have access to (accounts you can copilot)
Accounts that have access to your account (accounts that can copilot you)
3. Add a "Switch" action button
Add a "Switch" action button to each account in the "accounts you have access to" list, so it's clear users can immediately copilot into those accounts
changed the title [-]Move Copilot settings to its own section under Preferences[/-][+][$250] Move Copilot settings to its own section under Preferences[/+]on Apr 30, 2026
Please re-state the problem that we are trying to solve in this issue.
Copilot settings currently live as a sub-section of the Security settings page (Account → Security), and the related delegator list ("accounts you can copilot") is only surfaced via the account switcher. The team has agreed (per the linked Slack thread) that this placement is unintuitive and adds friction (3 clicks vs. 2 in Classic, navigation split across two places). We need to:
Promote Copilot to a dedicated top-level menu item under Account, positioned between Preferences and Security.
Reorganize the Copilot page so "Accounts you have access to" (delegators) appears at the top, with two clearly separated cards.
Add a "Switch" action button to each row in the "Accounts you have access to" list so users can copilot into those accounts directly from the Copilot page.
What is the root cause of that problem?
The Copilot UI was originally implemented as a section nested inside SecuritySettingsPage, sharing the same screen as 2FA, account merging, lock account, and close account. Copilot is conceptually a delegation/access feature, not a security control, so its placement under Security made it hard to discover and conceptually inconsistent. The page also leads with the "members can access your account" (delegates) list, while in practice users more often want to access the accounts that have delegated to them (delegators) — currently only reachable via the account switcher, with no inline switch action.
The Copilot section is rendered today inside SecuritySettingsPage.tsx as the second <Section> in the page (under the "Copilot: Delegated access" heading), with delegators only shown as a secondary list and no per-row switch action:
The account-switcher delegator selection already invokes the connect action from Delegate.ts, which is the same mechanism we will reuse for the new "Switch" button:
What changes do you think we should make in order to solve the problem?
The fix has four coordinated parts.
1. Add a new dedicated Copilot screen.
Create a new file src/pages/settings/Copilot/CopilotPage.tsx that owns the Copilot experience. Move the Copilot-specific logic out of SecuritySettingsPage.tsx into this new page:
The useOnyx(ONYXKEYS.ACCOUNT) subscription and the delegates / delegators derivations.
The delegateMenuItems and delegatorMenuItemsuseMemo blocks and the delegatePopoverMenuItems array.
The showRemoveCopilotModaluseConfirmModal callback, the showPopoverMenu, popover anchor/position state, and the openSecuritySettingsPage effect (which becomes openCopilotPage or stays as-is if the existing endpoint is what we already call to hydrate delegatedAccess).
The locked-account / delegate-no-access guards already wrapping these actions.
The new page should render with a HeaderWithBackButton titled with a new translation key (e.g. delegate.copilot) and use a Copilot-themed illustration (a dedicated entry under useMemoizedLazyIllustrations, similar to how useSecuritySettingsSectionIllustration is wired up today).
2. Reorganize the layout into two stacked Section cards.
Inside the new CopilotPage, render two <Section> components in this order:
Top card — "Accounts you have access to" (delegate.youCanAccessTheseAccounts reused or renamed). Renders delegatorMenuItems. Each row gets a new "Switch" action button (see part 3). When the user has no delegators, render an empty-state subtitle but still show the card so the structure stays consistent.
Bottom card — "Accounts that have access to your account" (delegate.membersCanAccessYourAccount reused or renamed). Renders delegateMenuItems plus the existing "Add copilot" MenuItem button at the bottom and the popover for change-access / remove flows.
Use the same Section styling already in SecuritySettingsPage (isCentralPane, subtitleMuted, titleStyles={styles.accountSettingsSectionTitle}, childrenStyles={styles.pt5}) so the visual treatment matches the existing settings pages. The page-level subtitle ("Allow other members to access your account…learn more") moves to the bottom card subtitle since it specifically describes inviting delegates, not switching to delegators.
3. Add a "Switch" action button per delegator row.
In the top card, each delegator row should render a right-aligned Button (label translated as delegate.switchAccount → "Switch") next to the role badge. The press handler invokes the same connect({email, delegatedAccess, credentials, session, activePolicyID}) call that the account switcher uses today. We will reuse the existing offline / GPS-tracking guards from AccountSwitcher (showing showOfflineModal when offline and the GPS-in-progress modal when a trip is active), and the existing error rendering via errorFields.connect[email].
Two implementation notes:
The current delegatorMenuItems builds plain MenuItemProps with interactive: false. We will switch to a custom row component (or extend MenuItemProps with a right-side button slot) so the row stays informational while the dedicated Switch button owns the action. This avoids accidentally triggering the switch when the user taps anywhere in the row.
Disable the Switch button while pendingAction is set on that delegator entry (the existing optimistic-update pattern), and surface the connect error inline via the same clearDelegatorErrors mechanism used by AccountSwitcher.
4. Wire up navigation and remove Copilot from Security.
Add SCREENS.SETTINGS.COPILOT.ROOT and ROUTES.SETTINGS_COPILOT = 'settings/copilot'.
Register the new screen in the settings central-pane / RHP relations alongside the existing settings entries (mirror how SETTINGS_PREFERENCES is wired in SETTINGS_TO_RHP.ts and the central-pane navigator).
In InitialSettingsPage.tsx, add a new entry to the accountItems array between 'common.preferences' and 'initialSettingsPage.security' (so it lands directly under Preferences, matching the URL-usage ordering called out in the issue). Use a Copilot-appropriate icon (e.g. icons.UserPlus or a new dedicated icon if design provides one) and a sentry label following the existing CONST.SENTRY_LABEL.ACCOUNT.* pattern.
In SecuritySettingsPage.tsx, delete the entire Copilot <Section> (lines 429–477 today), the trailing <PopoverMenu> for delegate management (lines 478–494), and the related state/memo/callback declarations that were moved to CopilotPage. Drop the now-unused imports (MenuItem, SectionSubtitleHTML, the personal-details/Onyx pieces only used by the Copilot section, etc.). The remaining security menu items (2FA, MFA revoke, merge accounts, lock/unlock, close account) stay untouched.
5. Translations.
Add delegate.copilot (menu item title — "Copilot").
Add delegate.switchAccount ("Switch") for the new button.
Reuse delegate.copilotDelegatedAccess for the page-level title or a tightened variant for the menu icon line; keep the existing youCanAccessTheseAccounts / membersCanAccessYourAccount / copilotDelegatedAccessDescription / addCopilot / removeCopilot strings, just relocated.
Mirror all new keys across every locale file in src/languages/.
The result: Copilot becomes its own top-level Account menu item one click away from any Account settings landing, the page leads with the more frequently used "you can access these accounts" list with an inline Switch action, and the Security page is trimmed down to genuine security controls.
What alternative solutions did you explore? (Optional)
Keep Copilot under Security and just reorder the two lists / add the Switch button in place. Rejected because it does not address the discoverability complaint that drove the issue — users explicitly reported assuming they had lost access because the feature was nested under Security.
Place Copilot as a sub-page under Preferences (settings/preferences/copilot) rather than its own top-level menu entry. Rejected because the agreed change in the issue is explicit: "Add Copilot as its own dedicated menu item under Account settings, placed under Preferences." The dedicated top-level entry also matches the URL-level click data referenced in the issue.
Reuse the AccountSwitcher popover delegator rows verbatim inside the new page. Rejected because the page version needs richer per-row affordances (Switch button, error inline, role badge layout) that do not fit the popover menu item shape; building a dedicated row component keeps both surfaces clean.
Please re-state the problem that we are trying to solve in this issue.
Copilot settings are currently buried inside the Security settings page, which makes them hard to discover. Users are reporting they think they've lost access to Copilot entirely. The agreed fix is to promote Copilot to its own dedicated menu item under Account (between Preferences and Security), reorganize the page so "accounts you can access" appears first with inline Switch buttons, and remove Copilot from the Security page.
What is the root cause of that problem?
Copilot was originally implemented as a <Section> inside SecuritySettingsPage.tsx. It is conceptually a delegation/access feature, not a security control, so placing it under Security made it unintuitive to find. The page also leads with "members who can access your account" (delegates), when users more frequently need "accounts you can switch into" (delegators) — which today is only reachable via the account switcher with no inline action.
What changes do you think we should make in order to solve the problem?
12 files need to change, in this order:
1. src/CONST/index.ts — Add SENTRY_LABEL.ACCOUNT.COPILOT: 'Account-Copilot' following the existing PROFILE / PREFERENCES / SECURITY pattern.
2. src/languages/en.ts (+ all locale files) — Add delegate.copilot ("Copilot") for the menu item label and delegate.switchAccount ("Switch") for the per-row button. All existing delegate.* strings are reused on the new page.
3. src/SCREENS.ts — Add SCREENS.SETTINGS.COPILOT as a top-level settings central-pane screen constant, same style as SCREENS.SETTINGS.SECURITY.
4. src/ROUTES.ts — Add ROUTES.SETTINGS_COPILOT = 'settings/copilot' following the existing settings/preferences and settings/security convention.
5. src/libs/Navigation/types.ts — Add [SCREENS.SETTINGS.COPILOT]: undefined to SettingsSplitNavigatorParamList.
6. src/libs/Navigation/AppNavigator/Navigators/SettingsSplitNavigator.tsx — Register SCREENS.SETTINGS.COPILOT in CENTRAL_PANE_SETTINGS_SCREENS pointing to the new CopilotPage.
8. src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts — Move the delegate subflow screens (add copilot, verify account, etc.) from SCREENS.SETTINGS.SECURITY to SCREENS.SETTINGS.COPILOT so RHP back navigation stays correct after the move.
9. src/pages/settings/InitialSettingsPage.tsx — Insert a new account menu item between Preferences and Security entries with translationKey: 'delegate.copilot', screenName: SCREENS.SETTINGS.COPILOT, sentryLabel: CONST.SENTRY_LABEL.ACCOUNT.COPILOT, and icon icons.UserSwitch (or icons.UserPlus as fallback if no dedicated icon exists).
10. src/pages/settings/Copilot/CopilotPage.tsx (new file) — New dedicated page following the src/pages/settings/Preferences/PreferencesPage.tsx file convention. Structure:
Subscribes to ONYXKEYS.ACCOUNT, ONYXKEYS.CREDENTIALS, ONYXKEYS.SESSION, ONYXKEYS.NVP_ACTIVE_POLICY_ID
Extracts all Copilot-specific state and logic from SecuritySettingsPage: delegateButtonRef, shouldShowDelegatePopoverMenu, selectedDelegate, selectedEmail, showConfirmModal, showRemoveCopilotModal, anchorPosition, setMenuPosition, showPopoverMenu, delegateMenuItems, delegatorMenuItems, delegatePopoverMenuItems
Renders two labeled subsections inside one <Section> (matching the mockup — single card, not two separate cards):
Top: "You can access these accounts" — delegatorMenuItems where each row uses MenuItem with shouldShowRightComponent and rightComponent set to a green "Switch" Button. The Switch handler reuses the exact same guard chain from AccountSwitcher: offline check → GPS tracking check → connect({email, delegatedAccess, credentials, session, activePolicyID})
Bottom: "These members can access your account" — delegateMenuItems + existing "Add copilot" MenuItem + PopoverMenu for change-access/remove flows
Empty state: if user has no delegators, the "You can access these accounts" label still renders with an empty-state subtitle so the structure is consistent
11. src/pages/settings/Security/SecuritySettingsPage.tsx — Remove the entire Copilot <Section> (lines ~429–477), the delegate <PopoverMenu> (lines ~478–494), and all Copilot-only state/callbacks/imports listed above. The remaining security controls (2FA, merge accounts, lock/unlock, close account) are untouched. Note: isActingAsDelegate check remains because it is also used by the security-specific lock account guard.
What alternative solutions did you explore? (Optional)
Two separate <Section> cards for the two lists: rejected because the mockup shows a single unified page card with two labeled subsections, not two distinct cards.
Keep Copilot under Security, just reorder lists: rejected — the issue explicitly states the agreed change is a dedicated top-level menu item for discoverability.
Sub-page under Preferences (settings/preferences/copilot): rejected — the issue spec says a dedicated top-level Account menu item placed under Preferences in the menu order, not nested inside it.
⚠️@neerajbachani Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: NA. This is a new feature.
Link to the comment on the Issue: NA.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
The Payment Summary hasn't been posted yet because it's scheduled for later today. Based on comparable issues, the cron job that posts the Payment Summary runs around ~21:49 UTC on the due date — and the due date for this issue is today (2026-05-22).
⚠️One potential concern: This issue currently has both the Reviewing and Awaiting Payment labels. The Reviewing label was removed on deploy (2026-05-15) but appears to have been re-added when the deploy blocker (#90863, now closed) was linked on 2026-05-16. The comparable issues above did not have Reviewing when their Payment Summary posted. If the cron job skips issues with the Reviewing label, the Payment Summary may not fire — consider removing Reviewing if it's stale.
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Activity
flaviadefaria commentedon Apr 30, 2026
cc @laurenreidexpensify @shawnborton
melvin-bot commentedon Apr 30, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (
External)[-]Move Copilot settings to its own section under Preferences[/-][+][$250] Move Copilot settings to its own section under Preferences[/+]melvin-bot commentedon Apr 30, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022049812310570599104
wildan-m commentedon Apr 30, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Copilot settings currently live as a sub-section of the Security settings page (Account → Security), and the related delegator list ("accounts you can copilot") is only surfaced via the account switcher. The team has agreed (per the linked Slack thread) that this placement is unintuitive and adds friction (3 clicks vs. 2 in Classic, navigation split across two places). We need to:
What is the root cause of that problem?
The Copilot UI was originally implemented as a section nested inside
SecuritySettingsPage, sharing the same screen as 2FA, account merging, lock account, and close account. Copilot is conceptually a delegation/access feature, not a security control, so its placement under Security made it hard to discover and conceptually inconsistent. The page also leads with the "members can access your account" (delegates) list, while in practice users more often want to access the accounts that have delegated to them (delegators) — currently only reachable via the account switcher, with no inline switch action.The Copilot section is rendered today inside
SecuritySettingsPage.tsxas the second<Section>in the page (under the "Copilot: Delegated access" heading), with delegators only shown as a secondary list and no per-row switch action:App/src/pages/settings/Security/SecuritySettingsPage.tsx
Lines 429 to 477 in 2de2b6e
The account-switcher delegator selection already invokes the
connectaction fromDelegate.ts, which is the same mechanism we will reuse for the new "Switch" button:App/src/components/AccountSwitcher.tsx
Lines 193 to 219 in 2de2b6e
What changes do you think we should make in order to solve the problem?
The fix has four coordinated parts.
1. Add a new dedicated Copilot screen.
Create a new file
src/pages/settings/Copilot/CopilotPage.tsxthat owns the Copilot experience. Move the Copilot-specific logic out ofSecuritySettingsPage.tsxinto this new page:useOnyx(ONYXKEYS.ACCOUNT)subscription and thedelegates/delegatorsderivations.delegateMenuItemsanddelegatorMenuItemsuseMemoblocks and thedelegatePopoverMenuItemsarray.showRemoveCopilotModaluseConfirmModalcallback, theshowPopoverMenu, popover anchor/position state, and theopenSecuritySettingsPageeffect (which becomesopenCopilotPageor stays as-is if the existing endpoint is what we already call to hydratedelegatedAccess).The new page should render with a
HeaderWithBackButtontitled with a new translation key (e.g.delegate.copilot) and use a Copilot-themed illustration (a dedicated entry underuseMemoizedLazyIllustrations, similar to howuseSecuritySettingsSectionIllustrationis wired up today).2. Reorganize the layout into two stacked Section cards.
Inside the new
CopilotPage, render two<Section>components in this order:delegate.youCanAccessTheseAccountsreused or renamed). RendersdelegatorMenuItems. Each row gets a new "Switch" action button (see part 3). When the user has no delegators, render an empty-state subtitle but still show the card so the structure stays consistent.delegate.membersCanAccessYourAccountreused or renamed). RendersdelegateMenuItemsplus the existing "Add copilot"MenuItembutton at the bottom and the popover for change-access / remove flows.Use the same
Sectionstyling already inSecuritySettingsPage(isCentralPane,subtitleMuted,titleStyles={styles.accountSettingsSectionTitle},childrenStyles={styles.pt5}) so the visual treatment matches the existing settings pages. The page-level subtitle ("Allow other members to access your account…learn more") moves to the bottom card subtitle since it specifically describes inviting delegates, not switching to delegators.3. Add a "Switch" action button per delegator row.
In the top card, each delegator row should render a right-aligned
Button(label translated asdelegate.switchAccount→ "Switch") next to the role badge. The press handler invokes the sameconnect({email, delegatedAccess, credentials, session, activePolicyID})call that the account switcher uses today. We will reuse the existing offline / GPS-tracking guards fromAccountSwitcher(showingshowOfflineModalwhen offline and the GPS-in-progress modal when a trip is active), and the existing error rendering viaerrorFields.connect[email].Two implementation notes:
delegatorMenuItemsbuilds plainMenuItemPropswithinteractive: false. We will switch to a custom row component (or extendMenuItemPropswith a right-side button slot) so the row stays informational while the dedicated Switch button owns the action. This avoids accidentally triggering the switch when the user taps anywhere in the row.pendingActionis set on that delegator entry (the existing optimistic-update pattern), and surface the connect error inline via the sameclearDelegatorErrorsmechanism used byAccountSwitcher.4. Wire up navigation and remove Copilot from Security.
SCREENS.SETTINGS.COPILOT.ROOTandROUTES.SETTINGS_COPILOT = 'settings/copilot'.SETTINGS_PREFERENCESis wired inSETTINGS_TO_RHP.tsand the central-pane navigator).InitialSettingsPage.tsx, add a new entry to theaccountItemsarray between'common.preferences'and'initialSettingsPage.security'(so it lands directly under Preferences, matching the URL-usage ordering called out in the issue). Use a Copilot-appropriate icon (e.g.icons.UserPlusor a new dedicated icon if design provides one) and a sentry label following the existingCONST.SENTRY_LABEL.ACCOUNT.*pattern.SecuritySettingsPage.tsx, delete the entire Copilot<Section>(lines 429–477 today), the trailing<PopoverMenu>for delegate management (lines 478–494), and the related state/memo/callback declarations that were moved toCopilotPage. Drop the now-unused imports (MenuItem,SectionSubtitleHTML, the personal-details/Onyx pieces only used by the Copilot section, etc.). The remaining security menu items (2FA, MFA revoke, merge accounts, lock/unlock, close account) stay untouched.5. Translations.
delegate.copilot(menu item title — "Copilot").delegate.switchAccount("Switch") for the new button.delegate.copilotDelegatedAccessfor the page-level title or a tightened variant for the menu icon line; keep the existingyouCanAccessTheseAccounts/membersCanAccessYourAccount/copilotDelegatedAccessDescription/addCopilot/removeCopilotstrings, just relocated.src/languages/.The result: Copilot becomes its own top-level Account menu item one click away from any Account settings landing, the page leads with the more frequently used "you can access these accounts" list with an inline Switch action, and the Security page is trimmed down to genuine security controls.
Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/89113-copilot-section?expand=1
What alternative solutions did you explore? (Optional)
settings/preferences/copilot) rather than its own top-level menu entry. Rejected because the agreed change in the issue is explicit: "Add Copilot as its own dedicated menu item under Account settings, placed under Preferences." The dedicated top-level entry also matches the URL-level click data referenced in the issue.AccountSwitcherpopover delegator rows verbatim inside the new page. Rejected because the page version needs richer per-row affordances (Switch button, error inline, role badge layout) that do not fit the popover menu item shape; building a dedicated row component keeps both surfaces clean.neerajbachani commentedon Apr 30, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Copilot settings are currently buried inside the Security settings page, which makes them hard to discover. Users are reporting they think they've lost access to Copilot entirely. The agreed fix is to promote Copilot to its own dedicated menu item under Account (between Preferences and Security), reorganize the page so "accounts you can access" appears first with inline Switch buttons, and remove Copilot from the Security page.
What is the root cause of that problem?
Copilot was originally implemented as a
<Section>insideSecuritySettingsPage.tsx. It is conceptually a delegation/access feature, not a security control, so placing it under Security made it unintuitive to find. The page also leads with "members who can access your account" (delegates), when users more frequently need "accounts you can switch into" (delegators) — which today is only reachable via the account switcher with no inline action.What changes do you think we should make in order to solve the problem?
12 files need to change, in this order:
1.
src/CONST/index.ts— AddSENTRY_LABEL.ACCOUNT.COPILOT: 'Account-Copilot'following the existingPROFILE / PREFERENCES / SECURITYpattern.2.
src/languages/en.ts(+ all locale files) — Adddelegate.copilot("Copilot") for the menu item label anddelegate.switchAccount("Switch") for the per-row button. All existingdelegate.*strings are reused on the new page.3.
src/SCREENS.ts— AddSCREENS.SETTINGS.COPILOTas a top-level settings central-pane screen constant, same style asSCREENS.SETTINGS.SECURITY.4.
src/ROUTES.ts— AddROUTES.SETTINGS_COPILOT = 'settings/copilot'following the existingsettings/preferencesandsettings/securityconvention.5.
src/libs/Navigation/types.ts— Add[SCREENS.SETTINGS.COPILOT]: undefinedtoSettingsSplitNavigatorParamList.6.
src/libs/Navigation/AppNavigator/Navigators/SettingsSplitNavigator.tsx— RegisterSCREENS.SETTINGS.COPILOTinCENTRAL_PANE_SETTINGS_SCREENSpointing to the newCopilotPage.7.
src/libs/Navigation/linkingConfig/config.ts— Add deep-link mappingSCREENS.SETTINGS.COPILOT → ROUTES.SETTINGS_COPILOT.8.
src/libs/Navigation/linkingConfig/RELATIONS/SETTINGS_TO_RHP.ts— Move the delegate subflow screens (add copilot, verify account, etc.) fromSCREENS.SETTINGS.SECURITYtoSCREENS.SETTINGS.COPILOTso RHP back navigation stays correct after the move.9.
src/pages/settings/InitialSettingsPage.tsx— Insert a new account menu item between Preferences and Security entries withtranslationKey: 'delegate.copilot',screenName: SCREENS.SETTINGS.COPILOT,sentryLabel: CONST.SENTRY_LABEL.ACCOUNT.COPILOT, and iconicons.UserSwitch(oricons.UserPlusas fallback if no dedicated icon exists).10.
src/pages/settings/Copilot/CopilotPage.tsx(new file) — New dedicated page following thesrc/pages/settings/Preferences/PreferencesPage.tsxfile convention. Structure:ScreenWrapper+HeaderWithBackButtontitleddelegate.copilotDelegatedAccessONYXKEYS.ACCOUNT,ONYXKEYS.CREDENTIALS,ONYXKEYS.SESSION,ONYXKEYS.NVP_ACTIVE_POLICY_IDSecuritySettingsPage:delegateButtonRef,shouldShowDelegatePopoverMenu,selectedDelegate,selectedEmail,showConfirmModal,showRemoveCopilotModal,anchorPosition,setMenuPosition,showPopoverMenu,delegateMenuItems,delegatorMenuItems,delegatePopoverMenuItems<Section>(matching the mockup — single card, not two separate cards):delegatorMenuItemswhere each row usesMenuItemwithshouldShowRightComponentandrightComponentset to a green "Switch"Button. The Switch handler reuses the exact same guard chain fromAccountSwitcher: offline check → GPS tracking check →connect({email, delegatedAccess, credentials, session, activePolicyID})delegateMenuItems+ existing "Add copilot"MenuItem+PopoverMenufor change-access/remove flows11.
src/pages/settings/Security/SecuritySettingsPage.tsx— Remove the entire Copilot<Section>(lines ~429–477), the delegate<PopoverMenu>(lines ~478–494), and all Copilot-only state/callbacks/imports listed above. The remaining security controls (2FA, merge accounts, lock/unlock, close account) are untouched. Note:isActingAsDelegatecheck remains because it is also used by the security-specific lock account guard.What alternative solutions did you explore? (Optional)
<Section>cards for the two lists: rejected because the mockup shows a single unified page card with two labeled subsections, not two distinct cards.settings/preferences/copilot): rejected — the issue spec says a dedicated top-level Account menu item placed under Preferences in the menu order, not nested inside it.github-actions commentedon Apr 30, 2026
Nghondzweni commentedon Apr 30, 2026
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
28 remaining items
eh2077 commentedon May 21, 2026
BugZero Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: NA. This is a new feature.
Link to the comment on the Issue: NA.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/640014
Regression Test Proposal
Precondition:
Test:
Case 1
Case 2
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-30fa-a3f9-3ad7-4090e8e9dc94eh2077 commentedon May 21, 2026
@mallenexpensify checklist done and the DB is false alarm according to #90863 (comment).
melvin-bot commentedon May 21, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)mallenexpensify commentedon May 22, 2026
Payment Summary
Contributor: @wildan-m paid $250 via Upwork
Contributor+: @eh2077 due $250 via NewDot
^ Test case created. Thx
MelvinBot commentedon May 22, 2026
The Payment Summary hasn't been posted yet because it's scheduled for later today. Based on comparable issues, the cron job that posts the Payment Summary runs around ~21:49 UTC on the due date — and the due date for this issue is today (2026-05-22).
For reference:
Awaiting Paymenton 2026-05-12 21:47 UTC → Payment Summary on 2026-05-13 21:49 UTCAwaiting Paymenton 2026-05-06 21:47 UTC → Payment Summary on 2026-05-07 21:49 UTCAwaiting Paymenton 2026-05-21 21:47 UTC → Payment Summary expected 2026-05-22 ~21:49 UTCReviewingandAwaiting Paymentlabels. TheReviewinglabel was removed on deploy (2026-05-15) but appears to have been re-added when the deploy blocker (#90863, now closed) was linked on 2026-05-16. The comparable issues above did not haveReviewingwhen their Payment Summary posted. If the cron job skips issues with theReviewinglabel, the Payment Summary may not fire — consider removingReviewingif it's stale.laurenreidexpensify commentedon May 23, 2026
$250 approved for @eh2077