Skip to content

Tech Debt - Refactor Image Upload, implement useImageUpload hook #8731

@linear

Description

@linear

During the MediaFile cycle, a useImageUpload hook was created with the intention of being reused between the ImageUpload and ImageSection components.
See PR: #8710
Since ImageUpload refactoring was out of scope for MediaFiles cycle we logged this as tech debt to be done at some later stage due to low priority.

It is however good to consolidate this and avoid having multiple duplicate code if we can help it.
Worth noting this is the type of ticket that may be doable by and AI, work experimenting with a Cursor to Linear integration perhaps. Will add a label

Acceptance Criteria:

  • Refactor ImageUpload.tsx to use useImageUpload.tsx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions