Repository navigation
Move Categories & Tags settings into the header More menu - #100293
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
| menuItems.push({ | ||
| text: translate('workspace.categories.showCategoryGLCodes'), | ||
| value: CONST.POLICY.SECONDARY_ACTIONS.SETTINGS, | ||
| // The row itself is inert; only the Switch handles the toggle so the menu stays open. |
There was a problem hiding this comment.
❌ CONSISTENCY-16 (docs)
This comment joins two independent clauses with a semicolon. Comments should read as plain sentences, using two separate sentences instead of a semicolon.
Split it into two sentences:
// The row itself is inert. Only the Switch handles the toggle so the menu stays open.Reviewed at: 4927c16 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
|
@marufsharifi Could you check the comments above? |
|
@huult The feedbacks have been resolved, thanks |
| containerStyles={containerStyles} | ||
| menuItems={options.map((item, index) => ({ | ||
| ...item, | ||
| // Build the Switch here from typed data so callers pass `switchProps` instead of threading JSX through the option config. |
There was a problem hiding this comment.
@marufsharifi Do we need a comment here? I think the code is clear enough to understand without it, so we can remove it.
| onFocus={() => { | ||
| if (!shouldUpdateFocusedIndex) { | ||
| // Inert rows (e.g. an inline toggle row whose only control is a Switch) shouldn't become the | ||
| // focused/highlighted item. Otherwise focus bubbling from the inner control leaves the row highlighted. |
There was a problem hiding this comment.
@marufsharifi Do we need a comment here? I think the code is clear enough to understand without it, so we can remove it.
| // Under the revamp the other settings moved to Rules, so this is only worth showing for the GL codes toggle. | ||
| if (canWriteCategories && (!isRulesRevampEnabled || !!policy?.glCodes)) { | ||
| // Under the revamp the Settings page is gone, so its remaining GL codes toggle is surfaced directly in this | ||
| // menu instead of behind a dedicated Settings page. |
There was a problem hiding this comment.
@marufsharifi Do we need a comment here? I think the code is clear enough to understand without it, so we can remove it.
There was a problem hiding this comment.
@huult This comment already existed on main — I only updated its wording for the new placement. I'd keep it for context, but can remove if you prefer. thanks
| const menuItems = []; | ||
| if (shouldShowTagsSettings) { | ||
| // Under the revamp the Settings page is gone, so its remaining rows (custom tag name and the GL codes toggle) | ||
| // are surfaced directly in this menu using the same visibility rules the Settings page used. |
There was a problem hiding this comment.
@marufsharifi Do we need a comment here? I think the code is clear enough to understand without it, so we can remove it.
@marufsharifi I didn't see you remove anything. Is this missing, or has it still not been removed? |
Screen.Recording.2026-09-06.at.16.04.44.movScreen.Recording.2026-09-06.at.16.06.07.movBUG: The error message is not displayed, and the toggle silently reverts when simulating a network failure. (tags and categories) |
Screen.Recording.2026-09-06.at.16.16.16.movBUG: When I press Enter on the toggle and it redirects to edit the tag name, the toggle value should still switch. |
Screen.Recording.2026-09-06.at.16.18.50.movBUG: When I press Enter on a toggle without any action |
Agree - great shout. I imagine we just wouldn't link that in the situation I posted above (and it would all be plain text).
Would love to get @trjExpensify or @JmillsExpensify 's take here because I'm not really sure how we should communicate this. "To enable/disable, edit your category settings"? 🤷 |
|
A user wouldn't be able to see this toggle if categories are turned off right? |
|
So I think it's only the case when a user has deleted all their categories. |
|
Thanks for digging into this! Your understanding is correct, I checked the code, and this toggle is only disabled in one narrow case: when categories are not required and the user has deleted or disabled all their categories. If categories are required, we don’t allow removing the last one, and if the Categories feature is turned off, the page (and this toggle) isn’t visible at all. So it’s a pretty rare edge case. I’m happy to add the tooltip once you land on the final wording — or if you feel it’s not worth it for such a rare case, that works too. cc @trjExpensify @JmillsExpensify — could you please let me know what you’d prefer here? Thanks |
|
@trjExpensify Thanks for the questions, let me clarify both! On the "require categories" setting: It hasn't gone anywhere — it was never part of the Categories settings. The "Members must categorize all expenses" toggle lives under Workspace → Rules ( On the "on + locked" state: This behavior isn't something this PR introduced. I copied the exact same logic from the old Settings page:
So the old page showed the same "ON + locked" state when all categories were deleted. This PR only moves these rows into the header More menu — the on/disabled logic is unchanged. So the "why is it ON while locked?" question is really about the existing behavior, not this change. Given that, would you prefer we keep this PR focused on just moving the settings, and handle the tooltip (and any rethink of the on+locked logic) in a separate follow-up? Happy to go either way. Thanks |
Oh, it must have been moved with the rulesRevamp. Got it. Okay, so focusing on this "Auto-categorise new expenses" setting:
The steps to reproduce this bug are:
Basically the conditions are:
I don't think there's a case where the toggle should ever be enabled and locked. We can fix it in a separate PR to be locked and disabled under those conditions, that's fine, including adding a tooltip: "Please enable at least one category." |
@trjExpensify Thanks for the confirmation! we'll keep this PR focused on moving the settings into the More menu, and handle the "ON + locked" state along with the tooltip ("Please enable at least one category.") in a separate issue and PR. |
|
@huult While testing, I found a keyboard-focus issue on the toggle rows and I'd like your confirmation before fixing it, because the fix has a trade-off. What I found On a toggle row in the More menu, if you click the row text (not the switch) and then use the keyboard:
Root cause When you select a "stay-open" item (like our inline toggles), Possible fix + trade-off I can make the toggle keep focus after a click so Enter/Arrow work. But then the focus highlight stays visible on the row after a mouse click on Safari . This is actually what the existing code intentionally avoids — there's a past fix ("immediately defocus on safari too") that clears focus after selecting a stay-open item so the highlight doesn't linger on mouse interaction. I tested keeping focus and confirmed the highlight remains after clicking. So the two behaviors conflict:
Could you confirm whether this is worth fixing, and which behavior you'd prefer? Another option is to keep focus only for keyboard interactions and let mouse clicks clear focus as they do now. I'll follow your guidance. Thanks! Screencast.From.2026-10-14.19-55-44.webm |
|
@marufsharifi I think we should create a separate issue to track this, since it's existing behavior in PopoverMenu that affects all stay-open items, not just these toggle rows. |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #99886 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@marufsharifi could you take a look at the comment above? |
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.14-0 🚀
|
|
Help site update needed. I opened a draft PR: Docs updates for E/A#100293 Remove Settings step from Categories and Tags articles This PR removed Settings from the More menu on the Categories and Tags pages. Four article sentences still told admins to select Settings:
Each edit removes the Settings step so the toggle is enabled straight from More. The labels match @marufsharifi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.5.14-3 🚀
Bundle Size Analysis (Sentry): |





Explanation of Change
Moves the per-page settings on the workspace Categories and Tags editors from the
SettingsRHP into the header More menu, and removes the now-unusedSettingspages.Categories/TagsSettingsRHP pages and their routes (plus the now-orphanedSPEND_CATEGORY_SELECTOR); old deep links redirect to the Categories/Tags list page.Fixed Issues
$ #99886
PROPOSAL:
Tests
Categories
Go to Workspace → Categories → More. The menu should display:
There should be no Settings option.
Turn on or off Show GL codes when categorizing expenses.
Tags
Go to Workspace → Tags → More. The menu should display:
There should be no Settings option.
Tap Custom tag name.
Turn on or off Show GL codes when selecting a tag.
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Categories
Screen.Recording.2026-09-04.at.6.46.40.PM.mov
Tags
Screen.Recording.2026-09-04.at.6.47.05.PM.mov
Android: mWeb Chrome
Categories
Recording_20260904_184053.mp4
Tags
Recording_20260904_184137.mp4
iOS: Native
Categories
Screen.Recording.2026-09-04.at.6.55.52.PM.mov
Tags
Screen.Recording.2026-09-04.at.6.56.16.PM.mov
iOS: mWeb Safari
Categories
Screen.Recording.2026-09-04.at.6.57.17.PM.mov
Tags
Screen.Recording.2026-09-04.at.6.58.35.PM.mov
MacOS: Chrome / Safari
Categories
REC-20261001151941.mp4
Tags
REC-20261001152142.mp4