Skip to content

Add TitleBlock and build CardContentHeader on it, and release Equality 7.1.0 - #249

Closed
matthewmr-eqty wants to merge 7 commits into
release/equality-7.0.0from
release/equality-7.1.0
Closed

matthewmr-eqty wants to merge 7 commits into
release/equality-7.0.0from
release/equality-7.1.0

Conversation

@matthewmr-eqty

Copy link
Copy Markdown
Contributor

Review focus

Do not merge. Stacked on #247 for review: review the commits after it. Once #247 merges, this is retargeted to main and rebased; merging it into #247's branch would publish 7.1.0 with no 7.0.0.

Need

Apps keep building the same thing by hand: a mark beside a title, with a line under it and a badge or a button at the end. Studio has its own TitleBlock for it, and Equality's CardContentHeader is a fourth variant.

Change

  • TitleBlock in three sizes on the scale: sm (a 28 mark, a section title in a 28 row), md (36 mark, title and description) and lg (44 mark). TitleBlockMark is a square tile; TitleBlockSkeleton matches the loaded block's height.
  • Two slots: trailing for badges and status on the title line, actions for buttons and menus, centred on the whole block, so a control never reaches above it.
  • CardContentHeader keeps its props and is now TitleBlock's small size. Its mark becomes the square tile, and See All moves to the end of the header, centred.
  • Skeleton carries data-slot="skeleton", so an app can restyle every placeholder in one rule.

A minor release: everything is additive, and CardContentHeader's look change is under Changed, as 6.2.0 did for the rail.

Evidence

  • Before-and-after page: CardContentHeader before and after, TitleBlock at every size, with and without marks and descriptions, wrapping at 375, both slots. Buttons, badges and rows match pixel for pixel.
  • pnpm build, pnpm test (Equality 385, docs 218, site 8), pnpm lint, pnpm format:check pass.

Not covered

  • Studio's adoption: a Guardian PR swaps its own TitleBlock for this one.
  • HeroCard, its property strip and the glows: 7.2.0.

🤖 Generated with Claude Code

matthewmr-eqty and others added 7 commits November 24, 2026 22:31
Need: Studio builds its own title block, so every screen that pairs an icon or avatar with a title, description and trailing items has to match Equality by hand.
Problem: Equality only ships that layout inside CardContentHeader, at one size and with a fixed button.
Solution: TitleBlock, TitleBlockMark and TitleBlockSkeleton take Studio's props, centre the title on its mark at sm, md and lg, and keep the skeleton the same height as the block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: card headers should match every other titled block, with the same square tile mark.
Problem: CardContentHeader carried its own layout and a circle mark, apart from TitleBlock.
Solution: It now renders TitleBlock at sm with a TitleBlockMark; props, ref and null return are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: teams and their agents should pick TitleBlock for a mark beside a title instead of building their own.
Problem: TitleBlock had no docs page, no skill rows and no release, and the CardContentHeader page still described a circle.
Solution: A TitleBlock page says when to use each size, mark and the skeleton; the skill maps hand-rolled names to it; the changelog and version ship it as 7.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: readers of the Title Block page can see the centred title the page describes.
Problem: no example showed a title without a description, and two lines named a person only or leaned on "control".
Solution: add medium and large no-description examples, say "who or what it is", and give the mark sizes as 28, 36 and 44.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Need: an app that wants its own loading animation should restyle every placeholder in one place.
Problem: Skeleton's data-slot attribute shipped with no mention in the docs or changelog, and nothing warned against renaming it.
Solution: the changelog, the Skeleton page and a one-line warning name the hook, and the skill says an Avatar mark takes the block's size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s slot

Need: a button or menu beside a TitleBlock title should sit inside the block, as 7.0.0 made rows hold their parts.
Problem: trailing items centred on the title's line, so a 28 button in a 40 block reached 4 above its top.
Solution: an actions slot holds controls at the block's end, centred on its full height; trailing keeps badges and status on the title line; the skeleton, docs and changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l to actions

Need: a section heading with only a button, and a card header whose heading wraps, should still line their controls up with the block.
Problem: without a mark, a default or large block shrank to its title's line, leaving its button taller than the row; CardContentHeader's See All sat on the first line of a wrapped heading.
Solution: actions alone give the title row the block's full height, and CardContentHeader puts See All in actions, so it centres on the header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matthewmr-eqty

Copy link
Copy Markdown
Contributor Author

TitleBlock ships in 6.5.0, #252.

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