Skip to content

fix(architecture): dedupe vendor badges in the per-contract score#77

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix/per-contract-dedupe-vendor-badges
Jul 9, 2026
Merged

fix(architecture): dedupe vendor badges in the per-contract score#77
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix/per-contract-dedupe-vendor-badges

Conversation

@potiuk

@potiuk potiuk commented Jul 9, 2026

Copy link
Copy Markdown
Member

The Per-contract score cards on /architecture rendered one vendor badge
per implementing tool, so a vendor shipping several tools showed duplicate
badges — inconsistent with the "N backend vendors: …" line that already lists
distinct vendors.

Visible cases:

  • contract:trackerGitHub ×3 (6 tools → 4 distinct vendors)
  • contract:change-requestAtlassian ×2 (4 tools → 3 distinct vendors)

Fix

  • New vendorsOf() helper groups a contract's implementations by vendor and
    renders one badge per distinct vendor, sorted to match the basis line.
  • The badge tooltip now aggregates all of that vendor's tools (e.g. GitHub → its
    three tools).
  • Every other contract was already 1:1, so nothing else changes.

Verification

  • npm run build clean (122 pages); confirmed against the data that only
    tracker (6→4) and change-request (4→3) had duplicates, now resolved.

🤖 Generated with Claude Code

The per-contract score cards rendered one vendor badge per implementing tool,
so a vendor shipping several tools showed duplicate badges (e.g. GitHub ×3 on
contract:tracker, Atlassian ×2 on contract:change-request) — inconsistent with
the "N backend vendors: …" line that already lists distinct vendors.

Add a vendorsOf() helper that groups implementations by vendor and renders one
badge per distinct vendor (sorted to match the basis line); the badge tooltip
now aggregates all of that vendor's tools.
@potiuk potiuk merged commit bb1a7b5 into apache:main Jul 9, 2026
2 checks passed
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