Implement contextual actions for the workflows (#8814)

Implemented the following actions for the workflows:
- Test Workflow
- Discard Draft
- Activate Draft
- Activate Workflow Last Published Version
- Deactivate Workflow
- See Workflow Executions
- See Workflow Active Version
- See Workflow Versions History

And the following actions for the workflow versions:
- Use As Draft
- See Workflow Versions History
- See Workflow Executions

Video example:


https://github.com/user-attachments/assets/016956a6-6f2e-4de5-9605-d6e14526cbb3

A few of these actions are links to the relations of the workflow object
(link to a filtered table). To generalize this behavior, I will create
an hook named `useSeeRelationsActionSingleRecordAction` to automatically
generate links to a showPage if the relation is a Many To One or to a
filtered table if the relation is a One to Many for all the record
types.
I will also create actions which will allow to create a relation.

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Raphaël Bosi
2024-12-03 12:09:51 +01:00
committed by GitHub
parent 7b2d9894f3
commit 32194a88b3
45 changed files with 2334 additions and 254 deletions

View File

@ -150,6 +150,8 @@ export {
IconHeartOff,
IconHelpCircle,
IconHierarchy2,
IconHistory,
IconHistoryToggle,
IconHome,
IconInbox,
IconInfoCircle,
@ -192,6 +194,7 @@ export {
IconPhoto,
IconPhotoUp,
IconPilcrow,
IconPlayerPause,
IconPlayerPlay,
IconPlayerStop,
IconPlaylistAdd,