Skip to content

feat(client): disclosure chevron direction, inline-left automatch checkbox, 16px section headings - #134

Merged
btspoony merged 3 commits into
mainfrom
feat/fallbacks-card-ux-followup
Sep 27, 2026
Merged

btspoony merged 3 commits into
mainfrom
feat/fallbacks-card-ux-followup

Conversation

@btspoony

Copy link
Copy Markdown
Member

Summary

Follow-up UX round on the Fallbacks card from the maintainer's live-host review of #132 (plan fallbacks-card-ux-followup):

  1. Disclosure chevron direction — the shared chevron pair is inverted to the standard convention: collapsed sections/rows point right ▶ (base .chevron { transform: rotate(-90deg) }), expanded point down ˅ (.chevronOpen { transform: none }). Fixes all four disclosure sites at once (高级选项 toggle, time-slot rows, role rows, persona rows); the move-up .chevronFlip affordance is untouched.
  2. roleAutoMatch checkbox row — fixes a feat(client): per-section saves beside H2 section headings, collapsed advanced options, defaults in hover hints #132 layout regression: the row's flex rule .fieldset > .checkboxRow stopped matching after the row moved inside #fallbacks-advanced-body, so the checkbox wrapped below the two-line label block. The rule becomes a .checkboxRow class rule, the input moves to the first child position (checkbox inline-left, matching the card's optionRow convention), and the description becomes a second <label htmlFor> so the whole text row toggles the control. InfoHint stays a sibling of the label-text elements (W-2 a11y contract).
  3. Section headings — 主代理 / 子代理 / 高级选项 enlarged 14px → 16px (line-height 24px, weight 600 unchanged), keeping the semantic h2 (aria-label already isolates the accessible name).

Test plan

  • pnpm typecheck / pnpm build exit 0
  • tests/fallbacks-card.spec.tsx 94/94 green (existing automatch pins untouched; new pin: input precedes label text, title + description both resolve to the same checkbox via getByLabelText)
  • Changelog fragment .changes/unreleased/card-ux-followup.md (Changed)

🤖 Generated with ZCode

…ckbox, 16px section headings

Disclosure chevrons now follow the standard convention — collapsed points
right (.chevron rotate(-90deg)), expanded points down (.chevronOpen none) —
across all four disclosure sites; .chevronFlip is untouched. The roleAutoMatch
row regains flex via a .checkboxRow class rule (the .fieldset > .checkboxRow
child selector stopped matching when the row moved inside the advanced body)
with the input as the row's first child and the description as a second
htmlFor label: checkbox inline-left, whole text row clickable, InfoHint still
a label-text sibling (QC W-2). Section headings enlarged 14px to 16px
(line-height 20px to 24px).
…text

The description resolves to the same checkbox via getByLabelText (label
association, not click-forwarding), and the input is the row's first child
in DOM order. Existing automatch pins stay unchanged.
@btspoony
btspoony merged commit 6da889b into main Sep 27, 2026
1 check passed
@btspoony
btspoony deleted the feat/fallbacks-card-ux-followup branch September 27, 2026 16:47
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