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

[Map of Classes] Sort day meetings and list unmapped entries

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with src/lib/domain/section.ts to see how a meeting's time and building fields are shaped, then check whether src/lib/map/meetings.ts exists yet, since the issue says to extend the file from #804, which should land first. Implement prepareDay(items) so timed rows with finite lat/lon go to mapped in HH:mm order, and untimed or unlocated rows go to fallback in class order. Done means the cases in src/lib/map/meetings.test.ts pass with pnpm test -- src/lib/map/meetings.test.ts, and pnpm lint and pnpm typecheck are clean.

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

Descrizione

map

What to build

Put a day’s classes in time order and separate classes that cannot be placed on the map. Missing locations and unknown times must remain visible in a text list rather than disappearing.

Files

  • src/lib/map/meetings.ts (extend the prerequisite’s file)
  • Starting example: src/lib/domain/section.ts
    Code to add or extend: prepareDay(items): {mapped:MapMeeting[];fallback:MapMeeting[]}.

Steps

  1. Sort timed rows by parsed HH:mm start time, untimed rows last.
  2. Put finite lat/lon timed rows in mapped; missing coordinate or untimed rows in fallback.
  3. Keep timed remote/missing-building rows in fallback with their time, not silently dropped.

Example

Valid coordinate timed class → mapped; null lat or TBA → fallback; rows stay in class order.

Check it works

In src/lib/map/meetings.test.ts, check the example above and the failure or limit described in the steps. Run pnpm test -- src/lib/map/meetings.test.ts, pnpm lint and pnpm typecheck.

Before starting

  • #804 — Group plan meetings by weekday

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.