Skip to content

Conversation

@gavindsouza
Copy link
Contributor

In case the from_date is later than the to_date, or the other way around - set the least-value instead of simply unsetting it. Show an alert for the same.

Screenshot from 2025-03-14 15-51-09

image

In case the from_date is later than the to_date, or the other way around
- set the least-value instead of simply unsetting it. Show an alert for
  the same.
Copy link
Member

@ruchamahabal ruchamahabal left a comment

Choose a reason for hiding this comment

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

Showing the alert is cool but setting the date and showing the alert both can be confusing for the user, maybe? 🙈

User might think they selected 4th on from and to both and still got the message

@gavindsouza
Copy link
Contributor Author

I'd thought of adding a subsequent alert indicating the updated field value:

image

But @marination suggested reducing the noise and just highlighting the change simply since nobody deliberately tries to set the from date after the to date or vice versa:

image

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
@ruchamahabal ruchamahabal merged commit 7f54d06 into frappe:develop Apr 14, 2025
4 checks passed
ruchamahabal added a commit that referenced this pull request Apr 14, 2025
…2862

fix(ux): Set from_date or to_date automatically in Leave Application if to_date < from_date (backport #2862)
ruchamahabal added a commit that referenced this pull request Apr 14, 2025
…2862

fix(ux): Set from_date or to_date automatically in Leave Application if to_date < from_date (backport #2862)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants