Show credits for each course and a running total out of 27
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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);
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 37
- Merge medio
- 14 h 30 min
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeChefVIT/ffcs
-
Service worker cache limiter evicts offline fallback pagePosiblemente ocupada @Rithish-2914 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
CodeChefVIT/ffcs#273 ·
Los mantenedores suelen responder en 1 día
-
Shared timetable pages use router.push during render to nonexistent /404 routePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
CodeChefVIT/ffcs#272 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CodeChefVIT/ffcs#261 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 48/100
CodeChefVIT/ffcs#292 ·
Los mantenedores suelen responder en 1 día
-
Edit a course from Your Courses with a pencil buttonPosiblemente ocupada @Aiden-Trindade la tomó hoy. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 43/100
CodeChefVIT/ffcs#291 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de CodeChefVIT/ffcs
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
caelestia-dots/caelestia#534 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bobadilla-tech/biasmarket.com#402 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
javvadivijayprasad/sel2pw#28 ·
-
Area: Infrastructure Chore Difficulty: Low Good First Issue Priority: Low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
DouglasNeuroInformatics/OpenDataCapture#1836 ·
Los mantenedores suelen responder en 1 día
-
Two wording fixes: the init PROVIDER comment and the confirm page's ledePosiblemente ocupada @kurtbruns la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día