-
Notifications
You must be signed in to change notification settings - Fork 11
fix: hide total for now #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… on mobile On mobile view, when comparing two communities, the comparison table was showing an empty state if either community had no data. This prevented users from seeing available data for the other community. Now the mobile view behaves like desktop: - Shows tables independently for each community - Only shows global empty state when both communities have no data - Shows individual empty state per community when applicable - Hides comparison pills (total amount/number) when only one has data
…harts Remove the ordinate (Y-axis) from marchés publics and subventions charts: - ComparisonChart: hide Y-axis while keeping domain and formatting - DesktopEvolutionChart: hide Y-axis ticks and labels This provides a cleaner chart visualization while maintaining the proper data scaling and tooltip functionality.
- Add displayMode parameter to useChartData hook to distinguish between 'amounts' and 'counts' - Use formatNumberInteger for counts (displays "2" instead of "0") - Use formatMonetaryValue for amounts (displays "1,5 M€") - Fix type conversion in mergeWithRealData to ensure year matching works correctly - Update EvolutionChart and MobileEvolutionChart to pass displayMode Fixes the issue where small count values (e.g., 2 contracts) were being divided by 1000 or 1000000 for monetary formatting, resulting in 0 being displayed.
✅ Review app deployedCheck how your changes look like!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Année 2023 à mettre en année de référence car les scores de transparence ne sont pas consolidés au delà.
Pas certains de comprendre les modifs des fichiers .py mais je te fais confiance là dessus
En tout, la carte est bien plus lisible. Good job.
Ça me semble plus pertinent de mettre le score agrégé en selection par défaut plutôt que le score MP (et ça fait écho à ce qui est fait côté fiche collectivité). Qu'en penses-tu ?
try { | ||
const searchParams = request.nextUrl.searchParams; | ||
const codes = searchParams.getAll('codes'); | ||
const year = searchParams.get('year') || '2024'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const year = searchParams.get('year') || '2024'; | |
const year = searchParams.get('year') || '2023'; |
Les derniers scores de transparence ont été calculés sur 2023 et pas 2024. C'est pour ça qu'on a que des E sur les régions et départements (ce qui n'est pas le cas en 2023 même si ça reste pas élevé...)
try { | ||
const body = await request.json(); | ||
const { codes } = body; | ||
const { codes, year = 2024 } = body; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { codes, year = 2024 } = body; | |
const { codes, year = 2023 } = body; |
try { | ||
const searchParams = request.nextUrl.searchParams; | ||
const codes = searchParams.getAll('codes'); | ||
const year = searchParams.get('year') || '2024'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const year = searchParams.get('year') || '2024'; | |
const year = searchParams.get('year') || '2023'; |
try { | ||
const searchParams = request.nextUrl.searchParams; | ||
const codes = searchParams.getAll('codes'); | ||
const year = searchParams.get('year') || '2024'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const year = searchParams.get('year') || '2024'; | |
const year = searchParams.get('year') || '2023'; |
No description provided.