Skip to content

Add storybook - #255

Open
jens-meisner wants to merge 67 commits into
mainfrom
add-storybook
Open

Add storybook#255
jens-meisner wants to merge 67 commits into
mainfrom
add-storybook

Conversation

@jens-meisner

Copy link
Copy Markdown
Contributor

No description provided.

jens-meisner and others added 3 commits July 24, 2026 15:04
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

tests/storybook/src/runtime/outputs.ts:54

  • installLastOpenedEntities starts its polling interval asynchronously after getContentFormService resolves, but the returned cleanup only clears the interval id that exists at cleanup time. If the story unmounts before the promise resolves, the interval will still be created afterwards and leak across story changes/tests.

Comment thread tests/storybook/stories/tests/fontMapperTemplates.ts Outdated
Copilot AI review requested due to automatic review settings July 24, 2026 13:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

tests/storybook/src/runtime/outputs.ts:54

  • installLastOpenedEntities starts its polling setInterval only after getContentFormService() resolves, but the returned cleanup may run before that happens. In that case the interval can still be created later and never cleared, leaking timers and potentially updating a detached element after the story unmounts.

Comment thread tests/storybook/src/runtime/mountStory.ts Outdated
Comment thread tests/playwright/test/storybook/environment.ts Outdated
Copilot AI review requested due to automatic review settings July 24, 2026 13:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 24, 2026 13:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated 2 comments.

Comment thread tests/storybook/src/setup/serviceAgent.ts
Comment thread tests/storybook/.storybook/main.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 24, 2026 13:52
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

tests/storybook/src/runtime/outputs.ts:54

  • installLastOpenedEntities starts an async getContentFormService(...).then(...) chain but the returned cleanup only clears the interval. If the scenario is unmounted before the promise resolves, the then callback can still run afterwards and create a new interval that will never be cleared (leak + background polling). Add a disposal flag (and guard) so no interval is created after cleanup.

Copilot AI review requested due to automatic review settings July 24, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 130 out of 132 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

tests/storybook/src/runtime/outputs.ts:54

  • installLastOpenedEntities can leave the output element empty until getContentFormService() resolves, causing JSON.parse("") failures in Playwright output helpers, and it can also leak an interval if the story is unmounted before the service promise resolves (the interval would be created after cleanup). Initialize the element to a valid JSON value and make cleanup cancel pending setup + clear only a created interval.

Comment thread GOALS.md Outdated
- Locator-based wrappers continue to be supported where appropriate.
- No custom type shims remain that only exist to support `JSWrapper` internals.
- Storybook is deployed and reachable via GitHub Pages.
- `README.md` is updated at the end with the finalized Storybook/test setup documentation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be removed, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, left it only for the review as explanation. Will delete it

Comment thread IMPLEMENTATION_PLAN.md Outdated
Comment thread pnpm-workspace.yaml
tsx: ^4.20.6
typedoc: ^0.28.14
typescript: ^5.9.3
validate-peer-dependencies: ^2.2.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove validate-peer-dependencies?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm already does this: strict-peer-dependencies=true (is the default), so pnpm install fails on missing/conflicting peers — at install time

Comment thread TESTS_REFACTORING.md Outdated
Comment thread TESTS_REFACTORING_IMPL_PLAN.md Outdated
Copilot AI review requested due to automatic review settings August 4, 2026 12:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 126 out of 128 changed files in this pull request and generated no new comments.

Suppressed comments (1)

tests/storybook/src/runtime/outputs.ts:54

  • installLastOpenedEntities starts its polling interval only after getContentFormService() resolves, but the returned cleanup only clears the interval id currently stored. If the story is unmounted before the promise resolves, cleanup runs with id still undefined, and the interval can be created later and never cleared (timer leak / updates after teardown).

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.

3 participants