Skip to content
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

Add the possibility to run workflows with manual trigger from the command K with no records selected #8342

Conversation

bosiraphael
Copy link
Contributor

Enregistrement.de.l.ecran.2024-11-05.a.15.36.44.mov

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR adds functionality to trigger workflows from the command palette (cmd+K) without requiring record selection, enabling global workflow execution across the application.

  • Added GlobalActionMenuEntriesSetter and WorkflowRunActionEffect components to handle global workflow triggers
  • Modified useAllActiveWorkflowVersions hook to support filtering workflows by trigger type and optional object metadata
  • Updated action menu components (RecordIndexActionMenu, RecordShowActionMenu, RecordShowRightDrawerActionMenu) to include global workflow actions
  • Made payload parameter optional in useRunWorkflowVersion hook to support running workflows without record context
  • Added objectType property to workflow trigger types for better control over workflow execution contexts

10 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@charlesBochet charlesBochet merged commit 7f51eb8 into main Nov 6, 2024
19 checks passed
@charlesBochet charlesBochet deleted the 8192-workflow-when-i-hit-cmdk-with-not-record-selected-i-can-trigger-a-workflow branch November 6, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Workflow] When I hit Cmd+K with not record selected, I can trigger a workflow
2 participants