Skip to content

Commit b566f81

Browse files
committed
TT-7335 Add some comments
1 parent dbde0b6 commit b566f81

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
2323
import { IWorkflowStepsStrings } from '../../../model';
2424
import { toCamel } from '../../../utils/toCamel';
2525

26+
// TODO: Hook this up with real passages
2627
const mockPassages = [
2728
'Passage 1',
2829
'Passage 2',
@@ -118,6 +119,7 @@ export default function MobileWorkflowSteps() {
118119
width: '100%',
119120
}}
120121
>
122+
{/* Passage dropdown */}
121123
<Box ref={dropdownRef} sx={{ flexShrink: 0, mr: 1 }}>
122124
<Button
123125
size="small"
@@ -133,6 +135,7 @@ export default function MobileWorkflowSteps() {
133135
open={Boolean(passageMenuAnchor)}
134136
onClose={() => setPassageMenuAnchor(null)}
135137
>
138+
{/* TODO: Hook this up with real passages */}
136139
{mockPassages.map((p) => (
137140
<MenuItem
138141
key={p}
@@ -147,6 +150,7 @@ export default function MobileWorkflowSteps() {
147150
))}
148151
</Menu>
149152
</Box>
153+
{/* Workflow step parallelograms */}
150154
<Box
151155
sx={{
152156
flex: 1,
@@ -178,7 +182,7 @@ export default function MobileWorkflowSteps() {
178182
sx={{
179183
flex: '0 0 80px',
180184
height: 30,
181-
mr: -0.25,
185+
mr: -0.25, // Overlap adjacent parallelograms so their edges meet cleanly
182186
backgroundColor: isCurrent
183187
? theme.palette.grey[700]
184188
: stepComplete(step.id)
@@ -191,6 +195,7 @@ export default function MobileWorkflowSteps() {
191195
/>
192196
);
193197
})}
198+
{/* Spacer to mirror the dropdown width so mx:auto centers the parallelograms */}
194199
<Box sx={{ flexShrink: 0, width: dropdownWidth }} />
195200
</Box>
196201
</Box>

0 commit comments

Comments
 (0)