Repository navigation
Studio: pinned Run settings footer, model picker on the radius scale - #15104
Conversation
…ooter # Conflicts: # studio/frontend/src/index.css
…ows the new padding
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…ooter # Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
|
The The test guards #10216: if the footer's layout changes between mousedown and mouseup (here, because Save mounts once the draft commits on blur), Load moves under the pointer and the click is lost. It takes the footer as the third If the new sticky footer still never reflows (no |
…x, sets the gap above it
… text" This reverts commit edcca69.
…ooter # Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
## Summary `tests/studio/test_model_picker_contracts.py::test_the_run_settings_footer_does_not_reflow_under_the_pointer` fails on main since #15104 (pinned Run settings footer). It shows up in `Repo tests (CPU, studio)` on unrelated PRs, for example #15123: ``` E AssertionError: className={cn( "mt-5", // Sticky offsets start inside the scroller's 18px padding ... variant === "page" && "sticky -bottom-4.5 ... E assert ('variant ===' not in ' className=... ``` The test found the footer as "the third `<div` back" from the Remember checkbox. #15104 wrapped the footer in a new sticky `<div>`, so that count now lands on the wrapper. The wrapper's `variant === "page"` condition only pins the footer to the panel edge. The footer itself is still `flex flex-col gap-3.5 border-t ...`, with no `flex-wrap` and no variant switch. So the #10216 invariant (Load must not move between mousedown and mouseup) still holds, and only the locator broke. ## Change - Walk the `<div>` open and close tags before the checkbox, so only the divs that actually enclose Remember count. Sibling divs that already closed are skipped, and `>` inside JSX braces is handled. - The footer is the enclosing div that draws the rule (`border-t`). It must be `flex flex-col`, must not switch on `variant`, and must not wrap. The divs inside it, and the one wrapper just outside it (the sticky pin), must not carry `flex-wrap` either. ## Verification - On main: fails as above. With this change: `201 passed` for the whole file. - The `model-config-page.tsx` from before #15104 still passes, so the check covers both layouts. - Sabotage, each against the current component, each makes the test fail: 1. `flex-wrap` on the footer column 2. the footer's layout switched on `variant` (`flex flex-row` for the page variant) 3. `flex flex-wrap` on the sticky wrapper
Studio: pinned Run settings footer, model picker on the radius scale
With Advanced settings open, Run settings runs several screens tall and the Load / Reload button sat at the very end. The footer (Remember for this model, Load or Reload, Reset, Share) is now pinned to the bottom of the picker panel while the settings scroll behind it.
stickyinside the picker's scroller, on the panel's own fill (bg-popover,bg-sidebarin dark). Sticky offsets are measured inside the scroller's 16px bottom padding, so the footer uses-bottom-4with matching negative margins and sits flush on the panel edge; atbottom-0the settings showed through a strip under the buttons. Only the picker popover; the sidebar variant is unchanged.rounded-lg20px,rounded-xl24px, a 20px surface). That override is removed, so the picker and Run settings use the shared tiers (12 / 16 / 21 / 24px) and the panel takes the popover's 21px. Extra Arguments goes from 24px to 21px.size="sm"), left-aligned. Share is an icon-only button (Hugeiconsshare-01, with a "Share" aria-label and tooltip) in a filled 32px circle, the same fill and hover as Reset beside it. Its icon is 16px at the default UI size (calc(1rem * var(--ui-space-scale)), since popovers drawsize-4icons at the 15px text-scaled icon size). The space under the buttons (18px; their filled boxes already carry space under the label, so an equal number reads as more at the bottom) matches the space above Remember for this model, measured to the label's text rather than its checkbox or line box.--overlay-scrollbar-gutter, 12 to 14px on macOS) capped at 8px, so an overlay scrollbar no longer pushes the content further in. The back chevron's stroke starts on the same 28px edge (-ml-2.75cancels its button's 6px inset and the glyph's own ~5px).rounded-md, which was a pill only on the picker's old scale (18px); on the shared scale it read as a 12px rectangle, so it is nowrounded-fulllike other one-line controls.scripts/check-bundle-budget.ts.Screenshots
Run settings with Advanced settings on, scrolled partway: the footer stays on the panel edge, nothing shows beneath it, Extra Arguments at 21px
The picker list on the shared scale (light)
Verification
main:npm run typecheck,npm test(13859 pass),npm run build,npm run bundle:check; Run settings text and dividers measured 28px from the panel's left and right (the picker list's section labels and dividers also 28px) 18px from the top and bottom with Chromium's own 14px overlay gutter, the chevron stroke at 28.5px, and the pinned footer flush with the panel edge at the top, middle and end of a scrolled Advanced view and from the left at the content column; 18.3px from the rule to the top of the Remember text and 18px under the buttons, every footer button 32px tallnpm run typecheck,npm test(13853 pass; the save-status test now also requires the two removed lines stay gone),npm run build,npm run bundle:check,npm run i18n:check:strictrounded-md/lg/xl/2xlinside the picker measured 12 / 16 / 21 / 24pxNot tested here