-
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
Open
mirmirmirr
wants to merge
27
commits into
v0.1.3
Choose a base branch
from
api-updates
base: v0.1.3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default durations should be set to "None" initially as it was before. It's an advanced option that users should only set if they explicitly want it.