feat(ui): 重构为现代 Agent 工作台(三栏 + 深浅双主题 + i18n)#3
Merged
Conversation
- 全 app 重做视觉:cyanotype 设计系统、三栏 shell(侧栏 / 事件流 / 产物面板)、四视图(首页 / 新建任务 / 运行 / 设置) - i18n:中 / 英整页切换(零混排);自托管字体 Space Grotesk + IBM Plex Mono(离线打包,不依赖 CDN) - 运行状态上移到 useRun 控制器(App 持有,RunView 转纯展示):修复启动崩溃循环、追加指令清空对话、离开再回重复执行、运行指示灯错位 - 产物面板按 skill 路由:reader 双语 / reviewer 三栏 / citation 列表 / polishing 原稿对照;图片 cache-bust;读取失败显式提示 - 放开 fs / asset 能力域到所选工作目录;恢复 engineError 补救文案、首启自举失败横幅、退出码、命令失败态 - 修 BibTeX 嵌套花括号解析截断;抽取共享 lib(路径工具 / 选择器);清理无用文件(App.css、ArtifactPreview)
- 把已合入 main 的图表微调(ChartEditor + Rust renderer,PR #1)接回新三栏 UI: figure 任务头加「图表微调」入口;useRun 在 figure 成功后载入 workdir 的 plot_spec/plot_data (无则 demo 兜底);App 加全屏 ChartEditor 视图;ChartEditor 样式按 cyanotype 主题重写(.ce-*) - CI 完善:拆成并行两 job —— 前端(tsc --noEmit + build,ubuntu)、Rust(fmt --check + clippy -D warnings + 单测,macOS);新增 clippy/fmt 门禁 - 为过门禁:cargo fmt 全量格式化 src-tauri + 修 skills.rs 文档注释(doc_lazy_continuation)
8773081 to
6e6c35d
Compare
main 分支保护要求名为 test 的必需 check;前述把单 job 拆成 frontend/rust 两个新名后该 check 不再产生 → PR 永久 BLOCKED。新增聚合 job test(needs: [frontend, rust]),两者全绿才绿。
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.
概述
把 nature-app 前端整体重构为参考 codex-app / antigravity / Linear 的现代 Agent 工作台,并补齐 i18n 与本地审查发现的修复。
主要改动
useRun控制器(App 持有,RunView 转纯展示),根治启动崩溃循环、追加指令清空对话、离开再回重复执行、运行指示灯错位。验证
tsc --noEmit与vite build均通过;按约定未走浏览器预览,真实效果以pnpm tauri dev为准。🤖 Generated with Claude Code