Unify dialog glass and fix composer overlays#4365
Conversation
Co-authored-by: codex <codex@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit a9aeb0e. Configure here.
| onSelect={onSelectComposerItem} | ||
| /> | ||
| </div> | ||
| </ComposerCommandMenuLayer> |
There was a problem hiding this comment.
Portaled menu survives mobile collapse
Medium Severity
The portaled command menu mispositions when its anchor element becomes hidden on mobile composer collapse. This occurs because composerMenuOpen can remain true, and getBoundingClientRect returns zero for the hidden anchor, causing the menu to render incorrectly.
Reviewed by Cursor Bugbot for commit a9aeb0e. Configure here.
| return createPortal( | ||
| <div | ||
| className="pointer-events-auto fixed z-[70]" | ||
| style={{ |
There was a problem hiding this comment.
Composer menu above modal layers
Medium Severity
The portaled composer command menu's z-index of 70 places it above shared dialogs and command palette surfaces (z-50). This can cause the menu to render on top of these elements and intercept pointer events.
Reviewed by Cursor Bugbot for commit a9aeb0e. Configure here.
…sign (#8) * feat(web): refresh application surfaces * style(web): polish dark mode dialogs * fix(web): unify and tune glass surfaces Co-authored-by: codex <codex@users.noreply.github.com> * fix(web): apply glass opacity to thread tooltip * fix(web): override thread tooltip background * fix(web): apply glass opacity to model picker * style(web): polish glass opacity slider * fix(web): apply glass opacity to command palette * fix(web): add glass composer alerts * fix(web): honor composer glass opacity * test(web): stabilize timeline module setup * style(web): fade settings content beneath navbar * test(desktop): include glass opacity in settings fixture * fix(web): address redesign review findings * fix(web): sync provider banner dismissal * fix(web): new-thread defaults ignored for remote environments (pingdotgg#4276) Co-authored-by: Claude Fable 5 <noreply@anthropic.com> * feat: add "Auto" runtime mode — AI-reviewed approvals for Codex and Claude (pingdotgg#4272) Co-authored-by: Claude Fable 5 <noreply@anthropic.com> * Add shared t3.json project configuration support (pingdotgg#4317) * Restore light-mode surfaces and refine dialog styling - Restore light-mode glass, dialog, dropdown, and composer colors - Refine provider wizard, changed-file cards, sidebar controls, and buttons - Update wizard step tests for the new list structure * Unify dialog glass and fix composer overlays (pingdotgg#4365) Co-authored-by: codex <codex@users.noreply.github.com> --------- Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com> Co-authored-by: codex <codex@users.noreply.github.com> Co-authored-by: Theo Browne <me@t3.gg> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436)
…ingdotgg#4350) (#185) * feat: add "Auto" runtime mode — AI-reviewed approvals for Codex and Claude (pingdotgg#4272) Co-authored-by: Claude Fable 5 <noreply@anthropic.com> (cherry picked from commit fbd7742) * Add shared t3.json project configuration support (pingdotgg#4317) (cherry picked from commit 1c9a6de) * Restore light-mode surfaces and refine dialog styling - Restore light-mode glass, dialog, dropdown, and composer colors - Refine provider wizard, changed-file cards, sidebar controls, and buttons - Update wizard step tests for the new list structure (cherry picked from commit e51538b) * Unify dialog glass and fix composer overlays (pingdotgg#4365) Co-authored-by: codex <codex@users.noreply.github.com> (cherry picked from commit 4d83436) * fix(web): warn before silent Windows updates (pingdotgg#4350) (cherry picked from commit b41e89e) * chore(sync): retrigger CI for #185 after retarget to main Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com> * fix(sync): preserve Droid medium-access with Auto runtime mode Keep fork-only medium-access in RuntimeMode alongside upstream Auto so presentation maps and Droid autonomy mapping typecheck and behave. Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com> --------- Co-authored-by: Theo Browne <me@t3.gg> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com> Co-authored-by: codex <codex@users.noreply.github.com> Co-authored-by: Yukun Shan <92423096+nateEc@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>


Summary
Restores a consistent glass-surface system for dialogs and composer suggestion menus, and fixes the draft-page stacking bug that allowed page content to render above file and skill results.
Problem
Changes
Verification
vp fmton all changed filesvp lintfor the affected web componentsvp run typecheckinapps/webvp test run src/components/settings/AddProviderInstanceWizardSteps.test.tsxNote
Unify dialog glass styles and fix composer command menu overlay stacking
DIALOG_BACKDROP_CLASS,DIALOG_POPUP_CLASS, andDIALOG_MOBILE_SHEET_CLASSconstants, replacing duplicated inline class strings indialog.tsx,alert-dialog.tsx, andcommand.tsx.document.body) via a newComposerCommandMenuLayercomponent in ChatComposer.tsx, using fixed positioning and z-index 70, with position tracking on resize and scroll.isolation: isolatefrom.chat-composer-glass-hostandisolateTailwind class from composer containers in ChatView.tsx to fix stacking context conflicts.DialogPopupno longer accepts abackdropClassNameprop.Macroscope summarized a9aeb0e.
Note
Low Risk
UI layering and shared CSS only; portal positioning could regress on unusual scroll containers but scope is limited to composer menus and dialog primitives.
Overview
Unifies dialog, alert-dialog, and command backdrop/popup styling via shared
dialog-styles.tsconstants, softens dark-mode dialog borders (14% → 8% white), and dropsDialogPopup’sbackdropClassNameprop.Composer file/skill menus now render through a new
ComposerCommandMenuLayerthat portals todocument.bodywith fixed positioning (z-[70]) and tracks the composer anchor on resize/scroll.isolateis removed from draft composer wrappers and.chat-composer-glass-host(pseudo-element getspointer-events: noneandz-index: 0) so menus and page content stack correctly on draft hero pages.Reviewed by Cursor Bugbot for commit a9aeb0e. Bugbot is set up for automated code reviews on this repo. Configure here.