Files
plane/apps/web/core/components/workflows
12b35f7218 [WEB-6819]chore: populate default workflow with project states. (#6503)
* dev: added state restriction checks

* chore: added migration for default workflows

* * chore: added states exclusion logic to state configuration
* chore: updated empty states

* chore: updated approve reject actions

* chore: replace newly created solid icons with existing filled icons in approve/reject actions and cleanup icons registry

* feat: add two-step workflow state deletion with dependency check and transfer modal

- Add dependency alert modal that blocks deletion when transitions/approvals exist
- Add transfer modal with state dropdown to migrate work items before removal
- Add transferAndDeleteState service endpoint (POST .../states/{stateId}/transfer/)
- Add getStateDependencies store method for client-side dependency computation
- Replace direct delete with two-step flow orchestrated from WorkflowStatesListRoot

* chore: createed new endpoint for transfer workflow state

* chore: hide delete action for states in default workflow

* chore: hiding render of workflows list when not enabled

* chore: added unassigned work item types ids to default

* fix: state transition

* chore: updated styles for pending indicator

* chore: update helper to resolve initial value

* fix: format

* chore: update the validation condition

* fix: disabling workflow active toggle when no states are added

* feat: state switch to the available state for a type

* chore: added a workflow validation

* fix: lint error

* chore: remove work item types list from footer

* chore: added activites for workflow

* chore: updated the default workflow type

* chore: workflow disabled checks

* * fix: format
* fix: default workflow section render

* chore: removed unused import

* fix: migration files

* chore: updated the work item type for workflow

* chore: added states warning banner

* chore: added fetch for workflows list at project

* chore: optimised the check endpoint for workflows

* fix: lint error

* chore: toggle active button flow

* chore: added warning text for workflow card

* chore: updated the response structure for workflows

* fix: extra validation for transfer state

* chore: added extra validation for none type

* chore: added translations

* * fix: removed unwanted .toString
* fix: removed redundant hook and moved guards to local

* refactor(workflows): simplify default workflow UI and reuse state filters

* fix: format

* chore: moved the migration to background job

* chore: added loader reset

* fix: correct workflow missing-states subquery correlation

* chore: changed the patch and post

* fix(workflows): tighten workflow activation and create state selection

* fix: optimistic update for active toggle

---------

Co-authored-by: vamsikrishnamathala <[email protected]>
Co-authored-by: Prateek Shourya <[email protected]>
2026-04-06 21:17:20 +05:30
..