Skip to content

[Due for payment 2026-05-29] [Due for payment 2026-05-28] Hide non-applicable Account menu items for agent accounts #90248

Closed

Description

@puneetlath

Part of the Custom workflow agents project

Main issue: https://github.com/Expensify/Expensify/issues/614622
Doc section: https://expensify.enterprise.slack.com/docs/T03SC9DTT/F0AKV1FPD41?focus_section_id=temp:C:PDZf756705845f1464c9cffffcb8

Feature Description

When the owner co-pilots into an agent account, several account-level menu items in the Initial Settings page do not apply to a bot account.

In src/pages/settings/InitialSettingsPage.tsx, gate the following entries on !isAgentAccount (using the useIsAgentAccount() hook):

  • Subscription
  • Wallet
  • Preferences
  • Agents
  • Security > Security options

The rest of the entries remain available. This follows the same isAgentAccount ? [] : [...] spread pattern already used for beta-gated items in this file.

Manual Test Steps

  1. As the agent owner, copilot into the agent account.
  2. Open Account.
  3. Verify the sections listed above are not visible.
  4. Verify Profile, Troubleshoot, Security, Sign out, etc are still visible.
  5. Return to the owner account and confirm the hidden entries reappear for a regular account.

Automated Tests

  • A test that renders InitialSettingsPage for an agent and asserts the expected items are absent, and that they are present for a non-agent account.
Issue OwnerCurrent Issue Owner: @ShridharGoel

Activity

  1. changed the title [-]Hide non-applicable Account menu items for agent accounts[/-] [+][Due for payment 2026-05-28] Hide non-applicable Account menu items for agent accounts[/+] on May 21, 2026
  2. melvin-bot commented on May 21, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  3. 3 remaining items

  4. melvin-bot commented on May 26, 2026

    @melvin-bot

    @NicolasBonet Eep! 4 days overdue now. Issues have feelings too...

  5. NicolasBonet commented on May 27, 2026

    @NicolasBonet
    Contributor

    I don't know what else to do in here, @mallenexpensify could you please tell me if I need to do something?

  6. mallenexpensify commented on May 29, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @ShridharGoel due $375 via NewDot - 2 PRs, one without tests

    @NicolasBonet it looks like @ShridharGoel reviewed the two linked PRs above so the best practice is to assign them here so I can pay. I just did so now.

    I'm guessing we don't need a test case update, if we so... please comment/reopen.

  7. garrettmknight commented on Jun 1, 2026

    @garrettmknight
    Contributor

    $375 approved for @ShridharGoel

  8. added and removed on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions