Skip to content

Add storybook#255

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

Add storybook#255
jens-meisner wants to merge 66 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 14:57
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 (4)

tests/constants/package.json:5

  • This package is versioned as 27.0.0, but other workspace packages are already on 28.x (e.g. tests/playwright depends on @coremedia/ckeditor5-itest-constants as workspace:^28.0.0). With workspace:^, pnpm enforces the semver range, so the workspace install will fail unless this package version matches the requested range.
{
  "name": "@coremedia/ckeditor5-itest-constants",
  "version": "27.0.0",
  "author": "CoreMedia GmbH",
  "license": "Apache-2.0",

tests/storybook/package.json:5

  • @coremedia/ckeditor5-storybook-itest is versioned as 27.0.0 even though the workspace is already on 28.x (many packages, including tests/playwright, are 28.0.0). This will cause workspace:^28.0.0 consumers to fail to resolve this package version if/when referenced similarly.
    tests/storybook/package.json:15
  • The Storybook package depends on a set of @coremedia/ckeditor5-* workspace packages using workspace:^27.0.0, but those packages are already versioned 28.0.0 in this repo. With workspace:^, pnpm will reject the install because the dependency range doesn't match the local package versions.
    tests/storybook/src/runtime/outputs.ts:54
  • installLastOpenedEntities starts its polling interval asynchronously after getContentFormService() resolves. If the harness is cleaned up before that promise resolves (e.g. fast story switch/unmount), the returned cleanup will clear undefined, but the interval will still be created later and never cleared, leaking work in the iframe.

Comment thread tests/storybook/src/setup/applyScenario.ts Outdated
Copilot AI review requested due to automatic review settings July 24, 2026 13:02
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.

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