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: right drawer top bar story, adding some decorator and state setter #7580

Merged

Conversation

rizdarmwn
Copy link
Contributor

Context

Fixes #7496
Changed the title to RightDrawerTopBar instead of RightDrawerActivityTopBar, following the component name.
Add some missing decorator, and add state setter effect.

Screenshot

image

Missing coverages screenshot.

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 marked this pull request as ready for review October 11, 2024 07:30
@charlesBochet charlesBochet self-assigned this Oct 11, 2024
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

This pull request updates the Storybook story for the RightDrawerTopBar component, addressing issues and improving its functionality.

  • Renamed story title from 'RightDrawerActivityTopBar' to 'RightDrawerTopBar' in packages/twenty-front/src/modules/ui/layout/right-drawer/components/__stories__/RightDrawerTopBar.stories.tsx
  • Added ComponentWithRouterDecorator and RecoilDecorator to enhance story context
  • Implemented useEffect to set initial states for isRightDrawerOpen and currentRightDrawerPage
  • Introduced a play function for automated interaction testing in Storybook

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@charlesBochet charlesBochet merged commit 3ecf955 into twentyhq:main Oct 11, 2024
10 of 11 checks passed
Copy link

oss-gg bot commented Oct 11, 2024

Awarding rizdarmwn: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/rizdarmwn

@rizdarmwn rizdarmwn deleted the rizdarmwn/fix-right-drawer-top-bar-story branch October 11, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Storybook Testing] Fix RightDrawerActivityTopBar story
2 participants