Skip to content

presetBrowser: swap detail status and action styles - #84

Open
ptn wants to merge 1 commit into
sKuhLight:mainfrom
ptn:feat/detail-status-action-styles
Open

presetBrowser: swap detail status and action styles#84
ptn wants to merge 1 commit into
sKuhLight:mainfrom
ptn:feat/detail-status-action-styles

Conversation

@ptn

@ptn ptn commented Aug 26, 2026

Copy link
Copy Markdown

The Grid/Params/Versions elements looked like they were clickable, but they aren't, they are indicators of what loadDetail() has hydrated. Meanwhile the row that is interactive (Load preset / Audition / Refresh detail / Convert) read as less prominent. I tried to click the status row.

Changes to the former

They are now very visibly status indicators:

Before:

Screenshot 2026-08-25 at 11 38 24 PM

After:

Screenshot 2026-08-25 at 11 38 49 PM

Changes to the latter (buttons)

Before:

Screenshot 2026-08-25 at 11 41 43 PM

After:

Screenshot 2026-08-25 at 11 42 20 PM

Release

Merging to main releases automatically — a single release:* label controls it:

  • no label → patch (a PR touching only docs/, .github/, or *.md → no release)
  • release:minor / release:major → bigger bump
  • release:none → adopt without releasing (rides the next release)
  • release:hold → merge now, release later
  • release:hold / release:none win over a co-present bump label
  • at most one bump label (the pr-labels check enforces this)

Versions come from tags — never bump package.json in a PR. This repo releases with the -beta suffix (X.Y.Z-beta).

Details: docs/RELEASING.md

The Grid/Params/Versions elements looked like they were clickable, cause
they were outlined in accent, but they aren't buttons. They are
indicators of what loadDetail() has hydrated. Meanwhile the row that is
interactive (Load preset / Audition / Refresh detail / Convert) read as
less prominent. I tried to click the status row.

Swap them:

- Status becomes a dot-and-label strip following the existing .gate and
  .leg precedent — dot inherits currentColor, --textfaint when pending,
  --ok when loaded. Accent is dropped here; it is the app's active
  signal and a main reason the row read as tabs.
- .load-action takes the vacated mono/uppercase/letter-spaced treatment
  and gains :hover and :focus-visible, reusing the .preset-row
  precedent. Grid floor 104px -> 124px so OPEN IN CONVERTER fits.
- The .runtime-detail block restated the same three facts in prose;
  removed, with its wording moved into each item's title/aria-label and
  the version count folded into the label. .runtime-error is untouched.

The label/title derivation moves to presetBrowserWorkbenchDetailStatus.ts
so it is unit-testable — Vitest runs in node with no DOM and .svelte
files are never mounted. data-status/data-loaded/data-action attributes
are added for a future e2e spec, which needs a preset-library mock in
the mold of gridMock.ts and is deliberately out of scope here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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