Skip to content

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

Merged
merged 15 commits into from
Jun 16, 2025
Merged

Feature/charts sb #950

merged 15 commits into from
Jun 16, 2025

Conversation

ciaranschutte
Copy link
Contributor

  • working storybook configs with first story for barchart written, more to come!

@ciaranschutte ciaranschutte changed the base branch from feature/arranger-charts to feature/charts_colors June 14, 2025 07:48
Base automatically changed from feature/charts_colors to feature/arranger-charts June 16, 2025 15:55
Comment on lines +3 to +9
export const chartContainerDecorator = (Story) => (
<div style={{ height: '300px', width: '300px', display: 'flex' }}>
<ChartContainer>
<Story />
</ChartContainer>
</div>
);
Copy link
Contributor Author

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

@ciaranschutte ciaranschutte marked this pull request as ready for review June 16, 2025 19:40
"vite": "^6.3.5",
"vitest": "^3.2.2"
},
"msw": {
Copy link
Member

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?

Copy link
Contributor Author

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",
Copy link
Member

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?

Copy link
Contributor Author

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';
Copy link
Member

@justincorrigible justincorrigible Jun 16, 2025

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?

Copy link
Contributor Author

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

@ciaranschutte ciaranschutte merged commit 6b93b7e into feature/arranger-charts Jun 16, 2025
2 checks passed
@ciaranschutte ciaranschutte deleted the feature/charts_sb branch June 16, 2025 20:22
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.

2 participants