-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat: implement toggle ai features mutation #10457
feat: implement toggle ai features mutation #10457
Conversation
@@ -138,6 +138,7 @@ export const selectOrganizations = () => | |||
'trialStartDate', | |||
'scheduledLockAt', | |||
'lockedAt', | |||
'useAI', |
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.
Adding this was a gotcha for me. Curious why we don't do selectAll
?
|
||
const handleToggle = () => { | ||
const variables = {orgId} | ||
ToggleAIFeaturesMutation(atmosphere, variables, { |
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.
+1 if you use the useMutation
pattern instead of the older pattern then you don't need useMutationProps
in this component & it'll be a little cleaner
This PR enables org admins to toggle on or off AI features.
Loom demo: https://www.loom.com/share/9294e9363fa94c098bed98d161229115
To Test