Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Map of Classes] Update pins when changing selected day

Aperta
#871 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start with the saved-plan layout in src/app/plans/[id]/layout.tsx and the meeting fields in src/lib/domain/section.ts to see how selected-day class data is prepared. The new component is src/components/map/PlanClassMap.tsx, which should hold the selected DayOfWeek state. Done means switching days replaces the pins and fallback list together, and the test in src/components/map/PlanClassMap.test.tsx passes with pnpm test, pnpm lint and pnpm typecheck. Issue #870 is listed as a prerequisite, so check whether it has landed first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

map

What to build

Update map markers and class details when the student changes days. Clear a selection that belongs to the previous day so the popup cannot show a class absent from the new map.

Files

Steps

  1. Keep a selected DayOfWeek state; derive both mapped and fallback lists from the same prepared selected-day data.
  2. Pass the selected day to tabs and its mapped rows to ClassMap.
  3. Switching tab updates pins and fallback together; no re-fetch for a purely local day switch.

Example

Monday→Tuesday replaces Monday pins and shows Tuesday fallback only.

Check it works

In src/components/map/PlanClassMap.test.tsx, check the example above and the failure or limit described in the steps. Run pnpm test -- src/components/map/PlanClassMap.test.tsx, pnpm lint and pnpm typecheck.

Before starting

  • #870 — Mount day map and fallback under a saved plan

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Lingua principale
TypeScript
Stelle
19
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevDogsUGA/DogDays

Tutte le issue di DevDogsUGA/DogDays

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.