Start editing a course by clicking its class in a generated timetable
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
Start by reading ViewTimeTable.tsx and the existing pencil edit flow referenced in #291; check the open changes in #266 and #283 before editing. Trace how timetable blocks expose course and lab codes, including grouped timetables from #267. Done when clicking a class starts editing the matching course, scrolls to the selection box, and saving regenerates the timetable while preserving filters and returning to timetable 1.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
After generating, a student who wants to change a course has to scroll up and find it in Your Courses.
Describe the solution you'd like
- Clicking a class in a generated timetable starts the same edit as the pencil (#291) for that course.
- The page scrolls up to the selection box.
- Save changes then works as in #291: it regenerates, keeps the filters and goes back to timetable 1.
Additional context
Depends on #291.
A timetable block only knows its course code, so lab blocks have to be matched on the lab code (courseCodeLab) too.
Related: #193 asks for clicking the grid on the Slot View page to pick slots. This issue is about generated timetables on the main page, so the two don't overlap.
ViewTimeTable.tsx is changing in other work, so expect merge conflicts:
- #266 (open): splits
ViewTimeTable.tsxinto smaller modules. - #283 (open PR): changes timetable state in
ViewTimeTable.tsx. - #267 (merged): groups timetables with the same slot layout. A click should still open the right course.
Design
- Same edit mode as
Quick modify, pencil pressed(node2558:1338) - Link: https://www.figma.com/design/uCP8B7drfprKgsHYjB8sYs?node-id=2558-1338
Example
One way to build it (just an idea):
onClickon the class block callsstartEditwith the course's id- Then scroll to the selection box
onClick={() => {
startEdit(courseId);
document.getElementById('start')?.scrollIntoView({ behavior: 'smooth' });
}}
- 主要语言
- TypeScript
- 星标
- 6
- 派生
- 37
- 平均合并
- 11 小时 13 分钟
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeChefVIT/ffcs 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
CodeChefVIT/ffcs#295 ·
维护者通常 1 天内回复
-
Edit a course from Your Courses with a pencil button可能已有人在做 @Aiden-Trindade 于 2 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 43/100
CodeChefVIT/ffcs#291 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Put the selection box and Your Courses side by side and restyle them可能已有人在做 @Aiden-Trindade 于 2 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
CodeChefVIT/ffcs#290 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
CodeChefVIT/ffcs#289 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
CodeChefVIT/ffcs#288 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 86/100
awslabs/visual-asset-management-system#937 ·
维护者通常 1 天内回复
-
t0ggles
难度 1/5 1 小时以内 新手友好度 82/100
nolimits4web/swiper#8255 · 1 条评论 ·
维护者通常 15 天内回复
-
render: --variables-file (and --variables <path>) fails with "io.readFile is not a function" since 0.8.212可能已有人在做 @miguel-heygen 今天认领。 未关闭bug triage/needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
heygen-com/hyperframes#6830 ·
维护者通常 1 天内回复
-
bug launch local use
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
account: profile bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 5 天内回复