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

Feature/ilkka starting time freely & duration time can be set freely too #175

Merged
merged 23 commits into from
Jul 9, 2024

Conversation

iltelko2
Copy link
Collaborator

@iltelko2 iltelko2 commented Jul 8, 2024

Feature/ilkka starting time freely & duration time can be set freely too

in this feature branch there are 2 features (my mistake but does it matter...)

user can select starting time by custom button

and also duration

tests are missing and some minor stuff but I make a separate pr for those

@iltelko2 iltelko2 self-assigned this Jul 8, 2024
frontend/src/components/BookingDrawer/DurationPicker.tsx Outdated Show resolved Hide resolved
frontend/src/components/BookingView/StartingTimePicker.tsx Outdated Show resolved Hide resolved
setStartingTime,
setExpandTimePickerDrawer
} = props;
const [time, setTime] = useState<string>(DateTime.now().toFormat('HH:mm'));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Olisiko tässä tapauksessa mahdollista hoitaa jotenkin StartingTimePickerDrawerin sisäinen aikaleimojen käsittely DateTime (tai Date) muodossa, ja vasta "setStartingTime"ä kutsuttaessa muuttaa aikaleima string muotoiseksi? Voisi selvitä vähemmällä string muotoisten aikalaiemojen käsittelyllä ja saattaisi helpottaa vertailuoperaatioita jne.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

katson myöhemmin refaktoroinnin yhteydessä helpottaisiko se, teen toisen pr:n siitä

@iltelko2 iltelko2 merged commit 87346a7 into release/summer-2024 Jul 9, 2024
9 checks passed
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