Skip to content

Copy merchant rules only along with Rules when duplicating a workspace - #102930

Merged
marcaaron merged 3 commits into
mainfrom
claude-duplicateWorkspaceMerchantRulesFollowRules
Oct 9, 2026
Merged

marcaaron merged 3 commits into
mainfrom
claude-duplicateWorkspaceMerchantRulesFollowRules

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

On the Duplicate workspace "Select features" step, Rules and Merchant rules were two separate checkboxes. Unchecking Rules left Merchant rules checked, so the merchant rules were still copied to the new workspace.

Merchant rules live under Rules, so they now follow it:

  • Unchecking Rules also unchecks Merchant rules.
  • Checking Merchant rules also checks Rules.
  • If the source workspace has merchant rules but no other workspace rules, the Rules row isn't shown, and Merchant rules can still be copied on its own.

The checkboxes on screen and the request sent to the server now read the same selection, so what is checked is exactly what gets copied.

Tests cover each case above, plus duplicating with both options unchecked.

Fixed Issues

$ #102869
PROPOSAL: #102869 (comment)

Tests

Before you start

  • Use an admin account on a Control workspace that has Rules turned on (open the workspace > More features > turn on Rules).
  • Add a merchant rule to that workspace: open the workspace > Rules > Add rule > Apply expense defaults > Merchant. For Merchant, type Starbucks and tap Save. For Description, type Coffee and tap Save. Then tap Save rule.
  • On the Expense defaults tab, rows that start with "Merchant type is" are built-in defaults and appear on every workspace. Only the row that says Merchant is "Starbucks" matters for these tests.
  • If a confirmation pop-up appears after tapping Continue, tap Proceed.

Test 1: Unchecking Rules also unchecks Merchant rules

  1. Go to Workspaces.
  2. On the workspace with the merchant rule, open the three-dot menu and tap Duplicate workspace.
  3. Tap Next.
  4. Verify Rules and Merchant rules are both checked.
  5. Uncheck Rules.
  6. Verify Merchant rules becomes unchecked too.
  7. Tap Continue.
  8. Open the new workspace > More features and turn on Rules.
  9. Go to Rules > Expense defaults.
  10. Verify Merchant is "Starbucks" is not listed.

Test 2: Checking Merchant rules also checks Rules

  1. Repeat steps 1 to 3 from Test 1.
  2. Uncheck Rules, so both Rules and Merchant rules are unchecked.
  3. Check Merchant rules.
  4. Verify Rules becomes checked too.

Test 3: Rules can be copied without merchant rules

  1. Repeat steps 1 to 3 from Test 1.
  2. Uncheck Merchant rules.
  3. Verify Rules stays checked.
  4. Tap Continue.
  5. Open the new workspace > Rules > Expense defaults.
  6. Verify Merchant is "Starbucks" is not listed.

Test 4: Merchant rules are still copied when both are checked

  1. Repeat steps 1 to 3 from Test 1.
  2. Leave everything checked and tap Continue.
  3. Open the new workspace > Rules > Expense defaults.
  4. Verify Merchant is "Starbucks" is listed.
  • Verify that no errors appear in the JS console

Offline tests

Same as tests

QA Steps

Same as tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team October 3, 2026 09:50
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Oct 3, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-duplicateWorkspaceMerchantRulesFollowRules
git checkout -b claude-duplicateWorkspaceMerchantRulesFollowRules upstream/claude-duplicateWorkspaceMerchantRulesFollowRules
git push -u origin claude-duplicateWorkspaceMerchantRulesFollowRules

Then you can close this PR and open a new one from your fork.

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
...duplicate/WorkspaceDuplicateSelectFeaturesForm.tsx 88.80% <83.33%> (+7.96%) ⬆️
... and 7 files with indirect coverage changes

@MelvinBot

MelvinBot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ✅ pass

On dev NewDot web, the "Merchant rules" row on the Duplicate workspace "Select features" step now depends on "Rules" in both directions. The duplicated workspace copies the merchant rule only when both rows are checked.
Regression duplicate workspace Rules page showing the copied Starbucks merchant rule

Step Status
On the "Select features" step, both "Rules" and "Merchant rules" rows are shown and checkedBoth rows are shown and checked by default. The "Merchant rules" row has the subtitle "1 merchant rule".
Select features to copy step with Rules and Merchant rules both checked
✅
Unchecking "Rules" also unchecks "Merchant rules"After you click Rules, both rows are unchecked. "Select all" changes to the indeterminate dash.
Rules unchecked causes Merchant rules to also become unchecked
✅
With "Rules" unchecked, checking "Merchant rules" checks "Rules" againClicking Merchant rules while Rules is unchecked checks both rows.
Checking Merchant rules re-enables Rules
✅
With both checked, unchecking only "Merchant rules" keeps "Rules" checkedRules stays checked and Merchant rules becomes unchecked.
Unchecking only Merchant rules leaves Rules checked
✅
Duplicating with both unchecked does not copy the merchant ruleBoth rows were unchecked before Continue. The new "Rules Duplicate Test" workspace has no Rules item in its left nav. The Rules feature is off, and the "Starbucks" → "Starbucks Coffee" merchant rule was not copied.
Duplicated workspace overview with no Rules nav item
✅
Regression: duplicating with both "Rules" and "Merchant rules" checked copies the merchant ruleThe "Rules Regression Test" duplicate shows the copied rule under Merchants in Rules > Expense defaults: Merchant is "Starbucks" → Rename merchant to "Starbucks Coffee".
Regression duplicate workspace Rules page showing the copied Starbucks merchant rule
✅
No new JS console errors in the duplicate flowThe browser tool cannot capture console logs, so the tester checked network calls and the UI instead. The network log had no 4xx or 5xx responses for the flow calls: OpenDuplicatePolicyPage, DuplicatePolicy (twice), OpenPolicyRulesPage, and GetRules. No error banners or toasts appeared.
✅

view run · view recording

@MelvinBot

MelvinBot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ✅ pass

On standalone Android NewDot, the "Merchant rules" row on the Duplicate workspace "Select features" step now depends on "Rules" in both directions. The duplicated workspace copies the merchant rule only when both rows are checked.
Merchant rule copied into the duplicate's Rules page

Step Status
On the "Select features" step, both "Rules" and "Merchant rules" rows are shown and checkedBoth rows are shown and checked, along with Overview, Reports, Categories, and Workflows.
Select features step, Rules and Merchant rules both checked
✅
Unchecking "Rules" also unchecks "Merchant rules"After you tap Rules, both rows are unchecked. "Select all" changes to a mixed state.
Rules unchecked causes Merchant rules to also uncheck
✅
With "Rules" unchecked, checking "Merchant rules" checks "Rules" againTapping Merchant rules while both rows are unchecked checks both rows.
Checking Merchant rules re-checks Rules
✅
With both checked, unchecking only "Merchant rules" keeps "Rules" checkedRules stays checked and only Merchant rules becomes unchecked.
Unchecking only Merchant rules leaves Rules checked
✅
Duplicating with both unchecked does not copy the merchant ruleBoth rows were unchecked before Continue. The new "Melvin Tester's Workspace (Duplicate)" has no Rules item in its left nav. The Rules feature is off, so the merchant rule was not copied.
Both Rules and Merchant rules unchecked before duplicatingDuplicate workspace overview confirming workspace nameDuplicate workspace nav list has no Rules item
✅
Regression: duplicating with both "Rules" and "Merchant rules" checked copies the merchant ruleThe "Melvin Tester's Workspace (Duplicate 2)" workspace shows the copied rule under Merchants in Rules > Expense defaults: Merchant is "Starbucks" → Rename merchant to "Starbucks Coffee".
Second duplicate with Rules and Merchant rules both checkedMerchant rule copied into the duplicate's Rules page
✅
No new JS errors or red error screens in the duplicate flowNo red screens, crash dialogs, or error banners appeared during setup or either duplicate. Metro stayed stable for the whole run.
✅

view run · view recording

@TaduJR

TaduJR commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please replace your PR description with the below

Description

Explanation of Change

On the Duplicate workspace "Select features" step, Rules and Merchant rules were two separate checkboxes. Unchecking Rules left Merchant rules checked, so the merchant rules were still copied to the new workspace.

Merchant rules live under Rules, so they now follow it:

  • Unchecking Rules also unchecks Merchant rules.
  • Checking Merchant rules also checks Rules.
  • If the source workspace has merchant rules but no other workspace rules, the Rules row isn't shown, and Merchant rules can still be copied on its own.

The checkboxes on screen and the request sent to the server now read the same selection, so what is checked is exactly what gets copied.

Tests cover each case above, plus duplicating with both options unchecked.

Fixed Issues

$ #102869
PROPOSAL: #102869 (comment)

Tests

Before you start

  • Use an admin account on a Control workspace that has Rules turned on (open the workspace > More features > turn on Rules).
  • Add a merchant rule to that workspace: open the workspace > Rules > Add rule > Apply expense defaults > Merchant. For Merchant, type Starbucks and tap Save. For Description, type Coffee and tap Save. Then tap Save rule.
  • On the Expense defaults tab, rows that start with "Merchant type is" are built-in defaults and appear on every workspace. Only the row that says Merchant is "Starbucks" matters for these tests.
  • If a confirmation pop-up appears after tapping Continue, tap Proceed.

Test 1: Unchecking Rules also unchecks Merchant rules

  1. Go to Workspaces.
  2. On the workspace with the merchant rule, open the three-dot menu and tap Duplicate workspace.
  3. Tap Next.
  4. Verify Rules and Merchant rules are both checked.
  5. Uncheck Rules.
  6. Verify Merchant rules becomes unchecked too.
  7. Tap Continue.
  8. Open the new workspace > More features and turn on Rules.
  9. Go to Rules > Expense defaults.
  10. Verify Merchant is "Starbucks" is not listed.

Test 2: Checking Merchant rules also checks Rules

  1. Repeat steps 1 to 3 from Test 1.
  2. Uncheck Rules, so both Rules and Merchant rules are unchecked.
  3. Check Merchant rules.
  4. Verify Rules becomes checked too.

Test 3: Rules can be copied without merchant rules

  1. Repeat steps 1 to 3 from Test 1.
  2. Uncheck Merchant rules.
  3. Verify Rules stays checked.
  4. Tap Continue.
  5. Open the new workspace > Rules > Expense defaults.
  6. Verify Merchant is "Starbucks" is not listed.

Test 4: Merchant rules are still copied when both are checked

  1. Repeat steps 1 to 3 from Test 1.
  2. Leave everything checked and tap Continue.
  3. Open the new workspace > Rules > Expense defaults.
  4. Verify Merchant is "Starbucks" is listed.
  • Verify that no errors appear in the JS console

Offline tests

Same as tests

QA Steps

Same as tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I replaced the PR description with your text. I removed only the outer <details><summary>Description</summary> wrapper, so the sections render as normal headings.


view run

@TaduJR

TaduJR commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android-Native.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
Mac-Chrome.mp4

@TaduJR

TaduJR commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please make the PR ready for review

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 I couldn't mark this PR ready for review. The command was blocked because this run doesn't have permission to change the PR's draft status.

You're an assignee, so you can do it yourself. Click Ready for review at the bottom of the PR's Conversation tab.


view run

@TaduJR TaduJR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@melvin-bot
melvin-bot Bot requested a review from marcaaron October 3, 2026 11:05
@TaduJR

TaduJR commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Friendly Bump @marcaaron

Thanks!

@TaduJR

TaduJR commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please merge main!

…paceMerchantRulesFollowRules

Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I merged the latest main into this branch and pushed it in 4fea03a. The merge had no conflicts.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

The failing checks are unrelated to this PR's code, so I didn't push a fix.

  • test (job 7): the self-hosted runner lost its connection before Jest finished. No test failed. Please rerun the failed job (job log). I can't trigger reruns from here.
  • Check independent approval: this fails until the PR gets a reviewer approval. No code change will fix it.
Evidence
  • Job 7 annotation: "The self-hosted runner lost communication with the server." The Jest tests step never reported a result.
  • The other 8 Jest jobs and all lint, TypeScript, and build checks passed on 4fea03a3.
  • tests/unit/WorkspaceDuplicateSelectFeaturesFormTest.tsx passed in job 1. tests/actions/PolicyTest.ts most likely ran in job 7, so the rerun is needed to confirm it.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Nothing has changed since my last comment, so there is still no code to fix.

  • test (job 7): the runner lost its connection before Jest finished, so no test failed. Someone with Actions access needs to click Re-run failed jobs on the Jest run. I tried again, but I'm not allowed to start reruns.
  • Check independent approval: this passes once a reviewer approves the PR.

All other checks pass on 4fea03a3.

@TaduJR

TaduJR commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please merge main and make the PR ready for review.

…paceMerchantRulesFollowRules

Co-authored-by: TaduJR <TaduJR@users.noreply.github.com>
@MelvinBot
MelvinBot marked this pull request as ready for review October 9, 2026 06:32
@MelvinBot
MelvinBot requested a review from a team as a code owner October 9, 2026 06:32
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I merged the latest main into this branch and pushed it in 52c8d2b. The merge had no conflicts. The PR is now marked ready for review.


view run

@melvin-bot
melvin-bot Bot requested review from TaduJR and situchan October 9, 2026 06:32
@melvin-bot
melvin-bot Bot requested review from JmillsExpensify and removed request for a team October 9, 2026 06:32
@melvin-bot

melvin-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

@TaduJR @situchan One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot removed the request for review from a team October 9, 2026 06:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T06:37:32.001731Z 52c8d2b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TaduJR
TaduJR removed the request for review from situchan October 9, 2026 06:33
@TaduJR

TaduJR commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 52c8d2b2b6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@situchan

situchan commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

I can help if this requires secondary review and testing

@marcaaron
marcaaron merged commit 6a1b74c into main Oct 9, 2026
44 of 46 checks passed
@marcaaron
marcaaron deleted the claude-duplicateWorkspaceMerchantRulesFollowRules branch October 9, 2026 09:56
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🚧 marcaaron has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

OSBotify commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/marcaaron in version: 9.5.7-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help site update is needed. This is a bug fix that makes Merchant rules follow Rules as users would expect, and Duplicate-Workspace.md still correctly lists both as options.


view run

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/mountiny in version: 9.5.7-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants