-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 NavigationDrawer story #9235
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
Added mock data and GraphQL handlers to fix the NavigationDrawer story in Storybook, enabling proper state management and data display.
- Added new
favorite-folders.ts
with mock data structure for testing - Added
FindManyFavoriteFolders
GraphQL mock handler ingraphqlMocks.ts
to support favorite folders functionality - Updated
NavigationDrawer.stories.tsx
withObjectMetadataItemsDecorator
andPrefetchLoadedDecorator
for state management - Added custom Recoil state decorator to initialize mock workspace member and metadata items
💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
createdAt: new Date().toISOString(), | ||
updatedAt: new Date().toISOString(), |
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.
style: Using new Date() directly in mock data creates non-deterministic test data. Consider using a fixed date string instead.
9855428
to
29827dc
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.
Nice
Closes #7492
Description
This PR will fix NavigationDrawer story.
Testing