From b80540e630c2a0a21538c6a7ccdd030b2527b848 Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:41:25 +0000 Subject: [PATCH] More tour content --- apps/antalmanac/src/lib/TutorialHelpers.tsx | 2 +- .../src/lib/tourExampleGeneration.ts | 44 ++++++++++++++++--- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/apps/antalmanac/src/lib/TutorialHelpers.tsx b/apps/antalmanac/src/lib/TutorialHelpers.tsx index e77fd88b4..78cc5a25c 100644 --- a/apps/antalmanac/src/lib/TutorialHelpers.tsx +++ b/apps/antalmanac/src/lib/TutorialHelpers.tsx @@ -169,7 +169,7 @@ export function namedStepsFactory(goToStep: (step: number) => void): RecordSelect the map tab to see where your classes are., + content: 'Click on a day to see your route!', action: () => setTab(2), mutationObservables: ['#map-pane'], }, diff --git a/apps/antalmanac/src/lib/tourExampleGeneration.ts b/apps/antalmanac/src/lib/tourExampleGeneration.ts index 941e68c92..45efb2025 100644 --- a/apps/antalmanac/src/lib/tourExampleGeneration.ts +++ b/apps/antalmanac/src/lib/tourExampleGeneration.ts @@ -53,6 +53,40 @@ export function addSampleClasses() { }, ], }, + { + meetings: [ + { + bldg: ['SSH 100'], + days: 'MWF', + startTime: { + hour: 11, + minute: 0, + }, + endTime: { + hour: 12, + minute: 20, + }, + timeIsTBA: false, + }, + ], + }, + { + meetings: [ + { + bldg: ['ALP 100'], + days: 'TuTh', + startTime: { + hour: 11, + minute: 0, + }, + endTime: { + hour: 11, + minute: 50, + }, + timeIsTBA: false, + }, + ], + }, ]; const sampleClasses: Array = sampleClassesOptions.map(sampleClassFactory); @@ -186,17 +220,17 @@ export function sampleClassFactory({ section: { color: '#FF0000', instructors: instructors, - maxCapacity: '1000', + maxCapacity: '500', meetings: meetings ?? sampleMeetingsFactory({}), finalExam: finalExam ?? sampleFinalExamFactory({}), numCurrentlyEnrolled: { - sectionEnrolled: '100', - totalEnrolled: '100', + sectionEnrolled: '500', + totalEnrolled: '500', }, numNewOnlyReserved: '0', - numOnWaitlist: '0', + numOnWaitlist: '99', numRequested: '0', - numWaitlistCap: '0', + numWaitlistCap: '100', restrictions: '', sectionCode: randint(10000, 99999).toString(), sectionComment: '',