Fix embedded courses showing up as invalid theory/lab entries

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start in src/components/cards/FacultySelector.tsx to trace how courses marked E are split, then read the relevant helpers in src/lib/utils.ts and mappings in src/lib/course_codes_map.ts. Add test coverage for BACHY105 and a few other new-syllabus courses, then check that timetables display and save without an extra lab entry or empty course code.

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

Descrizione

bug

Some of the new curriculum's embedded courses aren't being handled correctly.

In FacultySelector.tsx, courses marked E are treated as combined theory + lab courses. But courses like BACHY105 have a single entry (D1+TD1) rather than a separate lab slot. The current fallback can end up using the course code as a lab slot, and generateTT() may then produce an extra entry with an empty course code.

What needs to be done

  • Handle embedded courses separately from normal theory + lab pairs.
  • Don't create an extra lab entry when no separate lab exists.
  • Check that the resulting timetable displays and saves properly.
  • Cover a few actual new-syllabus courses in tests, including BACHY105.

Files: src/components/cards/FacultySelector.tsx, src/lib/utils.ts, src/lib/course_codes_map.ts.

Lingua principale
TypeScript
Stelle
7
Fork
39
Merge medio
4h 24m
PR unite (30g)
53

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 CodeChefVIT/ffcs

Tutte le issue di CodeChefVIT/ffcs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.