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

feat: ✨ update time picker #112

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

Conversation

KevinWu098
Copy link
Member

@KevinWu098 KevinWu098 commented May 31, 2024

Summary

  1. Replaces svelty-picker with default HTML selects for time and period

chrome-capture-2024-5-3

Screenshot 2024-06-03 at 10 07 13 AM

Closes #84

@KevinWu098 KevinWu098 marked this pull request as ready for review June 3, 2024 17:09
@seancfong
Copy link
Member

@KevinWu098 Is it possible to validate the start time before the end time on the time picker?

Currently I can create a meeting from 11pm - 4pm and it has some unintentional behavior.

image

Copy link
Member

@seancfong seancfong left a comment

Choose a reason for hiding this comment

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

Looks good and everything works. Just a few things to clean up and it's ready to go.

return hour.toString().padStart(2, "0");
}

$: $startTime = `${convertTo24Hour(startHour, startPeriod)}:00` as `${string}:${string}`;
Copy link
Member

Choose a reason for hiding this comment

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

There is a HourMinuteString type in src/lib/types/chrono.ts and it would be nice to use that.

src/lib/components/creation/Creation.svelte Outdated Show resolved Hide resolved
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.

Re-design meeting setup time picker
2 participants