Skip to content

feat(DT-4079): miscellaneous WD UI fixes#3511

Draft
rossnelson wants to merge 3 commits into
mainfrom
dt-4079
Draft

feat(DT-4079): miscellaneous WD UI fixes#3511
rossnelson wants to merge 3 commits into
mainfrom
dt-4079

Conversation

@rossnelson

@rossnelson rossnelson commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Hide "Set Current Version" in version actions menu when the version is already Current
  • Re-arrange WD detail page header: Create New Version (primary), More Actions dropdown (View Workflows, Ramp to Unversioned Workers, Delete)
  • Add Ramp to Unversioned Workers modal with a percentage input; calls set-ramping-version API with empty build_id
  • Show alert banner on the deployment detail page when unversioned workers are actively ramping, with inline Edit and Delete actions
  • Remove border box from ComputeBadge — render as plain [icon] label matching the Namespace Region style
  • [DT-4077 gap] Add "Unset Current" to the current version's actions menu — calls set-current-version with an empty version string, which transitions the version to Draining and eventually Drained, allowing it to be deleted. Without this, a deployment could never be fully emptied (and therefore never deleted) because one version is always pinned as current.

Test plan

  • Current version row no longer shows "Set Current Version" in its actions menu; instead shows "Unset Current"
  • Clicking "Unset Current" on the current version transitions it to Draining then Drained
  • Deployment detail header shows "Create New Version" (primary) + "More Actions" dropdown
  • More Actions contains View Workflows, Ramp to Unversioned Workers, and Delete
  • Ramp to Unversioned Workers opens a modal with percentage input; confirms and refreshes
  • When unversioned workers are ramping, a yellow banner appears with Edit/Delete inline actions
  • Compute provider shows as icon + label without a border box in the version list

@rossnelson rossnelson requested a review from a team as a code owner June 8, 2026 19:35
@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 9:26pm

Request Review

@temporal-cicd

temporal-cicd Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
Warnings
⚠️

📊 Strict Mode: 2 errors in 1 file (0.2% of 904 total)

src/lib/components/deployments/ramp-unversioned-modal.svelte (2)
  • L31:18: Argument of type '(() => void) | undefined' is not assignable to parameter of type '(e: CustomEvent) => void'.
  • L38:14: Argument of type '(() => void) | undefined' is not assignable to parameter of type '(e: PointerEvent) => void'.

Generated by 🚫 dangerJS against 8e78b08

@rossnelson rossnelson marked this pull request as draft June 8, 2026 19:41
- 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
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).
…tion 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.
{open}
confirmText={translate('common.confirm')}
cancelText={translate('common.cancel')}
on:confirmModal={() => onConfirm?.(percentage)}

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'.

slot="footer"
variant="destructive"
size="sm"
class={!onRemove ? 'invisible' : ''}

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: PointerEvent) => void'.

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