Skip to content

Add Workflow archive lifecycle - #3264

Merged
AbigailDeng merged 5 commits into
feat/2026-08-04_workflow-activity-vnextfrom
fix/2026-08-06_workflow-archive
Aug 6, 2026
Merged

Add Workflow archive lifecycle#3264
AbigailDeng merged 5 commits into
feat/2026-08-04_workflow-activity-vnextfrom
fix/2026-08-06_workflow-archive

Conversation

@AbigailDeng

Copy link
Copy Markdown
Contributor

Problem

Published Workflows had no Archive action, so operators could not stop new runs without losing the distinction between an editable draft and a published deployment. The default catalogue also had no archived view.

Solution

  • Add Archive only for active published Workflows with an authoritative deployment identity.
  • Map Archive to deployment deactivation and wait for the Workflow list to report Deactivated before showing success.
  • Preserve drafts, published revisions, and Activity history.
  • Keep archived Workflows out of the default Active view and expose them in an Archived view.
  • Retry observation without resubmitting an accepted deactivation command; retry the command only when acceptance failed.
  • Keep Delete draft limited to Workflows with editable draft membership.

Impact

  • Workflow Activity vNext catalogue filtering, status, actions, and confirmation UI
  • English and Chinese Workflow catalogue messages
  • Focused archival observation and interaction tests
  • Product design and implementation documentation

Local verification

  • Related and changed tests: pnpm exec jest --runInBand --runTestsByPath src/pages/workflow-activity-vnext/workflows/workflowArchival.test.ts src/pages/workflow-activity-vnext/index.test.tsx - 2 suites, 93 tests passed
  • Changed-file static checks: pnpm exec biome check src/locales/workflowActivityVNextMessages.en-US.ts src/locales/workflowActivityVNextMessages.zh-CN.ts src/pages/workflow-activity-vnext/index.test.tsx src/pages/workflow-activity-vnext/styles.ts src/pages/workflow-activity-vnext/workflows/WorkflowsPage.tsx src/pages/workflow-activity-vnext/workflows/workflowArchival.test.ts src/pages/workflow-activity-vnext/workflows/workflowArchival.ts - passed
  • Test stability guard: bash tools/ci/test_stability_guards.sh - passed
  • Documentation lint: bash tools/docs/lint.sh - passed
  • Whitespace validation: git diff --check - passed
  • A reliable affected typecheck target is unavailable, so local typecheck was skipped.
  • Full frontend suite/typecheck/build: deferred to GitHub CI by personal local workflow policy

@AbigailDeng

Copy link
Copy Markdown
Contributor Author

Conflict resolution verification

Merged the latest feat/2026-08-04_workflow-activity-vnext into this branch and resolved the Workflow catalogue action-menu conflict. The merged menu preserves the base branch action hierarchy and exposes Delete draft and Archive according to their independent eligibility rules.

  • Related-test dry run: pnpm exec jest --listTests --findRelatedTests src/pages/workflow-activity-vnext/workflows/WorkflowsPage.tsx src/pages/workflow-activity-vnext/workflows/workflowArchival.ts - resolved only index.test.tsx and workflowArchival.test.ts
  • Catalogue tests: pnpm exec jest --runInBand --runTestsByPath src/pages/workflow-activity-vnext/index.test.tsx -t "Workflow Activity vNext catalogue" - 22 passed
  • Archival helper tests: pnpm exec jest --runInBand --runTestsByPath src/pages/workflow-activity-vnext/workflows/workflowArchival.test.ts - 5 passed
  • Changed-file static checks: pnpm exec biome check with the 7 PR frontend files - passed
  • Test stability guard: bash tools/ci/test_stability_guards.sh - passed
  • Documentation lint: bash tools/docs/lint.sh - passed
  • Whitespace validation: git diff --check and git diff --cached --check - passed
  • Full frontend suite/typecheck/build: deferred to GitHub CI by personal local workflow policy

@AbigailDeng
AbigailDeng merged commit 5c97a0f into feat/2026-08-04_workflow-activity-vnext Aug 6, 2026
13 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