digdir / dialogporten-frontend

Brukergrensesnitt for Dialogporten
https://digdir.github.io/dialogporten-frontend/
MIT License
4 stars 2 forks source link

Dialogs filter popup should have exception for date picker #1320

Open mbacherycz opened 4 weeks ago

mbacherycz commented 4 weeks ago

Description of the bug

If there is only 1 option available inside the filter popup, we are not showing this option. That is to cleanup the popup from options that will have no effect on filtering the dialogs.

Because of that logic, in certain cases, the option to choose the date picker is also hidden. Dialogs filter popup should have exception for date picker even if there is less then 2 option "within" the date filter choice.

Steps To Reproduce

Go to http://app.localhost/?mock=true. Click on the "legg til filter" button. Expected Outcome: The date picker should be available as an option, given that there are dialogs listed with various creation/modification timestamps. Actual Outcome: No date picker option is present, despite timestamped dialogs being available.

Screenshot 2024-10-30 at 14 16 52

Additional Information

No response