Skip to content

Fix sidebar footer width and context menu radius - #9918

Merged
shimmyshimmer merged 2 commits into
mainfrom
fix/sidebar-profile-menu-shape
Aug 28, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
fix/sidebar-profile-menu-shape

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Summary

  • Keep the bottom profile row width independent of the recent-chat scrollbar.
  • Match context-menu item corners to the standard dropdown menu radius.
  • Add regression coverage for both UI contracts.

Testing

  • node --experimental-strip-types --test tests/sidebar-action-rows-inert.test.ts tests/context-menu-item-radius.test.ts
  • npm run typecheck

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: e8f4beb349

ℹ️ 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 411b406 into main Aug 28, 2026
35 of 41 checks passed
@shimmyshimmer
shimmyshimmer deleted the fix/sidebar-profile-menu-shape branch August 28, 2026 08:25
LeoBorcherding added a commit to mahiatlinux/unsloth that referenced this pull request Aug 28, 2026
Codex P2 on bebea8d. applyInterfaceScaleBeforeFirstPaint's deadline only
resolved its own promise, so a setZoom that never settles left
interfaceScaleApplicationQueue chained to a permanently pending application.
The app rendered, but the provider retry and every later user scale change
queued behind that entry and never ran, so scaling stayed dead until restart.

The timeout now resets the queue as well as unblocking the render. A late
completion from the abandoned call can still arrive after a newer scale has
been applied, so the commit is guarded on the scale it read still being the
one being asked for; otherwise it would report a stale zoom as live.

Two tests, both timed. Without the release they hang rather than fail, which
wedges the runner instead of reporting, and that is worth not shipping.

Also renames scrollRowPadding to unrailedRowPadding in the alignment test.
Main renamed it in unslothai#9918 while this branch still used the old name, so the
merge took main's source and left our test grepping for a string that no
longer exists. That is what broke Frontend build + bundle sanity and
Frontend unit tests (Windows); both were green before main moved.

Merged upstream/main (411b406). tsc clean, 5863 of 5866 frontend tests
pass locally, the 3 failures are markdown/Streamdown and are green in CI.
mahiatlinux added a commit that referenced this pull request Sep 15, 2026
* desktop: add interface scaling control

* desktop: fix interface scale edge cases

* desktop: fix native zoom interactions

* desktop: serialize interface scale updates

* studio: move font and scale settings first

* studio: bind the mac chrome constants, floor the scale at 50%, bound first paint

Review follow-ups.

The floor moves 25 -> 50. Chrome and VS Code allow 25% but both ship
Cmd/Ctrl+0, and there is no reset accelerator here or on main, so at 0.25
the Settings row you would use to undo it renders around 3.5px and the
value is device-local in localStorage. A comment says to drop it back to
25 once the accelerator lands.

34 and 78 existed in three places with nothing binding them:
interface-scale-runtime.ts divided by the literals, provider.tsx repeated
them as CSS fallbacks, and interface-scale.test.ts hardcoded 34 / 0.35.
The runtime now exports both the numbers and the var(...) strings built
from them, provider.tsx imports those, and the test asserts the fallback
is built from the constant rather than retyped. Changing the titlebar
height in one place can no longer leave a stale divisor at any scale but
100%.

applyInterfaceScale is now wrapped for startup. It was the only thing
gating first paint on the Tauri IPC bridge, and a rejection was caught
while a hang was not, so a wedged bridge meant a permanently blank window
rather than a slow one. Past a 1s deadline the app renders at 100% and
the effect in provider.tsx applies the real scale when the bridge answers.
Two tests, one with a setZoom that never resolves.

The comment on nativeDropPointToCss lost ScreenToClient device pixels,
NSView points and widget coordinates in the rewrite. Those are why the
two branches are allowed to differ, so they are back, with the zoom
caveat appended and a note not to collapse both paths onto
devicePixelRatio. Same for the deleted regression note on
native-training-dataset-drop.test.ts:114.

The new drop tests all passed the zoom explicitly, so the default
argument, which is the seam between the scale store and the drop path,
never ran. One case now omits it.

4826 frontend tests pass, typecheck, build, i18n:check:strict clean, and
provider.tsx gains no new eslint findings.

* tests: read the mac chrome contract through the interface-scale constants

Repo tests (CPU) has been red on this branch since f7bea0d and the log
had expired, so nobody had seen why. Two failures, both the same cause:
test_desktop_reliability_frontend_contract.py reads px values straight out
of provider.tsx, and the calc() rewrite replaced the literals it greps for.

test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker
asserted the literal string '"--studio-collapsed-chat-controls-inset":
"188px"'. It now resolves the block and asserts the number is 188, scoped
to the mac block because the custom titlebar sets the same var to 12px.

test_tauri_collapse_removes_the_icon_rail_but_web_keeps_it went through
_chrome_style_blocks, whose regex only captured "--var": "literal" pairs,
so --studio-desktop-titlebar-height read as absent once it became an
identifier and the offset + button <= titlebar assertion had nothing to
compare. The helper now also takes templates and identifiers, resolving
the latter out of interface-scale-runtime.ts so the 34 stays in one place.

_px understands var(--x, Npx) and calc(Apx + var(--x, Bpx)) as their 100%
values, with a docstring saying that is the only scale a static read can
see. Formatting via scripts/run_ruff_format.py.

36 of 36 in that file pass locally.

* studio: release the interface-scale queue when first paint times out

Codex P2 on bebea8d. applyInterfaceScaleBeforeFirstPaint's deadline only
resolved its own promise, so a setZoom that never settles left
interfaceScaleApplicationQueue chained to a permanently pending application.
The app rendered, but the provider retry and every later user scale change
queued behind that entry and never ran, so scaling stayed dead until restart.

The timeout now resets the queue as well as unblocking the render. A late
completion from the abandoned call can still arrive after a newer scale has
been applied, so the commit is guarded on the scale it read still being the
one being asked for; otherwise it would report a stale zoom as live.

Two tests, both timed. Without the release they hang rather than fail, which
wedges the runner instead of reporting, and that is worth not shipping.

Also renames scrollRowPadding to unrailedRowPadding in the alignment test.
Main renamed it in #9918 while this branch still used the old name, so the
merge took main's source and left our test grepping for a string that no
longer exists. That is what broke Frontend build + bundle sanity and
Frontend unit tests (Windows); both were green before main moved.

Merged upstream/main (411b406). tsc clean, 5863 of 5866 frontend tests
pass locally, the 3 failures are markdown/Streamdown and are green in CI.

* desktop: restore the latest zoom and parse complete scale values

* preserve mac window button clearance in mobile navbar

* keep window constraints in sync with interface zoom

---------

Co-authored-by: LeoBorcherding <[email protected]>
Co-authored-by: Etherl <[email protected]>
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