feat(webui): report which dashboard sections a process can serve
The same dashboard is served by the daemon, which holds every runtime handle, and by the UI process, which holds two remote contracts. A section with nothing behind it still answers -- an empty list, a "disabled" marker, a 501 -- and the browser cannot tell that from a deployment where nothing has happened yet. GET /api/capabilities says which sections this process can back, and the nav drops the rest rather than offering a page that is permanently empty. It fails open in both directions: an unreported section stays visible, and a failed read hides nothing, because an entry that silently vanished is worse than a page that explains itself. Mappings and bindings move the other way. Both are ratified State Store contracts carried by the client the UI process already holds, so leaving them nil degraded two pages that have an owner; compose wires them. A table test now enumerates every route whose capability is daemon-local and pins what it answers without one (requirement 4 of archie-core-8cda.5.4): task logs, the log feed and its stream, version and the update flow, channels and reload, curators, memory, skills, workflows and work requests. Adding a route with no owner now fails that test rather than the operator's browser.
This commit is contained in:
1 parent
6f34e34adb
commit
54862f9fe6
11 files changed
+371
-20
No files matched your search
@@ -83,6 +83,7 @@ export const api = {
|
||||
return res.json();
|
||||
},
|
||||
setup: () => req("/api/setup"),
|
||||
capabilities: () => req("/api/capabilities"),
|
||||
workflows: () => req("/api/workflows"),
|
||||
workRequest: async (request) => {
|
||||
const res = await fetch("/api/work-requests", {
|
||||
|
||||
Reference in new issue
Block a user