Skip to content

Commit

Permalink
More tour content
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed Jan 26, 2024
1 parent 5e79294 commit b80540e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/antalmanac/src/lib/TutorialHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function namedStepsFactory(goToStep: (step: number) => void): Record<Tour
},
mapPane: {
selector: '#map-pane',
content: <>Select the map tab to see where your classes are.</>,
content: 'Click on a day to see your route!',
action: () => setTab(2),
mutationObservables: ['#map-pane'],
},
Expand Down
44 changes: 39 additions & 5 deletions apps/antalmanac/src/lib/tourExampleGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ScheduleCourse> = sampleClassesOptions.map(sampleClassFactory);
Expand Down Expand Up @@ -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: '',
Expand Down

0 comments on commit b80540e

Please sign in to comment.