Skip to content

feat(rw): add docs icon link to entity About card#36

Merged
yumike merged 4 commits into
mainfrom
feat/about-card-icon-link
Mar 24, 2026
Merged

feat(rw): add docs icon link to entity About card#36
yumike merged 4 commits into
mainfrom
feat/about-card-icon-link

Conversation

@yumike
Copy link
Copy Markdown
Contributor

@yumike yumike commented Mar 24, 2026

Summary

  • Add a "View Docs" icon (DocsIcon) to the catalog entity About card for entities with the rwdocs.org/ref annotation
  • Uses EntityIconLinkBlueprint from @backstage/plugin-catalog-react/alpha, the same extension point TechDocs and Scaffolder use
  • Links to the entity's Documentation tab (/docs path)

Test plan

  • Build passes
  • Typecheck passes
  • All 34 existing tests pass
  • Verify icon appears on About card for entities with rwdocs.org/ref annotation
  • Verify icon is hidden/disabled for entities without the annotation

🤖 Generated with Claude Code

yumike and others added 4 commits March 24, 2026 06:57
Register an EntityIconLinkBlueprint that shows a "View Docs" icon on
the catalog About card for entities with the rwdocs.org/ref annotation,
linking to the entity's Documentation tab.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tion

Add a filter to EntityIconLinkBlueprint so the icon is hidden entirely
rather than shown disabled when the entity lacks rwdocs.org/ref.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove redundant annotation check (already enforced by blueprint filter),
hoist icon element to module level to avoid per-render allocation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yumike yumike merged commit 640907b into main Mar 24, 2026
1 check passed
@yumike yumike deleted the feat/about-card-icon-link branch March 24, 2026 04:09
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