Skip to content

feat(command-center-sdk): let EntitySummary show an icon before its title - #17

Merged
MainSequenceDev merged 1 commit into
mainfrom
summary-title-lead
Oct 16, 2026
Merged

MainSequenceDev merged 1 commit into
mainfrom
summary-title-lead

Conversation

@MainSequenceDev

Copy link
Copy Markdown
Contributor

Summary

EntitySummary takes an optional titleLead, shown before the summary title, so a detail page can show the entity's icon or avatar at the size it chooses. Command Center's Agent page will show the Agent's animated icon there at 32 px.

  • Markup: with a lead, the title sits in a new cc-entity-summary__heading row after a cc-entity-summary__title-lead box. A lead that renders nothing takes no space (:empty). Without titleLead the title renders exactly as before.
  • Compatibility: additive optional prop and two stylesheet classes. No contract ID, JSON Schema, fixture, iframe protocol, theme, or storage change.
  • Docs: changelog (Unreleased), views README, and the resources guide's detail-page example.

Test plan

  • Node 22.22.0: npm run check, npm run sdk:test (347 vitest including the new title-lead test, 137 node tests), npm run sdk:build, packed-consumer smoke test.
  • CI on this PR.
  • After release 0.5.18: Command Center's Agent detail page shows the Agent's icon before its title.

🤖 Generated with Claude Code

…itle

EntitySummary takes an optional titleLead, rendered before the summary
title in a new cc-entity-summary__heading row, so a detail page can show
the entity's icon or avatar at the size it chooses (Command Center's
Agent page shows the Agent's animated icon there). A lead that renders
nothing takes no space; without titleLead the title renders exactly as
before.

Compatibility axes: additive optional prop on EntitySummaryProps and
the stylesheet classes cc-entity-summary__heading and
cc-entity-summary__title-lead. No contract ID, JSON Schema, fixture,
iframe protocol, theme, or storage change.

Verification (Node 22.22.0): npm run check; sdk:test (347 vitest, one
new, plus 137 node tests); sdk:build; packed-consumer smoke test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MainSequenceDev
MainSequenceDev merged commit 64ee90e into main Oct 16, 2026
1 check passed
MainSequenceDev added a commit that referenced this pull request Oct 16, 2026
Release EntitySummary's optional titleLead (64ee90e, #17): a detail
page can show the entity's icon or avatar before the summary title.
Additive prop and stylesheet classes only; no contract, schema, theme,
iframe protocol or storage change. command-center-ai stays 0.0.15.

Verification (Node 22.22.0): npm run check on this commit; the feature
commit passed sdk:test (347 vitest, 137 node tests), sdk:build, the
packed-consumer smoke test, and PR CI (Check and Test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MainSequenceDev
MainSequenceDev deleted the summary-title-lead branch October 16, 2026 20:42
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