Three pieces, one PR:
1. `.claude/rules/ux-changes.md` — auto-loaded rule listing change categories
that require explicit user approval before implementation, plus a
decision-log entry. Filing an issue with a ranked recommendation is
explicitly NOT approval.
2. `docs/ux-decisions.md` — append-only log of UX flow decisions. Seeded
with the #389 cert-provisioning-at-Continue decision, retroactively
approved (was originally landed unilaterally; this rule + log exist
so that cannot recur).
3. `docs/internal/flows/index.html` — onboarding flow page composed of
existing roborazzi screenshots, wired together with action labels +
error-branch screens (Rate limited, Failed). Linked into the existing
internal dashboard as a new Flows tab.
The motivating incident: #389 moved cert provisioning from "first
integration add" to "right after Continue, before Home". That is a real
UX timing change that an agent picked unilaterally based on a ranked
recommendation in the issue body. The user spotted the change after the
fact ("immediately after the notifications screen its showing
registering, before any integrations are set up") and asked for a
structural check that survives across Claude sessions, not just a memory
entry.
* Tighten variant 7 time right-edge (4dp end padding)
The user felt the pill in variant 7 looked like it had extra padding
to its right. The cause is optical: the pill has 8dp internal
horizontal padding, so its inner text ends ~9dp left of its outer
border. The time text below had no end padding, so its last glyph
sat at the row's full right-inset edge — making the time read as
"further right" than the pill's text.
Adding 4dp of end padding to the time pulls its glyph inward to
partially match the pill's internal right inset, bringing the two
text right-edges closer optically.
Only variant 7's time is touched; production ToolCallRow and
ListRow are unchanged.
Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
* Fix#366: Land variant 7 in production ToolCallRow and drop preview scaffolding
Ships the winning audit-row design (variant 7 from the #343 preview review,
tuned in #363 / #365) into the production audit history screen, wiring the
real `AuditEntry.clientLabel` added in #344 through the ViewModel and
rendering it as a right-aligned client pill on row 1 with the call time
stacked directly below. Rows whose `clientLabel` is null (predate the
schema v3 -> v4 migration) omit the pill entirely rather than render a
placeholder that would collide with the real `Unknown (#N)` labels the
[UnknownClientLabeler] produces (#345).
Extracts `ClientPill` as a shared composable in `ui/components/` so the
pill is now part of the app's real design language — not a preview helper.
Deletes the preview scaffolding (`AuditRowVariants.kt`,
`AuditRowVariantsScreenshotTest.kt`, `AuditRowCatalogHtmlWriter.kt`, the
`app/screenshots/audit-row-variants/` directory, and
`docs/internal/audit-row-variants/index.html`), removes the corresponding
tab from the unified internal dashboard (#348) and drops the matching
copy step from `pages.yml`.
Regenerates the four audit-screen Roborazzi goldens
(`34_audit_history_populated_*`, `36_audit_history_filtered_*`,
`36a_audit_history_show_all_mcp_messages_*`) with representative
clientLabel values (short, long, null, and `Unknown (#1)`) so the pill
behaviour is visible across all three length classes.
Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>
New docs/internal/index.html embeds the four design-review catalogs
(notifications, app UI, OAuth auth pages, audit row variants) behind
client-side tabs. Tab state is mirrored in the URL hash so deep-links
and reloads land on the expected tab. Iframes lazy-load on first
activation.
Extends .github/workflows/pages.yml:
- Broadens the paths trigger to cover docs/screenshots/**,
docs/auth-pages/**, and all of app/screenshots/** (not just the
audit-row-variants subdir).
- Copies docs/internal/ into _site/internal/ first so the landing
and its sibling audit-row-variants catalog are in place, then the
per-catalog copies overlay notifications/, app/, and auth/ without
clobbering the landing's index.html.
- Adds copy steps for the app UI gallery (HTML to /internal/app/,
PNGs to /app/screenshots/ to match the HTML's ../../app/screenshots
references) and the OAuth auth-pages catalog (/internal/auth/).
Simulated locally by reproducing the pages.yml copy sequence and
serving via python3 http.server: all four tabs fetch 200, sampled
image and child-HTML URLs resolve.
Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>