feat: add reusable tag selector for Add/Edit Task dialogs#390
feat: add reusable tag selector for Add/Edit Task dialogs#390its-me-abhishek merged 4 commits intoCCExtractor:mainfrom
Conversation
|
Thank you for opening this PR! Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools. Please take a moment to:
More information on how to conduct a self review: This helps make the review process smoother and gives us a clearer understanding of your thought process. Once you've added your self-review, we'll continue from our side. Thank you! |
Hell1213
left a comment
There was a problem hiding this comment.
Done with self review , PR adds a reusable tag component that makes tag management easier for users. Instead of typing tags manually , users can now select from existing tags or create new ones through a dropdown. The component is used in both Add Task and Edit Task dialogs, removing code duplication.
its-me-abhishek
left a comment
There was a problem hiding this comment.
Overall looks good, do checkout the suggestions
| @@ -200,7 +196,7 @@ export const Tasks = ( | |||
| }, [props.email]); | |||
| useEffect(() => { | |||
There was a problem hiding this comment.
this useEffect could be removed, completely
| handleNewTagCreate(); | ||
| } | ||
| } | ||
| // Do nothing if search is empty |
There was a problem hiding this comment.
do remove the comment
|
|
||
| expect(screen.queryByText('tag2')).not.toBeInTheDocument(); | ||
| await waitFor(() => { | ||
| // Check that tag1 is not in the selected tags badges area |
There was a problem hiding this comment.
kindly remove the comment
There was a problem hiding this comment.
and other such comments
| @@ -0,0 +1,556 @@ | |||
| import { render, screen, fireEvent, waitFor } from '@testing-library/react'; | |||
There was a problem hiding this comment.
tests would need to be updated, upon changing the file name
|
sure @its-me-abhishek , i have implemented all changes as requested will push soon . |
cd58387 to
4937543
Compare
|
@Hell1213 , after 0:48, the tags did not get removed, though, seems to be a bug |
thanks for pointing out , I'm looking into it and will push soon when it get fixed . |
4937543 to
3affb2a
Compare
|
hey @its-me-abhishek pls take a look I have ,updated that demo video and done with changes in code as needed . |
its-me-abhishek
left a comment
There was a problem hiding this comment.
Kindly provide some context, or revert these changes, probably the issue was just frontend related
|
|
||
| // Handle tags | ||
|
|
||
| output, err := utils.ExecCommandForOutputInDir(tempDir, "task", taskID, "export") |
There was a problem hiding this comment.
i think the old logic was fine, probably some frontend bug would have caused that issue, considering a UI revamp would not break any backend func, unless already broken
thanks , I'll be in scope and would not touch backend and revert edit task file, |
3affb2a to
3392553
Compare
4219262 to
1e78c56
Compare
1e78c56 to
854cab3
Compare
|
hey @its-me-abhishek ,please take a look , |
|
cool, LGTM, merging this! Thanks for the PR! |
Replaced manual tag input with a dropdown selector to fix typos and inconsistent tagging.
Changes:
Added new TagMultiSelect component with dropdown for tag selection
Replaced manual tag input in Add Task dialog with TagMultiSelect
Replaced manual tag input in Edit Task dialog with TagMultiSelect
Save/cancel buttons now appear inline with selected tags
Fixes: #210
Checklist
Additional Notes
The new component makes tag management easier:
Click dropdown to see all existing tags
Search or create new tags by typing
Press Enter or create tag to add a tag
Click X on tag badges to remove them
Save/cancel buttons show up next to the tags
Demo
Screencast.from.2026-01-15.11-28-26.mp4