Skip to content

fix(profile): allow category editing in media detail modal

Lakshy Yarlagadda requested to merge fix/editcategory into develop

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 CategoryTags with an optional editable mode (no duplicate category-fetch implementation).
  • Included updated category_ids in the record PATCH payload.
  • 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

Screenshots (if applicable): Screenshot_from_2026-04-19_14-25-02

Screenshot_from_2026-04-19_14-25-22 Screenshot_from_2026-04-18_09-57-53

Screenshot_from_2026-04-18_11-07-47

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

Merge request reports

Loading