This pull request includes several changes to improve the handling of workflow actions, update the styling of messages, and enhance the edit content form component. The most important changes include modifications to the workflow actions service, updates to the message component styles, and adjustments to the edit content form component.
Workflow Actions Service Enhancements:
Added a new interface DotCMSWorkflowActions to include the first step of the workflow (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts).
Updated the getDefaultActions method to return DotCMSWorkflowActions[] instead of DotCMSWorkflowAction[] (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts).
Added a new method getWorkFlowActions to retrieve workflow actions by content type name (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts).
Updated the test cases to use the new MOCK_SINGLE_WORKFLOW_ACTIONS and verify the new method getWorkFlowActions (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.spec.ts). [1][2][3]
Message Component Styling Updates:
Adjusted the base styles for inline messages to use transparent backgrounds and solid borders (core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss).
Updated the styles for different types of inline messages (info, success, warn, error) to use color palette variables (core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss).
Enhanced the styles for regular messages with a wider left border and updated styles for the close button (core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss).
Edit Content Form Component Enhancements:
Added new signals to manage workflow actions and show/hide workflow actions in the form component (core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html). [1][2][3]
Updated the test cases to include the new workflow actions and verify the rendering of workflow actions and sidebar toggle button (core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.spec.ts). [1][2][3][4][5][6]
Additional Changes:
Added new properties to the DotCMSWorkflowAction interface to support various actionlets (core-web/libs/dotcms-models/src/lib/dot-workflow-action.model.ts).
Added a firstStep property to the DotCMSWorkflowStatus interface (core-web/libs/dotcms-models/src/lib/dot-workflow.model.ts).
Updated the project.json file to include a new linting tag (core-web/libs/data-access/project.json).
Checklist
[x] Tests
[x] Translations
[ ] Security Implications Contemplated (add notes if applicable)
This pull request includes several changes to improve the handling of workflow actions, update the styling of messages, and enhance the edit content form component. The most important changes include modifications to the workflow actions service, updates to the message component styles, and adjustments to the edit content form component.
Workflow Actions Service Enhancements:
DotCMSWorkflowActions
to include the first step of the workflow (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts
).getDefaultActions
method to returnDotCMSWorkflowActions[]
instead ofDotCMSWorkflowAction[]
(core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts
).getWorkFlowActions
to retrieve workflow actions by content type name (core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.ts
).MOCK_SINGLE_WORKFLOW_ACTIONS
and verify the new methodgetWorkFlowActions
(core-web/libs/data-access/src/lib/dot-workflows-actions/dot-workflows-actions.service.spec.ts
). [1] [2] [3]Message Component Styling Updates:
core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss
).core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss
).core-web/libs/dotcms-scss/angular/dotcms-theme/components/messages/_message.scss
).Edit Content Form Component Enhancements:
core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.html
). [1] [2] [3]core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.spec.ts
). [1] [2] [3] [4] [5] [6]Additional Changes:
DotCMSWorkflowAction
interface to support various actionlets (core-web/libs/dotcms-models/src/lib/dot-workflow-action.model.ts
).firstStep
property to theDotCMSWorkflowStatus
interface (core-web/libs/dotcms-models/src/lib/dot-workflow.model.ts
).project.json
file to include a new linting tag (core-web/libs/data-access/project.json
).Checklist
Additional Info
any additional useful context or info
Screenshots
2 Workflows
https://github.com/user-attachments/assets/7d3437f7-ab08-4671-a501-233e3de99ef3
1 Workflow
https://github.com/user-attachments/assets/59ddaf24-77ff-4f47-9220-bc67586c2d51
This PR fixes: #30596