Skip to content

Move multi-level tag Required from the Tags table to Rules - #98414

Merged
JS00001 merged 23 commits into
Expensify:mainfrom
Krishna2323:krishna2323/issue-95764-multilevel-tag-required
Aug 18, 2026
Merged

Move multi-level tag Required from the Tags table to Rules#98414
JS00001 merged 23 commits into
Expensify:mainfrom
Krishna2323:krishna2323/issue-95764-multilevel-tag-required

Conversation

@Krishna2323

@Krishna2323 Krishna2323 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixed Issues

$ #95764
PROPOSAL:

Tests

Testing steps

Per-level Required — independent multi-level tags

  1. On Control with rulesRevamp beta access account, create two independent tag lists (e.g. State, Region), each with enabled tags.
  2. Go to Rules → General → Require fields for all expenses.
  3. Verify one toggle per tag list, labelled by its name, plus Category.
  4. Enable State, leave Region off, and save.
  5. Reopen and verify State is on, Region is off, and the General row lists the required fields correctly.

Single/dependent tags

  1. With one tag list (e.g. Department), verify one Department toggle and matching General row description.
  2. With dependent tag lists, verify one Tag toggle and Tag in the General row.

Disabled tag levels

  1. Disable all tags in Region and verify its Required toggle is disabled while State remains interactive.
  2. If Region is already required, verify its toggle remains interactive so it can be turned off.

Tags load without visiting Tags

  1. After a fresh login/hard refresh, go directly to Rules → General → Require fields and verify per-level tag rows load correctly.

Required removed from Tags table (beta on)

  1. Verify the Required column, row switches, bulk Require/Make optional actions, and detail-page toggle are gone.
  2. Verify Delete selection still works.

Beta off

  1. Switch to other account which doesn't have rulesRevamp beta access
  2. Verify all existing Required controls/actions return and work, including the warning when making the last required tag list optional.
  • 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
    • MacOS: Desktop
  • 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 verified there are no new alerts related to the canBeMissing param for useOnyx
  • 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 shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • 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)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • 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)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • 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.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • 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_hybrid.mp4
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_hybrid.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web_chrome.mp4

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@Krishna2323
Krishna2323 marked this pull request as ready for review August 12, 2026 11:02
@Krishna2323
Krishna2323 requested review from a team as code owners August 12, 2026 11:02
@melvin-bot

melvin-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

@situchan Please 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 request for a team August 12, 2026 11:02
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@Krishna2323

Copy link
Copy Markdown
Contributor Author

@MelvinBot review

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

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.

Files with missing lines Coverage Δ
src/components/Tables/WorkspaceTagsTable/index.tsx 69.81% <100.00%> (+0.58%) ⬆️
src/libs/actions/Policy/Category.ts 50.00% <100.00%> (-0.72%) ⬇️
.../RequireFieldsRules/FieldRequirementSettingRow.tsx 0.00% <0.00%> (ø)
...reFieldsRules/FieldRequirementsDirectionToggle.tsx 0.00% <0.00%> (ø)
...pendRules/SpendRuleRestrictionTypeToggleRevamp.tsx 0.00% <0.00%> (ø)
src/pages/workspace/tags/WorkspaceTagsPage.tsx 48.60% <66.66%> (-0.14%) ⬇️
src/libs/PolicyUtils.ts 77.67% <50.00%> (-0.02%) ⬇️
...es/workspace/tags/DynamicWorkspaceViewTagsPage.tsx 0.00% <0.00%> (ø)
...pace/rules/IndividualExpenseRulesSectionRevamp.tsx 2.08% <0.00%> (-0.27%) ⬇️
...c/pages/workspace/rules/RulesRequireFieldsPage.tsx 70.27% <70.68%> (+2.90%) ⬆️
... and 1 more
... and 270 files with indirect coverage changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62ceef335c

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx Outdated
Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx Outdated
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@MelvinBot

Copy link
Copy Markdown
Contributor

Reviewed the changes. The overall approach is clean — gating the old Required column/switches/bulk-actions behind rulesRevamp and moving per-level Required into the Rules page reads well, and the tests track the new behavior. Two things stood out: one likely bug, one behavior question.

🐛 Per-level toggles render stale (all-off) after a delayed tag load

This is exactly testing step 10 (fresh login / hard refresh → go straight to Rules → General → Require fields).

The sync effect is one-shot per policy.id, but tagRequiredByLevel is derived from policyTags, which loads asynchronously via openPolicyTagsPage — a plain API.read with no optimistic data (Tag.ts:71-82). On a hard refresh the policy object usually resolves before the tags arrive, and then:

  1. The effect runs while initialTagRequiredByLevel is still {}, sets syncedPolicyIDRef.current = policy.id, and stores {}.
  2. Tags land, initialTagRequiredByLevel recomputes to the real per-level values, the effect re-fires — but the syncedPolicyIDRef.current === policy.id guard now early-returns.
  3. The real values never reach state, so every level renders OFF even when required (RulesRequireFieldsPage.tsx:285).

policy.isLoading only tracks the policy object, not the tags, so nothing re-syncs once the tags arrive (sync effect L84-L93). The tests don't catch it because setupPolicy seeds policyTags before render.

Suggested fix: sync tagRequiredByLevel in its own effect that re-applies when policyTags populates (or drop it from the policy.id-guarded effect), so it isn't committed before the tags exist.

❓ "Can't make all tag lists optional" guard is dropped for independent multi-level tags

On the old Tags table, toggling off the last required list is hard-blocked with the cannotMakeAllTagsOptional warning (WorkspaceTagsPage.tsx:302-305). The new per-level toggles have no equivalent — with rulesRevamp on, a user can turn every level optional and Save. Testing step 13 verifies that warning for beta-off, but there's no beta-on counterpart. Is dropping that protection intentional for the revamp, or should it be carried over to the per-level toggles?


Nothing else blocking from my read. Happy to implement either fix — reply with @MelvinBot implement ... if you'd like me to.

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
…s section

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

This comment has been minimized.

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@JmillsExpensify

Copy link
Copy Markdown
Contributor

Tested for a direct integration. Wouldn't these be locked on instead of locked off for this case? We are importing these two accounting lists as tags from NetSuite and they should both be required.

CleanShot 2026-08-12 at 13 54 50@2x CleanShot 2026-08-12 at 13 55 03@2x

@Krishna2323

Copy link
Copy Markdown
Contributor Author

Tested for a direct integration. Wouldn't these be locked on instead of locked off for this case? We are importing these two accounting lists as tags from NetSuite and they should both be required.

@JmillsExpensify could you please share the steps you followed? Did you use the Sage Intacct C+ Contributor+ account?

@trjExpensify

Copy link
Copy Markdown
Contributor

Not sure on the steps, but it's a workspace connected to NetSuite I added him to owned by tom+integrationsmaster@trj.chat

  1. tom+integrationsmaster@trj.chat created a workspace and connected to NetSuite
  2. Imported departments as report fields
  3. Imported classes and locations as tags
  4. Invited jason@ to the workspace as an admin

I guess I'm not really following this screen, why would making a tag level required or not be locked? I understand the category one because we force you to minimally categorise expenses.

CleanShot 2026-08-12 at 13 54 50@2x

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@Krishna2323

Copy link
Copy Markdown
Contributor Author

Not sure on the steps, but it's a workspace connected to NetSuite I added him to owned by tom+integrationsmaster@trj.chat

  1. tom+integrationsmaster@trj.chat created a workspace and connected to NetSuite
  2. Imported departments as report fields
  3. Imported classes and locations as tags
  4. Invited jason@ to the workspace as an admin

I guess I'm not really following this screen, why would making a tag level required or not be locked? I understand the category one because we force you to minimally categorise expenses.

@MelvinBot review and also check if there are any behavioral changes.

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@Krishna2323

Copy link
Copy Markdown
Contributor Author

Optimistic violations are still not working properly. Both category and tag

Fixed

@Krishna2323

Copy link
Copy Markdown
Contributor Author

Bug: Tag can be enabled but cannot be disabled back. It says "your workspace settings require tags" but where to disable it other than this page?

Same reproducible on staging also:

Monosnap.screencast.2026-08-18.01-22-43.mp4

@situchan

Copy link
Copy Markdown
Contributor

Bug: Tag can be enabled but cannot be disabled back. It says "your workspace settings require tags" but where to disable it other than this page?

Same reproducible on staging also:

Monosnap.screencast.2026-08-18.01-22-43.mp4

ok, looks like there's no way to set policy.requiresTag back to false once it's set to true, without disabling Tags feature and then enabling back.

@situchan

situchan commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

There's still bug in optimistic violation but I reproduced this in production as well. So I think we can fix this separately, not blocking Rules feature.

  1. Toggle "Members must categorize all expenses" on
  2. Create expense without category
  3. "Missing category" violation shows
  4. Go offline
  5. Toggle "Members must categorize all expenses" off
  6. "Missing category" violation doesn't disappear until online <--- bug happening on production
Screen.Recording.2026-08-17.at.9.14.49.PM.mov

@melvin-bot
melvin-bot Bot requested a review from JS00001 August 17, 2026 20:27
@MelvinBot

Copy link
Copy Markdown
Contributor

Review

Overall this is a well-structured change — the hard part (recomputing violations once from the combined end state, and splitting a mixed require/optional save into one request per direction so the last write can't clobber the others) is handled carefully and the comments explain the "why" well. I traced the new action (setPolicyTagLevelsRequired), the pushTransactionViolationsOnyxData arg order, and the beta gating on the Tags table/detail pages — all consistent. One likely bug stands out:

🐛 A required level whose tags are all disabled can't be turned off

RulesRequireFieldsPage.tsx:320

isActive={getLevelRequired(tagList) && areLevelTagsEnabled}

For a level that is already Required but currently has all of its tags disabled (areLevelTagsEnabled === false):

  • isActive evaluates to false, so the switch renders OFF.
  • isLevelToggleDisabled = isTagFeatureDisabled || (!tagList.required && !areLevelTagsEnabled) is false (because tagList.required is true), so the row stays interactive — matching your testing step 9.
  • But since the switch shows OFF, tapping it fires onToggle(true)handleTagListRequiredToggle(true, …), which just re-sets the level to required. The user can never make it optional.

This directly contradicts testing step 9 ("If Region is already required, verify its toggle remains interactive so it can be turned off") — it's interactive but not actually turn-off-able.

The && areLevelTagsEnabled guard is only needed to keep a not-yet-required empty level from being switched on, and isLevelToggleDisabled already covers that case. Dropping it fixes the required case while leaving the disabled behavior intact:

isActive={getLevelRequired(tagList)}
Truth table after the suggested change
Level state tags enabled? isActive disabled Result
not required no false true can't turn on (correct)
not required yes false false can turn on
required no true false shows ON, can turn off
required yes true false shows ON, can turn off

Minor / non-blocking

  • IndividualExpenseRulesSectionRevamp.tsx fires openPolicyTagsPage(policyID) on every mount of the General tab to hydrate the subtitle's tag-list names. Correct, but worth confirming it doesn't cause a redundant fetch when the user is bouncing between tabs. Not a blocker.
  • If category and a tag level both change in one save and one request fails while the other succeeds, violations can be momentarily out of sync until the next policy refresh (the single recompute lives only in the tag request). This is inherent to the two-request design and self-heals — just flagging it as a known edge.

I focused on a static code review (didn't set up a live Control workspace with rulesRevamp + independent multi-level tags). The empty-tags-key defensive fixes in PolicyUtils and the beta gating on the Tags table/detail/bulk-action paths all look correct.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ccfea93255

ℹ️ 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".

Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx
Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx Outdated
Comment thread src/libs/actions/Policy/Tag.ts
@MelvinBot

Copy link
Copy Markdown
Contributor

Beta on/off regression analysis

Beta OFF matches production ✅ (one ungated exception, noted below). I traced every one of the 12 changed files and confirmed each behavioral change is either rendered only inside revamp-only pages/components or guarded by an explicit !isRulesRevampEnabled condition that reproduces the old expression when the beta is off.

Beta ON has one real regression — the required-level toggle bug I flagged in the earlier review is still the main one.

Beta-OFF gating — how each change is neutralized
  • RulesRequireFieldsPage.tsx:275shouldBeBlocked={!isRulesRevampEnabled}, so the whole page (per-level toggles, the isTagToggleDisabled/shouldShowTagLock changes, the two-request save) is unreachable beta-off, even via deeplink.
  • IndividualExpenseRulesSectionRevamp.tsx only renders through PolicyRulesPage → returns PolicyRulesPageRevamp only when isRulesRevampEnabled (PolicyRulesPage.tsx:76).
  • FieldRequirementSettingRow.tsx / FieldRequirementsDirectionToggle.tsx (the flexWrap/alignSelfStart style tweaks) render only via RequireFieldsRulePageBase, which is shouldBeBlocked={!isRulesRevampEnabled}.
  • SpendRuleRestrictionTypeToggleRevamp.tsx renders only in revampFormContent (isRulesRevampEnabled ? revampFormContent : legacyFormContent).
  • WorkspaceTagsTable/index.tsx, WorkspaceTagsPage.tsx, DynamicWorkspaceViewTagsPage.tsx → all new conditions are … && !isRulesRevampEnabled (and wrapperStyle={isRulesRevampEnabled ? … : undefined}), so beta-off evaluates to the exact prior expression.
  • Category.setWorkspaceRequiresCategory and Tag.setPolicyRequiresTag gained trailing default params (shouldRecomputeViolations = true, extraPolicyUpdate = {}). Every non-revamp caller (WorkspaceTagsSettingsPage, DynamicWorkspaceCategoriesSettingsPage) still calls them with the original 2 args → identical behavior. setPolicyTagLevelsRequired is new and only called from the beta-blocked page.

⚠️ The one ungated change — safe, but worth a look

PolicyUtils.ts:2016 and :2023 changed Object.values(tagList.tags)Object.values(tagList.tags ?? {}) in hasDependentTags/hasIndependentTags. These are shared utils that run regardless of beta. It's the only place where beta-off code differs. It only changes the case where a tag list arrives without a tags key (which the PR comment says does happen for empty lists) — old code would throw, new code treats it as empty. That's strictly a hardening, not a regression, but it does mean beta-off is not byte-for-byte the old behavior in that edge case. Worth confirming it isn't masking a real "should never be empty" invariant.

🐛 Regression when beta ON

Same issue as my earlier review, restating for completeness — a required level whose tags are all disabled renders the toggle OFF and can't be turned off:

RulesRequireFieldsPage.tsx:320isActive={getLevelRequired(tagList) && areLevelTagsEnabled}. The row stays interactive (correct), but because it shows OFF, tapping fires onToggle(true) and just re-requires it — the admin can never make it optional. Drop && areLevelTagsEnabled (the isLevelToggleDisabled gate already prevents turning on an empty level). Contradicts your own testing step 9.

Intentional behavior change to confirm (not a bug)

Beta-on, the tag Required control is no longer locked when connected to accounting (isTagToggleDisabled L63, shouldShowTagLock L163 both dropped isConnectedToAccounting), unlike the Category control which still locks. Your commit message says this is deliberate ("a connection owns the tag lists, not whether an expense must carry one") — just flagging it so a reviewer confirms Categories-locks-but-Tags-doesn't is the intended asymmetry.

This is a static gating/regression analysis of the diff — verifying "beta off == production" is fundamentally a code-path question, so I proved it from the gates rather than diffing two live builds.

Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Comment thread src/pages/workspace/rules/IndividualExpenseRulesSectionRevamp.tsx
Comment thread src/pages/workspace/rules/IndividualExpenseRulesSectionRevamp.tsx
Comment thread src/pages/workspace/rules/IndividualExpenseRulesSectionRevamp.tsx
Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx Outdated
Comment thread src/pages/workspace/rules/RulesRequireFieldsPage.tsx
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@Krishna2323
Krishna2323 requested a review from JS00001 August 18, 2026 13:28
@JS00001

JS00001 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

:shipit:

@JS00001
JS00001 merged commit c7b8272 into Expensify:main Aug 18, 2026
41 of 47 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/JS00001 in version: 9.4.56-0 🚀

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

@MelvinBot

Copy link
Copy Markdown
Contributor

Help site review — no docs changes required

I reviewed the changes in this PR against the help site files under docs/articles, and no help site update is needed right now because this behavior is gated behind the rulesRevamp beta and is not generally available.

What the PR does: It moves the multi-level tag Required setting out of the Tags table and into Rules → General → Require fields for all expenses (per-tag-list toggles), and removes the Required column/actions from the Tags table — all only when the rulesRevamp beta is on (WorkspaceTagsTable/index.tsx:82, beta defined at CONST/index.ts:1012).

Why no docs change: The only help article that touches this area is Require-tags-and-categories-for-expenses.md, which documents requiring tags via Tags → Settings. That flow is unchanged for everyone without the beta, and multi-level-tag Required was never documented separately. Documenting the new Rules → General location now would be inaccurate for the majority of users who don't have rulesRevamp enabled.

I verified this against the current web UI:

  • Requiring tags today lives at Tags → (More) → Settings → "Members must tag all expenses".
  • Rules → General has no "Require fields for all expenses" section and no per-tag-list Required toggle — confirming the new location only appears with the beta on.
Live UI verification
  • Tags → Settings shows the toggle "Members must tag all expenses" (plus "Track billable expenses" and "Show GL codes when selecting a tag") — the existing doc's flow still matches.
  • The Rules page's Expenses card has Receipt/Itemized/Max amount/age, Cash & Billable defaults, Prohibited expenses, and toggles for company cards / eReceipts / attendee tracking / public receipt visibility — but no "Require fields" section and no tag-required toggle. The "tags" link on that card just navigates to the Tags page.
  • On a Control workspace with a single tag list, the Tags table shows only Name and Enabled columns. (The true multi-level/independent-tag-list case couldn't be directly exercised because creating independent tag lists needs a CSV import, which the web automation can't do — but the same shared components showed no per-level Required control.)

Screenshots posted above.

Recommendation: When rulesRevamp graduates to GA, Require-tags-and-categories-for-expenses.md should be updated to describe configuring per-tag-list Required from Rules → General → Require fields for all expenses for multi-level tag workspaces. Until then, no change is warranted. If you'd prefer I draft the doc update now anyway (e.g. to have it staged for the GA cutover), let me know and I'll create the draft PR.

@Krishna2323, since no help site changes are required at this time, I did not create a docs PR. If you'd like the doc pre-staged for the beta's GA release, reply and I'll open one.

@lanitochka17

Copy link
Copy Markdown

Deploy Blocker #98932 was identified to be related to this PR.

@IuliiaHerets

Copy link
Copy Markdown

Hi @Krishna2323. Could you please let us know how we can enable or disable rulesRevamp?

cc @JS00001 @JmillsExpensify @situchan

@Krishna2323

Krishna2323 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

@IuliiaHerets by that I meant you need to be on an account with rulesRevamp enabled. Disable means the account doesn't have rulesRevamp beta access.

Updated the testing steps, sorry for the confusion.

@kavimuru

Copy link
Copy Markdown

@Krishna2323 is applause.expensifail.com domain accounts are "Rulesrevamp" enabled?

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.4.56-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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants