[Map of Classes] Update pins when changing selected day
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
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
src/components/map/PlanClassMap.tsx(new file)- Starting example: src/app/plans/[id]/layout.tsx
- Course/meeting fields: src/lib/domain/section.ts
Steps
- Keep a selected
DayOfWeekstate; derive both mapped and fallback lists from the same prepared selected-day data. - Pass the selected day to tabs and its mapped rows to ClassMap.
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogDays
-
map
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DevDogsUGA/DogDays#868 ·
-
map
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DevDogsUGA/DogDays#865 ·
-
sharing
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DevDogsUGA/DogDays#854 ·
-
import-export
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DevDogsUGA/DogDays#850 ·
-
import-export
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DevDogsUGA/DogDays#842 ·
Tutte le issue di DevDogsUGA/DogDays
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melgarafael/DeskcommCRM#3000 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
callstackincubator/simlock#639 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
aws/agentcore-cli#2606 ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 [BUG] - FeatureComparisonTable text-only cells are top-aligned while icon cells are centeredAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 7 giorni
-
ai-driven-qa bug Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno