Repository navigation
Show the generic Control upgrade page for the Auto-pay approved reports toggle #102660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chuckdries
merged 5 commits into
main
from
claude-showGenericControlUpgradeForAdvancedWorkflows
Oct 9, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
61ff290
Show the generic Control upgrade page for Workflows Advanced toggles
MelvinBot 0d4bf3b
Merge remote-tracking branch 'origin/main' into claude-showGenericCon…
MelvinBot eb5e870
Limit the generic Control upgrade page to Auto-pay approved reports
MelvinBot 75b60a6
Use CONST feature ids for the approvals upgrade copy check
MelvinBot a47200c
Merge remote-tracking branch 'origin/main' into claude-showGenericCon…
MelvinBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ CONSISTENCY-2 (docs)
This modified condition compares
feature.idagainst the hardcoded strings'preventSelfApproval'and'autoApproveCompliantReports', but these feature IDs are already defined as named constants inCONST.UPGRADE_FEATURE_INTRO_MAPPING(src/CONST/index.ts). This is inconsistent with the same PR, which correctly referencesCONST.UPGRADE_FEATURE_INTRO_MAPPING.autoPayApprovedReports.idon line 110. Using the raw strings risks silent breakage if the IDs ever change and reduces readability.Reference the constants instead:
Reviewed at: eb5e870 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MelvinBot wdyt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. The PR already uses the
CONSTid forautoPayApprovedReports, so the other two ids should match. I switched the check toCONST.UPGRADE_FEATURE_INTRO_MAPPING.preventSelfApproval.idandCONST.UPGRADE_FEATURE_INTRO_MAPPING.autoApproveCompliantReports.idin 75b60a6. Nothing else changed.Typecheck, lint, and
tests/ui/WorkspaceUpgradeTest.tsx(16/16) pass.