Skip to content

Conversation

@micsucmed
Copy link
Contributor

@micsucmed micsucmed commented Aug 23, 2024

Problem
When clicking on the comment box in the editing timeline, the "Judge" button disappears, creating confusion with some editors, who don't realize they have to cancel the comment before they get back the judgment button.

Solution
The Judge drop-down button will remain visible when commenting and preserve any written text when changing to a judge action.

closes #6503

@micsucmed micsucmed self-assigned this Aug 23, 2024
@micsucmed micsucmed force-pushed the judge-button-comment branch from 9efd061 to 1b82bdc Compare August 23, 2024 12:01
@tomasr8 tomasr8 requested a review from duartegalvao August 23, 2024 12:19
@micsucmed micsucmed force-pushed the judge-button-comment branch from a1f6d1f to b390f5d Compare August 23, 2024 13:20
@ThiefMaster ThiefMaster force-pushed the judge-button-comment branch from b390f5d to f5568cf Compare August 27, 2024 13:27
@ThiefMaster ThiefMaster changed the title Judge button comment Keep comment when opening judgment form Aug 27, 2024
Comment on lines 94 to 99
setTimeout(() => {
onFocus();
setValue(value);
onBlur();
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's really dirty, but if that's what it takes to make final form work.. 😅

@ThiefMaster ThiefMaster force-pushed the judge-button-comment branch from f5568cf to 7f61cd6 Compare August 27, 2024 14:43
@ThiefMaster ThiefMaster added this to the v3.3 milestone Aug 28, 2024
micsucmed and others added 13 commits September 3, 2024 11:47
Set state for text area value
Unfortunately final-form is kind of broken when it comes to setting an
initial field value in a way that marks the field dirty, so we have to
use this ugly workaround instead.
Make sure the submit (Judge) button is enabled when writing a comment
and then switching e.g. to "Reject" mode with that pre-filled comment.
@ThiefMaster ThiefMaster enabled auto-merge (squash) September 3, 2024 09:58
@ThiefMaster ThiefMaster merged commit 1c7be1c into indico:master Sep 3, 2024
@micsucmed micsucmed deleted the judge-button-comment branch September 26, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Judge button on editing revisions

3 participants