Skip to content

refactor: feedback form contains dead/abandoned code #478

Open

Description

@amahuli03

Current State:

FeedbackForm.tsx contains dead code from an abandoned feature:
An unused useMutation block (lines 81-100) that posts to a non-existent localhost:3001/text_extraction endpoint. The mutation is never triggered — only its isLoading value is used by the submit button.
~50 lines of commented-out image attachment submission logic (lines 127-178)
~70 lines of commented-out image attachment UI (lines 354-421)
The actual form submission is handled by onSubmit (line 112), which works fine independently.

It looks like the image submission feature was abandoned. The commented out code looks irrelevant now, since it included a Jira integration. Just remove it and we can come back to this later if we want to allow image attachments in the feedback form.

Changes needed:

Remove the useMutation block, all commented-out code, and any unused imports (e.g. useMutation from react-query). The submit button (around line 433) references isLoading from the removed mutation.

Activity

  1. moved this to Ready to Pick Up in Balanceron Mar 10, 2026
  2. moved this from Ready to Pick Up to Backlog in Balanceron Jul 8, 2026
  3. moved this from Backlog to Ready to Pick Up in Balanceron Jul 8, 2026
  4. moved this from Ready to Pick Up to Backlog in Balanceron Jul 8, 2026
  5. moved this from Backlog to Ready to Pick Up in Balanceron Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    • Status
      Ready to Pick Up

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions