Skip to content

Studio: one fixed radius scale, applied to the shared primitives - #14919

Merged
shimmyshimmer merged 8 commits into
mainfrom
studio-radius-scale
Oct 23, 2026
Merged

shimmyshimmer merged 8 commits into
mainfrom
studio-radius-scale

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Studio's corners follow one fixed radius scale, and the shared primitives and global styles move onto it. This is the base of a short stack: the per-area sweeps, filled buttons and one-line command boxes build on it (split out of #14895 so each piece can be reviewed on its own).

Before, the Tailwind radius scale was a set of offsets from --radius, and five regions overrode that variable (chat search, model selector, API page, Settings, Skills), so the same class gave different corners in different places. The scale is now fixed px tiers, nested so an outer corner equals the inner corner plus its inset (the composer: 28px around an 18px send circle at a 10px inset; the + menu: 21px around 12px rows at a 9px gutter):

Class Radius Used for
rounded-full pill anything one line tall: buttons, inputs, select triggers, chips, badges, tabs, nav rows, toggles
rounded-sm 8px tiny tiles and swatches
rounded-md (and bare rounded) 12px rows in menus and lists, tiles inside a card
rounded-lg 16px menus (12px rows + 4px gutter), code blocks, thumbnails, compact boxes with 8-12px padding
rounded-xl 21px popovers, textareas, larger panels inside a card or dialog
rounded-2xl 24px cards and panels
rounded-3xl 28px composer, dialogs, sheets, large floating surfaces

In this PR:

  • The scale above, defined once in @theme; the --radius overrides are gone.
  • Primitives: one-line controls (badge, tabs, toggles, menubar, progress, kbd) are pills; dialogs, alert dialogs and the command palette are 28px; cards 24px; alerts and empty states on the compact and card tiers.
  • Menus: dropdowns, selects, context menus and the menubar use a 4px gutter, 12px rows and a 16px corner so the hover nests in the corner. The sidebar row menu (8px gutter) is 20px, the account menu (10px) 22px, the composer + menus keep 21px around their 9px gutter.
  • Global styles: composer 28px, code blocks 16px, elevated cards one 24px radius at every width, sidebar drag ghosts as pills, toasts 16px.
  • Tooltips keep their existing radii (11px compact, 16px rich).

Pages that are not swept yet still render on the new scale, so some corners move slightly until their area PR lands.

Verification

  • npm run typecheck, npm test and npm run build pass on this branch alone.
  • Tests that pinned old radius classes on primitives assert the new tiers.
  • Checked in an isolated Studio (light and dark) together with the rest of the stack; a rendered-DOM audit across chat, every Settings tab, Hub, Library, Images, Video, Audio, Studio, Data Recipes, Export, API monitor and Projects checks one-line boxes are pills, short boxes are not near-capsules and hover rows nest in their container.

Not tested here

GPU-only screens and surfaces that need a loaded model; the Desktop (Tauri/WebKit) shell. corner-shape: squircle only renders in Chromium.

Stack

Split out of #14895. Based on this PR (review this first):

Independent, based on main: #14926 run settings controls, sliders and thumbs; #14927 composer + hover label.

The sibling PRs touch disjoint lines, so they merge cleanly in any order once this lands. Merged together they are identical to #14895.

Stacked PRs folded in

The stacked PRs were squash-merged into this branch, so merging this PR lands all of them:
#14920 (chat, browser, shared components), #14921 (Settings, Profile, Library), #14922 (Hub, model picker, Images, Video), #14923 (Recipe Studio, Studio, Audio, remaining pages), #14924 (filled borderless buttons), #14925 (one-line command and URL boxes as pills). Each was reviewed and staged on its own PR.

The Tailwind radius scale is now fixed px tiers instead of offsets from a
--radius that several regions overrode: 8px tiles, 12px rows, 16px menus and
compact boxes, 21px popovers and panels, 24px cards, 28px dialogs and the
composer. Shared primitives and global styles move onto it: one-line controls
are pills, menu corners nest around their 12px rows, dialogs are 28px, toasts
16px. Tooltips keep their own radii.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T08:05:39.660157Z b7ea93f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 0d4f19b093

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 37d68ef91f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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

Chat, the composer surroundings, the browser panel and the shared
assistant components (message parts, tool output, attachments, sidebar,
command palette, update cards) move onto the radius scale.

Stacked on #14919 (the radius scale and primitives); review that first.
Split out of #14895.

Applies the tiers per role and size: one-line buttons, chips, triggers
and nav rows are pills, rows inside menus and lists 12px, compact
notices, error boxes, option rows and code 16px, larger inner panels and
popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep
their shapes (the 30px header and sidebar icon buttons, the settings
cog, the model selector and context chips, the account and update
buttons).

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- Checked in an isolated Studio together with the rest of the stack,
including a rendered-DOM radius audit of these pages.

## Not tested here

Surfaces that only render with a loaded model or a GPU (tool cards,
generated images, streaming states).
## Summary

Settings, Profile, Library, login, change password and the guided tour
move onto the radius scale. The Settings dialog is 28px, matching the
composer.

Stacked on #14919 (the radius scale and primitives); review that first.
Split out of #14895.

Applies the tiers per role and size: one-line buttons, chips, triggers
and nav rows are pills, rows inside menus and lists 12px, compact
notices, error boxes, option rows and code 16px, larger inner panels and
popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep
their shapes (the 30px header and sidebar icon buttons, the settings
cog, the model selector and context chips, the account and update
buttons).

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- Checked in an isolated Studio together with the rest of the stack,
including a rendered-DOM radius audit of these pages.

## Not tested here

Multi-account flows beyond the owner account.
## Summary

The Hub, model picker, loaded-models panel, Images and Video move onto
the radius scale: model and trending cards 24px, the hero 28px, menu
rows nested in their menus, one-line chips and triggers as pills.

Stacked on #14919 (the radius scale and primitives); review that first.
Split out of #14895.

Applies the tiers per role and size: one-line buttons, chips, triggers
and nav rows are pills, rows inside menus and lists 12px, compact
notices, error boxes, option rows and code 16px, larger inner panels and
popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep
their shapes (the 30px header and sidebar icon buttons, the settings
cog, the model selector and context chips, the account and update
buttons).

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- Checked in an isolated Studio together with the rest of the stack,
including a rendered-DOM radius audit of these pages.

## Not tested here

Image and video generation states that need a GPU.
…g pages (#14923)

## Summary

Recipe Studio, training Studio, Audio, API monitor, RAG, Export and the
other remaining pages move onto the radius scale.

Stacked on #14919 (the radius scale and primitives); review that first.
Split out of #14895.

Applies the tiers per role and size: one-line buttons, chips, triggers
and nav rows are pills, rows inside menus and lists 12px, compact
notices, error boxes, option rows and code 16px, larger inner panels and
popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep
their shapes (the 30px header and sidebar icon buttons, the settings
cog, the model selector and context chips, the account and update
buttons).

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- Checked in an isolated Studio together with the rest of the stack,
including a rendered-DOM radius audit of these pages.

## Not tested here

Training, export and audio generation states that need a GPU or a loaded
model.
## Summary

Clickable buttons no longer draw an outline. `Button variant="outline"`
and the hand-rolled bordered buttons become a neutral fill (6% wash, 9%
on hover; white in dark mode, as dark already was), and red outlined
buttons become red fills. Value pickers keep their border: a new `Button
variant="picker"` gives menu triggers that show a value (Tool
permissions, the Data tab export format, the Library filters) the select
trigger's look, as do `SelectTrigger`, text fields, selectable option
cards and drop zones.

Stacked on #14919 (the radius scale and primitives). Split out of
#14895.

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- Checked in an isolated Studio in light and dark: Settings (General,
Data, Voice, Agents), run settings, the library selection bar, error
retry buttons.

## Not tested here

GPU-only screens and surfaces that need a loaded model.
## Summary

Command, URL and code boxes that are usually one line but can wrap are
pills while they fit on one line and take the 16px code tier once they
wrap: the Agents setup commands and usage prompt, the LAN and remote
URLs, the browser error message and the LLM Compressor command. CSS
cannot tell one line from several, so a small `useSingleLine` hook (a
ResizeObserver, only on these boxes) behind a `LineBox` component does
it. The account setup code is always one line and is a plain pill.

Stacked on #14919 (the radius scale and primitives). Split out of
#14895.

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch.
- In an isolated Studio the one-line Agents prompt measures a full pill
and the two-line commands 16px.

## Not tested here

The Desktop (Tauri/WebKit) shell.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: b7ea93f42a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@shimmyshimmer
shimmyshimmer merged commit 77949e6 into main Oct 23, 2026
4 of 44 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-radius-scale branch October 23, 2026 08:06
danielhanchen added a commit that referenced this pull request Oct 23, 2026
…racts (#14957)

## Summary

#14919 moved Studio onto one fixed radius scale, and two source-contract
tests in `tests/studio` still assert the old class strings, so they fail
on main:

| Test | Old assert | Main after #14919 |
|---|---|---|
| `test_expanded_titlebar_button_and_corner_match_sidebar_edge` |
`pinned && "rounded-tl-[12px] border-l"` | `pinned && "rounded-tl-md
border-l"` (`window-titlebar.tsx`) |
| `test_remote_access_card_can_shrink` | `block w-full break-all
rounded-md` | `<LineBox as="code" className="block w-full break-all
border ...">`, the radius now comes from `LineBox`
(`remote-access-section.tsx`) |

## Change

The two asserts follow the new classes. What each test checks is
unchanged: the pinned titlebar corner keeps its rounded top-left and
left border, and the remote URL block keeps `block w-full break-all` so
a long URL wraps inside the card. Test-only change.

## Testing

- Both files on main (`02ddfff02d`): 2 failed. With this change: 48
passed.
- On `a9da74cb07`, before #14919, both tests passed.
shimmyshimmer added a commit that referenced this pull request Oct 25, 2026
…15104)

## 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.

- **Pinned footer:** `sticky` inside the picker's scroller, on the
panel's own fill (`bg-popover`, `bg-sidebar` in dark). Sticky offsets
are measured inside the scroller's 16px bottom padding, so the footer
uses `-bottom-4` with matching negative margins and sits flush on the
panel edge; at `bottom-0` the settings showed through a strip under the
buttons. Only the picker popover; the sidebar variant is unchanged.
- **Shorter save status:** "Not remembered for this model" and "Not
saved yet" repeated what the Remember checkbox already says, so they are
gone. The statuses that add something ("Saved for this model", "Unsaved
changes", "Saved settings will be forgotten", "Using default settings")
now sit on the checkbox's row, so a status appearing or clearing never
moves the buttons.
- **Radius scale:** the model picker kept its own radius scale after
#14919 (`rounded-lg` 20px, `rounded-xl` 24px, 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.
- **Scrollbar and width:** the Run settings scrollbar sits on the
panel's right edge with less padding before it, and Run settings keeps
the picker list's width (549px in both views) instead of widening.
- **Footer buttons:** Load / Reload, Save or Forget settings and Reset
use the Preset section's Save / Delete size (32px tall, `size="sm"`),
left-aligned. Share is an icon-only button (Hugeicons `share-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 draw `size-4`
icons 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.
- **Insets:** Run settings content (labels, dividers, controls, the
pinned footer) sits 28px from the panel's left and right edges, where
the picker list's section labels, model names and dividers sit, 18px
from the top and bottom; it was 16px, the inset of the picker's search
box, which put the settings visibly closer to the edge than anything in
the list. On the right that is 20px plus the scrollbar: a classic bar's
8px, or an overlay bar's measured strip (`--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.75` cancels its button's 6px inset and the
glyph's own ~5px).
- **Light mode buttons:** the picker kept a light-mode exception from
before #14924 that gave its outline buttons a border and a white fill,
so Reset (and Save or Forget settings) were the only bordered buttons of
their kind. It is removed; they are the standard borderless grey fill,
like the Preset section's Save and Delete. The dark-mode fill is
unchanged.
- **Eject model:** it was `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 now `rounded-full` like other one-line controls.
- The startup bundle budget is raised by this PR's measured growth (25 B
raw / 49 B transfer, the footer's classes in the eager model picker);
the numbers are in `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

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15104/run_settings_mid_dark-768cb8869644.png"
width="420">

The picker list on the shared scale (light)

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15104/picker_light-32dd6856e152.png"
width="520">

### Verification
- After the follow-ups and a merge of `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 tall
- `npm 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:strict`
- Isolated Studio on macOS (CPU) with a GGUF loaded, Run settings opened
from the picker with Advanced settings on, at an 800px and a 700px tall
window: the footer's bottom edge measured 0px from the panel's bottom
edge, at the top and after scrolling 646 to 701px; panel and Extra
Arguments radius measured 21px; `rounded-md/lg/xl/2xl` inside the picker
measured 12 / 16 / 21 / 24px

### Not tested here
- Windows and Linux rendering (staging CI)
- The Desktop (Tauri/WebKit) shell
shimmyshimmer added a commit that referenced this pull request Oct 25, 2026
…ew (#15083)

## Studio: restyle Library and System storage sections as a usage
overview

The Storage sections in Settings > Library and Settings > System now
share one layout: a bold usage line with a Refresh button, a stacked
usage bar, a legend with a colored dot and size per segment, a footnote,
and a bordered card of action rows.

- **Library:** one bar segment per category (plus Hidden when Content
settings hide files), the "free of ... on this disk" line as the
footnote, and each category as a card row with an Open button.
- **System:** the system disk split into Models (Hugging Face model
cache), Caches, Other and Free. The Models folder and Cache files rows
move into a card; the path input becomes a path line with Copy path
(Open on Desktop) and Change. Refresh re-measures the caches. When the
models folder is on another drive it is left out of the system disk bar
and that drive shows in the footnote.
- Dark mode uses softer tones of the same segment colors. Clear caches
gets a bin icon.
- On the radius scale from #14919: the usage bar and every button are
pills, and the card of rows is a 21px panel like the other bordered
groups in Settings.
- `CacheStorageRows` state moved into a `useCacheStorage` hook so the
bar and the rows read the same inventory.
- The System page heading reads "System and Engine" in every locale. The
sidebar, app menu and command palette keep "System" (they use
`settings.tabs.resources`, the heading uses `settings.resources.title`).
- The startup bundle budget is raised by this PR's measured growth (its
strings in the eager `en` locale); the numbers are in
`scripts/check-bundle-budget.ts`.

### Screenshots

Settings > System, light

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15083/system_storage-51bd8f80cccf.png"
width="720">

Settings > System, dark

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15083/system_storage_dark-52daa641bd17.png"
width="720">

Settings > Library, light (empty Library on this install, so the bar is
an empty track)

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15083/library_storage-d4ac339ea162.png"
width="720">

### Verification
- `npm run typecheck`, `npm test` (13853 pass), `npm run build`
- Isolated Studio on macOS (CPU): both sections in light and dark,
settings search still lands on System disk, Models folder and Cache
files

### Not tested here
- Windows and Linux rendering (staging CI)
- A models folder on a second drive
shimmyshimmer added a commit that referenced this pull request Oct 26, 2026
…lish (#15232)

## Studio: control heights, composer fades, API page layout, settings
polish

A round of UI fixes on top of #15122 (one padding for every main
button).

### Fields and pickers line up with buttons
- In Settings, every option dropdown (selects and picker-style menus, 55
across the tabs) has one height, a filled Button's, with 14px sides, a
pill shape and regular text-sm; they were 32, 34.75 or 36px with some at
11.25px, 12px sides or 16px corners. Scoped to `[data-settings-dialog]`,
so other pages keep their pickers; action menus (Export, Delete all)
keep the button look.
- New `h-control` / `size-control` utilities give a field or picker the
filled Button's height (label line + 7px padding + 1px border) at every
UI font size.
- Applied only where a field or picker shares a row with a filled
button: Settings rows (HF token and endpoint, upload cap, idle seconds,
sandbox memory, llama.cpp path and backend, LAN port and addresses,
first-token timeout, dictation search and sort, embedding model picker),
the accounts search, the API key form, Projects and Tasks search, and
the Hub folders dialog. Shared `Input`, `SelectTrigger` and icon
`Button` defaults are unchanged, so Images, Video and other pages look
as before.
- Dropdown rows round up to a whole pixel (`min-h-menu-row`), so the
last hover pill and the menu's bottom edge no longer sit between pixels.
A label pads itself the same way.

### Composer
- The circular Stop buttons (Stop generating, research, queued message,
dictation) draw their square at about 31% of the circle, up from 26%,
and the queue Resume button's play glyph is 1.125x the icon size (18px
at the default scale, from 16px), about a third of the circle's height.
The send arrow keeps its size.
- Stop, Send and Resume glyphs round up to an even pixel size, so their
offset in the circle is a whole pixel. At UI scales where the glyph came
out fractional (13.125px Stop, 19.5px Send) the browser snapped it up
and left; measured at 2x, Stop sat 1px left and 0.5px up, Send 0.5px
both ways, and both are now centred. Browsers without CSS `round()` keep
the unrounded size.
- Text cut off at the bottom fades; the last line of any draft gets a
faint fade on its descenders, and lines scrolled past the top fade once
you scroll.
- The scrollbar sits 8px from the composer edge instead of 14px; text
does not move.
- On the welcome screen, expanding the composer keeps its bottom edge
fixed and grows upward. Before, the whole composer jumped up and grew
only to a viewport clamp that, on a short window, barely exceeded a long
draft's compact height (#10863).
- Attachment tiles are 14px round instead of 16px. The remove X is white
in light mode and black in dark mode with a 1px outline.
- The scroll-to-bottom button has a 0.5px ring. Its edge came from the
outline Button border that #14919 replaced with a fill.

### Chat messages
- The context usage popup (Chat header and API page) uses the dropdown
surface instead of the black tooltip: popover background and text, the
menu radius, the body font, the menus' soft shadow in light mode and
page-coloured glow in dark mode.
- The Response stopped bar's Resume icon sits on its label's centre line
instead of 3.4px above it. As the button's last element (the label was
bare text), the icon lost its bottom margin to the message's
trailing-margin reset, so its box centred off-axis, and the button took
the trailing-icon padding. The label is a span now.
- The composer's solid play (Resume queue) is optically centred in its
circle: its box was exactly centred, which left the triangle's weight
1.7px left of the middle; it moves right by 1/12 of its width.
- Numbered list markers stay inside the message column. A fixed 1.25rem
gutter let "10." (and "1." at a larger chat font) hang past the
composer's edge; the gutter is now in em and widens at 10 and 100 items.

### API page
- The model picker sits in the top-left bar like Chat, Images and Video,
with Chat's label size and font. With nothing loaded it reads Load
models, since the page can serve several.
- The Base URL card lists every served model the same way, one or many
("1 model answering requests", "No models loaded"). Each row has the
code example beside its name and Run settings, Reload and Eject at its
end.
- Card buttons read Reload / Eject for one model and Reload all / Eject
all for several. Reload all reloads every served model, kept ones first
so the primary stays primary; with nothing served it reloads the last
local load as before. The reload logic moves to
`use-api-model-reload.ts`. A row reloads by its checkpoint (not a kept
slot's public alias), an MLX precision folder reloads as a model rather
than a GGUF quant, and an AMD NPU model goes through the NPU loader, as
the picker does.
- Each row shows Context with Chat's context chip, its ring in front of
the count and sized like the row's other icons: the latest request's
prompt plus reply against that request's window. Hover shows the usage,
prompt and completion split; a click pins it until a click elsewhere or
Escape (`pinOnClick`, opt-in, so Chat's chip is unchanged). Only
requests since the model's latest load count, and requests logged as
`<id>:<quant>` match their model.
- The row icons and the Context chip share one hover: the icons take the
chip's colour in dark mode, the chip takes the icons' colour in light
mode, and on this page the chip hovers as a full pill (`hoverClassName`,
opt-in, so Chat's chip is unchanged).
- A row's code example icon shows only while that row is hovered or the
icon has keyboard focus (always on touch). Rows are subgrids rather than
`display: contents`, so the whole row, gaps included, is the hover
target.
- After Context each row shows Speed (generation tok/s), Total time
(average per request: queue wait, prompt processing and generation) and
Requests (with errors in red), over requests since the model's latest
load. Icons stand in for the labels (the lightning and timer from the
request log, arrows for requests); the label stays in the hover title
and for screen readers.
- The page works at every width down to phones. Under a narrow card a
model row stacks: the name on its own line (wrapping, never cut), then
the facts and its buttons. The summary tiles go 2, 3 or 6 across by the
page's own width rather than the window's, so the sidebar no longer
squeezes six tiles into cut-off labels, and the settings button stays
beside the title.
- The rows drop the Slots fact. It only existed for the primary model,
read "0/4 busy" nearly always, and opened the same Run settings as the
gear; queued requests still show under In flight.
- Fixed: after the code example dialog closed, the Context popup never
opened again. The shared Tooltip latched every controlled tooltip shut
when a modal opened, until its owner next said false; one that was
already shut never says it again. The latch now applies only to a
controlled tooltip that was open.
- Empty-state icons are borderless circles; the saved load settings
forget button is red.
- The page fades into the sticky picker bar with Chat's 24px header fade
instead of cutting off under it.

### Hub
- The Run button's label and play icon are white in both themes (they
used the success foreground, which is dark), and it has 15px of right
padding against 12px on the left, since the play glyph's empty side
already reads as left padding.

### Audio
- The Record button (Clone, Edit and the other pages with an Upload /
Record / From history source) uses the composer's microphone instead of
Hugeicons `Mic01Icon`.

### Settings and sidebar
- Settings > API: Create token uses the dark action button and is never
disabled for an empty name. An unnamed token is called New Token N, one
past the highest N in use (translated in every locale); the name field
reads Token name. The expiry presets and Create token have tooltips
(Create token names the token it will make).
- Settings > API: access tokens are a table with Name, Token, Created,
Last used and Expires columns. The token created panel, its field and
the rows use the standard settings card, input and hover styles instead
of the green panel, and the field no longer draws a focus ring around
the preselected token.
- Settings > API: the row menu adds Regenerate token, which makes a
token with the same name and expiry period and then revokes the old one,
after a confirmation. The new token is created first, so a failed create
leaves the old one working.
- Settings > API is regrouped: access first (tokens, usage examples,
keyless access, MCP access), then the monitor link and model controls
(memory, auto-switch, aliases), then the audio, image and video, and
decision APIs.
- Danger zone draws its divider above the heading, not under it.
- Card icons (Remote access, LAN, Keyless API, MCP, Decision API,
monitor) are borderless filled circles in both themes.
- Sidebar New pills use the API page's green chip (`Badge` variant
`accent`); #14938 had turned them grey through the shared secondary
fill.
- The sidebar More menu has pill hover rows in a matching corner radius.
- The remaining lucide trash icons (API saved settings, prompt storage,
OpenAI code exec, research panel, generation presets) use the Hugeicons
`Delete02Icon` used everywhere else.
- Controls that reload something draw Hugeicons' two-arc reload glyph
(`Refresh04Icon`, re-exported as `ReloadIcon` from `lib/reload-icon.ts`;
the package's own `ReloadIcon` is an older shape with bent arc ends):
Images and Video Reapply (reloads the model), the in-app browser's
Reload and Run again, and the browser tab menu's Reload (was lucide
`RotateCw` / `Refresh01Icon`). Refresh, retry, regenerate and update
keep `Refresh01Icon`.
- Settings > Resources lists Model memory right after GPU devices, above
the inference engine sections.
- Settings > API gets a Model memory section with the two rows that
decide what the server can answer: Keep model in GPU memory and Keep
multiple models loaded. Same controls and saved values as Resources
(`ModelMemorySection variant="api"`). A System settings link beside the
heading opens System settings scrolled to Model memory for the rest
(label in every locale).

### UI parity
- The studiobench thread-structure check reports every action's thread
scaffolding 84 or 172 characters longer. That is intended: it is the
composer's new fade wrappers and control-height classes around the
thread, not message content. The PR carries the `affects UI#` label for
it.
- The startup bundle budget is raised by this PR's measured growth
(2,639 B raw / 717 B transfer, mostly the new strings in the eager
locales), with the numbers in the comment above `BUDGET`.
- The queue Resume glyph is deliberately right of geometric centre
(optically centred), so `playwright_queue_localization.py` now asserts
that offset instead of exact centring.

## Verification
- `npm run typecheck`, `npm test` (13,947 pass, 0 fail), `npm run
i18n:check:strict`, `npm run build`.
- An isolated Studio from this branch, driven with Playwright:
- A scan of every page and Settings tab for a filled button beside a
control of a different height found 13 mismatches before and none after,
at UI font scales 0.8, 1 and 1.25.
- Menus measured at whole-pixel row heights with equal top and bottom
gaps (8px / 8px, 6px / 6px).
- Welcome composer expansion keeps the bottom edge fixed (650px window:
296-650 to 133-650; 900px window: 376-522 to 144-522).
- The API card was checked with one real GGUF model and with three
models (two faked in the browser by rewriting the status responses).
- The API page at 375, 768, 1024 and 1440px wide: no horizontal
overflow, and the row's ring and icons measure 14px on one centre line.
- Token regenerate run against a token the script created with a 30 day
expiry: the new token kept 30 days, the old one was revoked.

## Not covered here
- Reloading several real models at once (keep-models-loaded mode) was
not exercised; it was checked with one model and by reading the runtime
code.
- Desktop (Tauri) builds were not run from this host; the list marker
fix was checked in Chromium with overlay scrollbars.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant