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

Airplane icon added (angled) #497

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Airplane icon added (angled) #497

merged 2 commits into from
Oct 29, 2024

Conversation

emilmilanov
Copy link
Contributor

Share icon is added
image

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cypress-design ✅ Ready (Inspect) Visit Preview Oct 29, 2024 0:09am

Copy link

changeset-bot bot commented Oct 28, 2024

🦋 Changeset detected

Latest commit: 4ecfbb0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@cypress-design/react-icon Patch
@cypress-design/vue-icon Patch
@cypress-design/icon-registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

cypress bot commented Oct 28, 2024

cypress-design    Run #2507

Run Properties:  status check passed Passed #2507  •  git commit 42e3534c06 ℹ️: Merge 4ecfbb02186a3850e7677f94b72066191fc108cb into f62edcd9176f43b33dcb78e32881...
Project cypress-design
Branch Review icon/share
Run status status check passed Passed #2507
Run duration 02m 35s
Commit git commit 42e3534c06 ℹ️: Merge 4ecfbb02186a3850e7677f94b72066191fc108cb into f62edcd9176f43b33dcb78e32881...
Committer Emil Milanov
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 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 222
View all changes introduced in this branch ↗︎
UI Coverage  11.36%
  Untested elements 166  
  Tested elements 25  
Accessibility  99.37%
  Failed rules  0 critical   1 serious   0 moderate   1 minor
  Failed elements 22  

@@ -0,0 +1,7 @@
---
'@cypress-design/react-icon': minor
Copy link
Contributor

Choose a reason for hiding this comment

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

@emilmilanov I believe that the icon updates were considered as patch updates, instead of minor typically. We should probably continue to follow that pattern. Everything else looks good though.

Choose a reason for hiding this comment

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

In looking at older PRs that introduce new icons, I saw both minor and patch used.

From a semantic versioning definition, I think this type of change would align with minor: "when you add functionality in a backward compatible manner"

But I think you could argue either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

I used yarn changeset to create this part of the code; it doesn't offer a patch option, only major or minor. I can override this to patch if we agree on it. When I added icons to the DS before, I always used minor.

Copy link
Contributor

Choose a reason for hiding this comment

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

@warrensplayer I'll let you make the final call on that. I'd rather just make sure we know which pattern to use and to stick with that. If you've got strong feelings on the matter, we'll just follow your lead.

That said, I kind of just guessed that bart was using patch updates more often as to not run out of minor numbers. I don't know how many numbers are available before a major version is required. Maybe it's endless?

Choose a reason for hiding this comment

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

@ryanjwilke There is no limit to the numbers.

@emilmilanov I did go back and look a little bit harder and the CHANGELOG.md files and it does seem like most of the changes that add icons use patch. So I guess update your changeset file to use patch as well for all three packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changeset is updated from minor to patch. I also renamed icons to object-airplane-angled...

Choose a reason for hiding this comment

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

@emilmilanov Instead of just "share" as the name, would it make sense to call them "share-airplane" or something like that in case we ever add different icons for "share"?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I agree on that. I do think that the icons should probably just reflect the name of whatever it is that has been illustrated instead of a semantic name. (i.e. airplane, airplane-angled, etc)

@emilmilanov emilmilanov changed the title Share icon added Airplane icon added (angled) Oct 29, 2024
Copy link
Contributor

@ryanjwilke ryanjwilke left a comment

Choose a reason for hiding this comment

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

@emilmilanov The code looks good. Do you mind just checking through the Percy screenshots as well? Most likely it's nothing and that build can be approved to before this merges in.

Let me know if it's largely flaky results. There's probably something we can do to reduce the flaky results in the future.

@emilmilanov emilmilanov merged commit 1ebd6f0 into main Oct 29, 2024
15 checks passed
@emilmilanov emilmilanov deleted the icon/share branch October 29, 2024 14:53
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.

3 participants