feat: Bring back a way to temporarily and globally pause auto-approve without losing your toggle state #8024
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.
As it says on the tin. We heard user feedback and are acting on it.
Description
In doing this, I saw that the existing code made it a requirement to have at least one toggle checked in order to enable/disable auto-approve, basically coupling the global setting and the specific toggle selection. I found that counter-intuitive and something which made #2 above impossible, so I lifted that requirement (and updated tests accordingly).
Test Procedure
Screenshots / Videos
Off, Closed:

Off, Open:

On, No Selection, Open:

On, Partial Selection, Open:

On, Full Selection, Open:

Off, Partial Selection, Open:

Documentation Updates
Unsure, this might need doc changes in terms of overall behavior.
Most likely for screenshots.
Important
Adds a global "Enabled" switch to
AutoApproveDropdown.tsxfor pausing auto-approve without losing toggle states, with UI and logic updates.AutoApproveDropdown.tsxto toggle global auto-approve without changing toggle selections.useAutoApprovalState.ts.useAutoApprovalState.spec.tsto reflect new logic.This description was created by
for 0c4905c. You can customize this summary. It will automatically update as commits are pushed.