Fix embedded courses showing up as invalid theory/lab entries

オープン
#256 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
7
フォーク
39
平均マージ
4時間 24分
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeChefVIT/ffcs のほかの issue

CodeChefVIT/ffcs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。