Skip to content

dashboard: env switcher actually filters resources + deployments (slice 1)#36

Merged
mastermanas805 merged 1 commit into
mainfrom
slice-1-env-filter-2026-05-12
May 12, 2026
Merged

dashboard: env switcher actually filters resources + deployments (slice 1)#36
mastermanas805 merged 1 commit into
mainfrom
slice-1-env-filter-2026-05-12

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Summary

  • listResources(env?) and listDeployments(env?) pass ?env= to the agent API when set
  • ResourcesPage, DeploymentsPage, and OverviewPage read ctx.env and add it to their useEffect dependency array so switching env triggers a fresh fetch
  • Removes the obsolete "env intentionally not consumed here" comment on ResourcesPage now that the backend honors the filter

Pairs with the agent-API PR (api#27) that adds server-side ?env= filtering.

Test plan

  • All 204 unit tests pass (npm test)
  • Verify live: switch sidebar env from production → staging → production, watch resources + deployments lists change
  • No regression on legacy callers (omitting env still returns all)

🤖 Generated with Claude Code

…(slice 1)

listResources(env?) and listDeployments(env?) pass ?env= to the agent API
when set. Three pages — ResourcesPage, DeploymentsPage, OverviewPage —
read ctx.env and add it to their useEffect dependency array so switching
the sidebar env switcher triggers a fresh fetch with the new env.

Removes the obsolete "env intentionally not consumed here" comment on
ResourcesPage now that the backend honors the filter (api slice-1 commit
shipped concurrently).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit 3cd4103 into main May 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant