Show credits for each course and a running total out of 27
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react, typescript
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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);
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 37
- Ø Merge
- 11 Std. 13 Min.
- Gemergte PRs (30 T.)
- 55
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CodeChefVIT/ffcs
-
Schwierigkeit 4/5 1-2 Tage Anfängerfreundlichkeit 48/100
CodeChefVIT/ffcs#292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Edit a course from Your Courses with a pencil buttonEvtl. vergeben @Aiden-Trindade hat das vor 1 Tag übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 43/100
CodeChefVIT/ffcs#291 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Put the selection box and Your Courses side by side and restyle themEvtl. vergeben @Aiden-Trindade hat das vor 1 Tag übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
CodeChefVIT/ffcs#290 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Filter timetables by a class time range and rank by fewest lab daysEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 43/100
CodeChefVIT/ffcs#289 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Replace the timetable filter pills with one Filters button and popoverEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
CodeChefVIT/ffcs#288 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in CodeChefVIT/ffcs
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:web p3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Lets-Parley/Parley#912 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
wealthfolio/wealthfolio#2376 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
be-BOP-io-SA/be-BOP#2817 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
documentation good first issue
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
sno-ai/sno-station#149 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag