Break up FacultySelector and ViewTimeTable into smaller modules
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 内容生成。
描述
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.tsxinto 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 分钟
- 30 天内合并 PR
- 53
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 于 30 天前认领,目前没有进行中的 PR。 未关闭
难度 5/5 一周以上 新手友好度 43/100
CodeChefVIT/ffcs#291 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Put the selection box and Your Courses side by side and restyle them可能已有人在做 @Aiden-Trindade 于 30 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
CodeChefVIT/ffcs#290 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
CodeChefVIT/ffcs#289 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
-
review-followup
难度 2/5 1-3 小时 新手友好度 68/100
griffinwork40/agent-afk#5387 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
CodeManufactoryLLC/Code60#358 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
android:plan ios:plan main:plan packages:learn
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复