api-oas-checker icon indicating copy to clipboard operation
api-oas-checker copied to clipboard

Update highlights on editor lines accordingly to the user modifications of the text

Open emilioSp opened this issue 4 years ago • 4 comments

This is a usability issue.

The monaco editor demands to the user the updates on lines highlights

emilioSp avatar Dec 22 '20 15:12 emilioSp

In the old editor, I limited the re-validation rate at 1/5seconds. You could just warn the user with an icon stating that he needs to revalidate (eg. set the auto-validate button to red...)

ioggstream avatar Dec 23 '20 15:12 ioggstream

It sounds good. Adding @Fupete for visibility.

emilioSp avatar Dec 23 '20 17:12 emilioSp

The "validation required" icon/color should be set:

  • when text is altered
  • when the ruleset is changed

ioggstream avatar Dec 30 '20 15:12 ioggstream

I imagine we are talking about situations with "Auto refresh" off, right? Preliminary ideas:

  1. use an alert (https://italia.github.io/bootstrap-italia/docs/componenti/alert) and at the same time anim/blink the button in some way to be more visible;
  2. change the text in the button from "Validate" to "Need to re-validate" or something like that and change its color (or blink/anim)
  3. ... I will think better about it next days.

Fupete avatar Jan 08 '21 13:01 Fupete