fix(profile): allow category editing in media detail modal
Description:
Merge Description
Summary
This change fixes profile media editing so categories can be updated when clicking Edit in the media detail modal.
What changed
- Enabled category selection in edit mode inside
MediaDetailModal. - Reused existing category logic by extending
CategoryTagswith an optional editable mode (no duplicate category-fetch implementation). - Included updated
category_idsin the recordPATCHpayload. - Added category-aware “no changes” detection.
- Prevented saving when no category is selected.
Scope
- Minimal, targeted fix only for category edit behavior in profile media details.
- Existing read-only category display remains unchanged.
Validation
- Ran:
npm run type-check - Result: passed
Issue
closes #239 (closed)
Type of Change:
-
Bug Fix -
Feature Development -
Documentation
Testing:
-
Tested on desktop -
Tested on mobile -
Tested in different browsers
Add a link to the demo of the PR
If you have used AI create this PR, please also record video of yourself explaining the changes.
Link to code walkthrough
Checklist:
-
Code follows project style guidelines -
Self-review completed -
No console errors -
TypeScript types are correct
Edited by mondyagu abhilash



