Repository navigation
feat(schedule): OKLCH 12 色课程色板、同课同色无碰撞分配与全端色彩统一 - #225
Merged
Merged
Conversation
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.
变更概览
解决同一门课在课表内因多条 EAMS 记录被分到不同颜色、首页「今日课程」未同步课程色、以及 7 色色板易撞色/与考试混色的问题:
courseColorKey):模拟电路(EE115A.02)与习题课模拟电路(EE115A.02D)同归code:EE115A),独立实验课(如EE115AL.01)按独立课号区分;无结构化课号的研究生课/自定义课按规范化课程名归并。CourseColor/CourseColorScheme):primary钴蓝 /orange琥珀 /secondary青绿 /tertiary紫罗兰 /green翠绿 /pink玫粉 /sky天蓝 /coral暖橘 /indigo靛蓝 /lime苔绿 /plum梅紫 /slate岩灰)+ 1 种考试独占警示红(error),完全保留原有 7 个枚举名向后兼容。assignCourseColors):course.color.accentColor,考试独占dangerRed(首页考试行补充「考试」红标)。验证
flutter analyze --no-pub:0 issuesdesign_system_guard_test.dart、custom_course_test.dart(含归并规则、12 门课零撞色、全色槽 WCAG 对比度回归测试)、primary_tabs_design_test.dart、desktop_bento_shell_test.dart、course_block_label_test.dart、schedule_first_week_test.dart、graduate_schedule_test.dart、schedule_empty_week_test.dart、schedule_fetch_coalescing_test.dart、design_system_widgets_test.dart全部通过pubspec.lock无变动