Skip to content

Remove unused viewLayer and addons from CLI metadata #1167

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 2 commits into from
Apr 3, 2025
Merged

Conversation

justin-thurman
Copy link
Contributor

@justin-thurman justin-thurman commented Mar 21, 2025

Description

This PR removes viewLayer and addons from the metadata calculated by the CLI. These values are no longer used, as this PR on the Chromatic repo.

Note to Apps Team reviewer

Can you please confirm that nothing I'm removing here is actually needed? The PR linked above is fairly old. I did inspect the code, and it seems to be largely unchanged, but still, a second set of eyes would be much appreciated!

Manual QA

I ran a build locally using the changes from this PR, and everything worked as expected.

📦 Published PR as canary version: 11.29.0--canary.1167.14240886817.0

✨ Test out this PR locally via:

npm install [email protected]
# or 
yarn add [email protected]

Copy link
Contributor

github-actions bot commented Mar 21, 2025

📦 Package Size: 5576 KB
✅ Compared to main: -4 KB b5c5fb0 (5580 KB)

Copy link

codecov bot commented Mar 21, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.00%. Comparing base (b5c5fb0) to head (5629e0a).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
node-src/lib/getStorybookMetadata.ts 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1167      +/-   ##
==========================================
- Coverage   70.19%   70.00%   -0.20%     
==========================================
  Files         203      202       -1     
  Lines        7385     7314      -71     
  Branches     1308     1301       -7     
==========================================
- Hits         5184     5120      -64     
+ Misses       2178     2171       -7     
  Partials       23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@justin-thurman justin-thurman added minor Auto: Increment the minor version when merged release Auto: Create a `latest` release when merged labels Mar 21, 2025
@justin-thurman justin-thurman marked this pull request as ready for review March 24, 2025 14:55
@justin-thurman justin-thurman requested review from a team March 24, 2025 14:55
Copy link
Contributor

@jmhobbs jmhobbs left a comment

Choose a reason for hiding this comment

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

Looks right from the CLI side of things, will wait on apps to confirm.

Copy link
Contributor

@tevanoff tevanoff left a comment

Choose a reason for hiding this comment

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

Looks good! I didn't notice anything amiss on builds with the canary.

@justin-thurman justin-thurman added this pull request to the merge queue Apr 3, 2025
Merged via the queue into main with commit a6e4842 Apr 3, 2025
21 of 23 checks passed
@justin-thurman justin-thurman deleted the CAP-2359 branch April 3, 2025 10:32
@chromatic-ci-bot
Copy link
Collaborator

🚀 PR was released in v11.28.0 🚀

@chromatic-ci-bot chromatic-ci-bot added the released Verdict: This issue/pull request has been released label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Auto: Increment the minor version when merged release Auto: Create a `latest` release when merged released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants