feat(web): global 清空回收站, browser data size and 查看引用 (29) - #174
Merged
Merged
Conversation
…ge-follow-ups-clean
- C22: 设置 › 存储空间 offers 清空回收站… for every channel after a second confirmation with the exact size; an unclear result is retried with the same request key. - C23: browser status shows each Bot's profile size; 存储空间 measures them on request, apart from the 服务电脑 total, and shows 「量不出」 rather than zero when a working computer cannot measure. - C24: 查看引用 › on a kept 回收站 file lists the referencing messages and tasks; a message opens in the conversation (reading older pages, bounded) and a task opens 任务详情. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge-follow-ups # Conflicts: # docs/design/desktop-ui-2026-10/IMPLEMENTATION.md # docs/design/desktop-ui-2026-10/IMPLEMENTATION.zh-CN.md
Reading the older page took longer on hosted CI (1.4 s run), so the fixed delay checked focus too early. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
Step 29: the UI for C22, C23 and C24, the fixes recorded in the storage follow-up research.
The backend landed in #175. This PR is the UI only.
trash.sizeBytes − referencedSizeBytes, and says how many referenced files will stay.POST /api/v1/storage/trash/cleanupwith a freshrequestKey. An unclear result keeps the confirmation open with 重试 and the same key, so the 服务电脑 replays its saved result.profileBytesisnull.agent-computercontribution is deployed, real working computers report 「量不出」. That is honest, and it is said so in the docs.Acceptance journey
npm run design:preview -w @openbot/web, then?scene=dialog-trash: under 渠道数据-8月.xlsx, 查看引用 › lists 你, 研究助理 and 系统消息.?scene=settings§ion=storage:Open-source research
Verification
npm run checksequence passes on this branch (FULL_CHECK_OK). Web: 651 tests pass with--maxWorkers=2, as on CI.AttachmentsManager: the reference list with author labels; message and task choices.ChannelWorkspace: jumping reads an older page and focuses the message; another channel's request is ignored. The test waits for the result rather than a fixed 50 ms, which was too short on hosted CI.channel-attachment-client: the references route; 410 purged.SettingsStorage: global cleanup with the same key on retry and the exact size; browser data measured only on request, with unknown not shown as zero.SettingsBrowser: profile size in the status line.Security impact
The UI calls only the Owner-only C22–C24 routes. Global cleanup runs only after an explicit second confirmation, and the 服务电脑 keeps referenced files and audits each deletion. Browser status is read only when the Owner presses 测量.
Documentation and compatibility
AI or automation assistance
Implemented with Claude Code (Claude Opus 5.5) under the repository owner's direction, against the owner's approved design canvas.
🤖 Generated with Claude Code