Skip to content

Bug: PAT QueryPanelComponent Refresh/Reset/Delete

PAT: This bug concerns the QueryPanelComponent. It is used in the daily question answering process.

Current behavior

When the user enters an answer, no reset/refresh/delete button appears. The button does appear when the user uses the left/right arrows or pagination to navigate the slides. Then it sometimes flashes very briefly.

Expected behavior

When the user gave an answer the refresh/reset/delete button (see below for wording) should appear.

How to reproduce?

Open PAT variant, click 'Fragen beantworten', find a question, that does not have an answer yet. Input an answer -> No refresh/reset/delete button appears.

Wording mixup!

The button in question is a delete button, because it is supposed to delete the answer from storage and the screen. It uses a refresh icon and in a a way resets the form for a particular question. So either naming seems legit.

The QueryPanelComponent has two modes: default and autosave. In default mode answers are not stored automatically, but only after the user actively clicked a submit button. The default mode shows different buttons:

  • delete button: Deletes the answer from the storage and the screen
  • reset button: When the user changed an answer but has not submitted it: restores the previously stored answer. -> Undo user changes
  • submit button: permanently stores the answer

In autosave mode there is no submit button and no reset button. Changes get stored automatically as soon as the user inputs/changes the answer. The delete button is (functionally) still there, but gets another icon: the refresh icon.

I propose to name the button by what it is doing rather than by what icon it shows (I'd also pick an icon that matches what it is doing, but that another issue). So the button this issue is about, is the `delete button'.

Screen shots (wide, but the issue is the same in mobile view)

no_refresh_button_to_reset_answer

arrow_press_reset_visible

Current & Desired: When the user returns to an answer card which was answered in the "past" the reset button is correctly visible and usable.

reset_button_on_returning_to_card

Edited by Andreas Pittrich