Repository navigation
Keep the new-thread project trigger stable while submitting - #1820
Merged
Merged
Conversation
The composer disables the project picker for the length of a submission (and while attachments upload). ProjectSelector dropped its chevron whenever it was disabled, so the trigger narrowed by the icon plus its gap and every control to its right in the strip jumped left, then back when the request settled. Add showChevronWhenDisabled, matching OptionPicker, and set it for the transient busy states. A real lock (locks.project) still renders as a plain label. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain-English summary
This change keeps the project arrow visible while a new thread starts. The project control remains disabled, and the control row no longer moves.
Review findings
I found no blocking issues in commit 00b407e.
- Security: The change does not alter permissions, input handling, or data access.
- Code quality: The new option clearly separates a temporary lock from a permanent project lock.
- Performance: The change adds one Boolean check. It adds no state, effects, timers, callbacks, or extra renders.
- Architecture:
OptionPickeralready uses the same rule.ProjectSelectorhas special actions, so a shared component refactor does not help here. - Test coverage: The selector tests cover both disabled-arrow states. The browser test covers the complete submission path.
Validation
- The full
@bb/appsuite passed with 364 files and 2,883 tests. - The
@bb/apptype check passed through Turbo. - The browser held
POST /api/v1/threadsopen during submission. - The trigger width stayed at 114.84 pixels.
- The trigger height stayed at 32 pixels.
- The trigger became disabled and kept one chevron.
- The final GPT-5.6 review gate found no issues.
Scope note
The pull request moved to 37514d6 during this run. This review covers the rule's specified commit, 00b407e.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Submitting a new thread makes the option strip under the prompt box jump left, then snap back when the request settles.
NewThreadComposerdisables the project picker for the length of a submission (and while attachments upload).ProjectSelectorrendered itsChevronDownonly when enabled, so the trigger lost the 14px icon plus its 4px flex gap. The selector is the first item in the left flex row of the strip, so the environment/branch pickers beside it shift ~18px for the whole create request.Fix
ProjectSelectorgainsshowChevronWhenDisabled, matching the existingOptionPickerprop.showChevronWhenDisabled: !locks.project, so transient busy states keep the trigger geometry. A real lock still renders as a plain label, so the side-chat / plugin read-only look is unchanged.ProjectSelector.test.tsxcovers both cases.Typecheck, lint, and tests pass for
@bb/app.