Open Issues Need Help
View All on GitHubAI Summary: This issue aims to add unit tests for two fundamental UI components, `ProgressBar` and `StatCard`, which currently lack test coverage. The task involves verifying their rendering, accessibility attributes, and handling of edge cases, with specific files and example test scenarios provided for guidance.
Observatoire citoyen de la transparence politique française
AI Summary: This GitHub issue requests the creation of unit tests for the `ElectionCountdown.tsx` component. The primary focus is to test the component's date calculation logic, ensuring it accurately displays the remaining time (days, hours, minutes) until a target election date. The suggested approach involves using fake timers to control time during tests, with an example provided for testing days remaining and the 'Today' state.
Observatoire citoyen de la transparence politique française
AI Summary: This GitHub issue describes the task of writing unit tests for three simple, declarative Badge components: `VoteBadge`, `CategoryBadge`, and `StatusBadge`. The goal is to create test files for each, focusing on snapshot and rendering tests to verify they display the correct colored label based on their respective enums. An example test structure is provided for `VoteBadge` to guide the implementation.
Observatoire citoyen de la transparence politique française
AI Summary: This GitHub issue outlines the task of creating a test file for `src/lib/contrast.ts`, a module that calculates WCAG contrast ratios between colors for text readability checks. The tests should verify the accuracy of functions for hex to RGB conversion, relative luminance, contrast ratio calculation, and AA validation. Specific test cases are suggested to ensure correct implementation of WCAG standards.
Observatoire citoyen de la transparence politique française
AI Summary: This GitHub issue requests the creation of a test file for the `extract-date-from-url.ts` module, which extracts publication dates from news article URLs. The task involves writing tests for various URL formats, including those with valid dates, no dates, invalid dates, and query parameters. This is considered an ideal first test due to the module being a pure function.
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française
Observatoire citoyen de la transparence politique française