-
Notifications
You must be signed in to change notification settings - Fork 117
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
Eng/notion messaging post update permissions #4221
Conversation
ebcbd77
to
6435a64
Compare
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.
👍 2 coms tbd otherwise LGTM 🙏
<DataSourceDetailsModal | ||
dataSource={dataSource} | ||
visible={showDataSourceDetailsModal} | ||
onClose={() => { | ||
setShowDataSourceDetailsModal(false); | ||
}} | ||
onClick={() => { | ||
void handleUpdatePermissions(); | ||
void handleUpdatePermissions().then(() => { |
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.
nit: I think we had something saying from now on we need to catch?
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.
In client-side code too ? I'm not sure what I would be doing with it (console.error is not actionable for the user)
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.
yeah true
@@ -725,6 +727,7 @@ interface ConnectorUiConfig { | |||
addDataButtonLabel: string | null; | |||
displaySettingsButton: boolean; | |||
guideLink: string | null; | |||
onPostPermissionsUpdate?: () => ReactNode; |
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.
here, you're passing content
but convention is usually onSomething
= handler on event something, somethingCallback
=> happens after something is done
I would do postPermissionsUpdateMessage?: ReactNode
here
More generic but needs a bit refactoring thinking would be permissionsUpdateCallback?: () => void
(but not sure it can work
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.
Agreed, changing.
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.
Changed to just return a string as well.
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.
👍
Description
fixes https://github.com/dust-tt/tasks/issues/161
Risk
Deploy Plan