Skip to content

[FRONT] fix(ui): update subsidy transparency score display#490

Merged
jb-delafosse merged 3 commits intomainfrom
front/update-subsidy-score-display
Jan 21, 2026
Merged

[FRONT] fix(ui): update subsidy transparency score display#490
jb-delafosse merged 3 commits intomainfrom
front/update-subsidy-score-display

Conversation

@jb-delafosse
Copy link
Collaborator

@jb-delafosse jb-delafosse commented Jan 13, 2026

Summary

Update the frontend display to reflect the new subsidy transparency scoring thresholds.

Changes

  • constants.ts: Update SCORE_TO_RANGE with new percentage ranges
  • methodologie/page.tsx: Update the hardcoded scoring grid
  • OurMethodologyExtended.tsx: Fix pre-existing bug (was showing "40%" instead of correct threshold)

New scoring display

Score Display
A 100% (+/- 5%)
B De 50% à 95%
C De 25% à 50%
D De 0% à 25%
E 0% ou plus de 105%

Test plan

  • Lint passes
  • TypeScript check passes
  • Visual verification on /methodologie page
  • Visual verification on community detail pages

Related

Update the display ranges to match the new scoring logic:
- B: 50%-95% (was 75%-95%)
- C: 25%-50% (was 50%-75%)
- D: 0%-25% (was 25%-50%)
- E: 0% or >105% (was <40%, also fixing existing bug)

no_jira
Update the hardcoded scoring grid to reflect new thresholds:
- B: De 50% à 95%
- C: De 25% à 50%
- D: De 0% à 25%
- E: 0% - Aucune donnée ou plus de 105%

no_jira
Update the explanatory text to accurately describe the scoring:
- Fix pre-existing bug: was showing "40%" instead of correct threshold
- Now correctly states E corresponds to 0% (no usable data)

no_jira
@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

✅ Review app deployed

Check how your changes look like!

ℹ️ Name 🔗 Infos & links
🌱 Latest deployed commit 25b31a6
👁️ Preview https://13_eclaireur_public-PR-490.cleverapps.io

@jb-delafosse jb-delafosse merged commit 14b8dc2 into main Jan 21, 2026
3 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