feat: Limit the amount of days to load for a schedule (#13282)
* feat: Disallow next month prefetching in booker * renamed to include NEXT_PUBLIC * fixed boolean expression * Now using a variable length of days to load * Type fixes * Now opening all dates to be clickable * Added turbo.json var and updated example env * Fixed issue with selectedDate being null when first loading the page * Updated description of variable * Made constant for the booking days * Type fix * Setting the days to load for weekly view to 7 * feat: add ui and ability to fetch more on click * feat: add ui and ability to fetch more on click * fix: loader * fix: banner detection * Update packages/features/bookings/Booker/Booker.tsx * fix: types * Not showing HavingTroubleFindingTime component when the schedule is loading * Only enabled on monthly view * Correctly load initial date * Type fix * Fixed bugs around triggering multiple requests * Added case for when there is no selectedDate but the month has been specified * Types * More types * Check for undefined * More typing * More typing --------- Co-authored-by: sean-brydon <[email protected]> Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
10 files changed
+120
-7
No files matched your search
@@ -26,6 +26,7 @@
|
||||
"outputs": [".next/**"],
|
||||
"env": [
|
||||
"NEXT_PUBLIC_AVAILABILITY_SCHEDULE_INTERVAL",
|
||||
"NEXT_PUBLIC_BOOKER_NUMBER_OF_DAYS_TO_LOAD",
|
||||
"NEXT_PUBLIC_IS_E2E",
|
||||
"NEXT_PUBLIC_SENTRY_DSN",
|
||||
"NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE_MONTHLY",
|
||||
|
||||
Reference in new issue
Block a user