Skip to content

Commit 216c49c

Browse files
committed
Add tour step for fullscreen button
1 parent caf0959 commit 216c49c

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/exercises/components/CreateExercise/components/ParsonsExercise/components/ParsonsExerciseTour.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ export const ParsonsExerciseTour: FC<ParsonsExerciseTourProps> = ({
182182
await ensureBlockExists();
183183
await nextTick();
184184
await waitForElement('[data-tour="first-block"] [aria-label="Block options"]');
185+
},
186+
/* 14 — Fullscreen */
187+
13: async () => {
188+
await nextTick();
189+
await waitForElement('[data-tour="fullscreen-btn"]');
185190
}
186191
};
187192

bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/exercises/components/CreateExercise/components/ParsonsExercise/components/parsonsTourConfig.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,15 @@ export const PARSONS_TOUR_STEPS: TourStepConfig[] = [
137137
"In Enhanced Mode, click the <strong>⋮</strong> button to open a dropdown with advanced block settings: <strong>Block Type</strong> (Solution / Distractor), <strong>Paired</strong> toggle, <strong>DAG Configuration</strong> (Tag & DependsOn), <strong>Display Order</strong>, <strong>Add Alternative</strong>, and <strong>Add Explanation</strong>.",
138138
side: "left",
139139
align: "start"
140+
},
141+
142+
/* 14 — Fullscreen */
143+
{
144+
element: '[data-tour="fullscreen-btn"]',
145+
title: "Fullscreen Mode",
146+
description:
147+
"Click this button to enter <strong>Fullscreen</strong> mode. It gives you more screen space to work with blocks comfortably, especially for larger exercises.",
148+
side: "bottom",
149+
align: "end"
140150
}
141151
];

bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/exercises/components/CreateExercise/shared/ExerciseLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const ExerciseLayout = ({
103103
onClick={toggleFullscreen}
104104
tooltip={isFullscreen ? "Exit Fullscreen" : "Enter Fullscreen"}
105105
tooltipOptions={{ position: "bottom" }}
106+
data-tour="fullscreen-btn"
106107
/>
107108
)}
108109
<Button label="Cancel" icon="pi pi-times" severity="secondary" onClick={handleCancel} />

0 commit comments

Comments
 (0)