Skip to content

ui(replay-drawer): rename Authorship pill to Authors + tighten its affordance#224

Merged
shikokuchuo merged 4 commits into
mainfrom
ui/authors-label
May 21, 2026
Merged

ui(replay-drawer): rename Authorship pill to Authors + tighten its affordance#224
shikokuchuo merged 4 commits into
mainfrom
ui/authors-label

Conversation

@shikokuchuo
Copy link
Copy Markdown
Member

@shikokuchuo shikokuchuo commented May 21, 2026

What

Four changes to the "Authors" pill (formerly "Authorship"):

  1. User-facing label: "Authorship" → "Authors".
  2. Internal vocabulary: Authorship / authorshipAttribution / attribution across components, props, CSS classes, keyframes, and tests. Pure rename, no behaviour change.
  3. Disabled state for unsupported formats: pill greys out (non-interactive, with an explanatory title) when the current format isn't q2-debug or q2-preview — the only formats that surface attribution visually. The user's attributionOn preference is preserved across the disabled period.
  4. State-aware tooltip: "Show authors overlay" / "Hide authors overlay" / "Authors overlay is not available for this format", so the noun-phrase is consistent and the verb tracks what clicking will do.

Why

Naming was inconsistent (internal authorship vs API attribution vs visible "Authorship"), the pill rendered for every file format even when toggling it did nothing the user could see, and the tooltip didn't track state. This collapses the naming to two layers (attribution internally, Authors user-facing) and tightens the pill's affordance.

Visible string + aria-label only; internal vocabulary (component name,
props, CSS classes, test describe block) still says authorship and is
slated for unification with attribution in a follow-up.
Pure rename across the UI surface (component, props, CSS classes,
keyframes, custom properties, test descriptions, comments) so the
internal vocabulary matches the data API and the contract doc.
User-facing strings ("Authors" pill label, "Authors overlay"
aria-label, "Highlight authors" tooltip) are unchanged.
The pill was rendering for every file type but only `q2-debug` and
`q2-preview` actually surface attribution visually — toggling it for
other formats did nothing the user could see. Now the pill greys out
with an explanatory title when `currentFormat` is anything else.
`attributionOn` state is preserved across the disabled period so
returning to a supported format restores the user's preference.
Replaces the static "Highlight authors" tooltip with "Show authors
overlay" / "Hide authors overlay" depending on the on/off state, so
the noun-phrase matches the disabled-state message ("Authors overlay
is not available for this format") and the verb tracks what clicking
will actually do.
@shikokuchuo shikokuchuo merged commit 2c3bd97 into main May 21, 2026
5 checks passed
@shikokuchuo shikokuchuo deleted the ui/authors-label branch May 21, 2026 11:05
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