Skip to content
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

Addon Test: Context menu updates #30107

Open
wants to merge 10 commits into
base: next
Choose a base branch
from
Open

Addon Test: Context menu updates #30107

wants to merge 10 commits into from

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Dec 19, 2024

What I did

  • Removed the edit mode toggle from the context menu because config is always global.
  • Removed coverage from the context menu, as we only support global coverage.
  • Swapped coverage and a11y in the testing module for consistency with the context menu (where we no longer have coverage).
  • Added tooltip notes to buttons that have no label.
  • Updated the title and description to be specific to the current entry rather than the global state.
  • Made pending status dot glow.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 77.8 MB 77.8 MB 0 B 1.04 0%
initSize 143 MB 143 MB 1.07 kB 1.63 0%
diffSize 65.6 MB 65.6 MB 1.07 kB 1.63 0%
buildSize 7.19 MB 7.19 MB 1.07 kB -1.14 0%
buildSbAddonsSize 1.85 MB 1.85 MB 0 B -0.96 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.87 MB 1.87 MB 1.07 kB 1.16 0.1%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.92 MB 3.92 MB 1.07 kB -0.86 0%
buildPreviewSize 3.28 MB 3.28 MB 0 B -1.22 0%
testBuildSize 0 B 0 B 0 B - -
testBuildSbAddonsSize 0 B 0 B 0 B - -
testBuildSbCommonSize 0 B 0 B 0 B - -
testBuildSbManagerSize 0 B 0 B 0 B - -
testBuildSbPreviewSize 0 B 0 B 0 B - -
testBuildStaticSize 0 B 0 B 0 B - -
testBuildPrebuildSize 0 B 0 B 0 B - -
testBuildPreviewSize 0 B 0 B 0 B - -
name before after diff z %
createTime 8.2s 24.4s 16.1s 1.43 🔺66.3%
generateTime 24.9s 19.6s -5s -312ms -0.76 -27.1%
initTime 18s 13.5s -4s -504ms -1.16 -33.3%
buildTime 9.3s 10.5s 1.1s 1.37 🔺10.7%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 5.2s 5.9s 732ms 0.51 12.3%
devManagerResponsive 3.8s 4.2s 452ms 0.29 10.6%
devManagerHeaderVisible 685ms 859ms 174ms 1.3 🔺20.3%
devManagerIndexVisible 695ms 889ms 194ms 1.2 21.8%
devStoryVisibleUncached 1.5s 2.1s 603ms 0.45 28%
devStoryVisible 723ms 883ms 160ms 1.19 18.1%
devAutodocsVisible 549ms 900ms 351ms 2.28 🔺39%
devMDXVisible 575ms 719ms 144ms 0.85 20%
buildManagerHeaderVisible 568ms 779ms 211ms 0.76 27.1%
buildManagerIndexVisible 679ms 792ms 113ms 0.2 14.3%
buildStoryVisible 559ms 762ms 203ms 1 26.6%
buildAutodocsVisible 519ms 650ms 131ms 1.09 20.2%
buildMDXVisible 524ms 580ms 56ms 0.77 9.7%

Greptile Summary

Based on the provided information, I'll create a concise summary of the changes to the TestProviderRender component in the Storybook addon-test module.

Updates TestProviderRender component to improve UI consistency and clarify configuration scope by adjusting menu options and their display order.

  • Removes edit mode toggle from context menu since configuration is always global (!entryId condition)
  • Relocates coverage section after accessibility section for consistent ordering across edit/view modes
  • Restricts coverage display to global level only by adding !entryId conditions
  • Maintains core functionality while improving UI organization and clarity

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

LGTM

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

nx-cloud bot commented Dec 19, 2024

View your CI Pipeline Execution ↗ for commit b82d3b0.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 37s View ↗

☁️ Nx Cloud last updated this comment at 2024-12-23 16:00:41 UTC

@storybook-pr-benchmarking
Copy link

storybook-pr-benchmarking bot commented Dec 19, 2024

Package Benchmarks

Commit: b82d3b0, ran on 23 December 2024 at 16:06:27 UTC

No significant changes detected, all good. 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants