Skip to content

Storybook#87

Open
ANeaves wants to merge 20 commits intomasterfrom
storybook
Open

Storybook#87
ANeaves wants to merge 20 commits intomasterfrom
storybook

Conversation

@ANeaves
Copy link
Member

@ANeaves ANeaves commented Sep 30, 2025

Storybook adds documentation and rendering for the components in a individualised way, similar to how Unit tests aim to test parts of code completely in isolation.

Each Story represents a single Component, and shows the various ways it may be rendered. For instance, the Live View component might be rendered as a full Card containing the image, or as just the image. Storybook aims to represent all these options.

Whilst this storybook branch may not be fully complete, with some tests missing, it has languished as a separate branch for too long, and having it will make future testing and development of components easier.

Creating a new component once storybook is implemented should be considered as a sort of Test Driven Development, where the storybook page and all the render options are defined first, and the component developed to support that.

Merging this branch may be complicated due to its age and the amount of other development that has occurred

Closes #60

ANeaves added 20 commits August 5, 2025 12:29
Modified the mocked Endpoint for LiveView
Removed extraneous imports of React
…otentially useful for all components that use an Endpoint
…all components.

started creating Stories for WithEndpoint and EventLog components
Added Vitest plugin to package.json
…ore sense than the hacked enter key event that it was previously using
modified EventLog to stop showing duplicate logs
Added option to EventLog to render as just the scrolling box of Events, without the surrounding card, similar to the LiveView component
…r than affecting it directly

LiveView component props simplified
@ANeaves ANeaves self-assigned this Sep 30, 2025
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.

Investigate Testing Options

1 participant