-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Mark/update notification settings design #18159
Conversation
fbe8ac6
to
5cbffc3
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.
The code is looking really good. I did some local testing and there are a couple of areas that can be improved in terms of indicating success and error. The rest is mostly style issues.
Additionally, we are trying to move away from using the public folder (#15956) and instead the webhook-guide.png
image should be alongside the webhook component.
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/locales/en.json
Outdated
"settings.metrics": "Metrics", | ||
"settings.notificationSettings": "Notification Settings", | ||
"settings.notificationsParameters": "Notifications parameters", |
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.
@andyjih This change is for the title of the Notifications page to follow what was exactly in the Figma. What should it be here? Notification Settings
, Notifications
, or Notification parameters
?
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.
@andyjih Could you also provide messages for the Test
action button when it's a success
and failed
operation?
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.
My question is covered by Nicolas Philippot
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.
Decided on Notification Settings during standup
const webhookChange = async (action: WebhookAction, data: WebhookPayload) => { | ||
setFormAction((value) => ({ ...value, [action]: true })); | ||
if (action === WebhookAction.Test) { | ||
await testWebhook(data); |
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.
There should be a feedback message when the notification test succeeds or fails, the same for trying to save the connection. There is no feedback message, even on the main branch. Would it be possible to fix this here?
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.
Do we have a specific service or component for notifications? Like we have a message when the connection with the server is unavailable (it's a small toast). The previous implementation was not good and not standard for all such forms.
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.
Agree with @edmundito. Also tested locally, and we indeed need to show the user the webhook URL testing (was it successful or not)
@matter-q yeah, we have such a service -
const NotificationService = ({ children }: { children: React.ReactNode }) => { |
Please note, there can be 2 possible cases when a testing hook request can be failed:
- 4xx status response from BE (if we have sent the totally wrong URL)
- 2xx status response from 3rd party hook service (need to check the response)
I've used the https://webhook.site/ service for testing webhooks
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.
After a conversation with Nicolas Philippot, we decided to handle only the error message on the Test
button. The error message should be below the input.
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Outdated
Show resolved
Hide resolved
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.
Overall - code LGTM.
Was reviewing after @edmundito comment fixes.
Left a comment regarding NoficationsService.
55a370d
to
fe8e521
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.
Had some notes about the error handling
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Show resolved
Hide resolved
airbyte-webapp/src/pages/SettingsPage/pages/NotificationPage/components/WebHookForm.tsx
Outdated
Show resolved
Hide resolved
c15e5bd
to
561010a
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.
Code LGTM, tested locally.
Let's wait for final approval from @edmundito
@edmundito question:
Currently, we show the input error in case the test is failed.
Why we decided do not to show the message in case of successful testing?
Waiting for final UI decision from Niko 😀 |
8ea279b
to
a519116
Compare
- Removed styled-components - Added new behavior 'Test' and 'Submit' buttons
- Removed styled-components - Added new behavior 'Test' and 'Submit' buttons
- Removed styled-components - Added new behavior 'Test' and 'Submit' buttons
- Removed styled-components - Added new behavior 'Test' and 'Submit' buttons
555973d
to
40fe886
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.
Tested locally and testing/save/validation rules work as expected!
Tested links on doc and both navigate to the correct page
* master: (59 commits) 🪟🔧 Remove styled components (round 1) (#18766) Bump Airbyte version from 0.40.17 to 0.40.18 (#18827) ci: add job and run id to test reports (#18832) hide ConfigPersistence inside ConfigRepository to discourage use (#18803) Remove the bulk actions from ConfigPersistence (#18800) remove config persistence from seeding logic (#18749) Remove ConfigPersistence usage from SecretsMigrator (#18747) Add normalization changelog and bump normalization version in platform (#18813) 🐛Source Exchange Rates: Fix handling error during check connection (#18726) 🐛Destination Google Sheets: Fix empty headers list (#18729) Bump helm chart version reference to 0.40.40 (#18815) Use equalsIgnoreCase (#18810) [charts/airbyte-cron] Cleanup env vars (#18787) 🐛 Source Facebook Marketing: reduce request limit after specific error (#18734) Parameterize test_empty_streams and test_stream_with_1_airbyte_column by destination (#18197) Correct coinmarket spec (#18790) ci: use custom test-reporter action to upload job results (#18004) Fix unit tests in source relational db (#18789) query to include data plane attributes (#18531) Mark/update notification settings design (#18159) ...
* Update Notification Settings design - Removed styled-components - Added new behavior 'Test' and 'Submit' buttons
What
Closes #17087
How
Notification settings design page redesign
Save changes
button under the cardNeed help with Webhook URL?
Figma design
Loom
Updated Loom with the latest changes:
https://www.loom.com/share/b8ecd9f3a3b04a7f8c5a93fc696f80d2