Frontend polish: select placeholder copy, locked-field affordance in edit mode, field-list overflow, narrow-mode sidebar toggle, heading wrap #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Grab-bag of small verified design/layout nits from a UI sweep — none worth an issue alone:
"— select —" placeholder copy —
form.selectPlaceholderis"— select —"/"— välj —"(src/i18n/en.json:8,sv.json:8). Em-dash-wrapped lowercase reads as decoration, not an affordance, and diverges from every other placeholder which ends in…(Filter…,Search…). →"Select…"/"Välj…".Edit mode silently locks fields with no explanation —
src/fields/field-form.tsx:118, 127, 144-148, 166-170: key input, type select, vocabulary select, and authority-kind select all getdisabled={isEdit}with no hint why. A user editing a field sees four grayed controls and can't tell if it's a bug or a rule. → add a muted caption under the locked group (e.g."Key and type are fixed after creation"/ sv equivalent), or a tooltip on each.Field-list rows can overflow the 20rem column —
src/fields/field-list.tsx:92-101: the row button lays out label + key + type badge + required*in a non-wrapping flex with nomin-w-0/truncate. A long label or key pushes the badge out of the clipped column. →min-w-0on the button,truncateon the label span,shrink-0on the badge.Sidebar toggle renders as a disabled ghost on narrow viewports —
src/shell/sidebar.tsx:80-92: on<768pxthe toggle getsdisabled={narrow}+disabled:opacity-50, so mobile users see a permanently grayed-out button that communicates "broken" rather than "unavailable". → hide it on narrow (hidden md:flex) instead of disabling.Page titles don't balance-wrap —
src/components/ui/page-title.tsx:9: long titles (object names as page titles) line-break raggedly on narrow viewports. → addtext-balanceto theh1base classes.All are token-safe and bundle-neutral.
Fixed in
62c5697(merged as97c63ac). All five items:form.selectPlaceholder→ "Select…" / "Välj…" (the two field-input combobox tests updated to match).FieldFormedit mode shows a mutedfields.lockedNotecaption — "Key and type can't be changed after creation." / "Nyckel och typ kan inte ändras efter att fältet skapats." — above the locked controls.FieldListrows:min-w-0on the row button,truncateon the label,shrink-0on the type badge and required marker.hidden md:flexon narrow viewports instead ofdisabled+ grayed (thedisabled:*classes anddisabled={narrow}are gone).PageTitleh1 now hastext-balance.i18n en/sv parity maintained; full gate green (300/300).