Skip to content

feat: add env group management#94

Merged
acoshift merged 3 commits into
mainfrom
claude/tender-kowalevski-0795d0
May 16, 2026
Merged

feat: add env group management#94
acoshift merged 3 commits into
mainfrom
claude/tender-kowalevski-0795d0

Conversation

@acoshift
Copy link
Copy Markdown
Member

Summary

  • Adds a console UI for the EnvGroup API (/Users/acoshift/Projects/deploys-app/api/envgroup.go): list, create, update, and delete project-scoped env groups.
  • New routes under src/routes/(auth)/(project)/env-group/ — list page plus a single create/update form (mirrors the role pattern). Update sends the full env map so the API overrides existing values.
  • Reuses the deployment page's env editor pattern (key/value table rows + optional text-area editor).
  • Adds an "Env Groups" item to the sidebar between Pull Secrets and Roles (fa-cog icon).
  • Adds Api.EnvGroup to src/types/api.d.ts, a sampleEnvGroup fixture, default envGroup.list mock, and Playwright coverage for list / empty / update-prefill.

Test plan

  • bun check clean
  • bun lint clean
  • bun run build succeeds
  • bun run test tests/env-group.spec.js — 3 passed
  • Manually exercise create / update / delete against a live API_ENDPOINT

Notes

  • The pre-existing tests/deployment.spec.js "add, remove, and cap at two sidecars" failure also fails on main and is unrelated to this change.

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 16, 2026

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

Latest commit: 6f7efd9
Status: ✅  Deploy successful!
Preview URL: https://7506b0b2.deploys-app--console.pages.dev
Branch Preview URL: https://claude-tender-kowalevski-079.deploys-app--console.pages.dev

View logs

acoshift and others added 2 commits May 16, 2026 07:53
Adds a console UI for the EnvGroup API: list, create, update (full
override), and delete project-scoped environment variable groups. The
create form doubles as the update form (mirroring the role pattern) and
reuses the deployment env editor (table rows + optional text-area).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds envGroup to the audit-log RESOURCE_TYPES list so users can filter
audit events by env group activity now that the resource is manageable
from the console.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@acoshift acoshift force-pushed the claude/tender-kowalevski-0795d0 branch from 1a78fa4 to 2f8247a Compare May 16, 2026 00:54
Adds env group selection to the deploy form (multi-select with permission
fallback to a free-text input), pre-fills it from the existing revision,
and renders the attached env groups as links on the deployment detail
page. Sends envGroups as a full override on deployment.deploy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@acoshift acoshift merged commit 7514955 into main May 16, 2026
5 checks passed
@acoshift acoshift deleted the claude/tender-kowalevski-0795d0 branch May 16, 2026 01:31
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