-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Update button interface to support flow triggers #26022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update button interface to support flow triggers #26022
Conversation
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
Co-authored-by: Florian C. Wachmann <[email protected]>
AlexGaillard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should still add tests to this, but I had a thought
app/src/interfaces/_system/system-flow-select/system-flow-select.vue
Outdated
Show resolved
Hide resolved
…e-to-support-flow-triggers
…e-to-support-flow-triggers
|
@formfcw I've added tests to the best of my ability here. I think let's send this one in so it doesn't drag any longer. |
…e-to-support-flow-triggers
…e-to-support-flow-triggers
formfcw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing the reactivity issue and adding all the tests. The test coverage here is more than enough.
A few more things: one bug, one small improvement, and a few minor details.
app/src/interfaces/_system/system-manual-flow-select/system-manual-flow-select.vue
Outdated
Show resolved
Hide resolved
app/src/interfaces/_system/system-manual-flow-select/system-manual-flow-select.vue
Show resolved
Hide resolved
formfcw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @AlexGaillard ❤️ This improvement is huge 🚀
LGTM 🎉
* Extract flow-sidebar-detail to use-flows composable * Add test cases * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Create trigger-flow component to render useFlows button * Make onRefresh required * Refactor for provide/inject pattern * Add logic use-flows to overlay-item * Add functionality to collections and cleanup * More cleanup and simplify * Remove artifact * Major Refactor * Refactor tests to new spec * More cleanup * More refactoring * Update app/src/composables/use-flows.ts Co-authored-by: Florian C. Wachmann <[email protected]> * Move useFlows invocation higher up * Move FlowDialogsContext type and remove .value from props * Replace i18n import and use global import * Adjust jsdoc * Fix weird assertion * Remove unnecessary else * Move styles to correct component * Move useFlows invocation higher and removed unnecessary prop * Amend props for only required refs * Add early return * Disable flow detail for versions * Change unsaved changes CTA * Fix tests * Add missing global template string * Add actionType and toggle field visibility * Add system interface to select flow * Add runManualFlow logic * Cleanup * Remove repeated code * Disable flow in batch mode * Add disable logic * Replace unneeded system interface * Add tweaked system interface back in * Handle case of internal links * Add loading logic * Remove artifact * enhance interface settings with action type display (#26079) * Remove unnecessary options * Change ref to computed * Revert artifact changes * Amend translations * Fix auto import * Change type * Move function invocation higher * Rework rendering and attributes * Rename function and remove redundant manualFlows prop * Rework running flows logic * Hide inactive flows * Standardize use of flow/Flow in translations * Remove unused translation * Add select a flow placeholder * Add manual trigger to assertion * Simplify system interface directive logic and add inactive state * Specify type imports * Replace activeFlows computed with isActiveFlow function * Call runManualFlow directly * Amend icon rendering * Remove unnecessary prop * Add changeset * Rename system interface * Add test coverage * Added missed renames * Add more tests * Fix issue with non-reactive collection prop and add test to catch * Remove undefined string and amend tests * Remove unnecessary code * Remove artifact * Render flow icon and color in flow select interface * Provide default value for shares --------- Co-authored-by: Florian C. Wachmann <[email protected]>
|
Thank you @AlexGaillard !! |
Scope
What's changed:
presentation-links.vue) has been updated to support triggering flows in addition to internal/external hyperlinksPotential Risks / Drawbacks
Tested Scenarios
Review Notes / Questions
Checklist
Fixes CMS-1487