Skip to content

refactor: use @cloudfour/simple-svg-placeholder instead of copying source#14867

Open
jcfranco wants to merge 1 commit into
devfrom
jcfranco/use-simple-svg-placeholder-package
Open

refactor: use @cloudfour/simple-svg-placeholder instead of copying source#14867
jcfranco wants to merge 1 commit into
devfrom
jcfranco/use-simple-svg-placeholder-package

Conversation

@jcfranco

@jcfranco jcfranco commented Jul 22, 2026

Copy link
Copy Markdown
Member

Related Issue: N/A

Summary

✨🧹✨

@github-actions github-actions Bot added the refactor Issues tied to code that needs to be significantly reworked. label Jul 22, 2026
@jcfranco jcfranco changed the title refactor: use @cloudfour/simple-svg-paceholder instead of copying source refactor: use @cloudfour/simple-svg-placeholder instead of copying source Jul 22, 2026
@jcfranco
jcfranco requested a review from Copilot July 22, 2026 20: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

This PR removes the in-repo copy of Cloud Four’s simple-svg-placeholder implementation used for Storybook/demo placeholder images, and instead uses the published @cloudfour/simple-svg-placeholder package (with typings) as the source of truth.

Changes:

  • Replaced the local placeholderImage implementation with a direct re-export from @cloudfour/simple-svg-placeholder.
  • Added @cloudfour/simple-svg-placeholder and @types/cloudfour__simple-svg-placeholder to root devDependencies.
  • Updated package-lock.json to include the new dev dependencies.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
packages/components/.storybook/placeholder-image.ts Replaces vendored placeholder implementation with a re-export from the upstream package.
package.json Adds the upstream placeholder package and its type definitions as devDependencies.
package-lock.json Locks the newly added devDependencies.

@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Jul 22, 2026
@jcfranco
jcfranco marked this pull request as ready for review July 23, 2026 00:29
@jcfranco
jcfranco requested a review from benelan as a code owner July 23, 2026 00:29
@jcfranco
jcfranco requested a review from driskull July 23, 2026 00:29

@driskull driskull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@benelan benelan 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.

👍

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

Labels

pr ready for visual snapshots Adding this label will run visual snapshot testing. refactor Issues tied to code that needs to be significantly reworked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants