-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix #6127 updated support button #6422
fix #6127 updated support button #6422
Conversation
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.
PR Summary
Updated the Support button to open a dropdown menu with options to access the user guide or contact support through chat.
- AppNavigationDrawer.tsx: Replaced
SupportChat
withSupportDropdown
in the navigation drawer's footer. - SupportDropdown.tsx: Introduced a new dropdown menu for the support button, using
Dropdown
andMenuItem
components. - SupportChat.stories.tsx: Added user interaction tests to verify the new dropdown menu options 'Documentation' and 'Talk to us'.
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
@@ -48,5 +48,8 @@ export const Default: Story = { | |||
play: async () => { | |||
const canvas = within(document.body); | |||
expect(await canvas.findByText('Support')).toBeInTheDocument(); | |||
await userEvent.click(canvas.getByText('Support')); |
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.
this looks more like a SupportDropdown test than a SupportChat test, we would need both!
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.
HI @NitinPSingh, thanks a lot for the pull request!
Here are my feedbacks:
- SupportChat should be renamed to SupportButton
- add a story for SupportDropdown and delete the one about SupportChat (or re-use it) to test the whole behavior (open dropdown, then open support chat)
- the dropdown is not opening exactly like specified on the ticket, it's a bit too up
Also, make sure to fix the lint :) |
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.
LGTM, thank you!
fix #6127
updated the Support button toopen a menu that allows users to either access the user guide or contact support through the chat.