Repository navigation
Sidebar 会话二级列表:常显箭头、数量标记、展开更多与跨画布定位 - #29
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.
改了什么
按 Designer 的 Sidebar 会话方案(
/workspace/studyboard-sidebar/SESSIONS.md,含「去掉行首红点」的修订)实现会话二级列表。根因:原展开箭头.workspace-disclosure是opacity:0,只有悬停才出现,用户找不到。Board/BoardSummary增加sessionCount,保存时写入;旧存档未知,加载后补上。ink3t(浅 #70695f / 深 #948d83)用于时间行小字。测试(Linux 盒子)
tsc --noEmit、tsc -p tsconfig.electron.json --noEmit通过vite build通过sidebar-sessions.spec.ts与调整后的sessions.spec.ts、drawer.spec.ts、electron.spec.ts选择器)SHOTS_DIR时,shots-round2.spec.ts(一次性设计截图脚本)4 个用例会失败:在 main 上同样失败(点卡被侧栏标题遮挡),与本 PR 无关,常规运行里它是 skipped。截图
/workspace/studyboard-sidebar/shots/sessions-{light,dark}-*.png:collapsed、collapsed-current、expanded、twelve-current、hover-focus、empty-loading、read-error、switching、empty-current(SHOTS_DIR=… npx playwright test sidebar-sessions生成)。与方案的差异
已知遗留 / 未验证
listSessions仍把「存成批注卡」产生的 note 算作会话(sessionCount也按 notes 总数),本 PR 未扩大范围。playwright.config.ts里盒子用的npx vite替代pnpm dev:web改动没有提交。