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

fix: Add Image component and CDN src support to Graphic component #3062

Open
wants to merge 9 commits into
base: support
Choose a base branch
from

Conversation

mannycarrera4
Copy link
Contributor

Summary

Fixes: #3049

Release Category

Components

Release Note

  • A new Image component has been added to better support raster images or images loaded from a CDN/SAS.
  • The Graphic component now support a string via the src prop.

Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@github-actions github-actions bot added the ready for review Code is ready for review label Dec 5, 2024
Copy link

cypress bot commented Dec 5, 2024

Workday/canvas-kit    Run #8129

Run Properties:  status check passed Passed #8129  •  git commit 3ef5f4aae0 ℹ️: Merge 54a2dda926b7097d2a22fd08d243d89a90ad1901 into 359d262385a8e4d2f510dd2f1dee...
Project Workday/canvas-kit
Branch Review refs/pull/3062/merge
Run status status check passed Passed #8129
Run duration 05m 19s
Commit git commit 3ef5f4aae0 ℹ️: Merge 54a2dda926b7097d2a22fd08d243d89a90ad1901 into 359d262385a8e4d2f510dd2f1dee...
Committer Manuel Carrera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 3
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 1006
View all changes introduced in this branch ↗︎

@mannycarrera4 mannycarrera4 removed the ready for review Code is ready for review label Dec 5, 2024
@github-actions github-actions bot added the ready for review Code is ready for review label Dec 5, 2024
@mannycarrera4 mannycarrera4 changed the title feat: Add Image component and CDN src support to Graphic component fix: Add Image component and CDN src support to Graphic component Dec 6, 2024
@mannycarrera4 mannycarrera4 marked this pull request as ready for review December 9, 2024 16:39
**PR:** [#3062](https://github.com/Workday/canvas-kit/pull/3062)

We've updated `Graphic` and its `src` prop to accept a `string` value to support images loaded from a CDN or SAS. The previous API is still supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wanted to add this to the upgrade guide for people moving from v10 to v11

<h3>Using a Square Image</h3>
<Avatar as="div" size={200} url="https://placekitten.com/g/450/450" />
<Avatar as="div" size={200} url="https://i.imgur.com/himSfZn.jpeg" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These URLs were broken, so I updated them.

@mannycarrera4 mannycarrera4 added on hold PR is on hold until further notice and removed ready for review Code is ready for review labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold PR is on hold until further notice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant