Repository navigation
Studio: Composer appearance section, composer outline on by default - #16455
Conversation
…ne-setting # Conflicts: # studio/frontend/src/features/chat-background/controls.tsx
|
@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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4661d6a27a
ℹ️ 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".
| html[data-composer-outline] .unsloth-composer-surface { | ||
| --composer-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) var(--composer-outline, 30%), transparent); |
There was a problem hiding this comment.
Apply the composer outline setting to plain glass backdrops
With Glass theme enabled and no background image, the new Composer outline control has no visible effect, including when set to 0. The glass rules later in index.css (around lines 6199–6205 and 6243–6247) override this declaration with fixed shadows, while GlassBackdrop hard-codes data-outline="true", preventing the existing outline-removal selectors from matching. Route the appearance setting through the glass backdrop and glass shadow rules too so users can actually adjust or disable the outline in this supported configuration.
Useful? React with 👍 / 👎.
…f without a background, New tag on Appearance
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
|
|
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
|
Codex Review: Didn't find any major issues. 🚀 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". |
|
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". |
|
@codex review |
|
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". |
… offsets from the UI scale (#16524) ## Summary Two UI font scale guards are red on main, so every Studio PR fails three jobs at once: `Repo tests (CPU, studio)`, `Frontend build + bundle sanity` and `Frontend unit tests (Windows)`. In the last 30 PRs that is 18, 9 and 9 PRs respectively. Both reproduce on current main (`99d1bc6686`). **1. `tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities`** ``` Raw px text utilities ignore the UI font size preference; use the text-ui-* / leading-ui-* tokens in index.css instead: ['features/settings/components/composer-settings.tsx: text-[10px]'] ``` #16298 (`63a3896459`) added the composer's Beta badge with `text-[10px]`. Every other Beta badge of this shape uses `h-4 px-1.5 text-ui-10`, and `utils.ts` registers `text-ui-*` with tailwind-merge as a font size. `--text-ui-10` is `calc(0.625rem * var(--ui-font-scale, 1))`, which is exactly 10px at the default size. The guard is right. **2. `studio/frontend/tests/ui-font-size-scales-spacing.test.ts`: "no hand-set length above a hairline skips the scale"** ``` 'features/settings/settings-dialog.tsx: left-[13.5px]', 'features/settings/settings-dialog.tsx: pl-[39.5px]', 'features/settings/settings-dialog.tsx: right-[12.5px]' ``` #16455 (`adfd9e0cc9`) added the settings search field. Its height is already `h-[calc(36px*var(--ui-space-scale,1))]`, and its search and clear icons are `size-4`, which scales too. Only the three offsets that place the icons and the text inside the field were fixed pixels, so at a larger interface scale the icons and the text start would drift relative to a field that grew. The guard is right here too. ## Change - `composer-settings.tsx`: `text-[10px]` becomes `text-ui-10`. - `settings-dialog.tsx`: the three offsets become `calc(...px*var(--ui-space-scale,1))`, the same form as the field's height on the same line. At the default font size and interface scale, every changed value computes to the same length as before, so nothing moves for anyone on the defaults. At other scales, the badge text and the search field's contents now follow the scale like their neighbours. No behaviour, layout structure or copy changes. ## Testing - `studio/frontend/tests/ui-font-size-scales-spacing.test.ts`: main gives 1 failed of 27 (the case above); this branch passes 27 of 27. - `tests/studio/test_ui_font_scale_contract.py`: main gives 1 failed of 12; this branch passes 12 of 12. - No screenshots: at the default scale, the computed lengths are identical by construction (`calc(13.5px * 1)` is `13.5px`, and `0.625rem` at a 16px root is `10px`).
…slothai#16471) The Settings search field introduced three fixed pixel offsets in unslothai#16455 while its height and icons already follow the interface spacing scale. Those offsets break the existing spacing guard and leave the search icon, text inset and clear button out of proportion at non-default interface sizes. Scale the three offsets with the same interface spacing variable. Their exact original values remain at the default scale. The existing regression test is unchanged. The same validation pass found a second font-scaling regression in unslothai#16298: its rich-paste Beta badge used `text-[10px]`. Preserve the new feature and use the existing `text-ui-10` typography token, which follows the font preference. That shared token computes to 9.375 px at the default preference and 15 px at the enlarged setting; the former fixed value was 10 px at both. The existing font-contract test is unchanged. [Tailwind's typography documentation](https://tailwindcss.com/docs/font-size) describes how the theme token supplies the generated utility. Validation: - Matching-head strict staging passes 12 Python font-contract checks and 42 Node spacing/control checks on [Linux](https://github.com/Imagineer99/unsloth/actions/runs/41582365621), [Apple Silicon macOS](https://github.com/Imagineer99/unsloth/actions/runs/41582365722) and [Windows](https://github.com/Imagineer99/unsloth/actions/runs/41582365773), with zero failures or skips. Logs and staged ancestry were checked. The initial generic advisory jobs are not counted as correctness gates. - The badge regression reproduces on merge base `242f14b1d`: 11 font-contract checks pass and one fails. All 12 pass after the one-line correction. Two isolated real Studio installs show the enlarged badge at 10 px before and 15 px after, retaining the feature label and switch. A separate [strict live-Studio staging probe](https://github.com/Imagineer99/unsloth/actions/runs/41582365955) confirms 9.375 / 15 px and visible controls on the published head; this is separate from the synthetic test-kit smoke. - Production-built stylesheet probes pass in Chromium, Firefox, WebKit and Edge on both badge arms at default and enlarged settings. The current dependent auth frontend passes 14,747 tests, zero failures and one existing skip after a normal local dependency installation. A first run using symlinked dependencies was rejected by Vite's filesystem boundary and is excluded from passing evidence. - The baseline spacing guard fails on exactly these three offsets. The focused spacing, icon and Settings visibility selection passes 31 tests with the fix. - The refreshed combined application tree, including unslothai#16468 and unslothai#16470, passes 14,747 frontend tests, no failures and one existing skip. Its frontend Git tree equals the tested auth head. The production build and all 62 actual Tauri command tests pass. - Real Studio rendering at default scale preserves icon/text/clear offsets of 13.5 / 39.5 / 12.5 px. At 1.4 scale the branch computes 18.9 / 55.3 / 17.5 px; base incorrectly retains the default offsets. - Chromium, Firefox, WebKit and Edge all compute the intended geometry at default and 1.5 scale using the production-built stylesheet and representative search markup. - Linux, Apple Silicon macOS and Windows staging checks complete. The selected UI suites also run successfully on both arms on a GPU-equipped cloud worker. No training or inference kernel is changed or benchmarked. An initial local auth journey hit an intermittent blank frontend boot before the auth request. The same-head confirmation and a fresh paired auth run both pass all nine steps. Its cause remains unproven, and the redirect assertion and timeout are unchanged. The fresh paired Studio/Desktop run with the corrected harness passes its strict gate: 49 steps, all ten native Desktop steps successful on both sides, and no failed or VOID steps. The older failed run is retained as a driver failure, not relabelled as a pass. The latest organization CPU security job was cancelled, without a test failure. Its exact four-file suite passes 105 tests locally. The same strict, unmasked job also passes [105 tests on an owned Linux CPU runner](https://github.com/Imagineer99/unsloth/actions/runs/41596344327), with zero failures or skips. The staged job equals the source job, contains this PR head and uses identical test-file blobs. Earlier official CI included cancelled checks, which are not counted as passes. Matching owned staging checks are complete for the current head; organization CI is still running, and no all-green organization CI claim is made. Comparison at 1.4 spacing scale:  Rich-paste badge at the enlarged font preference, from merge base `242f14b1d` and head `e3a4e3a06`; the feature and switch are preserved: 
Adds a Composer section to Settings > Appearance for the composer's own settings, and makes the composer outline an Appearance setting.
The new section (since renamed to Composer and given Chat width and Attachments):
Verified locally: typecheck, i18n parity, the full frontend test suite and the build pass, with no new lint findings. In a local Studio the composer has no outline without a background image and a 30% outline over one, and the section holds the four rows.