CodeForPhilly / CodeForPhilly/balancer-main

refactor: feedback form contains dead/abandoned code

Open
#478 0 comments 0 reactions 0 assignees View on GitHub
Documentation
Dominant language
TypeScript
Stars
21
Forks
19
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.