Skip to content

Studio: prompt edit box, menu heading chips, hub Run, files panel, loaded row menu - #15375

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-ui-polish-batch
Oct 26, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-ui-polish-batch

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Studio: prompt edit box, menu heading chips, hub Run, files panel, loaded row menu

A batch of small Studio UI fixes.

Editing a prompt

  • The edit box spans the composer width and keeps the text on the prompt's line (same top gap, size, weight and tracking as the prompt bubble), so nothing jumps on Edit.
  • It is at least two lines tall, with 20px corners matching the bubble and slightly more padding.
  • Cancel and Send are the standard dialog pair (outline Cancel, dark Send, default size). Send was a near-invisible fill on the box before.

Menu heading chips back at the right edge

#15232 added a whole-pixel spacer as [data-slot="dropdown-menu-label"]::after. In a flex justify-between label that pseudo-element is a third flex item, so the trailing chip landed in the middle. The rule now skips flex and grid labels. Affected and fixed:

  • Permissions menu: the "Sandbox High" chip
  • Sandbox level submenu: "Learn more"
  • Chat with files menu: the "Retrieve from" embedding model chip

Every other menu label is block-level and keeps the spacer.

Model hub Run

  • The filled play triangle Library's play buttons use, instead of the outline one.
  • No divider line beside Run on any card type (GGUF, safetensors, MLX precision, local on-device); cards without Run keep it.
  • A 15px label, 2px more padding all round, and the label and triangle centred in the button.

Chat with files panel

  • Add files is text only.
  • 6px less top and 8px less bottom padding when open.
  • A full pill when collapsed to its header.

Loaded model row menu

The row's menu hides when it has no items. A model loaded by path, such as a cached download's .gguf, offered neither Pin nor Reveal, so with one model loaded the menu vanished and only the settings gear showed. Path loads now get Reveal (the file itself), and a cached download also pins as its repo.

Verification

  • npm run typecheck, npm test (14059 pass), npm run build. biome:check errors are only in files this PR does not touch (smoke-*.tsx, public/theme-boot.js, scripts/refresh-model-catalog-snapshot.mjs).
  • New tests: menu-label-spacer.test.ts (fails on main's CSS), files-panel-shape.test.ts, hub-run-play-icon.test.ts, plus additions to edit-composer-attachments.test.ts and loaded-gguf-quant-marker.test.ts.
  • Checked live in a local Studio with Playwright, in light and dark: edit box position and size, the three menu chips' right edges, Run centring (13.27px over and 13.28px under the label, 13.03 / 13.05px around the triangle), the files panel open and collapsed, and SmolLM2 loaded by repo and by snapshot path (the path load now shows the menu with Pin and Reveal in Finder).

Not covered here: Safari / WebKit layout, and the collapsed files panel with files attached (it keeps rounded corners, so the file chips are not clipped).

…aded row menu

- Editing a prompt opens a full-width box on the prompt's line, two lines tall at
  least, with the standard outline Cancel and dark Send pair.
- The whole-pixel menu label spacer skips flex and grid labels, so the Sandbox,
  Learn more and embedding model chips sit at the right edge again.
- Model hub Run uses the filled play glyph, drops the divider beside it, and gets
  a larger, centred label and more padding.
- Chat with files: text-only Add files, tighter open padding, a pill when collapsed.
- A model loaded by path keeps its row menu: Reveal, plus Pin for a cached download.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T13:41:08.943469Z 1168cba 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 87065f3921

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

cachePath={
isLocal ? undefined : { repoId: checkpoint, variant: quant ?? undefined }
}
onReveal={isLocal ? () => revealLocalModel(checkpoint, entry.id) : undefined}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route cached snapshot reveals through the cache endpoint

When a model is loaded by its Hugging Face snapshot path, the newly added Reveal action calls revealLocalModel, which posts to /api/hub/local/reveal. That endpoint's reveal_local_model_response only accepts inventory rows whose source is in LOCAL_DELETE_SOURCES, which explicitly excludes hf_cache (studio/backend/hub/services/models/common.py). Consequently, cached snapshot loads expose a Reveal action that returns 404 (“Model not found on device”) instead of opening the file manager. Handle cached snapshot paths through the cached-model reveal flow rather than the local-only endpoint.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1168cba: a cached snapshot loaded by path now reveals through /api/models/reveal-cached-model with its repo and quant; only non-cache local files use the local reveal.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 26, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 1168cba962

ℹ️ 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 bb65bde into main Oct 26, 2026
18 of 45 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-ui-polish-batch branch October 26, 2026 13:42
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