- ui-service-boundary.md: the /api/captures|/mappings|/bindings row is resolved by the cutover; archie-ui composes the store contracts and mounts the captureintake receiver. - event-capture-storage.md HTTP surface: the receiver mounts on the one process serving the dashboard; work intake stays with the daemon. - config.example.toml: [web].listen is the archie-ui process's bind address; [capture] is projected by archie-ui. - deployments: document running archie-ui alongside the other services and add its systemd unit; capabilities comments updated for the single-serving composition.
19 lines
1020 B
React
19 lines
1020 B
React
// Which dashboard sections the serving process can actually back.
|
|
//
|
|
// From the UI cutover the dashboard is served by one composition: the
|
|
// extracted UI service, which holds two remote contracts (Gateway ChatContract
|
|
// and the State Store) and no daemon runtime handles. A section with nothing
|
|
// behind it still answers -- an empty list, a "disabled" marker, a 501 -- and
|
|
// the browser cannot tell that from a quiet deployment. GET /api/capabilities
|
|
// says which sections are backed here, and the nav drops the rest
|
|
// (archie-core-8cda.5.4).
|
|
|
|
// hiddenRoutes returns the paths whose section the server reported it cannot
|
|
// serve. An unreported section stays visible: a page that says "unavailable"
|
|
// is recoverable, a navigation entry that silently vanished is not, so an
|
|
// older server or a failed capabilities read shows everything.
|
|
export function hiddenRoutes(sections, routes) {
|
|
if (!sections) return [];
|
|
return routes.filter((r) => r.section && sections[r.section] === false).map((r) => r.path);
|
|
}
|