Skip to content

feat(#4028): add multi-version list to VersionListCard - #4030

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/4028-version-list-card
Open

feat(#4028): add multi-version list to VersionListCard#4030
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/4028-version-list-card

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Replace the single-badge rendering in VersionListCard with a full version list that queries sibling version entities from the catalog.

The card now uses catalogApiRef.getEntities() to find all entities sharing the same rhdh.io/ai-asset-name annotation. Results are sorted by version (semver-aware, newest first) and rendered as a list with:

  • "current" label on the version matching the viewed entity
  • "recommended" badge for rhdh.io/ai-asset-recommended entities
  • Navigation links on non-current versions via entityHref()
  • Loading skeleton while the catalog query is in flight
  • Graceful fallback to single-version display on fetch error

Also adds:

  • i18n keys for versionRecommended and versionNavigate
  • A second fixture entity (code-review-skill-v1 at 1.0.0) for
    the dev app to exercise multi-version behavior
  • Unit tests covering single version, multiple versions,
    recommended badge, no-version, loading state, and nav links

Closes #4028

Post-script verification

  • Branch is not main/master (agent/4028-version-list-card)
  • Secret scan passed (gitleaks — 9cfc354095c029b95e030e58fd983bb316437f09..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Replace the single-badge rendering in VersionListCard with a full
version list that queries sibling version entities from the catalog.

The card now uses catalogApiRef.getEntities() to find all entities
sharing the same rhdh.io/ai-asset-name annotation. Results are
sorted by version (semver-aware, newest first) and rendered as a
list with:
- "current" label on the version matching the viewed entity
- "recommended" badge for rhdh.io/ai-asset-recommended entities
- Navigation links on non-current versions via entityHref()
- Loading skeleton while the catalog query is in flight
- Graceful fallback to single-version display on fetch error

Also adds:
- i18n keys for versionRecommended and versionNavigate
- A second fixture entity (code-review-skill-v1 at 1.0.0) for
  the dev app to exercise multi-version behavior
- Unit tests covering single version, multiple versions,
  recommended badge, no-version, loading state, and nav links

Closes #4028
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Agent PR ready for human review label Jul 28, 2026
@rhdh-gh-app

rhdh-gh-app Bot commented Jul 28, 2026

Copy link
Copy Markdown

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-boost

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-boost workspaces/boost/plugins/boost none v0.3.0

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Agent PR ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

boost: Implement VersionListCard with multi-version list and navigation

0 participants