Skip to content

Commit

Permalink
Set workshop signups to start 4h before program item (#951)
Browse files Browse the repository at this point in the history
* Set workshop signups to start 4h before program item

* Improve comment
  • Loading branch information
Archinowsk committed Jul 2, 2024
1 parent 1e5a447 commit 34af15f
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 89 deletions.
31 changes: 3 additions & 28 deletions shared/config/sharedConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface SharedConfig {
directSignupWindows: Partial<
Record<ProgramType, ArrMin1<SignupWindow>>
> | null;
rollingSignupStartProgramTypes: ProgramType[];
directSignupAlwaysOpenIds: string[];
tracesSampleRate: number;
enableSentryInDev: boolean;
Expand Down Expand Up @@ -101,34 +102,6 @@ export const sharedConfig: SharedConfig = {
},
],

workshop: [
// Friday
{
signupWindowStart: dayjs(`${friday}T12:00:00Z`), // Fri 15:00 GMT+3
signupWindowClose: dayjs(`${friday}T21:00:00Z`), // Fri 24:00 GMT+3
},
// Saturday morning / day
{
signupWindowStart: dayjs(`${friday}T15:00:00Z`), // Fri 18:00 GMT+3
signupWindowClose: dayjs(`${saturday}T11:00:00Z`), // Sat 14:00 GMT+3
},
// Saturday day / evening
{
signupWindowStart: dayjs(`${saturday}T06:00:00Z`), // Sat 09:00 GMT+3
signupWindowClose: dayjs(`${saturday}T21:00:00Z`), // Sat 24:00 GMT+3
},
// Saturday evening / sunday morning
{
signupWindowStart: dayjs(`${saturday}T15:00:00Z`), // Sat 18:00 GMT+3
signupWindowClose: dayjs(`${sunday}T11:00:00Z`), // Sun 14:00 GMT+3
},
// Sunday
{
signupWindowStart: dayjs(`${sunday}T06:00:00Z`), // Sun 09:00 GMT+3
signupWindowClose: dayjs(`${sunday}T21:00:00Z`), // Sun 24:00 GMT+3
},
],

experiencePoint: [
// Whole convention Fri - Sun
{
Expand All @@ -146,6 +119,8 @@ export const sharedConfig: SharedConfig = {
],
},

rollingSignupStartProgramTypes: [ProgramType.WORKSHOP],

// These program items have their signup always open even if signup mode is set to algorithm
directSignupAlwaysOpenIds: [
"pathfinder-society-4-99-blessings-of-the-forest", // Pathfinder Society #4-99 Blessings of the Forest
Expand Down
Loading

0 comments on commit 34af15f

Please sign in to comment.