Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Start editing a course by clicking its class in a generated timetable

未关闭
#292 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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.tsx into 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
Example

One way to build it (just an idea):

  • onClick on the class block calls startEdit with 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeChefVIT/ffcs 的其他 Issue

查看 CodeChefVIT/ffcs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。