Break up FacultySelector and ViewTimeTable into smaller modules

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

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

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

評価

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

調査の方向性

Start by reading src/components/cards/FacultySelector.tsx and src/components/cards/ViewTimeTable.tsx to trace their UI, state changes, and business logic. Then identify course and slot generation, faculty selection, filter, and save/share logic that can be extracted, along with repeated UI sections. Done means the pages behave as before and tests cover the extracted logic.

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

説明

enhancement

FacultySelector.tsx and ViewTimeTable.tsx are each close to 1,000 lines. Both mix UI, state changes and business logic, which makes even small changes harder to review.

Would be good to refactor them without changing how the pages work.

Suggested direction

  • Move course/slot generation helpers out of FacultySelector.tsx into testable utilities.
  • Extract faculty selection state and handlers into a hook where it makes sense.
  • Move filter and save/share logic out of ViewTimeTable.tsx.
  • Break repeated UI sections into smaller components.
  • Keep the existing behavior and add tests around the extracted logic.

Files: src/components/cards/FacultySelector.tsx, src/components/cards/ViewTimeTable.tsx.

No need to split everything into tiny components — the goal is to make the code easier to follow and maintain.

主要言語
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 を短くまとめたダイジェスト。