-
Notifications
You must be signed in to change notification settings - Fork 0
Update for timeslot handling + api changes #121
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d90e49e
simplify expand event range logic
mirmirmirr 984c6f6
return day slots at once
mirmirmirr 04bbfe6
Revert "return day slots at once"
mirmirmirr dc4cadf
add timeslots to reducer state
mirmirmirr e9565ce
upaate get event
mirmirmirr 529e006
update dashboard handling
mirmirmirr fd2c8bd
update timezone handling
mirmirmirr 0855a9e
create timeslot utils
mirmirmirr d978c5e
change time from int to string
mirmirmirr 8fe32e7
formatApiTime
mirmirmirr f17f5b1
add the creator
mirmirmirr fb8cdf1
implement ios picker
mirmirmirr 1de4a89
add disabled state for dropdown
mirmirmirr 62f3c5e
Update page-client.tsx
mirmirmirr fa6a5f7
Merge branch 'editor-refactor' into api-updates
mirmirmirr 0abb433
Merge branch 'v0.1.3' into api-updates
mirmirmirr 0c3f964
three day range
mirmirmirr 62d8618
add ring to selectors
mirmirmirr 6a30543
Merge branch 'v0.1.3' into api-updates
mirmirmirr 86e5dd4
Update src/core/event/lib/expand-event-range.ts
mirmirmirr c704935
Update src/features/event/editor/date-range/specific-date-display.tsx
mirmirmirr 16f0db0
centralize time and date range validation
mirmirmirr 0d32505
Merge branch 'api-updates' of https://github.com/plan-cake/frontend i…
mirmirmirr 3d67479
universal datetime handling
mirmirmirr 4741e58
add comments to date-time-format.ts
mirmirmirr ed45c95
Update src/lib/utils/date-time-format.ts
mirmirmirr 23b77e5
display local details for dashboard information
mirmirmirr c8e1a3d
create universal timezone translation
mirmirmirr 87b8ad9
all eventRange dates in event time
mirmirmirr 447351d
reset default duration to 0
mirmirmirr 61ededc
re-instate time dropdown
mirmirmirr 58effb1
fix aria and alignment errors
mirmirmirr ca8b513
disable type selection
mirmirmirr 2ff7458
remove ability to select event type
mirmirmirr 3c25b24
increase spacing between info elements
mirmirmirr 75be478
update info drawer
mirmirmirr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { SpecificDateRange, WeekdayRange } from "@/core/event/types"; | ||
|
|
||
| const defaultTimeRange = { from: "09:00", to: "17:00" }; | ||
|
|
||
| export const DEFAULT_RANGE_SPECIFIC: SpecificDateRange = { | ||
| type: "specific" as const, | ||
| duration: 60, | ||
| timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, | ||
| dateRange: { | ||
| from: new Date().toISOString(), | ||
| to: new Date(Date.now() + 2 * 24 * 60 * 60 * 1000).toISOString(), | ||
| }, | ||
| timeRange: defaultTimeRange, | ||
| }; | ||
|
|
||
| export const DEFAULT_RANGE_WEEKDAY: WeekdayRange = { | ||
| type: "weekday" as const, | ||
| duration: 30, | ||
| timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, | ||
| weekdays: { Sun: 0, Mon: 1, Tue: 1, Wed: 1, Thu: 0, Fri: 0, Sat: 0 }, | ||
| timeRange: defaultTimeRange, | ||
| }; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.