feat(usable): integrate current dbtool implementation snapshot
Some checks failed
release-smoke / macos-13 / x86_64-apple-darwin (push) Has been cancelled
release-smoke / ubuntu-latest / x86_64-unknown-linux-gnu (push) Has been cancelled
release-smoke / windows-latest / x86_64-pc-windows-msvc (push) Has been cancelled

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Paperclip CTO
2026-04-02 08:26:18 +00:00
parent a28dab4cd9
commit d5f69462b0
73 changed files with 5895 additions and 322 deletions

View File

@@ -0,0 +1,27 @@
# CMP-68 TUI Connection Workflow Frontend Plan
- 日期2026-04-02
- 负责人Senior Frontend Engineer
## Goal
`apps/tui` 内把 demo-only 连接列表升级为可长期使用的连接管理工作流,覆盖保存 profile、会话 secret、测试连接、保存并激活以及删除/编辑后的界面反馈。
## Scope
1. 从 shared profile store 加载并 seed 默认 profile
2.`Connections` 视图提供键盘可走通的新增 / 编辑 / 删除 / 测试 / 激活流程
3. 保持 query / inspect / export 仍通过 `db-app` 共享入口执行
4. 更新 TUI 运行、验收与 QA 文档
## UX Decisions
- 继续保留当前六区工作台,不另起新页面
- 连接列表放在左侧,分步式表单放在中间 `Query Editor` 区,右侧继续承载摘要、状态和恢复提示
- `n` / `e` / `d` 进入连接管理动作,`i` 编辑当前字段,`t` 测试连接,`s` 保存并激活,`Esc` 取消当前连接管理动作
- 不持久化明文密码;表单里的密码只进入 session secret
## Validation
- `cargo test -p dbtool-tui`
- 手动或 smoke 复核:新增 SQLite / PostgreSQL / MySQL profile测试、保存、激活、删除路径都有明确反馈