#552: initial-circle avatars, one badge family, Cairn role header (v0.6.206) #559

Merged
Cordy merged 4 commits from fix-552b into main 2026-09-16 01:05:17 +00:00
Owner

The three approved items from the polish mockup (accounts-groups-polish-decisions.html).

1 — Avatars: account and group rows open with an initial circle from a shared avatar() helper; filled accent for administrators, square-cornered for groups so a group never reads as a person. Initials rule as specified in the mockup: split on . _ - and whitespace, first letter of the first two parts, single-part names fall back to their first two characters.

2 — Role badges: roleCell renders Admin and User as one badge family instead of a chip beside muted grey text, and the green you badge moved up beside the name it describes, leaving the meta line for group membership only.

3 — Copy (the recommendation): kept Add account; the directory table header becomes Cairn role, since that column is strictly about the role Cairn grants and the person may hold roles in the directory Cairn neither knows nor controls. The local table keeps plain "Role".

Second commit fixes a bug the round's own sanity check caught before merge: the emitted character class was [._\\s-] — an escaped backslash next to a literal s — so names split on the letter "s" and never on whitespace (Fall 1 → "FA", case-folder-1 → "CE"). Now [._\s-], with nine cases asserted in CI. Fence gate + node checks green.

The three approved items from the polish mockup (`accounts-groups-polish-decisions.html`). **1 — Avatars:** account and group rows open with an initial circle from a shared `avatar()` helper; filled accent for administrators, square-cornered for groups so a group never reads as a person. Initials rule as specified in the mockup: split on `. _ -` and whitespace, first letter of the first two parts, single-part names fall back to their first two characters. **2 — Role badges:** `roleCell` renders Admin and User as one badge family instead of a chip beside muted grey text, and the green **you** badge moved up beside the name it describes, leaving the meta line for group membership only. **3 — Copy (the recommendation):** kept **Add account**; the directory table header becomes **Cairn role**, since that column is strictly about the role Cairn grants and the person may hold roles in the directory Cairn neither knows nor controls. The local table keeps plain "Role". Second commit fixes a bug the round's own sanity check caught before merge: the emitted character class was `[._\\s-]` — an escaped backslash next to a literal `s` — so names split on the letter "s" and never on whitespace (`Fall 1` → "FA", `case-folder-1` → "CE"). Now `[._\s-]`, with nine cases asserted in CI. Fence gate + node checks green.
The three approved items from the polish mockup. Account and group
rows open with an initial circle (filled for admins, square for
groups) built from a shared avatar helper; the Role column renders
Admin and User as one badge family instead of a chip beside grey
text, and the green you badge sits next to the name rather than
buried in the meta line with group tags. The directory table header
becomes Cairn role, since that column is strictly about the role
Cairn grants - the local table keeps plain Role, where nothing else
could be meant.
fix(#552): split initials on whitespace, not on the letter s
All checks were successful
ci / test-and-build (pull_request) Successful in 58s
da3a304185
The emitted character class was [._\\s-], an escaped backslash next
to a literal s, so names split on any s and never on a space:
case-folder-1 read CE and Fall 1 read FA. Caught by the sanity check
in the same round, before merge.
Cordy scheduled this pull request to auto merge when all checks succeed 2026-09-16 01:04:13 +00:00
Cordy merged commit 2a701bb3f0 into main 2026-09-16 01:05:17 +00:00
Cordy deleted branch fix-552b 2026-09-16 01:05:19 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#559
No description provided.