Repository navigation
Add TitleBlock and build CardContentHeader on it, and release Equality 7.1.0 - #249
Closed
matthewmr-eqty wants to merge 7 commits into
Closed
matthewmr-eqty wants to merge 7 commits into
matthewmr-eqty wants to merge 7 commits into
Conversation
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>
This was referenced Nov 25, 2026
Contributor
Author
|
TitleBlock ships in 6.5.0, #252. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TitleBlockin three sizes on the scale:sm(a 28 mark, a section title in a 28 row),md(36 mark, title and description) andlg(44 mark).TitleBlockMarkis a square tile;TitleBlockSkeletonmatches the loaded block's height.trailingfor badges and status on the title line,actionsfor buttons and menus, centred on the whole block, so a control never reaches above it.CardContentHeaderkeeps 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.Skeletoncarriesdata-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
pnpm build,pnpm test(Equality 385, docs 218, site 8),pnpm lint,pnpm format:checkpass.Not covered
🤖 Generated with Claude Code