-
Notifications
You must be signed in to change notification settings - Fork 0
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
138: Image level tags #252
Conversation
…t, and delete project tags
@nathanielrindlaub Added the errors to the error toast so I believe this one is ready to review. |
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.
@JesseLeung97 this is looking great! Code is clean and easy on the eyes so no notes there. I have a handful of UX requests though:
- Can we consolidate the manage tags and manage labels modals into a single modal? Perhaps using a tab at the top of the modal to separate them? I think the UIs and code are similar enough that it makes sense to combine them. I'd also like to provide some language that explains the difference between tags/labels to include but I can think on that and get it to you.
- Some of the language in the DeleteTagAlert.jsx isn't relevant to tags because we don't support enabling/disabling them and it won't effect the reviewed-state. You can replace those 3 bullet points with these two: "- remove it as an option to apply to your images" and "- remove all instances of it from your existing images".
- The adding/removing of tags feels a bit laggy because we're waiting on the response from the API before updating the frontend state. I think we should update frontend state immediately before getting a response, as we do with labels.
- Instead of using the "Select..." placeholder in the Tag Selector, use "Add tag" or even better a (+) icon and "Tag" like the Status filter in this shadcn example.
- Is there a way to make the width of the tag selection trigger narrower (doesn't need to be quite so wide), but keep the menu itself fairly wide? Also, ideally the menu would scale horizontally to fit longer tag names if necessary instead of wrapping the names, but that's more of a nice-to-have.
- the tag selector z-index appears to be higher than the modal z-index (try opening a modal while the loupe is open)
- can we try putting the ImageTagsToolbar below the ImageReviewToolbar? I think I would prefer the review tools closer to the image itself, but not entirely sure until I've played around with it more.
Let me know if that all makes sense and/or if you have other thoughts! Happy to discuss.
@nathanielrindlaub thanks for the feedback. I agree with these suggestions. I'll update the branch to have these changes |
feat(138): put tags bar below image review fix: fix wording in tag modal
feat(138): add hover cursor and text effects
@nathanielrindlaub Hey Natty, I believe I've made all the changes requested. For 4. I updated the 'image tags' to not wait on the API but left the 'project tags' as is with the spinner because it seems like that's the way labels work as well. In playing around with it, the only thing I've run into is if you add and then very quickly try and delete the same tag or delete and very quickly try and re-add the same tag, the api sometimes throws an error because the first operation is not finished by the time the second is triggered. Unless we wait for the API, I don't think this is avoidable and it's not something I anticipate users running into unless they specifically try and make it happen. |
fix: close tag menu when changing images fix: order unadded tags fix: remove search bar from tag selector
Context
Foundational implementation for #138
Creates UI for:
Creates API for:
TODO before merge
Related PR
Animl API