You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
part 2 of addressing #1812
This connects the agents list UI to the namespace filtering support
added in the previous API/client PR.
`/agents` stays the all-namespaces view. `/agents?namespace=<namespace>`
now fetches and renders agents scoped to that namespace. The namespace
picker drives both the URL and the agents request, so there is no “trust
me, the request was scoped” UI state.
The scoped empty state also carries the namespace into `New Agent`, but
only as the starting value. The create form still lets the user change
the namespace before saving.
## Notes
`AgentList` owns list fetching now because the selected namespace comes
from the route. `AgentsProvider` still handles shared create/edit
dependencies without fetching every agent on mount.
Delete refresh gets passed down from the current list view so deletes
refresh the same scoped query.
## Tests
Added coverage for:
- `/agents` fetching all agents
- `/agents?namespace=kagent` fetching scoped agents
- namespace selector URL updates
- clearing back to all namespaces
- scoped empty state linking to `New Agent`
- create form initializing from `?namespace=...`
- `getAgents()` normalizing a missing data field to `[]`
<img width="1068" height="1102" alt="IMG_3505"
src="https://github.com/user-attachments/assets/cc734fd9-5ab1-4f3b-912e-9ef887d81548"
/>
<img width="1083" height="1174" alt="IMG_3506"
src="https://github.com/user-attachments/assets/910fecbc-f099-416e-8fa6-217138c9c53e"
/>
<img width="1061" height="716" alt="IMG_3507"
src="https://github.com/user-attachments/assets/6c39e278-6a69-4069-9609-23a0c5bef49f"
/>
---------
Signed-off-by: Maaz Ghani <maazghani@gmail.com>
Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
Co-authored-by: Peter Jausovec <peterj@users.noreply.github.com>
0 commit comments