Skip to content

fix: show IDIA once when the shared data file adds it - #72

Merged
Creylay merged 1 commit into
mainfrom
fix/idia-no-duplicate
Nov 27, 2026
Merged

Creylay merged 1 commit into
mainfrom
fix/idia-no-duplicate

Conversation

@Creylay

@Creylay Creylay commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

The site adds IDIA locally (LOCAL in InstitutionsGrid.tsx) because it is not in the shared institutions.json yet. DashAISoftware/dashAI#1051 adds it there, so once that is merged every build would show IDIA twice.

What changes

  • A local entry is skipped when the data file already has its id, so IDIA shows once before and after dashAI#1051 is merged, in any merge order.
  • idia joins FIRST, so the order stays FCFM, DCC, IDIA whether IDIA comes from the data file or from LOCAL.
  • The card looks the same either way: the logo in dashAI#1051 is byte-identical to public/institutions/idia-logo.png, and the name and role come from the site texts.

The LOCAL entry can be removed after dashAI#1051 is merged.

Checks

  • npm test (25 passing)
  • npx tsc --noEmit -p .
  • Card order simulated with the current data and with IDIA added as in dashAI#1051: FCFM → DCC → IDIA → CENIA → Unholster in both.

The site adds IDIA locally until dashAI PR #1051 puts it in
institutions.json. A local entry is now skipped when the data file has
its id, so IDIA never appears twice. IDIA joins the cards shown first,
keeping the order FCFM, DCC, IDIA either way.
@Creylay
Creylay merged commit dda274c into main Nov 27, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
github-pages — 9ba2722d Deployed Nov 27, 2026 by Creylay via deploy #156
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