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-11-11] [$175] Categories disappear after creating category from confirm page when submitting to employer #105809
Version Number: 9.5.31-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#105575 Email or phone of affected tester (no customers):nojdosoijso@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Account has no workspace.
Go to staging.new.expensify.com
Go to self DM.
Create an expense.
Click Submit to my employer.
On confirm page, click Category.
Enter anything that will not return result.
Click Create category.
Click Category field.
Expected Result:
The default categories will not disappear after creating category from confirm page.
Actual Result:
The default categories disappear after creating category from confirm page.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
The new creation flow treats a draft workspace as a saved workspace. Creating one category clears the draft categories, removing the defaults. Confidence: medium; code traced, not browser-verified.
This explains the disappearance without a search-filter bug or backend failure. The older + creation route uses the same unsafe action; reverting removes the new trigger, not that underlying defect.
What changes do you think we should make in order to solve the problem?
For draft workspaces, update draft categories locally and preserve defaults. Avoid saved-workspace category API calls before workspace creation. Test both creation routes and confirm custom categories survive final submission. Changing picker precedence alone will not preserve deleted draft data.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](hyperlink) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Please give a clear recommendation: a small follow-up fix, waiting for #105138, or a revert. Include exact file:line references. Please don't open a PR yet.
The draft PR prevents this for new flows by StartExpenseFlows.ts:477–500 creating a workspace and Policy.ts:3134–3143 seeding real categories, including offline. It does not migrate existing drafts.
What changes do you think we should make in order to solve the problem?
Hide creation in shared CategoryPicker/index.tsx:169–177 when POLICY_DRAFTS contains the policy but POLICY does not. Wait for both subscriptions to resolve. This covers both callers; preserve offline creation for real optimistic workspaces. Verify both entry points before release.
Confidence: medium; source-verified only. No PR opened.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](hyperlink) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Verified on dev NewDot web: draft-workspace full Category step hides searched-name creation and preserves default selection; real workspace supports searched-name creation. Anchored confirmation dropdown was unavailable in this session.
Step
Status
Draft-workspace confirmation dropdown hides Create categoryConfirmation Category navigated to the full Category step instead of an anchored dropdown.
⚠️
Draft-workspace full Category step hides searched-name creationSearching UnmatchedDraft105809 showed No results found, retained Add category, and showed no Create category option.
✅
Default categories remain selectableClearing search restored all 19 default categories. Selecting Advertising returned to confirmation with Category, Advertising.
✅
Existing +/Add category entry remainsAdd category remained present for draft and real workspaces. Real workspace opened the Name/Save form. Draft workspace opened a not-found page; baseline equivalence was not established.
⚠️
Real workspace supports searched-name category creationSearch offered Create “Real105809Category” category. Selecting it returned with that category applied; reopening showed the new category alongside defaults.
✅
Offline optimistic creationNetwork interception/offline emulation is outside the supported web-driving surface.
⚠️
Draft PR: Hide searched category creation for draft-only workspaces, assigned to Krishna2323. Both caller guards are implemented; + is unchanged. Categorize and Share with accountant also need the guard; Travel promotes its draft immediately. All 11 targeted tests and relevant TypeScript projects passed, including offline fixtures for both callers. Broad checks timed out; formatter checking was blocked. Details are in the PR. Please mark it ready for review when your testing is complete.
changed the title [-]Categories disappear after creating category from confirm page when submitting to employer[/-][+][$175] Categories disappear after creating category from confirm page when submitting to employer[/+]on Nov 4, 2026
changed the title [-][$175] Categories disappear after creating category from confirm page when submitting to employer[/-][+][Due for payment 2026-11-11] [$175] Categories disappear after creating category from confirm page when submitting to employer[/+]on Nov 4, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.31-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-11-11. 🎊
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]
Activity
applause-bot commentedon Nov 3, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/b40876d16cb2a5caa4ed938404d6f4cfc1f25cb83b43978423da451150d7d1ed
melvin-bot commentedon Nov 3, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #105575
melvin-bot commentedon Nov 3, 2026
@JS00001 @Krishna2323 you have been assigned to this deploy blocker because you reviewed the offending PR: #105575
melvin-bot commentedon Nov 3, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Nov 3, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Nov 3, 2026
Proposal
Recommendation: revert Offer to create the searched-for category when a category search has no results unless a draft-aware fix can be verified immediately. Keep the deploy blocker.
What is the root cause of that problem?
The new creation flow treats a draft workspace as a saved workspace. Creating one category clears the draft categories, removing the defaults. Confidence: medium; code traced, not browser-verified.
Code evidence
This explains the disappearance without a search-filter bug or backend failure. The older
+creation route uses the same unsafe action; reverting removes the new trigger, not that underlying defect.What changes do you think we should make in order to solve the problem?
For draft workspaces, update draft categories locally and preserve defaults. Avoid saved-workspace category API calls before workspace creation. Test both creation routes and confirm custom categories survive final submission. Changing picker precedence alone will not preserve deleted draft data.
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](hyperlink)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run
Krishna2323 commentedon Nov 4, 2026
@MelvinBot Please investigate how this issue relates to #101766 and its fix PR #105138, then recommend what we should do next.
Context:
+in the Category picker for a no-workspace "Submit to my employer" expense opens a Not here page. That is Expense - Not here error when trying to add category to submit to employer flow #101766, which is still open.createPolicyCategoryon the draft workspace, which seems to clearPOLICY_CATEGORIES_DRAFTand remove the default categories.Please check:
createPolicyCategorysend an API request for a workspace that only exists as a draft? What does that request do?POLICY_DRAFTS? If so, where should that check live so it covers both the confirm page dropdown and the Category step page?Please give a clear recommendation: a small follow-up fix, waiting for #105138, or a revert. Include exact
file:linereferences. Please don't open a PR yet.MelvinBot commentedon Nov 4, 2026
Proposal
Ship a small follow-up guard now; do not wait for Create a real workspace when submitting a tracked expense to an employer with no workspace. Revert only if that guard cannot be verified promptly.
What is the root cause of that problem?
Both issues involve draft-only workspaces. Expense - Not here error when trying to add category to submit to employer flow stops at the add-page access check; inline creation bypasses it.
Evidence and API behavior
+normally stops before mutation: DynamicIOURequestStepCategoryCreate.tsx:90–107.createPolicyCategoryqueuesCreateWorkspaceCategorieswith the draftpolicyIDand new category—not workspace creation: Category.ts:780–825.What changes do you think we should make in order to solve the problem?
Hide creation in shared CategoryPicker/index.tsx:169–177 when
POLICY_DRAFTScontains the policy butPOLICYdoes not. Wait for both subscriptions to resolve. This covers both callers; preserve offline creation for real optimistic workspaces. Verify both entry points before release.Confidence: medium; source-verified only. No PR opened.
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](hyperlink)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run
1 remaining item
melvin-bot commentedon Nov 4, 2026
Krishna2323 commentedon Nov 4, 2026
@MelvinBot please check #105809 (comment)
MelvinBot commentedon Nov 4, 2026
🤖 Web test steps verification results:⚠️ partial
Verified on dev NewDot web: draft-workspace full Category step hides searched-name creation and preserves default selection; real workspace supports searched-name creation. Anchored confirmation dropdown was unavailable in this session.
Draft-workspace confirmation dropdown hides Create category
Confirmation Category navigated to the full Category step instead of an anchored dropdown.Draft-workspace full Category step hides searched-name creation
Searching UnmatchedDraft105809 showed No results found, retained Add category, and showed no Create category option.Default categories remain selectable
Clearing search restored all 19 default categories. Selecting Advertising returned to confirmation with Category, Advertising.Existing +/Add category entry remains
Add category remained present for draft and real workspaces. Real workspace opened the Name/Save form. Draft workspace opened a not-found page; baseline equivalence was not established.Real workspace supports searched-name category creation
Search offered Create “Real105809Category” category. Selecting it returned with that category applied; reopening showed the new category alongside defaults.Offline optimistic creation
Network interception/offline emulation is outside the supported web-driving surface.Draft PR: Hide searched category creation for draft-only workspaces, assigned to
Krishna2323. Both caller guards are implemented;+is unchanged. Categorize and Share with accountant also need the guard; Travel promotes its draft immediately. All 11 targeted tests and relevant TypeScript projects passed, including offline fixtures for both callers. Broad checks timed out; formatter checking was blocked. Details are in the PR. Please mark it ready for review when your testing is complete.view run · no recording available
[-]Categories disappear after creating category from confirm page when submitting to employer[/-][+][$175] Categories disappear after creating category from confirm page when submitting to employer[/+]melvin-bot commentedon Nov 4, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022117957565946106809
IuliiaHerets commentedon Nov 4, 2026
Issue is not repro anymore
Original.issue.not.rpero.mp4
[-][$175] Categories disappear after creating category from confirm page when submitting to employer[/-][+][Due for payment 2026-11-11] [$175] Categories disappear after creating category from confirm page when submitting to employer[/+]melvin-bot commentedon Nov 4, 2026
@Krishna2323
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.31-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-11-11. 🎊
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]