-
Notifications
You must be signed in to change notification settings - Fork 26
Feature/charts sb #950
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
Feature/charts sb #950
Conversation
ciaranschutte
commented
Jun 14, 2025
- working storybook configs with first story for barchart written, more to come!
Co-authored-by: Anders Richardsson <[email protected]>
Co-authored-by: Anders Richardsson <[email protected]>
export const chartContainerDecorator = (Story) => ( | ||
<div style={{ height: '300px', width: '300px', display: 'flex' }}> | ||
<ChartContainer> | ||
<Story /> | ||
</ChartContainer> | ||
</div> | ||
); |
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.
storybook story wrapper for display area
"vite": "^6.3.5", | ||
"vitest": "^3.2.2" | ||
}, | ||
"msw": { |
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.
curious property. what is it for?
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.
mock service worker, easy mocking of HTTP calls which should work nicely for gql. though I might just test with local data, smaller scope seems better
"vitest": "^3.2.2" | ||
} | ||
} | ||
"name": "@overture-stack/arranger-charts", |
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.
seems like the file switched to spaces? is eslint/prettier off in your system?
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.
I will double check! nice catch
import type { Meta, StoryObj } from '@storybook/react-vite'; | ||
import { action } from 'storybook/actions'; | ||
|
||
import { chartContainerDecorator } from '../../../../.storybook/decorators'; |
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.
rofl 🤣 no way to set up a #storybook
?
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.
I'll see what I can whip up ;p