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

Add date and time picker to <DateFilter /> #2867

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

balanza
Copy link
Member

@balanza balanza commented Aug 6, 2024

Description

Add a DateTime for selecting a specific date and time as a filter value.

@balanza balanza force-pushed the ui-add-datepicker branch from 85a0527 to 3e7f9a7 Compare August 6, 2024 16:57
@balanza balanza changed the title Add date and time picker to `<DateFilter /> Add date and time picker to <DateFilter /> Aug 6, 2024
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Cool!

question: I was looking for 24h formatting, but I understood it being a bit of a pain. Same conclusion from you, I guess 😅

function Tick() {
return (
<span className="absolute inset-y-0 right-0 flex items-center pr-4">
<svg
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: we might use EOS_CHECK icon from eos icon-set.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I'd rather do it in another PR, as we might also refactor the Filter component. I prepared it already: #2870

@@ -160,6 +160,12 @@ export const Date = {
},
};

export const DateTime = {
args: {
type: 'datetime-local',
Copy link
Member

Choose a reason for hiding this comment

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

praise: well done in leveraging browser's calendar.

@balanza balanza force-pushed the ui-add-datepicker branch 2 times, most recently from 789b133 to 9ccc8da Compare August 7, 2024 09:01
Base automatically changed from ui-date-filter to main August 7, 2024 13:55
@balanza balanza force-pushed the ui-add-datepicker branch from 9ccc8da to f62f4e8 Compare August 7, 2024 14:07
@balanza balanza merged commit b9972ab into main Aug 8, 2024
27 checks passed
@balanza balanza deleted the ui-add-datepicker branch August 8, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants