Page MenuHome GnuPG

Draft: Kleopatra: Feedback for invalid date input
Open, NormalPublic

Description

When testing T5864 I noticed that the UI "feedback" is confusing if you choose a date not in the configured range. This probably occurs on configuration of dates in general (if they have an allowed range), but I checked it out only for the case of key generation.

If you choose a not appropriate date in the calendar sheet, it will not be taken over into the "valid until" line. I expect the user will think that the program is broken, as there is no visual feedback that a not valid date was chosen.

If you choose the date by typing, the behavior is even more confusing: The inappropriate date is displayed in the "valid until" line (it was typed directly there, not in the second date field below the calendar sheet). But the value is not used when creating the key. Instead, the next possible valid value is used. Without any feedback.

I propose to

  • show invalid dates in another color in the calendar sheets (a different red than that of Sundays?)
  • show a invalid date in red in the "valid until" line, if you typed it in
  • some kind of text based feedback for a11y

Additionally it would be better to only display one text input line instead of two: one above the calendar sheet (thats the "real" line) and one below. Or if we do, they should either always display the same value (I suspect that that is not possible) or only one of them should accept direct input. That would logically be the one below, as there some check occurs on the date which is typed.

Details

Version
Gpg4win-4.2.0-beta346

Event Timeline

This issue is still valid in principle as of gpg4win-Beta-50 (and VSD Testversions for VSD 3.3).

The only thing which has improved is that when you try to change the expiry date by changing the date by editing the "valid until" line there is now an error dialog window informing you about the valid dates.

ebo renamed this task from Kleopatra: Feedback for invalid date input to Draft: Kleopatra: Feedback for invalid date input.Sep 30 2024, 3:56 PM

show invalid dates in another color in the calendar sheets (a different red than that of Sundays?)

The component here is KDateComboBox and it desperately needs something like this. It should probably be colors signifying a "disabled" state for those dates