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 2025-11-14] [$250] Workspace - Receipt partners menu appears in the WS editor without animation after enabling #73799
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v9.2.40-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/folder/13177080/test-cases/41237925?p=2 Email or phone of affected tester (no customers): n/a Issue reported by: Applause Internal Team Device used: Mac 15.4.1 Safari, Desktop, iPhone 13 iOS 18.6.2 Safari, Hybrid App Component: Workspace Settings
Please re-state the problem that we are trying to solve in this issue.
Workspace - Receipt partners menu appears in the WS editor without animation after enabling
What is the root cause of that problem?
The current animation detection only monitors top-level policy.pendingFields for detecting newly enabled features, but Receipt Partners uses a nested pending field structure at policy.receiptPartners.pendingFields.enabled
What changes do you think we should make in order to solve the problem?
Add special handling for Receipt Partners in the feature state update logic
constprevReceiptPartnersPendingFields=usePrevious(policy?.receiptPartners?.pendingFields);
...
useEffect(()=>{setFeatureStates((currentFeatureStates)=>{constnewFeatureStates={}asPolicyFeatureStates;letnewlyEnabledFeature: PolicyFeatureName|null=null;(Object.keys(policy?.pendingFields??{})asPolicyFeatureName[]).forEach((key)=>{constisFeatureEnabled=isPolicyFeatureEnabled(policy,key);// Determine if this feature is newly enabled (wasn't enabled before but is now)if(isFeatureEnabled&&!currentFeatureStates[key]){newlyEnabledFeature=key;}newFeatureStates[key]=prevPendingFields?.[key]!==policy?.pendingFields?.[key]||isOffline||!policy?.pendingFields?.[key] ? isFeatureEnabled : currentFeatureStates[key];});// Special handling for Receipt Partners since it uses nested pending fieldsconstreceiptPartnersKey=CONST.POLICY.MORE_FEATURES.ARE_RECEIPT_PARTNERS_ENABLED;constisReceiptPartnersEnabled=isPolicyFeatureEnabled(policy,receiptPartnersKey);constprevReceiptPartnersPending=prevReceiptPartnersPendingFields?.enabled;constcurrentReceiptPartnersPending=policy?.receiptPartners?.pendingFields?.enabled;if(isReceiptPartnersEnabled&&!currentFeatureStates[receiptPartnersKey]&&prevReceiptPartnersPending!==currentReceiptPartnersPending){newlyEnabledFeature=receiptPartnersKey;}newFeatureStates[receiptPartnersKey]=prevReceiptPartnersPending!==currentReceiptPartnersPending||isOffline||!currentReceiptPartnersPending
? isReceiptPartnersEnabled
: currentFeatureStates[receiptPartnersKey];// Only highlight the newly enabled featureif(newlyEnabledFeature){setHighlightedFeature(newlyEnabledFeature);}return{
...policyFeatureStates,
...newFeatureStates,};});},[policy,isOffline,policyFeatureStates,prevPendingFields,prevReceiptPartnersPendingFields]);
It iterates over the policy pendingFields keys and checks if the feature is already present or not. If not, then it will be set as the highlighted feature (setHighlightedFeature).
However, when we enable the feature, we don't set the policy pendingFields. Instead, we set the pending fields inside the feature object itself.
changed the title [-]Workspace - Receipt partners menu appears in the WS editor without animation after enabling[/-][+][$250] Workspace - Receipt partners menu appears in the WS editor without animation after enabling[/+]on Nov 3, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.46-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@bernhardoj / @eh2077@greg-schroeder The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
[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:
Regression Test Proposal
Precondition:
go offline
Test:
Open workspace More Features page
Enable Receipt partner
Verify the Receipt partner menu item is animated
Verify the Receipt partner in More features is grayed out
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Oct 30, 2025
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.ryntgh commentedon Oct 30, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - Receipt partners menu appears in the WS editor without animation after enabling
What is the root cause of that problem?
The current animation detection only monitors top-level
policy.pendingFieldsfor detecting newly enabled features, but Receipt Partners uses a nested pending field structure atpolicy.receiptPartners.pendingFields.enabledApp/src/pages/workspace/WorkspaceInitialPage.tsx
Lines 385 to 409 in e1f7959
It only iterates through
policy?.pendingFieldskeys, but Receipt Partners sets its pending state in a nested structure onenablePolicyReceiptPartnersApp/src/libs/actions/Policy/Policy.ts
Lines 3899 to 3906 in e1f7959
What changes do you think we should make in order to solve the problem?
Add special handling for Receipt Partners in the feature state update logic
App/src/pages/workspace/WorkspaceInitialPage.tsx
Lines 385 to 409 in e1f7959
What alternative solutions did you explore? (Optional)
N/A
bernhardoj commentedon Oct 30, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The receipt partner feature is not animated when enabled.
What is the root cause of that problem?
The feature will be highlighted if it's detected as a newly enabled feature.
App/src/pages/workspace/WorkspaceInitialPage.tsx
Lines 385 to 402 in 13a0e11
It iterates over the policy
pendingFieldskeys and checks if the feature is already present or not. If not, then it will be set as the highlighted feature (setHighlightedFeature).However, when we enable the feature, we don't set the policy
pendingFields. Instead, we set the pending fields inside the feature object itself.App/src/libs/actions/Policy/Policy.ts
Lines 3898 to 3906 in 13a0e11
What changes do you think we should make in order to solve the problem?
We need to set the pending fields on the root policy object.
App/src/libs/actions/Policy/Policy.ts
Lines 3898 to 3906 in 13a0e11
(adjust the success and failure data)
Then, update the pending fields usage here too.
App/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx
Line 340 in 13a0e11
[-]Workspace - Receipt partners menu appears in the WS editor without animation after enabling[/-][+][$250] Workspace - Receipt partners menu appears in the WS editor without animation after enabling[/+]melvin-bot commentedon Nov 3, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021985332153316064306
melvin-bot commentedon Nov 3, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (
External)eh2077 commentedon Nov 5, 2025
I think @bernhardoj 's proposal is right to go with - adding missing pending fields instead of twisting the useEffect of animation.
🎀👀🎀 C+ reviewed
12 remaining items
melvin-bot commentedon Nov 7, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 7, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.46-3 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 2025-11-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 7, 2025
@bernhardoj / @eh2077 @greg-schroeder The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
melvin-bot commentedon Nov 14, 2025
Payment Summary
Upwork Job
BugZero Checklist (@greg-schroeder)
eh2077 commentedon Nov 17, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/70588/files#r2532481152
[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:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
greg-schroeder commentedon Nov 18, 2025
Payment summary:
Author: @bernhardoj - $250 - ND
Reviewer: @eh2077 - $250 - ND
Approved for payments as outlined above ☝️
bernhardoj commentedon Nov 18, 2025
Requested in ND.
garrettmknight commentedon Nov 21, 2025
$250 approved for @bernhardoj
garrettmknight commentedon Dec 18, 2025
$250 approved for @eh2077