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

Renamed user-*-2 to user-round-* #1638

Merged
merged 6 commits into from
Nov 24, 2023

Conversation

jmsv
Copy link
Contributor

@jmsv jmsv commented Oct 26, 2023

What is the purpose of this pull request?

  • New Icon
  • Bug fix
  • New Feature
  • Documentation update
  • Other:

Rename icons

Description

Renamed all user-*-2 icons to user-round-* as-discussed in #1620, using script from #1630:

node ./scripts/renameIcon.mjs user-2 user-round
node ./scripts/renameIcon.mjs user-check-2 user-round-check
node ./scripts/renameIcon.mjs user-circle-2 user-round-circle
node ./scripts/renameIcon.mjs user-cog-2 user-round-cog
node ./scripts/renameIcon.mjs user-minus-2 user-round-minus
node ./scripts/renameIcon.mjs user-plus-2 user-round-plus
node ./scripts/renameIcon.mjs user-search-2 user-round-search
node ./scripts/renameIcon.mjs user-square-2 user-round-square
node ./scripts/renameIcon.mjs user-x-2 user-round-x
node ./scripts/renameIcon.mjs users-2 users-round

@github-actions github-actions bot added 🎨 icon About new icons 🫧 metadata Improved metadata labels Oct 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

Added or changed icons

icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg

Preview cohesion icons/function-square.svg icons/parking-square-off.svg icons/square-dot.svg icons/square-asterisk.svg icons/x-square.svg icons/arrow-down-left-square.svg icons/square-equal.svg icons/minus-square.svg icons/message-square-plus.svg icons/chevron-down-square.svg icons/square-user.svg
icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg
icons/arrow-down-z-a.svg icons/image-down.svg icons/arrow-down-left-from-circle.svg icons/chevron-left-square.svg icons/monitor-stop.svg icons/book-headphones.svg icons/library-square.svg icons/folders.svg icons/folder-lock.svg icons/copy-slash.svg icons/glasses.svg
Preview stroke widths icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg
icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg
icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg
DPI Preview (24px) icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg
Icon X-rays icons/circle-user-round.svg icons/circle-user.svg icons/square-user-round.svg icons/square-user.svg icons/user-round-check.svg icons/user-round-cog.svg icons/user-round-minus.svg icons/user-round-plus.svg icons/user-round-x.svg icons/user-round.svg icons/users-round.svg

Copy link
Member

@jguddas jguddas left a comment

Choose a reason for hiding this comment

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

LGTM

@jguddas
Copy link
Member

jguddas commented Oct 26, 2023

One question, how do we decide if it should be user-square or square-user?

@jmsv
Copy link
Contributor Author

jmsv commented Oct 26, 2023

One question, how do we decide if it should be user-square or square-user?

I reckon user-square makes more sense since the user is the main subject. There's also user-circle in a similar format.

@jmsv
Copy link
Contributor Author

jmsv commented Oct 26, 2023

Vercel build failed but I can't see why 🤔

@jguddas
Copy link
Member

jguddas commented Oct 26, 2023

Vercel build failed but I can't see why 🤔

Probably permission issue.

@jguddas
Copy link
Member

jguddas commented Oct 26, 2023

One question, how do we decide if it should be user-square or square-user?

I reckon user-square makes more sense since the user is the main subject. There's also user-circle in a similar format.

Good point, pretty important part of the naming convention IMO.

Otherwise, people might name them by most common elements, and for user-square that would be square and not user since it uses the same square as square but not the same user as user.

@jmsv
Copy link
Contributor Author

jmsv commented Oct 26, 2023

One question, how do we decide if it should be user-square or square-user?

I reckon user-square makes more sense since the user is the main subject. There's also user-circle in a similar format.

Good point, pretty important part of the naming convention IMO.

Otherwise, people might name them by most common elements, and for user-square that would be square and not user since it uses the same square as square but not the same user as user.

Reckon this is something that should be included in the Naming conventions docs then? Happy to PR if so. Something like:

7. Names should start with the subject of the icon rather than any variant description.\
   For example: `user-square` instead of `square-user`

@jmsv
Copy link
Contributor Author

jmsv commented Oct 26, 2023

Vercel build failed but I can't see why 🤔

Probably permission issue.

Looks like it yes – I get a 404. Do you have access to see what failed?

@jmsv
Copy link
Contributor Author

jmsv commented Oct 27, 2023

Hmm, merged main and the new "Fail if contributors have changed" check is failing @jguddas

@jguddas
Copy link
Member

jguddas commented Oct 27, 2023

Hmm, merged main and the new "Fail if contributors have changed" check is failing @jguddas

Good catch, #1643 is the fix.

…quare|circle) to (square|circle)-user* also as per Discord
Copy link
Member

@jguddas jguddas left a comment

Choose a reason for hiding this comment

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

LGTM

@karsa-mistmere
Copy link
Member

Nice work, @jmsv!

I'm piggybacking this PR to give the user-round icons a bit of a visual overhaul and some much needed optimization, as already discussed with @ericfennis and @jguddas on Discord. Our current icons were just far too small in comparison to other icons, the new layout allows for much better visual weight and better consistency within this set of icons.

I've also renamed user-*-square and user-*-circle to square-user-* and circle-user-* respectively, as these names are much less confusing and more semantically correct. In the future, we'll probably also add this naming scheme to our guidelines.

@jmsv
Copy link
Contributor Author

jmsv commented Oct 30, 2023

Nice work, @jmsv!

I'm piggybacking this PR to give the user-round icons a bit of a visual overhaul and some much needed optimization, as already discussed with @ericfennis and @jguddas on Discord. Our current icons were just far too small in comparison to other icons, the new layout allows for much better visual weight and better consistency within this set of icons.

I've also renamed user-*-square and user-*-circle to square-user-* and circle-user-* respectively, as these names are much less confusing and more semantically correct. In the future, we'll probably also add this naming scheme to our guidelines.

Thanks @karsa-mistmere!

Ah okay cool, I thought we were going the the opposite (user-shape over shape-user) but I don't mind either way 😃

on Discord

Joined, can't find the discussion though – do you have a link/possible to tag me please?

@karsa-mistmere
Copy link
Member

Joined, can't find the discussion though – do you have a link/possible to tag me please?

Oh, it was a private conversation in our maintainers' chat, sorry I wasn't clearer about this. 😅

Ah okay cool, I thought we were going the the opposite (user-shape over shape-user) but I don't mind either way 😃

We weren't quite sure either, and we do currently have a mix of both name formats, we're leaning more towards <shape>-<content> because in most scenarios the resulting names will end up a bit less confusing and more logically extensible:

  • some feel a bit funny, user-round-square ("What even is a round square?") and user-round-circle ("Aren't all circles round?")
  • should we ever have square-user-round-plus icon, this name would be a much more trivial extension of square-user-round than either user-round-plus-square or user-round-square-plus would be of user-round-square.

@jmsv
Copy link
Contributor Author

jmsv commented Nov 1, 2023

Oh, it was a private conversation in our maintainers' chat, sorry I wasn't clearer about this. 😅

Ah ok! No problem

We weren't quite sure either, and we do currently have a mix of both name formats, we're leaning more towards <shape>-<content> because in most scenarios the resulting names will end up a bit less confusing and more logically extensible:

  • some feel a bit funny, user-round-square ("What even is a round square?") and user-round-circle ("Aren't all circles round?")
  • should we ever have square-user-round-plus icon, this name would be a much more trivial extension of square-user-round than either user-round-plus-square or user-round-square-plus would be of user-round-square.

Makes sense 👍

The updated user-round style looks great btw! 👌

Thanks for updating #1620 to match too

Copy link
Member

@ericfennis ericfennis left a comment

Choose a reason for hiding this comment

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

Great work @jmsv !!

@ericfennis ericfennis merged commit 1a09e7f into lucide-icons:main Nov 24, 2023
5 checks passed
@jmsv jmsv deleted the rename/user-2-to-user-round branch November 26, 2023 11:22
@jmsv
Copy link
Contributor Author

jmsv commented Nov 26, 2023

Great work @jmsv !!

Thanks for the merge! 🚀

I also have #1620 open, was waiting for this one to get merged first with the new user-round-* naming

@karsa-mistmere karsa-mistmere mentioned this pull request Feb 11, 2024
23 tasks
realguse pushed a commit to realguse/lucide that referenced this pull request Dec 25, 2024
* Renamed user-*-2 to user-round-*

* Added user-round icon optimizations as per Discord + renamed user*-(square|circle) to (square|circle)-user* also as per Discord

---------

Co-authored-by: Karsa <contact@karsa.org>
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 icon About new icons 🫧 metadata Improved metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants