Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Filter timetables by a class time range and rank by fewest lab days

Abierto
#289 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
43/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start with evaluateFilters in src/lib/filterUtils.ts and inspect how timetable slots are represented, especially lab slots and grouped timetables. The issue leaves lab behavior for Mixed theory time open, so clarify that before implementing the ranking and filtering changes. Done means the requested ranking, opposite-shift lab filtering, and existing building and faculty filters work together; check ViewTimeTable.tsx for the affected timetable flow.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.

The Morning, Evening and Mixed filters only look at theory slots (evaluateFilters in src/lib/filterUtils.ts skips lab slots), so a student can't keep their whole day, labs included, inside the hours they want. There is also no way to prefer timetables with labs on fewer days.

Describe the solution you'd like
  • Class time range: two handles snap to the times classes start and end. Timetables with any theory or lab class outside the range are removed. The full day means off.
  • Fewest lab days ranks timetables, best first, and never removes one.
  • Theory time (Morning, Evening, Mixed), Same building and the faculty filter keep working as they do today.
  • Generation is not changed; the options work on the generated timetables.
Additional context

The popover and the tags that show these options are in the UI issue (#288).

Related: #263 (same-building filtering), closed.

ViewTimeTable.tsx and filterUtils.ts are changing in other work:

  • #266 (open): splits ViewTimeTable.tsx into smaller modules.
  • #283 (open PR): changes timetable state in ViewTimeTable.tsx.
  • #262 (open): changes the saved-timetable local storage syncing in the same file.
  • #267 (merged): groups timetables with the same slot layout, so the ranking has to order the grouped timetables.
Design
Example

One way to build it (just an idea):

  • Look up each slot's start and end time from the timetable grid and drop timetables with a class outside the range.
  • Give each timetable a lab-day count and sort by it.
const shown = timetables.filter(tt => tt.start >= from && tt.end <= to);
Lenguaje dominante
TypeScript
Estrellas
6
Forks
37
Merge medio
11 h 13 min
PR fusionados (30 d)
55

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CodeChefVIT/ffcs

Todos los issues de CodeChefVIT/ffcs

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.