Skip to content

Conversation

@AlexGaillard
Copy link
Member

@AlexGaillard AlexGaillard commented Oct 22, 2025

Scope

What's changed:

  • button links interface (presentation-links.vue) has been updated to support triggering flows in addition to internal/external hyperlinks

Potential Risks / Drawbacks

  • NA

Tested Scenarios

  • Tested running flows both on a collection, and within a drawer and in batch mode

Review Notes / Questions

  • NA

Checklist

  • Added or updated tests
  • Documentation PR created here or not required

Fixes CMS-1487

AlexGaillard and others added 30 commits October 9, 2025 11:03
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]>
Copy link
Member Author

@AlexGaillard AlexGaillard left a 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

@AlexGaillard AlexGaillard requested a review from formfcw November 11, 2025 21:05
@AlexGaillard
Copy link
Member Author

@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.

@linear
Copy link

linear bot commented Nov 13, 2025

Copy link
Contributor

@formfcw formfcw left a 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.

Copy link
Contributor

@formfcw formfcw left a 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 🎉

@AlexGaillard AlexGaillard merged commit b77331c into main Nov 18, 2025
66 of 69 checks passed
@AlexGaillard AlexGaillard deleted the alexgaillard/cms-1338-update-button-interface-to-support-flow-triggers branch November 18, 2025 16:39
@github-actions github-actions bot added this to the Next Release milestone Nov 18, 2025
AlexGaillard added a commit that referenced this pull request Nov 19, 2025
* 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]>
@MarkBurvs
Copy link

Thank you @AlexGaillard !!
This is literally my dream feature and I'm so happy! ❤️❤️❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants