Add component lifecycle badges#2448
Open
Mbeaulne wants to merge 1 commit into
Open
Conversation
8 tasks
🎩 PreviewA preview build has been created at: |
This was referenced Jun 23, 2026
Collaborator
Author
This was referenced Jun 23, 2026
ed3702f to
8ea8ef5
Compare
b339467 to
5139df5
Compare
8ea8ef5 to
20bee67
Compare
5139df5 to
8e9b863
Compare
This was referenced Jun 23, 2026
20bee67 to
6d83fca
Compare
8e9b863 to
53dd0b9
Compare
6d83fca to
97297cc
Compare
53dd0b9 to
1f7cb6d
Compare
97297cc to
f57ed8d
Compare
1f7cb6d to
a25389c
Compare
f57ed8d to
c24dece
Compare
a25389c to
8d8e6f4
Compare
8d8e6f4 to
30633b0
Compare
c24dece to
1e0f470
Compare
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
reviewed
Jun 26, 2026
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.

Description
Adds visual indicators for deprecated and superseded components throughout the component browser. A new
ComponentLifecycleBadgescomponent renders "Deprecated" or "Superseded" badges next to component names, and a warning message is shown in the component detail pane advising users to prefer active replacements. When a replacement digest is available, it is shown inline within the badge.Lifecycle state is resolved via a new
getComponentLifecycleInfoservice that reads from multiple sources: top-leveldeprecatedandsuperseded_byfields on the component reference, as well aslifecycle.state,superseded_by,supersededBy, and theirtangleml.com/-prefixed annotation equivalents. Superseded state takes priority over deprecated state when a replacement digest is present.Badges appear both on component cards in the list view and in the component detail header.
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
deprecated: trueset on its reference — confirm a "Deprecated" badge appears next to the component name in both the card and the detail pane, along with a warning message.superseded_byto a digest on a component reference — confirm a "Superseded" badge and a "Replaced by<digest>" badge appear, and the detail pane shows the superseded warning.src/services/componentLifecycle.test.tsto verify all annotation and field resolution paths.Additional Comments
The annotation keys checked are
lifecycle.state,tangleml.com/lifecycle-state,superseded_by,supersededBy, andtangleml.com/superseded-by, providing flexibility across different annotation conventions.