FIRST-Tech-Challenge / scorekeeper

FIRST Tech Challenge Live Scorekeeper Software
88 stars 21 forks source link

FTA Notepad: Editing an existing Issue does not properly update state #759

Open timtim17 opened 3 hours ago

timtim17 commented 3 hours ago

Describe the bug When updating an existing issue in the FTA Notepad, checking the resolved checkbox or changing the type does not update the UI in the modal, though the change is made.

Additionally, changes are made even if "Cancel" is pressed on the modal.

To Reproduce Steps to reproduce the behavior:

  1. Go to the FTA Notepad
  2. Create an Issue on a team
  3. Attempt to edit the issue by changing the resolved state or type
  4. Observe that the UI is not actually updated to reflect the change
  5. Click "Cancel"
  6. Observe that the notepad is actually updated with the changes

Expected behavior The resolved checkbox and issue type dropdown should reflect the changes.

Screenshots [edited link] https://github.com/user-attachments/assets/d6206842-a931-40e9-a392-85b4c74b76c2

Device (please complete the following information):

timtim17 commented 3 hours ago

Additionally, editing the summary does not properly reflect the updates in the text box, and on save/cancel only the last keypress is appended to the field.