Open
Conversation
- Added CustomClass and CustomClassTimeRange models for handling custom classes and their time ranges. - Introduced CustomClassController to manage the lifecycle of custom classes, including adding, editing, and deleting classes and their time ranges. - Updated ClassTableWidgetState to integrate custom class data and provide methods for managing custom classes. - Enhanced ClassCard to support displaying and interacting with custom classes. - Created CustomClassDetailCard for detailed view and actions on custom classes. - Implemented DateSelectorFree for selecting date ranges and time slots for classes. - Updated class organization logic to include custom classes in the timetable. - Refactored existing code to accommodate new custom class features and ensure smooth integration with the existing class table functionality.
…on desktop platform
BenderBlog
reviewed
Apr 18, 2026
Owner
BenderBlog
left a comment
There was a problem hiding this comment.
我接下来一周会忙其他的事情,所以您先慢慢改。现在没有发版本压力,所以不着急。
Owner
There was a problem hiding this comment.
如果还没做,这样做:将原先的自定义课程代码删除,课程区间转换为时间保存到您写的新结构体。不要写迁移代码。
Collaborator
Author
Owner
There was a problem hiding this comment.
不要写迁移代码的意思是,我们不管之前用户自定义课程的数据了。考虑到该功能使用人数很少,他们自己重新输入吧。之前的导入方式很不好,因为涉及两类数据合流,而且有 index 这个不确定因素(这个是我按照数据库外键设计的),最开始时候容易修改时候崩溃。现在未知,因为我程序没有测试代码。
Collaborator
Author
There was a problem hiding this comment.
您的意思是,直接移除原来的自定义课程的数据流,全部使用新的数据流?同时不进行数据迁移?
如果是这样,我还要不要保留原有得通过周索引来添加课程的方式?
Collaborator
Author
There was a problem hiding this comment.
时间对照表目前是以数组的形式硬编码的,我直接使用就可以。
只是确认一下您的描述,我这段时间期中也稍微有点忙,下周我会开始工作。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

新增自定义课程类支持,包含对应的数据模型、控制器与界面集成;为所有支持的语言添加了月份翻译,并完善课程表相关的本地化文案;同时包含若干代码优化与问题修复(例如,使用散列空间更大的通知ID生成器)。
Closes: #116