Display corps birthday
- Vorherrschende Sprache
- TypeScript
- Sterne
- 5
- Forks
- 1
- Ø Merge
- 15 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
Add a cake emoji (🎂) at the end of a corps' name in CorpsDisplay if the current date is their corps-birthday. Meaning, the date of their first rehearsal or first gig (whichever is earliest).
This date is already calculated when building the text in the component (in "Gick med i corpset..."), so preferably this value should be reused in both places. Even MORE preferably the calculation should be moved out to its own function in the corps/stats router.
To keep the router function pure either the component or router API could take `currentDate` as an argument and use that for checking if the current date is their corps-birthday, rather than using `new Date()` directly in the code, as that would make the function non-pure.
Beitragsleitfaden
Rechercherichtung
Untersuche CorpsDisplay und den corps/stats-Router, beginnend mit der vorhandenen Datumsberechnung, die für den Text „Gick med i corpset...“ verwendet wird. Verwende diese Berechnung wieder oder extrahiere sie und berücksichtige currentDate, damit die Logik rein bleibt. Die Aufgabe ist erledigt, wenn nur an dessen corps-Geburtstag ein 🎂 nach dem Namen des corps erscheint, basierend auf dem frühesten Datum einer ersten Probe oder eines ersten Auftritts.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- full-stack
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100