docs(progress): record the window control and form simplification work
Note the two findings worth carrying forward: a missing capability has now surfaced as a silent no-op twice, and three profile fields were collected for a path that never read them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
这个提交存在于:
父节点
79dbb40a25
当前提交
06316a3240
共有 2 个文件被更改,包括 56 次插入 和 0 次删除
|
|
@ -36,6 +36,14 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|||
|
||||
### Changed
|
||||
|
||||
- Adding a connection now asks for four things — server address, adapter id, API key, and slot —
|
||||
with the rest behind a collapsed advanced section. The SSE URL and certificate fingerprint fields
|
||||
were removed because nothing reads them, and the role field was removed because it follows the
|
||||
chosen slot. The display name is derived from the identity and host unless set explicitly, and the
|
||||
insecure-HTTP approval appears only for an `http://` address, where it is required.
|
||||
- Choosing a slot in the connection form now assigns the slot and points startup auto-connect at it,
|
||||
replacing a separate slot card interaction and a separate dropdown that could disagree.
|
||||
- The API key is enrolled as part of saving a new connection instead of as a second step.
|
||||
- Synchronized the 13-item roadmap status with the actual P02 implementation state.
|
||||
- Documented external prerequisites for HTTPS certificate pinning, signed updates, and dual-server soak testing.
|
||||
|
||||
|
|
|
|||
|
|
@ -650,3 +650,51 @@ Rust 107 passed / 2 ignored. Frontend 24 passed / 5 files. Playwright 5 passed.
|
|||
|
||||
Next: capture the frames, then batch R3.6 (message identity, pulling F-34 forward) and R3.7
|
||||
(attachment chain, pulling F-33 forward).
|
||||
|
||||
## 2026-07-27: window controls and connection form
|
||||
|
||||
### Window controls (P0)
|
||||
|
||||
The minimize, maximize and close buttons did nothing. The handlers were correct; the ACL rejected
|
||||
them. `core:default` resolves to `core:window:default`, which grants only read-only queries —
|
||||
`allow-is-maximized` is in it, which is why the maximize icon tracked state, but `allow-minimize`,
|
||||
`allow-toggle-maximize`, `allow-close` and `allow-start-dragging` are not. Both windows are
|
||||
`decorations: false`, so with close denied the main window could not be closed except through the
|
||||
tray.
|
||||
|
||||
Added `main-window-controls` and `pet-window-drag` capabilities rather than widening the shared one,
|
||||
so the pet gains dragging alone. Routed the calls through a helper that reports failures in the
|
||||
shell error banner; they were bare `void` expressions, which is why the rejection was
|
||||
indistinguishable from an unwired button.
|
||||
|
||||
This is the second time a missing capability surfaced as a silent no-op, after the pet window
|
||||
(F-03). `src-tauri/tests/capabilities.rs` now reads the shipped capability files and asserts each
|
||||
permission the UI calls is granted to the window that calls it.
|
||||
|
||||
### Connection form
|
||||
|
||||
Adding a connection asked for eleven fields. Three reached nothing: the SSE URL has no consumer in
|
||||
`networking/`, the certificate fingerprint is stored but TLS pinning is unimplemented, and the role
|
||||
only chose a word in the profile list. The form is now server address, adapter id, API key and slot,
|
||||
with the rest behind a collapsed advanced section.
|
||||
|
||||
The adapter id is the remote username, previously entered twice — once in the profile form, once in
|
||||
the credential card. Display name, role, and the insecure-HTTP approval are now derived rather than
|
||||
asked for; the approval appears only for an `http://` address and is required there, since
|
||||
`normalize_url` rejects such an address without it.
|
||||
|
||||
Choosing a slot assigns the slot and points auto-connect at it, replacing two controls that could
|
||||
disagree. The API key is enrolled in the same submit; both follow-up steps need the profile to
|
||||
exist, so they report their own failures rather than failing the save.
|
||||
|
||||
`ProfileManager.tsx` was normalized to LF in a separate commit first. It held 603 CRLF and 85 LF
|
||||
lines against an `.editorconfig` that pins LF, which is why the fix queue carried a standing warning
|
||||
about editing it.
|
||||
|
||||
### Test status
|
||||
|
||||
Rust 112 passed / 2 ignored. Frontend 29 passed / 6 files. Playwright 5 passed. Build passes.
|
||||
|
||||
Verified in a browser against the real stylesheet rather than by inspection: four visible fields
|
||||
plus a collapsed advanced section, the insecure checkbox appearing only for `http://` and carrying
|
||||
`required`, and the display name resolving to identity@host.
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用