Skip to content

Studio: Export page in the Train style, Train polish, hide Q4NX without an AMD NPU - #15640

Merged
shimmyshimmer merged 17 commits into
mainfrom
studio-export-page-style
Oct 28, 2026
Merged

shimmyshimmer merged 17 commits into
mainfrom
studio-export-page-style

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What changed

The Scheduled, reload icon, in-app browser and composer changes that were here moved to their own PRs: #15647, #15648, #15649 and #15650.

Export page now matches Train

  • Same page width, heading style and two-column grid as Train.
  • Source card: Local / Fine-tuned / Hugging Face is a segmented switch in the card header; training run and checkpoint sit side by side.
  • Export method card holds the method options and all per-method settings. Options have no radio circle; the selected one is shown by a filled background with no border, and corners are 18px.
  • LoRA Only no longer quotes a size ("~100 MB").
  • The Precision hint ("Select one or more") and the "N selected" line only show when there is more than one format to pick.
  • A sticky Export summary panel on the right (styled like Train's Run preview) lists training run, checkpoint, base model, method and estimated size, the quick guide, and the full-width Export Model button. It replaces the old Training Info box and the separate Quick Guide column.
  • The image LoRA and Q4NX cards use the same card style.
  • Train and Export now share one section card component (components/section-box.tsx).
  • In dark mode, buttons on these cards sit lighter than the card instead of darker, the same rule the API page already used.

AMD NPU export

  • The "Convert a GGUF to Q4NX" card and the "Also convert to Q4NX" switch only show when an AMD NPU is detected (same useNpuStatus().supported check the Model hub uses). Without one, the Q4NX conversion stays off.
  • FastFlowLM is no longer named in the UI, and the Q4NX descriptions are shorter ("Only supported on AMD NPUs").

Train page

  • The active tab underline now sits on the divider line. The base TabsTrigger positions its indicator at bottom-[-5px], which pushed the bar below the border.
  • Section titles and descriptions are vertically centred on their icon chip.
  • The Optimization / Schedule / Memory tabs are left-aligned.
  • Icons:
    • Model card: chip icon, matching the model picker.
    • Configuration card: pencil edit icon.
    • Save YAML: floppy disk.
    • Reset to defaults: undo.
    • Start training: play instead of rocket.
  • Field labels are sentence case instead of uppercase with letter spacing. File-type lists are unchanged. "Or upload a local file" is now "Upload a local file".
  • Dataset picker and upload sit in two columns from a 512px section width (was 576px), so the desktop app gets the two-column layout too.

Screenshots

Export, with the summary panel on the right (1440px):

Export page

Export method, light and dark:

Export method, light

Export method, dark

Dark mode Configuration card on Train:

Dark mode card buttons

Train at a 1280px window: chip icon on Model, sentence-case labels, dataset picker and upload in two columns, underline on the divider:

Train at 1280px

Run preview with the play icon:

Run preview

How it was verified

  • npm run typecheck, npm run build and npm test (14,249 passing). tests/train-configure-preview-column.test.ts now reads the shared section-box.tsx for the card and section container classes.
  • Biome reports no new diagnostics in the changed files.
  • Ran an isolated Studio from this branch on macOS (Apple Silicon) and checked Train and Export at 1180, 1280 and 1440px wide in light mode, and the Export and Train cards in dark mode. Measured the tab underline in the browser: the 2px bar now covers the 1px divider.

Staging CI (macOS, Windows, Linux with Playwright): shimmyshimmer#1781

Not tested here

  • A machine with an AMD NPU, so the Q4NX card and switch reappearing was not checked on real hardware.
  • A real export with existing fine-tuned runs.
  • Non-English locales still carry the previous wording for the upload label.

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

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T04:05:06.733659Z 4aa2dd7 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. Can't wait for the next one!

Reviewed commit: 0af9debc85

ℹ️ 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 added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
@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 28, 2026

@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: 9ea4b1fc96

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

area?.querySelector<HTMLElement>(".aui-thread-viewport"),
"paddingTop",
);
return rootRect.bottom - (areaRect.top + headerOffset + EDGE_GAP_PX);

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 Handle the project composer as a downward-growing surface

When expanding the composer on a project's landing page, ProjectComposer uses this hook but is not inside .aui-thread-welcome-center, so it takes the footer calculation despite being in normal document flow (chat-page.tsx, below the project heading). Its bottom moves down as the editor grows, making each measurement request the current editor height plus the distance from the composer's top to the area's top inset. The ResizeObserver therefore keeps increasing the height instead of converging, pushing the toolbar and project contents below the viewport. Detect this placement separately and measure available space from its top to a fixed bottom boundary rather than assuming every non-welcome composer is bottom-anchored.

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 035d108 on #15650, where this hook moved: only the thread footer and compare grow upward; every other placement, the project page included, grows down against its scroll container. Removed from this PR in 4aa2dd7.

@shimmyshimmer shimmyshimmer changed the title Studio: Export page in the Train style, Train/Scheduled polish, hide Q4NX without an AMD NPU Studio: Export page in the Train style, Train polish, hide Q4NX without an AMD NPU Oct 28, 2026
@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 28, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4aa2dd7a8d

ℹ️ 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 e8b9273 into main Oct 28, 2026
0 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-export-page-style branch October 28, 2026 05:10
shimmyshimmer added a commit that referenced this pull request Oct 28, 2026
… visited (#15649)

## What changed

In-app browser polish:

- Tabs are rounded rectangles (10px corners) instead of pills, and the
toolbar hovers (new tab, full view, close, back, forward, reload,
annotate, more, console) use the same 10px corners as the chat header.
The per-tab close button has a 6px corner.
- Bookmarks, History and Downloads tab icons are 14px like the New tab
globe, padded the same way, and sit 4px from the tab title (was 6px).
- New tab page: Tools pill icons are 18px (was 20px), and the Suggested
tile hover has 20px corners (was 24px).
- Once anything has been visited, Recents moves to the top under Tools
and Suggested drops below Browser use. With no history the page looks as
before.

`tests/browser-new-tab-browser-use.test.ts` asserted the old fixed
order; it now checks that the Browser use switch sits between the
leading section and the other one, outside both show settings.

Split out of #15640, where these changes first landed.

## Screenshots

Tab strip, hovering New tab:

![Browser
tabs](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15649/browser_tabs-be5103fe350f.png)

Internal page tab icons at the globe's size:

![Tab
strip](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15649/tabstrip-8e8cbc46304d.png)

New tab page after one visit: Recents under Tools, Suggested below
Browser use:

![New tab after a
visit](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15649/newtab_visited-c8f01102a64c.png)

## How it was verified

- `npm run typecheck`, `npm run build`, `npm test`.
- In an isolated Studio on macOS (Apple Silicon): measured tab icons at
4x (icon centre within 0.125px of the tab's centre), and checked the
section order before a visit (Tools, Suggested, Browser use) and after
one (Tools, Recents, Browser use, Suggested).
shimmyshimmer added a commit that referenced this pull request Oct 28, 2026
…5650)

## What changed

Expanding the composer now fills the chat area, the way Gemini's does,
instead of stopping at a viewport clamp that left the lower half of the
screen empty:

- **Welcome screen and project page:** the composer grows down from
where it sits to 16px above the bottom of the window.
- **Inside a conversation:** the footer composer grows up from its
bottom edge to just under the chat header.
- **Compare mode:** grows up to the top of the compare panes.
- Attachments, the prompt queue and the toolbar are measured, so the
text area shrinks by their height and the whole composer still fits.
Adding an image while expanded no longer scrolls the page.
- Expanding lands in one frame, keeping the attachment layout as it was
(two rows stay two rows). The editor's 280ms height ease and the welcome
page's padding slide are skipped on the way in, since together they read
as the bottom edge creeping; collapsing still eases.
- On the welcome page, expanding unpins the chat's stick-to-bottom
scrolling and collapsing re-pins it. In a short window the collapsed
page overflows slightly, and the pin held that overflow as
`--aui-scroll-stabilizer` padding after expanding, leaving the composer
shifted up until the next keystroke. The size calculation also ignores
the scroller's bottom padding, since the stabilizer adds some for a
frame.

The sizing is a small hook, `use-expanded-composer-fill.ts`, shared by
the chat composer and compare's composer. It writes a
`--composer-fill-height` variable the existing CSS reads, and
re-measures on resize, when attachments change, and through the welcome
screen's padding transition. The old welcome-only CSS rule is removed,
so `tests/ui-font-size-scales-spacing.test.ts` counts three 40px
composer clamps instead of four.

Bottom-pinned placements (thread footer, compare) are detected from the
DOM; every other placement grows downward against its scroll container,
which keeps the project page from growing without bound.

Split out of #15640, where this first landed.

## Screenshots

Welcome screen, before and after (after shown with an image attached):

![Expanded
composer](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15650/composer_compare-fa15aa41a108.png)

Welcome screen, expanded with eight attachments in two rows (1700x1150):

![Two rows
expanded](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15650/two_rows_expanded_pr-5e4750ec8a6a.png)

Project page, expanded:

![Project
page](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15650/composer_project-f75fffb4f700.png)

## How it was verified

- `npm run typecheck`, `npm run build`, `npm test`.
- In an isolated Studio on macOS (Apple Silicon): the welcome screen
with and without an image attached, and a project page (the expanded
height stays at 602px across 2s of re-measuring, ending 16px above the
window bottom).
- Expand traced every ~40ms with eight attachments in two rows: in
Chromium at 954x720, 1440x900 and 1700x1150, and in WebKit at 954x720,
the composer reaches its final position (144px from the top to 16px
above the window bottom) in the first sample and stays there through
typing. At 954x720, collapsing returns the composer to the bottom of the
page with its toolbar in view.

## Not tested here

- Inside a conversation and in compare mode, which need a loaded model.
shimmyshimmer added a commit that referenced this pull request Oct 28, 2026
## What changed

Restores the reload icons that #15232 swapped to Hugeicons
`Refresh04Icon`:

- In-app browser toolbar: Reload and Run again go back to lucide
`RotateCw` at 0.94 scale.
- Browser tab menu Reload, Images Reapply and Video Reapply go back to
`Refresh01Icon`.
- The API page Reload buttons were added with `Refresh04Icon` in #15232,
so they keep it.

Found with `git blame` on the browser Reload line (`browser-panel.tsx`),
then confirmed by checking every commit touching that file from the one
before #15232 onward: the parent still draws `RotateCw` and every commit
from #15232 on draws `Refresh04Icon`.

`tests/media-header-links.test.ts` matched the Reapply icon by name; it
now names `Refresh01Icon` and still checks the icon spacing.

Split out of #15640, where this first landed.

## Screenshots

#15232 on the left, restored on the right. Browser toolbar:

![Toolbar
reload](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15648/toolbar_compare-32bb49075a4b.png)

Tab menu:

![Tab menu
reload](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15648/tabmenu_compare-d8a08864f18b.png)

## How it was verified

- `npm run typecheck`, `npm run build`, `npm test`.
- Browser toolbar and tab menu checked before and after in an isolated
Studio on macOS (Apple Silicon).

## Not tested here

- Images and Video Reapply and the API page need a loaded model, which
this machine cannot load.
shimmyshimmer added a commit that referenced this pull request Oct 28, 2026
… button (#15647)

## What changed

Scheduled page and task dialog polish:

- Dropdowns in the task dialog (Model, Thinking effort, Repeat, Time,
Notify, Project) use the standard select padding (14px each side), so
the hover pill has room on the left. A matching negative margin keeps
the value and chevron where they were. Dark mode now shows the hover
fill too instead of suppressing it.
- The task name field is a fully rounded pill.
- The page description says tasks run with any of your models, not only
the loaded one; the dialog already lets you pick a model.
- The New task button uses the same dark style as Projects' New project.

Split out of #15640, where these changes first landed.

## Screenshots

Task dialog, hovering the Model dropdown, with the pill name field:

![Task
dialog](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15647/task_dialog_hover-d76896978207.png)

Scheduled header (top) next to Projects (bottom), same New button style:

![Scheduled vs
Projects](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15647/tasks_vs_projects-423580f7d7d1.png)

## How it was verified

- `npm run typecheck`, `npm run build`, `npm test`.
- Checked the task dialog and Scheduled header in an isolated Studio on
macOS (Apple Silicon), light mode.

## Not tested here

- Dark mode hover on a real machine.
- Non-English locales keep the old description.
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