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
@@ -128,3 +128,8 @@ export const MAX_NB_INVITES = 100;
|
||||
export const URL_PROTOCOL_REGEX = /(^\w+:|^)\/\//;
|
||||
|
||||
export const IS_VISUAL_REGRESSION_TESTING = Boolean(globalThis.window?.Meticulous?.isRunningAsTest);
|
||||
|
||||
export const BOOKER_NUMBER_OF_DAYS_TO_LOAD = parseInt(
|
||||
process.env.NEXT_PUBLIC_BOOKER_NUMBER_OF_DAYS_TO_LOAD ?? "0",
|
||||
0
|
||||
);
|
||||
Reference in new issue
Block a user