Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ux): Set from_date or to_date automatically in Leave Application if to_date < from_date #2862

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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

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.

2 participants