Filter timetables by a class time range and rank by fewest lab days
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 43/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.tsxinto 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
- Figma frame:
Timetable filters(node2560:1371), which shows the popover with these options. - Link: https://www.figma.com/design/uCP8B7drfprKgsHYjB8sYs?node-id=2560-1371
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);
- 主要言語
- TypeScript
- スター
- 6
- フォーク
- 37
- 平均マージ
- 11時間 13分
- マージ済み PR(30日)
- 55
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeChefVIT/ffcs のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
CodeChefVIT/ffcs#295 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 48/100
CodeChefVIT/ffcs#292 ·
メンテナーはふだん 1 日以内に返信
-
Edit a course from Your Courses with a pencil button対応中かも @Aiden-Trindade が 5 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 43/100
CodeChefVIT/ffcs#291 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Put the selection box and Your Courses side by side and restyle them対応中かも @Aiden-Trindade が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
CodeChefVIT/ffcs#290 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
CodeChefVIT/ffcs#288 ·
メンテナーはふだん 1 日以内に返信
CodeChefVIT/ffcs の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
remotion-dev/remotion#12905 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
supermomonga/paseo-plugin-zcode-provider#83 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
oxidecomputer/skepsis#102 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
voidzero-dev/void#677 ·
メンテナーはふだん 1 日以内に返信