Repository navigation
feat: 实现课程抽屉与开放关系台 - #15
Merged
taekchef merged 5 commits intoJul 17, 2026
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.
目标
实现两层课程工作方式:沉浸学习中的临时课程抽屉,以及低频进入、专门管理“资料 ↔ 笔记”长期关系的开放关系台。
已完成
Course与CourseItemMembership,支持一份资料或笔记属于多门课程;旧工作区不会被自动伪造成一门课程。292pt覆盖式形态,不挤压、不重建稳定 DOC / CHAT / NOTES;恢复原版WeiBeiMotion.layout + WeiBeiTransition.sidePanel开合手感。未做
main、不打版本标签。共享文件占用
Sources/WeiBei/Stores/WorkspaceStore.swift:课程实体、归属、导入、打开动作和持久化。Sources/WeiBei/Views/ContentView.swift:在稳定面板树上方挂载临时课程抽屉,恢复原版开合动画,并保证遮罩不吞掉三栏拖拽。Sources/WeiBei/Views/CourseWorkspaceView.swift:关系台入口、信息架构与路由。Sources/WeiBeiSelfCheck/main.swift:旧数据兼容、多课程归属、抽屉动画与层级、点击连线、缩放回位和关系带结构自检。实现与验证条件均已满足;共享文件等待整合任务审查后释放,本功能分支不会自行合并。
验证
swift build --disable-sandbox:通过。swift run --disable-sandbox WeiBeiSelfCheck:通过,输出WeiBei self-check passed。result = pass。continuityPassed = true;资料跳转、笔记跳转和重启后持久化全部通过。course-material-c → course-note-c一条关系。292pt。1240 × 760候选窗口保持课程抽屉打开,直接拖动底下分隔线,文稿/对话宽度实时变化且抽屉不被关闭。已知现象
AttributeGraph cycle detected警告;未影响本次构建、自检、流程报告或画中画验收,本任务未扩范围处理。