Skip to content

fix(catalog): show full product version instead of truncating to 8 chars#421

Open
Wiesenwischer wants to merge 1 commit into
mainfrom
bugfix/catalog-version-label-truncated
Open

fix(catalog): show full product version instead of truncating to 8 chars#421
Wiesenwischer wants to merge 1 commit into
mainfrom
bugfix/catalog-version-label-truncated

Conversation

@Wiesenwischer

Copy link
Copy Markdown
Owner

Problem

In the Stack Catalog, the product version badge was truncated to 8 characters via substring(0, 8). Semantic versions longer than that were cut mid-word — e.g. 4.0.0-preview displayed as v4.0.0-pr.

Fix

Render the full product.version. The badge already lives in a flex-wrap container, so it reflows cleanly instead of clipping.

The substring(0, 8) was likely intended for truncating a git SHA; for SemVer it produced misleading output.

Verification

  • pnpm build (tsc + vite) passes with 0 errors
  • Rebuilt wwwroot assets included

The Stack Catalog product card truncated the version via substring(0, 8),
cutting semantic versions like '4.0.0-preview' to '4.0.0-pr'. Show the full
version; the badge sits in a flex-wrap container and reflows as needed.
@github-actions github-actions Bot added the bug Something isn't working label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant