Show credits for each course and a running total out of 27
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Start with src/lib/course_codes_map.ts and the course rendering and timetable entry points CourseCard.tsx, FacultySelector.tsx and ViewTimeTable.tsx; first review the related issues #290, #287 and #291, which this feature depends on. Check the course code list against the VIT catalogue, then trace how selected courses and the All Subjects Mode OFF results are assembled. Done means course credits, previews and totals match the described rules, including unknown credits and courses left out.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Scroll down for design
Is your feature request related to a problem? Please describe.
A student can take at most 27 credits, but the site never shows credits. The course data (src/data/*) and saved courses (fullCourseData) don't have them, so students add them up by hand.
Describe the solution you'd like
- Each course row in Your Courses shows its credits under its slots, e.g. "4 credits". An L + P pair adds both, and an E course counts once.
- Your Courses shows the total beside the title, e.g. "8 / 27 credits", starting at "0 / 27".
- Once a subject is picked, the Subject field shows what it adds, e.g. "+3 credits → 11 / 27". While editing (#291) it shows the change, e.g. "No change".
- Over 27, the total and the preview turn red, but adding is still allowed.
- With All Subjects Mode OFF, a timetable that leaves a course out shows its own total, e.g. "5 / 27 credits (1 course left out)".
- Courses with unknown credits show "-", and the total shows "8+ / 27".
- Credits come from a course code list checked against the VIT catalogue, not worked out from slots.
Additional context
Depends on #290 (course list layout), #287 (Subject dropdown) and #291 (edit mode).
Related: #288 (filter tags row), #258 (All Subjects Mode OFF results), #256 (E courses).
CourseCard.tsx, FacultySelector.tsx and ViewTimeTable.tsx are changed by other open issues, so expect merge conflicts.
Design
- Figma section:
fac selection changes, credits(node2609:1697) on the page "FFCS revamp" - Link: https://www.figma.com/design/uCP8B7drfprKgsHYjB8sYs?node-id=2609-1697
Example
One way to build it (just an idea):
- Add a
course_credits_mapandCREDIT_LIMITnext tocourse_type_mapinsrc/lib/course_codes_map.ts - Add a
getCourseCredits(course)helper and use it inCourseCard.tsx,FacultySelector.tsxandViewTimeTable.tsx
export const CREDIT_LIMIT = 27;
const total = selectedCourses.reduce((sum, c) => sum + (getCourseCredits(c) ?? 0), 0);
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 37
- Merge medio
- 14h 30m
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 CodeChefVIT/ffcs
-
Service worker cache limiter evicts offline fallback pageForse già presa @Rithish-2914 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
CodeChefVIT/ffcs#273 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
CodeChefVIT/ffcs#272 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CodeChefVIT/ffcs#261 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 48/100
CodeChefVIT/ffcs#292 ·
I maintainer di solito rispondono entro 1 giorno
-
Edit a course from Your Courses with a pencil buttonForse già presa @Aiden-Trindade l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 43/100
CodeChefVIT/ffcs#291 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CodeChefVIT/ffcs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
vekexasia/pi-extensible-workflows#374 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
help wanted linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
GiuseppeBellamacina/downtime#19 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
scaleway/ultraviolet#7089 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Get-Concord-AI/concord-mcp#296 ·
I maintainer di solito rispondono entro 1 giorno