Closed chesterkmr closed 1 month ago
Latest commit: e85ac9578c7418e8602b3462e1e3fcc326347b3f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates to the workflows-dashboard application introduce enhanced notification handling and improved editing capabilities for workflow definitions. Key features include the integration of the Sonner library for toast notifications, the addition of new APIs for updating workflow definitions and extensions, and refined hooks for managing state within components. Overall, these changes aim to provide a more responsive and user-friendly experience.
File Path | Change Summary |
---|---|
apps/workflows-dashboard/package.json |
Added "sonner": "^1.4.3" dependency for enhanced notification handling. |
apps/workflows-dashboard/src/App.tsx |
Introduced Toaster component for toast notifications within the application. |
apps/workflows-dashboard/src/components/organisms/JsonEditor/JsonEditor.tsx |
Updated useEffect hooks to improve editor behavior based on readOnly state. |
apps/workflows-dashboard/src/domains/workflow-definitions/workflow-definitions/workflow-definitions.api.ts |
Added updateWorkflowDefinitionById and updateWorkflowDefinitionExtensionsById functions for API updates. |
apps/workflows-dashboard/src/domains/workflow-definitions/workflow-definitions/workflow-definitions.types.ts |
Enhanced IWorkflowDefinition interface and added DTOs for update operations. |
apps/workflows-dashboard/src/pages/WorkflowDefinition/WorkflowDefinition.tsx |
Integrated useWorkflowDefinitionExtensionsEdit hook for managing extensions, simplified data queries. |
apps/workflows-dashboard/src/pages/WorkflowDefinition/components/EditorCard/EditorCard.tsx |
Modified button logic for saving changes, introducing "Upgrade" and "Update" buttons. |
apps/workflows-dashboard/src/pages/WorkflowDefinition/hooks/useWorkflowDefinitionEdit/useWorkflowDefinitionEdit.ts |
Refactored save logic, renamed handlers, and improved update process using hooks. |
apps/workflows-dashboard/src/pages/WorkflowDefinition/hooks/useWorkflowDefinitionExtensionsEdit/useWorkflowDefinitionExtensionsEdit.ts |
Introduced hook for managing workflow definition extensions. |
apps/workflows-dashboard/src/pages/WorkflowDefinition/hooks/useWorkflowDefinitionExtensionsUpdateMutation/... |
Re-exporting modules for streamlined access to extension update functionalities. |
services/workflows-service/src/workflow-defintion/dtos/update-workflow-definition-dto.ts |
Introduced DTO for updating workflow definitions, enhancing validation. |
services/workflows-service/src/workflow-defintion/workflow-definition.controller.ts |
Added new methods for updating workflow definitions and extensions in the controller. |
services/workflows-service/src/workflow-defintion/workflow-definition.repository.ts |
Modified updateMany method to include a noValidate option for flexible updates. |
services/workflows-service/src/workflow-defintion/workflow-definition.service.ts |
Added methods for updating workflow definitions, improving service interactions. |
services/workflows-service/src/workflow/workflow.controller.external.ts |
Enhanced getWorkflowDefinitionById to include UI definitions in response. |
sequenceDiagram
participant User
participant App
participant API
participant Service
participant DB
User->>App: Requests to update workflow definition
App->>Service: Calls updateWorkflowDefinitionById
Service->>DB: Updates workflow definition
DB-->>Service: Acknowledgement of update
Service-->>App: Updated workflow definition
App-->>User: Confirmation of update
🐰 In the meadow where workflows bloom,
A toast to changes brightening the room.
With Sonner's cheer and edits anew,
Our definitions dance, fresh as the dew.
Hops of joy, let's celebrate,
In code we trust, we innovate! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores