Skip to content

fix(ui): keep the page width steady and list custom targets in the target menus - #945

Merged
runkids merged 2 commits into
mainfrom
runkids/page-width-and-custom-target-menu
Nov 17, 2026
Merged

runkids merged 2 commits into
mainfrom
runkids/page-width-and-custom-target-menu

Conversation

@runkids

@runkids runkids commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

None. Both were reported by the maintainer while using the dashboard.

What changed

The page no longer shifts sideways when its scrollbar comes and goes.
The styled 8px scrollbar takes layout width even where the system uses overlay scrollbars. When the page stopped needing to scroll (a short tab, a filtered list) or a dialog locked scrolling, the bar vanished and the page grew 8px wider. The page itself (html) now uses the system scrollbar, coloured from --ink-3. Scrolling areas inside the page keep the styled 8px scrollbar.

Visible change: on macOS the page scrollbar is now the overlay one and hides when idle.

Custom targets appear in "Available in..." and "Set targets".
TargetMenu listed the known tools from /api/config/available-targets and kept the installed ones. A target with a custom name is in no built-in list, so it never appeared. The menu now lists the configured targets (api.listTargets()), sorted by name; before, the order changed between openings.

Checks

Run on this diff in the devcontainer, on a checkout one release behind main (0.30.9); the three files apply unchanged on main:

  • vitest run: 112 files, 960 tests pass. The "sets targets" test in ResourcesPage.test.tsx now picks a custom target, my-tool.
  • tsc -b: passes.
  • scripts/design token tests: pass.
  • Chromium on macOS (overlay scrollbars), Clean and Playful, light and dark: <main> width was 1680 / 1688 / 1688 on a long tab / short tab / open dialog before, and is 1688 in all three after. The dialog scrim still covers the full width.

Not run:

  • make check (no Go change).
  • Classic, always-visible scrollbars (Windows, Linux, macOS set to always show scroll bars). There the page keeps a reserved gutter, and a dialog scrim may leave that strip undimmed.
  • Safari / WebKit.
  • An end-to-end set-and-sync with a real custom target. handleBatchSetTargets writes the name without checking it against the built-in list.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — UI tests pass; make check was not run, see above
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR — two small dashboard fixes, one commit each

The styled 8px scrollbar takes layout width even where the system uses
overlay scrollbars. Whenever the page stopped needing to scroll (a short
tab, a filtered list) or a dialog locked scrolling, the bar vanished and
the whole page grew 8px wider, then shrank again.

The page itself now uses the system scrollbar: an overlay one takes no
width, and a classic one keeps its gutter reserved. Scrolling areas
inside the page keep the styled scrollbar.
"Available in..." and "Set targets" built their list from the known
tools and kept the installed ones. A target with a custom name is in no
built-in list, so it could not be picked from the dashboard, and the
order changed between openings because the known tools come from a map.

The menus now list the configured targets, sorted by name.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T08:46:40.208022Z 8668d39 PR opened
ℹ️ 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.

@runkids
runkids merged commit 71ef4b5 into main Nov 17, 2026
9 checks passed
@runkids
runkids deleted the runkids/page-width-and-custom-target-menu branch November 17, 2026 08:54
runkids added a commit that referenced this pull request Nov 17, 2026
The generated entry listed commit subjects. Describe what changes for the user, and list the two fixes of #945 separately.
runkids added a commit that referenced this pull request Nov 17, 2026
* chore(main): release 0.30.11

* chore(release): synchronize release metadata

* docs(changelog): write the 0.30.11 entry for users

The generated entry listed commit subjects. Describe what changes for the user, and list the two fixes of #945 separately.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Willie <[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