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

Filter Conferences by Date Range #761

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JuanPabloDiaz
Copy link
Contributor

@JuanPabloDiaz JuanPabloDiaz commented Sep 11, 2024

@cgrail
Copy link
Member

cgrail commented Sep 11, 2024

Looks good. But there is a compile error

@JuanPabloDiaz
Copy link
Contributor Author

Looks good. But there is a compile error

I finally got it lol

@JuanPabloDiaz
Copy link
Contributor Author

JuanPabloDiaz commented Sep 13, 2024

I am happy how it turns out

Let's test it!

image

@nimzco
Copy link
Member

nimzco commented Sep 14, 2024

Hey @JuanPabloDiaz, thank you for this proposal and this PR!

In terms of usability, how about only showing months instead of full dates in the picker? I'm even thinking, only showing one month, to be like: "show me conference after this date".

If we were to keep start and end date, I would like the filter to update as soon as I select the start date. Meaning: I don't need to select the end date to see the conference list change.
Additionally, we need to handle the mobile view, or to hide it on mobile.


const handleStartDateSelect = (date: Date | null) => {
if (date) {
setStartDate(date)
Copy link
Member

@nimzco nimzco Sep 14, 2024

Choose a reason for hiding this comment

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

Don't you want to handle when the user empties the input? (comment is meant for the line above)

.dateRangePicker {
display: flex;
width: 400px;
padding: 2px;
Copy link
Member

Choose a reason for hiding this comment

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

This padding breaks the vertical alignment, see:
image

display: flex;
width: 400px;
padding: 2px;
gap: 2px;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
gap: 2px;
gap: spacing(tight);

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.

3 participants