-
-
Notifications
You must be signed in to change notification settings - Fork 602
Open
Description
Describe the feature
Description
The AI tagging of the images in PictoPy are sometimes wrong. There should be a feature to remove the wrong AI tagging so that user have an option to remove that tag.
Current Feature
- Image show AI tags but they don't have option to remove it.
Expected Feature
- Tags should have option to remove it. This option should be visible when we hover on it.
Implementation
Backend:- Created a delete route with parameters for
tag nameandimage id. - Get
class_idfrom mapping (Database) with the help oftag name. - With the help of
image_idandclass_idwe can remove the tagging from image_classes.
- Created a delete route with parameters for
Frontend:- Added the delete endpoint to
apiEndpoints.tsand created an asynchronous function usingAxiosto handle theDELETErequest to the backend. - Implemented a reducer in
imageSlice.tsthat filters out the deleted tag from theReduxstore, ensuring the UI reflects the change immediately without a page refresh. - Linked the tag removal logic to the
ImageTags(home gallery) andMediaInfoPanel(image details) components, passing necessary imageId props to trigger deletions. - Added an "X" button to each tag that stops click propagation to prevent opening the image and includes a loading state to disable multiple clicks during the deletion process.
- Added the delete endpoint to
Add ScreenShots
Screenshots
- API working properly.
- Wrong AI tagging. ( no frisbee in image ) and there is not any option to remove the tagging.
- Added an option to remove the tags.
- Tag removed on clicking the "X" icon.
- Tags with option to remove is also visible in Media Info.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels



