Simplify Duo Workflow Action component
What does this MR do and why?
This code change simplifies how a "Duo Workflow" feature works by moving some logic from parent components to the child component itself.
Previously, parent components had to calculate and pass down specific values like project ID and API paths to the DuoWorkflowAction component. Now, the DuoWorkflowAction component figures out these values on its own by making a GraphQL query to get the necessary project information.
The main benefits are:
- Parent components no longer need to import utility functions or calculate project IDs
- The DuoWorkflowAction component is more self-contained and easier to use
- Less code duplication across different parts of the application
- The component interface is cleaner with fewer required properties
The functionality remains the same for users - this is purely an internal code organization improvement that makes the code easier to maintain and reduces the chance of errors when using the component in different places.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.