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

fix #6127 updated support button #6422

Merged

Conversation

NitinPSingh
Copy link
Contributor

fix #6127

updated the Support button toopen a menu that allows users to either access the user guide or contact support through the chat.

Screenshot (675)

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

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 with SupportDropdown in the navigation drawer's footer.
  • SupportDropdown.tsx: Introduced a new dropdown menu for the support button, using Dropdown and MenuItem 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'));
Copy link
Member

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!

Copy link
Member

@charlesBochet charlesBochet left a 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

@charlesBochet
Copy link
Member

Also, make sure to fix the lint :)

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@charlesBochet charlesBochet merged commit 9d51af3 into twentyhq:main Jul 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Support Button to Menu
2 participants