(plan) convert original implement plan to mock api
This commit is contained in:
@@ -6,10 +6,11 @@ Stage: GREEN
|
||||
Depends on: [2.2](2.2-topology-component-test.md), [2.4](2.4-api-topology.md), [2.5](2.5-api-stream.md)
|
||||
|
||||
- [ ] Frontend: React Flow, force layout, node -> namespace -> workload
|
||||
- [ ] Fetch from [/api/topology](../app/api/topology/route.ts) and [/api/stream](../app/api/stream/route.ts) (mock) instead of importing `clusterMock` directly
|
||||
|
||||
## Verify
|
||||
|
||||
```bash
|
||||
# delete a pod, observe graph update in <5s without reloading
|
||||
kubectl delete pod <name> -n <ns>
|
||||
# trigger a mock delta via /api/stream, observe graph update in <5s without reloading
|
||||
curl -N http://localhost:3000/api/stream
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user