Skip to content

feat(DT-4077): add delete Worker Deployment action#3510

Merged
rossnelson merged 1 commit into
dt-4079from
dt-4077
Jun 11, 2026
Merged

feat(DT-4077): add delete Worker Deployment action#3510
rossnelson merged 1 commit into
dt-4079from
dt-4077

Conversation

@rossnelson

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a kebab actions menu to the Worker Deployments list with a Delete item
  • Shows a blocked modal ("Cannot Delete Worker Deployment") when the deployment has versions, directing the user to delete each version first
  • Shows a destructive confirm modal (requiring the user to type DELETE) when all versions have been removed
  • Refreshes the deployments list after a successful delete

Notes

  • Deleting the current version to reach an empty deployment requires unsetting it to "unversioned" first — that path will be addressed in DT-4079

Test plan

  • Deployments list shows a ⋮ actions column with a Delete item per row
  • Clicking Delete on a deployment with versions shows the blocked modal (no confirm button)
  • Clicking Delete on a deployment with no versions shows the destructive confirm modal
  • Typing DELETE and confirming removes the deployment and refreshes the list
  • Errors from the API surface in the modal

@rossnelson
rossnelson requested a review from a team as a code owner June 8, 2026 19:26
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jun 8, 2026 8:36pm

Request Review

{open}
confirmText=""
cancelText={translate('common.close')}
hideConfirm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Argument of type '(() => void) | undefined' is not assignable to parameter of type '(e: CustomEvent) => void'.

@temporal-cicd

temporal-cicd Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
Warnings
⚠️

📊 Strict Mode: 1 error in 1 file (0.1% of 913 total)

src/lib/components/deployments/delete-deployment-modal.svelte (1)
  • L31:20: Argument of type '(() => void) | undefined' is not assignable to parameter of type '(e: CustomEvent) => void'.

Generated by 🚫 dangerJS against bdc0057

@rossnelson
rossnelson changed the base branch from main to dt-4079 June 8, 2026 20:28
@rossnelson
rossnelson marked this pull request as draft June 8, 2026 20:29
Adds a kebab actions menu to the deployments list with a Delete item.
Shows a blocked modal when versions exist (all must be removed first),
or a destructive confirm modal requiring the user to type DELETE when
the deployment has no versions.
@rossnelson
rossnelson marked this pull request as ready for review June 11, 2026 14:25
@rossnelson
rossnelson merged commit 60f211f into dt-4079 Jun 11, 2026
7 checks passed
@rossnelson
rossnelson deleted the dt-4077 branch June 11, 2026 14:27
rossnelson added a commit that referenced this pull request Jun 11, 2026
Adds a kebab actions menu to the deployments list with a Delete item.
Shows a blocked modal when versions exist (all must be removed first),
or a destructive confirm modal requiring the user to type DELETE when
the deployment has no versions.
rossnelson added a commit that referenced this pull request Jun 12, 2026
Adds a kebab actions menu to the deployments list with a Delete item.
Shows a blocked modal when versions exist (all must be removed first),
or a destructive confirm modal requiring the user to type DELETE when
the deployment has no versions.
rossnelson added a commit that referenced this pull request Jun 12, 2026
* feat(DT-4079): miscellaneous WD UI fixes

- Hide "Set Current Version" menu item for versions already current
- Re-arrange deployment detail header: Create New Version as primary,
  More Actions menu with View Workflows / Ramp to Unversioned / Delete
- Add Ramp to Unversioned Workers modal with percentage input
- Show alert banner when unversioned workers are ramping with Edit/Delete actions
- Remove border box from ComputeBadge — use plain icon + label styling

* feat(DT-4079): add Unset Current action to current version menu

Calls set-current-version with an empty version string, transitioning
the version to Draining then Drained so it can be deleted. Prerequisite
for fully emptying a deployment (DT-4077).

* feat(DT-4079): simplify unversioned ramping banner and move remove action to modal

Replace custom banner div with Alert component; remove inline Edit/Delete
buttons. Move the remove action into the Ramp to Unversioned Workers modal
as a destructive footer button, shown only when ramping is active.

* feat(DT-4077): add delete Worker Deployment action (#3510)

Adds a kebab actions menu to the deployments list with a Delete item.
Shows a blocked modal when versions exist (all must be removed first),
or a destructive confirm modal requiring the user to type DELETE when
the deployment has no versions.

* fix(DT-4079): address review feedback on unversioned ramping

- Use camelCase buildId (not build_id) in ramp/remove API calls
- Add conflictToken support to removeRampingUnversionedWorkers
- Add error handling to handleRemoveRampUnversioned
- Fix 0% ramp falsy check (use != null instead of truthiness)
- Remove unused Button import from deployment.svelte
- Replace invisible-class pattern with {#if} in ramp modal
- Add confirm modal + error handling for Unset Current action
- Include deployment name in delete deployment modal description

* fix(DT-4079): border compute badge icon only, not icon+label

Matches the Namespace Region style — border wraps the cloud provider
icon alone, with the label rendered as plain text beside it.

* fix(DT-4079): use buildId for unset-current, fetch conflictToken on delete

- unsetCurrentDeploymentVersion: use buildId (not version) and pass conflictToken
- version-table-row: pass conflictToken through to unset call
- deployment-table-row: fetch full deployment on modal open to get conflictToken
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