Repository navigation
Studio: visible light-mode borders, aligned media pickers, new image icons, modern login - #15726
Merged
Merged
Conversation
…image icons Light-mode borders and control outlines were around 1.3:1 against the page, so inputs and dividers nearly vanished, and Images and Video forced an even lighter gray. Every light palette now uses a 2:1 border and the media pages take the palette's own border. The Images, Audio and Video model pickers now sit at Chat's inset with its padding, height and label size. Images uses image-01, its Create workflow ai-image, and Inpaint the Hugeicons paintbrush (vendored from core-free-icons 4.3, MIT).
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
Member
Author
|
@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. Bravo. 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". |
Drop the light-ray gradient behind the auth card and share one layout between login and change password: a plain page, a 400px card with a hairline ring and soft shadow, 44px inputs with the show-password button centred inside them, a full-width submit button, and a small Unsloth Studio mark under the card.
…media-pickers # Conflicts: # studio/frontend/src/features/auth/change-password-page.tsx # studio/frontend/src/features/auth/components/auth-form.tsx # studio/frontend/src/features/auth/login-page.tsx
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
This was referenced Oct 28, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 28, 2026
…ugh run_pwsh (#15758) ## Summary `Repo tests (CPU, studio)` fails on main, so it is red on every recent staging CI run (#15680, #15696, #15716, #15723 and others). Of its 6 failures, 4 are tests that no longer match intentional changes; this PR fixes those. The other 2 are real product slips on the login screen and are fixed separately. **Media picker contracts (3 failures).** #15726 lined the Images, Audio and Video model pickers up with Chat: - The picker now uses `className="ml-1.5 max-w-full overflow-hidden !pl-2.5 !pr-1.5 !h-[var(--studio-chat-control-height,34px)]"`. - It no longer sets a `triggerLabelClassName` override. `tests/studio/test_desktop_reliability_frontend_contract.py` still pinned the old class string and the old label override, and counted two scaled `!h-[calc(34px*var(--ui-space-scale,1))]` literals on the Images and Video pages (and one on Audio) that are now the shared token: ``` images-page.tsx states 1 scaled !h-34px, not 2 assert 'className="!h-[34px] max-w-full gap-1 ...' in header ``` **PowerShell spawn (1 failure).** `tests/python/test_installer_compile_bytecode.py:271` (from #15646) starts PowerShell with `subprocess.run`. `tests/studio/test_pwsh_calls_use_the_shared_runner.py` forbids that, because direct spawns share one PowerShell startup cache across xdist workers and can die at startup. ## Change - **`test_desktop_reliability_frontend_contract.py`:** - The Images and Audio header contracts assert the new picker class (`_MEDIA_PICKER_CLASS`), and that the label is not overridden, so the trigger reads like Chat's. - The scale table's `!h-34px` counts drop to what the pages still state literally: Images 1, Audio 0, Video 1. The "no bare `!h-[34px]`" half of that check is unchanged. - New test `test_the_media_pickers_take_chats_scaled_control_height`: all three pages use the picker class, and `index.css` still defines `--studio-chat-control-height` as `calc(Npx * var(--ui-space-scale, 1))`. This keeps the original point of the scale check, a pill that grows with the UI scale, attached to the token the height now comes from. - **`test_installer_compile_bytecode.py`:** the PowerShell case runs through `run_pwsh` from `tests/_shared/unsloth_pwsh_runner.py`, with the same argv and keyword arguments. ## Testing - These three files: 80 passed (pwsh is installed here, so the PowerShell cases really ran). On main, the same tests fail 4. - **Sabotage:** with `--studio-chat-control-height` changed to a bare `33px`, the new scaling test fails.
danielhanchen
added a commit
that referenced
this pull request
Oct 28, 2026
…15759) ## Summary `Repo tests (CPU, studio)` fails on main with two product slips on the new login and change-password layout from #15726 / #15678: ``` tests/studio/test_tauri_branding_contract.py::test_desktop_surfaces_do_not_restore_studio_branding studio/frontend/src/features/auth/components/auth-shell.tsx tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities features/auth/components/auth-form.tsx: text-[26px] ``` - **Branding:** the auth footer reads "Unsloth Studio". The app displays itself as "Unsloth" everywhere in the frontend (#14473, guarded by the branding contract), and this screen is the first one the desktop app shows. - **Font scale:** the auth title uses a raw `text-[26px]`, so it ignores the UI font-size preference while everything around it scales. ## Change - `auth-shell.tsx`: footer label "Unsloth Studio" becomes "Unsloth". - `index.css`: adds `--text-ui-28: calc(1.75rem * var(--ui-font-scale, 1))` between `--text-ui-25` and `--text-ui-30`, in the same form as the other `text-ui-*` tokens. - `auth-form.tsx`: the title uses `text-ui-28`. Every `text-ui-N` token renders at 0.9375 x N under the default 15px UI font size, so `text-ui-26` would have shrunk the title to 24.4px; `text-ui-28` lands on 26.25px, the same look as before, and now follows the font-size preference. ## Testing - `tests/studio/test_tauri_branding_contract.py` + `tests/studio/test_ui_font_scale_contract.py`: 2 failed on main, 22 passed with this change. - Before / after on the signed-out login page, built from the merge base and this head. Measured title size: 26px -> 26.25px at the default font size, and 26px -> 35px with the UI font scale at 1.25 (before ignores it). ## Screenshots Default font size: the footer now reads "Unsloth", the title is unchanged.  UI font scale 1.25: the title now scales with the rest of the card. 
shimmyshimmer
added a commit
that referenced
this pull request
Oct 28, 2026
On a Halloween theme, each page now gets a spider a third of the time and bats a third of the time, up from a quarter each. A page still never gets both, and the remaining third gets neither. This also removes a CSS rule left over from the two Halloween and light-border PRs landing together. #15678 kept Halloween themes out of the Images/Video gray control border, and #15726 removed that gray border for every theme. On main the Halloween rule no longer changes anything, and it made `tests/contrast-slider.test.ts` fail ("text and lines head away from whatever they are drawn on"), which checks that no such override remains. Images and Video still use each Halloween theme's own 2:1 border through the normal palette tokens. ### Verification - `npm run typecheck` and `npm run build` pass. - `tests/halloween-trick-or-treat.test.ts` (16) and `tests/contrast-slider.test.ts` (22) pass. - `npm test`: 14362 passed, 3 failed. The 3 failures are desktop shutdown tests ("macOS termination checks unsaved transcripts before allowing exit", "a quit with no window on screen raises no overlay", "both sides agree on the event names"); they fail the same way on main without this change. ### Not tested here The new odds were not watched in a running Studio on this branch: this changes two constants and the test that pins them.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 29, 2026
## What changed Brings back the login and setup page design from #15731: a compact, centered accent Login button and no footer under the card. #15731 merged at 10:00 UTC; #15726 merged 48 minutes later with its own login rewrite (full-width button, a new `AuthShell` card and a sloth + "Unsloth" footer) and replaced it. This restores #15731's `auth-form.tsx`, `login-page.tsx` and `change-password-page.tsx`, and removes `auth-shell.tsx`, which nothing else uses. Kept from later PRs: - The Halloween sloth on the login card (#15678). - The title still follows the UI font size (#15759), at #15731's 24px base. Login page, left is main, right is this branch.  ## How it was verified - `npm run typecheck`, `npm run build`, `npm test` (14371 pass, 0 fail). - Local Studio: the login page against the `main` bundle, and against `main` as of #15731.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 29, 2026
…theme borders restored (#15919) ## What changed **Decision tab (Settings > API)** - The section renders its header and a "Loading..." line straight away instead of nothing until `GET /api/settings/systemone` answers. On a cold server that request took 4 to 5 s, so the tab sat blank. - On installs without a torch GPU, `gpu_available()` asks `llama-server --list-devices` for its GPUs, cached for 60 s. Once the cached answer is older than 60 s, it is now returned at once and re-probed in a background thread (one at a time), so the settings request no longer waits on a cold `llama-server`. A new or reinstalled binary (new path or mtime) still probes synchronously. - The hosted-model hint reads "To use a cloud hosted decision model, add one in Connections.", with Connections as the inline link. Updated in all 14 locales. **System page** - Floating window moves from a header button into its own section below GPU devices, with a "Show floating window" switch; "Detailed view" moves with it. Live updates keeps its pill in the header, now 36px tall with 14px side padding and the toggle at 88%. - Live monitor tiles: readings in the normal text colour (only the % pill and bar carry usage colour), a regular-weight % pill that no longer adds height to the label row, 4px more bottom padding to balance the pill above the label, and no pill on a tile with no reading (VRAM without a GPU). **Media headers (Images, Video, Audio)** - Create / Train sits centred over the preview, and the API, Library and sibling links (new `MediaHeaderActions`) keep their place at every window size and zoom. As space runs short the header steps down: the pill moves left of centre (the links' column keeps at least its own width), then the pill padding and the link labels go compact, and only if even that cannot fit do the links hide as a group. Below a 40rem page (phone, small tablet) only the pill shows. **Settings** - Logs gets a page title and intro like the other pages ("Logs", "Read the Unsloth logs without leaving the app."). - Sandbox is renamed Security (tab and page title, 14 locales). - The Scroll to bottom button setting is removed; the button always shows once you scroll up. - Add connection is the standard dark button, on the right of the connections header. - The settings rail's scrollbar sits at the sidebar's edge, so labels keep the width. - Appearance: Pin sidebar by default moves into the Sidebar navigation section, above the tab list. - Full access uses the same Lucide shield as Approve for me; the Hugeicons one drew 2px wider. **Icons** - Chat with files uses a FileSearch glyph drawn 10% larger about the centre, matching the square glyphs beside it in the + menu. - Training Configuration uses `PencilEdit01Icon` instead of the New chat icon. **Light-mode lines in the main themes** - #15726 darkened every light border to `#b6b6b6`, including Standard, Classic and Minimal. Those three are back to their previous values (`oklch(0.9208 0 0)` / `#e6e6e6` / `#e2e2e2`, sidebar `#f2f2f2` / `#f2f2f2` / `#e8e8e8`), and the Images / Video `#e9e9e9` control border is restored for them. Flavor palettes keep #15726's darker borders. ## Verification - Frontend: `npm run typecheck`, `npm test` (14378 pass), `npm run build`. - Backend: new `test_an_expired_llama_cpp_gpu_answer_is_served_while_it_refreshes` (fails on main, passes here). The rest of `test_decision_native.py` has the same 16 failures on main on this host, all from torch not being installed. - Local Studio, Playwright: - Decision loading line shows after 0.05 s with the response held 4 s; a stale-cache settings request took 27 ms. - Media headers measured at 1440 to 420 px (100% to about 200% zoom on a 1440 px screen): links stay shown through 823 px, the pill shifts or goes compact before they hide, and they never overlap the pill or clip. - Computed light-mode `--border`, `--sidebar-border` and the Images border for Standard, Classic, Minimal match the pre-#15726 stylesheet; Cherry and Matcha are unchanged. - Permission icons measure 13.3 x 16.7 px for both Approve for me and Full access. - Staging (macOS, Windows, Linux with Playwright) was green on the previous head. ## Not testable here The original 4 to 5 s cold request was not reproduced on this host. The Video page and the Train page need PyTorch / a GPU, so they were checked through code, not on screen. No Desktop build was run. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In light mode, borders, control outlines and dividers were hard to see in every theme. Images, Audio and Video also placed their model picker differently from Chat. This PR makes light-mode lines clearly visible, lines the media pickers up with Chat, swaps three Images icons, and gives the login and change-password pages a plainer, more modern layout.
Visible borders in light mode
Light-mode borders sat at about 1.3:1 against the page in every palette, so inputs and dividers nearly disappeared on the tinted themes. Images and Video also forced their own lighter gray border (
#e9e9e9) over the palette.#e8c9c9to#c9a9aa, Matcha#d3dcc4to#abb49e.#b6b6b6border, also 2:1 on their page, and the same value for the sidebar border.Model pickers on Images, Audio and Video
The Images and Audio triggers sat 10px further right than Chat's (24px vs 8px inset on web). They also had different padding (16/8px vs 10/6px), were 1px taller, and used a smaller label in narrower windows. They now use Chat's exact trigger styling, and the web media inset matches Chat's 0.5rem; the desktop shells already used 0.5rem.
Video shares the inset setting, so it is aligned too.
Icons
Image01Iconin the sidebar, the sidebar customizer, the search shortcut and the Video page's Images link.AiImageIcon.PaintbrushIcon. It only ships in@hugeicons/core-free-icons4.3 (MIT), newer than the 4.1 Studio pins, so it is vendored insrc/lib/paintbrush-icon.tsthe same way the previous Inpaint icon was. That icon (ai-paintbrush-icon.ts) is no longer used and is removed.Login and change password
Both pages now share one layout (
features/auth/components/auth-shell.tsx):Main's newer desktop "Continue as owner" path is kept; main is merged in to resolve the overlap in these files.
Screenshots
Login in light mode and change password in dark mode. Before is the old card on the light-ray gradient; it predates main's own removal of the rays:
Images in the Standard theme. Before is a Studio without this PR's changes (it also had an unrelated sidebar row), after is this branch:
Images in Cherry:
Settings in Cherry:
The Chat, Images, Audio and Video model pickers, top to bottom, now at the same inset:
The Images sidebar with the new Images, Create and Inpaint icons:
Verification
npm run typecheck,npm run i18n:check:strictandnpm run buildpass.npm test: 14281 passed, 0 failed (after merging main).rgb(182, 182, 182)in Standard and Minimal,rgb(201, 169, 170)in Cherry andrgb(171, 180, 158)in Matcha. On main it wasrgb(233, 233, 233)in all of them.Not tested here
No Desktop build was tested.