Skip to content

Require explicit confirmation before changing a report status #23

Open

Description

@niat-web

Technical Area

Frontend / Accessibility and data safety (admin.html, js/admin.js)

Description

On the staff page a report's status is saved as soon as a dropdown value changes. This can cause accidental updates, especially for keyboard users who move through the options.

Current Behavior

js/admin.js listens for the change event on each status dropdown and calls updateStatus immediately. In Chrome, pressing the arrow keys on a focused dropdown fires change for every key press. Test: focus a dropdown and press ArrowDown twice. Two PATCH requests were sent (IN_PROGRESS, then FIXED) and the report ended as FIXED without Enter being pressed. There is no confirmation and no undo.

Expected Behavior

A status is saved only after an explicit action by the user.

What Needs to Change

Add a clear way to save a new status, and make sure that changing the dropdown alone does not update the server. The design of the control is open to the contributor.

Acceptance Criteria

  • Changing the dropdown selection alone does not send a request to the server
  • The user has a clear way to save the new status
  • Saving is not possible (the save action is disabled) when the selection is the same as the saved status
  • The control is disabled while the request is in progress
  • Success and error feedback is shown clearly, next to the report that was changed
  • A keyboard-only user can complete the whole flow

Activity

  1. added
    bug
    frontend
    on Sep 29, 2026
  2. vegadarsiwork commented on Nov 4, 2026

    @vegadarsiwork

    Hi! I'd like to work on this. Plan: changing the status dropdown no longer saves. Each row gets a Save button (disabled when unchanged or while saving) with success/error feedback next to the report. Works with keyboard only.

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

    bugfrontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions