Skip to content

Move error into picker#2780

Merged
david-crespo merged 4 commits intomainfrom
fix-error-date-picker
Apr 4, 2025
Merged

Move error into picker#2780
david-crespo merged 4 commits intomainfrom
fix-error-date-picker

Conversation

@benjaminleonard
Copy link
Contributor

Fixes #2778

image

@vercel
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 4, 2025 5:11pm

@david-crespo
Copy link
Collaborator

Nice! Non-focused border doesn't go all the way around:

image image image

@david-crespo
Copy link
Collaborator

Green dot in red day.

image

@benjaminleonard
Copy link
Contributor Author

Nice! Non-focused border doesn't go all the way around:

It actually doesnt go round in either, the ring is tricking you. Will take a look at both.

@david-crespo
Copy link
Collaborator

Out of scope for this PR because it's about the picker state logic, but I find this interaction weird. I make the range invalid by setting end time before start time, which makes sense, but then the way we keep the invalid range around is kind of odd: if I click two different days, then we get a valid range because of course 4/3 10pm - 4/4 9pm is a valid range. But then I click the same day twice and it becomes invalid again because 4/3 10pm - 4/3 9pm is invalid. I understand the logic, and maybe it's just consistent and there isn't a better way, but I feel like maybe we could be more aggressive in resetting the times, or we could make clearer visually that the start time is associated with the start date, maybe by displaying the date above the times. Right now it feels a little disjointed because you have to look at both the input at the bottom of the popover and the thing at the top to really understand what you've chosen. The times at the bottom look like a time range within a single day, which is only true when the start and end days are the same.

2025-04-04-date-picker-error-states.mp4

@benjaminleonard
Copy link
Contributor Author

Out of scope for this PR because it's about the picker state logic, but I find this interaction weird.

I think we could make a general issue for datepicker nits now we've sat with the current implementation for a while.

@benjaminleonard
Copy link
Contributor Author

Today dot and focused border should be fixed now

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

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

fantastic, huge improvement

@david-crespo david-crespo merged commit ab06a33 into main Apr 4, 2025
7 checks passed
@david-crespo david-crespo deleted the fix-error-date-picker branch April 4, 2025 18:33
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.

Funky error display on system metric time picker

2 participants