Skip to content

feat: show deploy status on the Firewall index via waf.list#129

Open
acoshift wants to merge 1 commit into
mainfrom
feat/waf-status
Open

feat: show deploy status on the Firewall index via waf.list#129
acoshift wants to merge 1 commit into
mainfrom
feat/waf-status

Conversation

@acoshift
Copy link
Copy Markdown
Member

Summary

  • Switch the Firewall index loader to a single waf.list call (replacing the per-location waf.get fan-out) and surface the deployer status.
  • Add a Status column: pending zones show a fa-spinner-third spinner with "Deploying" (action: create) / "Removing" (action: delete); success shows a green "Active" check; error shows a red "Error" badge.
  • Auto-refresh while any zone is pending — the index polls waf.list every 3s via api.intervalInvalidate (same pattern as deployment detail polling), so the spinner resolves on its own with no manual reload.
  • Mock: add a waf.list handler, include status/action in waf.get, and simulate the deployer (a freshly created location starts pending/create and flips to success after the first list poll).
  • Types: add status/action to Api.WafZone and a WafZoneList result type.

Note: original PR #128 was already merged (its branch auto-deleted), so this follow-up branches off the up-to-date main.

Test plan

  • bun lint — zero errors
  • bun check — zero errors
  • bun dev:mock + Playwright at /waf?project=acme: seed zone shows "Active"; creating a firewall for another location shows a spinner + "Deploying" that auto-resolves to "Active"; zero console errors; verified light + dark.

🤖 Generated with Claude Code

Replace the per-location waf.get fan-out with a single waf.list call and
surface a Status column so users can see when a zone is still being applied
or removed by the deployer. Pending zones show a spinner ("Deploying"/
"Removing") and the index polls waf.list every 3s (api.intervalInvalidate,
mirroring the deployment detail polling) so the spinner resolves on its own.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying deploys-app--console with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7670d91
Status: ✅  Deploy successful!
Preview URL: https://13417938.deploys-app--console.pages.dev
Branch Preview URL: https://feat-waf-status.deploys-app--console.pages.dev

View logs

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