(plan) convert original implement plan to mock api

This commit is contained in:
Story Crater Bot
2026-08-19 09:47:14 -07:00
parent c42040319f
commit 0aef2281bc
65 changed files with 307 additions and 627 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
# 2.4 — GET /api/topology (GREEN)
# 2.4 — GET /api/topology (mock, GREEN)
Phase: 2 — Topology (Surface B)
Stage: GREEN
Depends on: [1.7](1.7-dto-allowlist.md)
- [x] `GET /api/topology` — nodes, namespaces, models; envelope `{"data": {}, "meta": {"snapshotAge", "generation", "truncated"}}`
- [ ] `GET /api/topology` — nodes, namespaces, workload summaries; envelope `{"data": {}, "meta": {"snapshotAge", "generation"}}`; capped 256 KB, `meta.truncated: true` on overflow, never a silent drop
Done — implemented in [app/api/topology/route.ts](../app/api/topology/route.ts), serves fixture data from [lib/clusterMock.ts](../lib/clusterMock.ts). Mock only: no real cluster, no 256 KB cap logic (fixture is small), `truncated` always `false`. See [REQUIREMENTS.md](REQUIREMENTS.md) for the real endpoint's contract.
Remaining: wire [app/cluster/page.tsx](../app/cluster/page.tsx) to fetch this instead of importing `clusterMock` directly.