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

Put workflow run actions behind feature flag #8796

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

bosiraphael
Copy link
Contributor

Put workflow run actions behind feature flag

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 implements feature flag controls for workflow run actions across the application, ensuring workflow-related components are only rendered when explicitly enabled.

  • Added IS_WORKFLOW_ENABLED feature flag check in useWorkflowRunActions.tsx to prevent workflow actions from being added to the menu when disabled
  • Renamed useGlobalActions to useRecordAgnosticActions in /actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts for better semantic clarity
  • Added conditional rendering of RecordAgnosticActionsSetterEffect in action menu components (RecordIndexActionMenu, RecordShowActionMenu, RecordShowRightDrawerActionMenu)
  • Implemented proper cleanup pattern in RecordAgnosticActionsSetterEffect using useEffect for action registration/unregistration

6 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@charlesBochet charlesBochet merged commit 33159e2 into main Nov 28, 2024
13 of 16 checks passed
@charlesBochet charlesBochet deleted the put-workflow-run-actions-behind-feature-flag branch November 28, 2024 15:03
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.

2 participants