-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Add project tags #75047
Add project tags #75047
Conversation
a878daf
to
5e9644c
Compare
50983b7
to
7c01041
Compare
Oh this I will love. +5 |
Favorite state shouldn't be stored in version control, as every user will have a different definition of a "favorite" project. You don't want a random downloaded project to automatically appear in favorites just because its author added a |
Like idea, but visually it could get some more love 😅 |
godotengine/godot-proposals#1133 is about There is also a tabs idea, with many 👍. |
7c01041
to
62b1e24
Compare
Like what? |
I think it would be less eye-popping if the saturation is forced to less than, say, 0.7? |
I'll try to give some visual feedback later tonight 👍 |
Can these tags be searched for using the search input? I don't see anything referencing it in the code. I also think that the colors are a but overwhelming, for me a single color would enough. That's just personal preference of course. |
Yes, the second video shows filtering.
Colors make them easier to distinguish visually. Could be less saturated maybe.
Named tags are more descriptive. Also that design allows only one tag per project. |
Here are 4 quick ideas for different looks of tags. I didn't change behaviour of tags (placement, etc.) just visuals. First idea is closest to your PR @KoBeWi, just littlebit more pleasing to the eyes in my opinion. Other 3 are just for discussion purposes... but personally I kinda like second idea? |
2 is a lot more readable to me at least, and I think more accessible |
Also, just an idea... but adding and removing tags directly from project manager view might be more intuitive and it might look better than tag manager popup? But... it might be not consistent with how other stuff work in project manager (renaming, deleting etc...). Sugested fix for that is on bottom of this answer. And same idea. but second design: Adding tag to project (this one is more like a quick example, maybe flow container would be better? dunno...) Also I was suggesting some changes to project manager overall in this PR (#74561) (You sort by clicking on header name, edit project by clicking on it and all other stuffs are under 3 dots menu. Buttons not connected to any project are on top bar - new project, scan etc.) (sorry for shameless plug in this PR...) |
Using the okhsl colors functions will give a more even gradient if you were trying for a constant lightness (slightly darker) |
Quick-editing tags like this won't work well for 2 reasons:
In any case, I think my design matches the current Project Manager design, your suggestion is better for a re-design, which this PR is not about. |
@KoBeWi that's great! There is a small graphical glitch though, the band doesn't really cover the rounded corners fully: I wonder if this also changes according to the rounded rectangles amount in the theme (if that even matters here) |
db1a355
to
9bb68cd
Compare
Thats ok. Great work nonetheless. Thanks for taking my idea into consideration |
It's not feasible to disallow conflicts in this case. You might add e.g. |
Once you can edit the color of the tags, it would be ok? |
But editing a tag color should edit only this specific tag or all tags? And if all tags, it should update all assigned tags to be consistent, which is not really possible... |
I think we should edit only the pecific tag. as you mentioned, edit all tags will not allow update all assigned tags. |
What if when detected tags with the same name and different color, the user was asked what color he wants to keep? |
I think Tags should also not be stored in You don't want a random downloaded project to mess with your nicely organized tags in project manager as well. |
If we don't store tags in |
9bb68cd
to
f458b77
Compare
Rebased after the recent refactor. Unfortunately I made a mistake and the old tag look got squashed. I preserved it in a patch: 75047.patch.txt |
Tested this PR locally (rebased against latest It's pretty good so far, but I've found ways to further improve its usability:
|
f458b77
to
2b93dd2
Compare
@Calinou All points addressed. |
I get a warning when building locally:
Also, the Close icon next to tags doesn't appear when the tag is freshly added in the Manage Tags dialog. It only appears if you close then reopen the dialog. |
2b93dd2
to
dc41261
Compare
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great now!
I think it looks weird with the unsupported features list. That list looks weird to begin with, but with the tags added to the mix, it just looks inconsistent. (Almost like it's two different people designed these two features.) I think it's worth addressing this awkward design before merging. But otherwise I can confirm that it works as expected. We would probably want to do more with this feature, but as a starter kit for managing tags it's perfectly capable. |
dc41261
to
e767ff5
Compare
Another long-awaited feature implemented. Great job! |
@Abab-bk i can't read the tags in your design, because the text color is too similar to the background color. i like the current design much better because the text has much better contrast. |
This PR adds ability to assign tags to projects. A project can have any number of tags and they are stored in
project.godot
. Tags are only usable and editable via Project Manager.You can edit tags using the new Manage Tags button.
godot.windows.editor.dev.x86_64_9m3ovMnIUm.mp4
The dialog includes all tags used by projects on your project list. You can add or remove tags to the project simply by clicking them.
You can filter and sort projects by tag.
godot.windows.editor.dev.x86_64_9DflE8DQtX.mp4
Tag sort works based on the alphabetical order of tags.
Right now tag colors are assigned based on their name and they can't be edited. This is because a tag is a simple String.
Closes godotengine/godot-proposals#2329
To consider: Favorite projects can be possibly removed now. You can just slap afavorite
tag.EDIT:
I added a bit more restrictions to tags, to make them more consistent (when multiple people create the same tag etc.). They can be only lowercase now, but they appear capitalized on project list:
EDIT2:
Redesigned tags after feedback