workspace: disable archived worker console links

This commit is contained in:
2026-07-11 16:01:29 +09:00
parent d8412d022b
commit 30d15daddf
9 changed files with 184 additions and 35 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: 'Disable Console links for archived Workers'
state: 'inprogress'
state: 'done'
created_at: '2026-07-11T06:51:23Z'
updated_at: '2026-07-11T06:52:17Z'
updated_at: '2026-07-11T07:01:17Z'
assignee: null
queued_by: 'yoi ticket'
queued_at: '2026-07-11T06:52:17Z'
+29
View File
@@ -39,4 +39,33 @@ Ticket を `yoi ticket` が queued にしました。
State changed to `inprogress`.
---
<!-- event: implementation_report author: hare at: 2026-07-11T07:01:17Z -->
## Implementation report
Archived registry-only Workers no longer render as Console links.
- Added shared `canOpenWorkerConsole` helper that rejects `state: archived` and `implementation.kind: backend_worker_registry`.
- Sidebar renders archived Workers as disabled readonly rows instead of anchors.
- Workers page shows `Archived` instead of `Open Console` for archived Workers.
- Added unit coverage for live vs archived Console availability.
Validation:
- cd web/workspace && deno task check
- cd web/workspace && deno task test
- git diff --check
- nix build .#yoi --no-link
---
<!-- event: state_changed author: "yoi ticket" at: 2026-07-11T07:01:17Z from: inprogress to: done reason: cli_state field: state -->
## State changed
State changed to `done`.
---