[Due for payment 2026-11-25] [Category Visibility] 1.20 [BEC][Web-E][App] Remove the category visibility beta [HOLD for 1.1-1.19]
Here is the,
- Parent GH tracking issue - https://github.com/Expensify/Expensify/issues/673366
- Design doc - https://docs.google.com/document/d/1FuiUnLfrGz4lrmnb2naCDMY0j-ghmQOklNVcyzkBzBI/edit?tab=t.0#heading=h.urjiszd5v0qi
Before starting: review your section of the design doc first. If it has any pending comments, let's discuss them before work begins so everyone is on the same page.
PURPOSE
Once Release 1 is tested, make category visibility available to every Control workspace admin by removing the categoryVisibility beta (1.2).
SOLUTION
- Web-E:
- In
SetPolicyMemberCategoryVisibility(1.5), remove theBetaManager::isInBetacheck. Auth still rejects non-admins (1.4). - Remove
BETA_CATEGORY_VISIBILITYfromBetaManager,EXPLICIT_ONLY_BETASand_support/_currentBetas.php.
- In
- App:
- Remove
isBetaEnabled(CONST.BETAS.CATEGORY_VISIBILITY)from the Category visibility row's condition (1.6), so it shows wheneverisControlPolicy(policy)andpolicy.areCategoriesEnabledare true. - Remove
CONST.BETAS.CATEGORY_VISIBILITY.
- Remove
- Deploy the Web-E change before the App change. Otherwise admins who aren't on the beta would see the row and get "This feature is not available for your account." when they save.
- Unchanged: nothing else checks the beta. Auth, the picker filter, the violation, the #admins logs and auto-categorization only act when restrictions exist.
MANUAL TEST STEPS
- As a Control workspace admin who was never on the beta, open a member's details, restrict them to two categories, and confirm it saves.
- As a Collect workspace admin, confirm the Category visibility row isn't shown.
Issue Owner
Current Issue Owner: @mallenexpensify
I’ve assigned myself as the reviewer on this issue
Deploy Blocker https://github.com/Expensify/App/issues/107057 was identified to be related to the PR https://github.com/Expensify/App/pull/106674 that attempted to fix this issue.
⚠️ Looks like this issue was linked to a Deploy Blocker here
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
Deploy Blocker https://github.com/Expensify/App/issues/107075 was identified to be related to the PR https://github.com/Expensify/App/pull/106674 that attempted to fix this issue.
@nkdengineer / @daledah
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.40-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/106674
If no regressions arise, payment will be issued on 2026-11-25. :confetti_ball:
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Deploy Blocker https://github.com/Expensify/App/issues/107057 was identified to be related to the PR https://github.com/Expensify/App/pull/106674 that attempted to fix this issue.
Looks like a valid bug. The fix for this is in the backend. Investigating.
Back end bug https://github.com/Expensify/App/issues/107057#issuecomment-6932397108
Deploy Blocker https://github.com/Expensify/App/issues/107075 was identified to be related to the PR https://github.com/Expensify/App/pull/106674 that attempted to fix this issue.
It's a backend issue. Offline mode works well
Back end bug https://github.com/Expensify/App/issues/107075#issuecomment-6940379759
Contributor+ Checklist:
-
[x] [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: N/A
-
[x] [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:
-
[x] [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.
Regression Test Proposal
Precondition:
- a Control workspace with categories enabled and about 12 enabled categories (including Meals, Travel, Fuel and Lodging), one disabled category, an admin, members E1 and E2, an approver, and 10 or more other members. Also a Collect workspace, a Control workspace with categories disabled. No account is on the categoryVisibility beta.
Test:
Category visibility row and category picker in member details
- As a Control workspace admin who was never on the beta, open a member's details and confirm the "Category visibility" row shows "All categories" below Role.
- Open it, uncheck all but two categories, save, and confirm it saves with no error and the row shows "2 categories".
- Reopen it and confirm only those two categories are checked.
- Check every category, save, and confirm the row shows "All categories" again.
- Uncheck every category, save, and confirm the "Members must have at least one category" modal shows and nothing is saved.
- Confirm the disabled category isn't listed in the picker, and that search filters the list.
- Restrict E1, open E2's details, and confirm E2 still shows "All categories".
- Repeat step 2 offline, and confirm the change shows as pending and saves when back online.
- As a Collect workspace admin, confirm the "Category visibility" row isn't shown.
- On a Control workspace with categories disabled, confirm the row isn't shown. Enable categories and confirm it appears.
- Open the category visibility link for a member as a non-admin, and confirm the not found page shows.
Adding, deleting and renaming categories
- Restrict E1 to Meals and Fuel, add a new category "Parking", and confirm E1's row shows "3 categories" and E1 can pick Parking.
- Delete Fuel, and confirm E1's row shows "1 category" and E1 can only pick Meals.
- Restrict E1 to Fuel only, delete Fuel, and confirm the delete succeeds and E1's row shows "All categories".
- Restrict E1 to Meals and Fuel, import new categories from a spreadsheet, and confirm E1 can pick the new categories.
- Rename Fuel to "Fuel & Mileage", and confirm E1 can still pick it under the new name, E1's count is unchanged and E2 is unaffected.
- Rename a category no member is restricted to, and confirm no member's category visibility changes.
Blocking disabling a member's last category
- Restrict E1 to one category, turn that category's Enabled toggle off on the Categories page, and confirm the "Can't disable {category}" modal lists E1 and the category stays enabled.
- Repeat from the category's settings page, and confirm the same modal.
- Select that category and another one, use the bulk Disable action, and confirm the "Can't disable these categories" modal lists E1.
- Restrict 4 members to the same single category, disable it, and confirm the modal lists the first members and "and N more".
- Restrict E1 to two categories, disable one, and confirm it's disabled with no modal.
- Disable a category that only unrestricted members use, and confirm it's disabled with no modal.
- Go offline, restrict E1 to one category, then try to disable that category, and confirm the same modal shows.
- Restrict E1 to one category on one device, try to disable that category as another admin who hasn't received the update yet, and confirm the same modal shows and the category goes back to enabled.
Removing members and downgrading the workspace
- Restrict E1, remove them from the workspace, invite them back, and confirm their row shows "All categories".
- Restrict E1, have them leave the workspace, invite them back, and confirm their row shows "All categories".
- Restrict E1, downgrade the workspace to Collect, and confirm the row is hidden and E1 can pick every category. Upgrade back to Control and confirm E1 shows "All categories".
Filtering the expense category picker
- Restrict E1 to Meals and Fuel. As E1, create a manual, scan and distance expense, and confirm the category picker shows only Meals and Fuel.
- On a wide layout, open the category dropdown on the confirmation page, and confirm it shows only Meals and Fuel.
- As E1, edit the category of a submitted expense, and confirm the picker shows only Meals and Fuel.
- As E1, split an expense, edit one split's category, and confirm the picker shows only Meals and Fuel.
- As E1, in Search on a wide layout, edit the Category and the Category GL code cell inline on your own expense, and confirm each picker shows only Meals and Fuel.
- As E1, select several of your expenses in Search, bulk edit Category, and confirm the picker shows only Meals and Fuel.
- As E1, edit the category of an unreported expense, and confirm the picker shows only Meals and Fuel.
- As E1, edit an expense already coded to Lodging, and confirm the picker shows Meals, Fuel and Lodging.
- As E1, search for "Lodging" in the picker, and confirm there's no option to create it.
- As E1, go offline, create an expense, and confirm the picker still shows only Meals and Fuel.
- As the admin or approver, edit E1's expense from the expense view and from the inline Search cell, and confirm the picker shows every enabled category.
- As the admin, bulk edit a selection of E1's and other members' expenses, and confirm the picker shows every enabled category.
- Restrict the admin to two categories, create an expense as the admin, and confirm the picker shows only those two.
- As E2, an unrestricted member, confirm the picker shows every enabled category.
Category not allowed violation
- Code E1's expense to Lodging, restrict E1 to Meals and Fuel, and confirm the expense shows a "Category not allowed" violation in the expense view, the report, and Search.
- As E1, recode the expense to Meals, and confirm the violation clears.
- Repeat step 2 offline, and confirm the violation clears before reconnecting.
- Code E1's expense to Lodging again, give E1 access to Lodging, and confirm the violation clears.
- Code E1's expense to Lodging again, set E1 back to all categories, and confirm the violation clears.
- Submit a report with a "Category not allowed" violation, and confirm it isn't blocked.
- Disable the category on an expense with a "Category not allowed" violation, and confirm the expense only shows "Category no longer valid".
Category visibility change logs in #admins
- Restrict an unrestricted member to Meals and Fuel, and confirm #admins shows "set {member} to only see the "Meals" and "Fuel" categories", and the LHN preview shows the same text.
- Restrict them to only Meals, and confirm the entry reads "changed {member} to only see the "Meals" category".
- Give the member every enabled category, and confirm the entry reads "changed {member} to see all categories".
- Restrict a member to 10 or more categories, and confirm the entry shows the count, and opening its thread shows every category at the top.
- Restrict a member to one category and delete it, and confirm the entry reads "changed {member} to see all categories, since their only category was deleted. Update their category visibility if needed."
- Remove a restricted member from the workspace, and confirm no category visibility entry is posted to #admins.
- Copy a category visibility entry to the clipboard, and confirm it matches the displayed text.
- Switch the language to Spanish, and confirm the entries, the modal, the violation and the row are translated.
Auto-categorization
- Restrict E1 to Meals and Travel
- As E1, Create an expense without category
- Waiting for Auto-categorization
- After it's complete, verify that the auto-category is one of restricted category.
Do we agree 👍 or 👎
Triggered auto assignment to @mallenexpensify (Awaiting Payment)
Payment Summary
Resolving PRs:
-
https://github.com/Expensify/App/pull/106674
-
Reviewer: @nkdengineer owed $175 via NewDot
-
Reviewer: @daledah owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
- [ ] I have confirmed assignees, roles, and Upwork contracts look correct
- [ ] I have paid out Upwork contracts / manual NewDot requests
- [ ] [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
@mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Matt's AI agent:
Prep notes for the CM. This is not a payment approval. Do not request payment until the CM posts the final amount.
Your call.
Job price: $175.
- nkdengineer (Contributor): 50% or 100%, via NewDot
- daledah (C+): 50% or 100%, via NewDot
Price basis: standard, no Help Wanted.
Cut: deploy blocker 107066 from 106674, if it counts.
Not counted: 107057, 107064 and 107075. chiragsalian fixed each in the backend, with links below.
On 107066, MelvinBot: 106674 exposed the defect, did not introduce it. chiragsalian: not blocker worthy.
Next: pick the percentage, then pay.
Evidence
- C+ checklist by daledah, 62 steps: comment
- No TestRail case yet.
- Resolving PR 106674: nkdengineer, merged 2026-11-13, approved by chiragsalian, daledah. Videos: author 1/5, C+ 1/1.
- Deploy blocker 107057: chiragsalian: valid bug, fix in the backend. Fixed by Auth#26762 (chiragsalian). Leaves the count.
- Deploy blocker 107064: chiragsalian: cosmetic, needs a backend fix. Fixed by Auth#26767 (chiragsalian). Leaves the count.
- Deploy blocker 107075: chiragsalian: valid bug, minor. Fixed by Auth#26810 and Web-Expensify#58696 (chiragsalian). Leaves the count.
- Deploy blocker 107066: fixed in App by 107073 (nkdengineer). Production field: "N/A - new feature". RUBRIC.md: behind a beta is no defence. If it counts, the fix on 107066 is unpaid.
PAYPREP v1
@daledah what do you propose for payment here? It's a bit confusing with the regressions and some being BE. Thx