Repository navigation
feat(desktop): reconstruct UI visual texture, tokens, shell, worklog, and composer - #1983
Merged
Merged
Conversation
…exture # Conflicts: # desktop/src/components/layout/Sidebar.tsx
PR quality triageChanged areas: area:desktop, area:docs CLI core policy: No CLI-core policy block detected. Missing-test policy: No missing-test policy block detected. Coverage baseline policy: No coverage-baseline policy block detected. CLI core files:
Coverage policy files:
Required check plan:
Test coverage signals:
Risk notes:
Hard merge gates come from the deterministic GitHub Actions contract lanes above. |
mojie126
added a commit
to mojie126/cc-haha
that referenced
this pull request
Nov 23, 2026
…Coder#1982 与问询卡 Markdown、引导折叠与 Windows 路径修复 - 移植上游 NanmiCoder#1982 索引监听过滤、子代理增量投影与重试、查询中止信号、子代理页终态停止轮询 - 移植上游 NanmiCoder#1981 侧边栏会话菜单锚点定位与 portal,聊天滚动不再关闭侧边栏菜单 - 移植上游 NanmiCoder#1977 Grok 官方上下文窗口解析、目录按账号隔离与按模型覆盖 - 移植上游 NanmiCoder#1980 移动端屏幕常亮、后台暂停心跳与重连、前台提示宽限重算 - 摘取上游 NanmiCoder#1983 的 Kbd 组件、权限卡与计划卡快捷键、计划反馈提交修订与长计划折叠 - 问询卡的问题、选项与说明改用 Markdown 渲染,卡片内链接不连带选中所在选项 - 后台唤醒段只有回执时折叠,真正执行了工具的唤醒段保持展开,避免用户引导后的收尾结论被隐藏 - 输入框项目与分支胶囊去掉 leading-none,被截断文字的伸部笔画不再被溢出裁掉 - 桌面跨平台路径断言按斜杠归一化,主题与调色板守卫在 Windows 可运行,补齐 missing 的持久化迁移断言
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.
Summary
Reconstructs the desktop UI visual system and surface craftsmanship across tokens, primitives, Electron window chrome, app shell, sidebar, conversation stream, composer, and secondary settings/product surfaces:
desktop/src/theme/globals.css,systemAppearance.ts,index.html):whiteto crisp Cold Porcelain (#FCFCFCcanvas /#FFFFFFcard /#1D4ED8cobalt accent) and default darkneutral-darkto true black OLED (#000000canvas /#111111card /#346BF1cobalt accent), preserving all legacy palettes (paper,warm-classic,celadon,dark,ink-blue) and full WCAG contrast gates.color-mix()):.surface-grain,@layer components.control-bevel/.control-bevel-cta(1px light bottom bevel / dark top specular rim + press feedback), layered frosted glass (0.82–0.86+@supportsopaque fallback),.topbar-scroll-fade,.scroll-edge-fade,.scrollbar-autohide, and stepped low-GPU keyframes.desktop/src/components/ui/**):Button,IconButton,Input,TextArea,SelectField,SearchField,Switch,Checkbox,SegmentedControl,Dropdown,Tooltip,Modal,ActionDialog,ConfirmDialog,Card,Badge, andSkeletonwith tactile bevels, frosted popovers, andtabular-nums.Kbd/KbdGroupandScrollAreaprimitives, indexed indesktop/src/components/AGENTS.mdandComponentGallery.tsx.desktop/electron/**,desktop/src/components/layout/**,desktop/src/components/workbench/**):x = 16,y = Math.round((52 * zoomFactor) / 2 - 7)) across zoom levels and syncs pre-paint#FCFCFC/#000000backgrounds.<main>as a floating inset canvas (SidebarInset) over the grained sidebar frame, simplifiesTabBarto a borderless capsule strip, movesWorkspaceTabStripinsideWorkspaceSurface, streamlines layout toggles, and upgrades sidebar session items withSidebarSessionCard, top navigation (Scheduled Tasks / Phone / Connectors), and<ScrollArea autohide>.desktop/src/components/chat/**,desktop/src/components/controls/**,desktop/src/pages/EmptySession.tsx):WorkLogrows while keeping elevated cards for Plan, ChangedFiles, CodeViewer, and Permission/Question approvals (fixingExitPlanModePermissionDialogCmd/Ctrl+Enterfeedback handling and platform-aware shortcut keycaps).ChatInputandEmptySessionto a floating.composer-glasscard with a clean under-card context strip, docked effort + permissions shortcut insideModelSelector, and centered Draft Hero layout.desktop/src/pages/Settings.tsx,pages/settings/**,market/,connectors/,tasks/,agentTeams/,features/tokenUsage/):/shortcut guarded against nested dialogs), grouped elevatedSettingsGroupcards, and unified surface polish across Extensions, Scheduled Tasks, Agent Teams, and Token Usage.Feature Quality Contract
Kbd.test.tsx,ScrollArea.test.tsx,SidebarSessionCard.test.tsxdesktop/src/theme/*.test.ts,desktop/electron/services/windows.test.ts,nativeAppearance.test.ts,desktop/src/components/ui/*.test.tsx,layout/*.test.tsx,chat/*.test.tsx,controls/*.test.tsx,pages/*.test.tsx, andsettings/*.test.tsxbun run check:desktoppassed (691/691 Vitest test files,eslint,tsc --noEmit,tsc -b,vite build,build:h5-mobile) on mergedHEADc160da6ff(baseorigin/main2cfc4dd21)bun run check:desktop-ui-smoke: PASSED (desktop-ui-smoke16.1s +desktop-ui-replay8.5s) against deterministic mock CLI/replay; live model checks not run (no provider quota used)bun run check:persistence-upgrade: PASSED (48/48 migration tests)MAC_TARGETS=dmg bash ./desktop/scripts/build-macos-arm64.sh) andpackage-smokepassed; visual inspection completed across Light (white) and OLED Dark (neutral-dark)git revert -m 1on the merge commit.Verification
bun run check:impact(check:desktop,check:persistence-upgrade,check:desktop-ui-smoke, pluspackage-smokevia macOS arm64 DMG build); remaining cross-surface lanes run in GitHub Actions PR CI.check:desktop691/691 files,check:persistence-upgrade48/48,check:desktop-ui-smokepassed).check:desktop-ui-smoke); live-model checks explicitly not run.Risk
src/untouched; desktop/electron only).