TT-6815 update workflow status component#204
Conversation
gtryus
commented
Feb 11, 2026
- Introduced new translation units for workflow step tips in both XLIFF and XLF files.
- Updated the MobileWorkflowSteps component to display tips for current steps in a dialog.
- Enhanced the state management for workflow steps to include completed step tracking.
- Added new string keys for tips in the localization model and reducers.
- remove unused WorkflowStepsMobile component
There was a problem hiding this comment.
Pull request overview
Updates the mobile workflow status UI to show per-step tips (localized) and to visually distinguish completed steps, while adding the necessary localization keys and translation units.
Changes:
- Added new
workflowSteps.*Tipstring keys to the localization model and default English strings. - Enhanced
MobileWorkflowStepsto show a tip dialog for the current step and to render different colors for current/completed/incomplete steps. - Added translation units for the new tip strings in both
.xlfand.xliff, and removed the unusedWorkflowStepsMobilecomponent and its Cypress test.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
| src/renderer/src/store/localization/reducers.tsx | Adds English default strings for the new workflow-step tip keys. |
| src/renderer/src/store/localization/model.tsx | Extends IWorkflowStepsStrings with the new *Tip keys. |
| src/renderer/src/store/localization/exported-strings-name.json | Updates exported strings bundle reference. |
| src/renderer/src/components/PassageDetail/mobile/WorkflowStepsMobile.tsx | Removes unused mobile wrapper component. |
| src/renderer/src/components/PassageDetail/mobile/WorkflowStepsMobile.cy.tsx | Removes Cypress coverage for the removed component. |
| src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx | Adds completed-step coloring and a localized tip dialog for the current step. |
| src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.cy.tsx | Adds Cypress coverage for new coloring and tip dialog behavior. |
| localization/TranscriberAdmin-en.xlf | Adds translation units for the new workflow-step tip strings. |
| localization/TranscriberAdmin-en-1.2.xliff | Adds translation units for the new workflow-step tip strings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Outdated
Show resolved
Hide resolved
e3d00d7 to
753fdeb
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Outdated
Show resolved
Hide resolved
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Show resolved
Hide resolved
753fdeb to
ca29981
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 6 comments.
Comments suppressed due to low confidence (1)
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx:73
- The old WorkflowStepsMobile component supported pagination for workflow steps when there were too many to display at once (using firstStepIndex and next/prev buttons). The new MobileWorkflowSteps component sets overflowX to 'hidden' which means workflow steps that don't fit on screen will be hidden with no way to access them. Consider either adding pagination back or changing overflowX to 'auto' or 'scroll' to allow horizontal scrolling.
<Box
sx={{
display: 'flex',
justifyContent: 'center',
gap: 0.75,
overflowX: 'hidden',
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Outdated
Show resolved
Hide resolved
| </Typography> | ||
| )} | ||
| <Dialog open={tipOpen} onClose={() => setTipOpen(false)}> | ||
| <DialogTitle>{getWfLabel(currentLabel ?? '')}</DialogTitle> |
There was a problem hiding this comment.
The null coalescing operator is unnecessary here since currentLabel is already checked to be truthy in the parent conditional at line 109. This can be simplified to just getWfLabel(currentLabel).
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Show resolved
Hide resolved
- Introduced new translation units for workflow step tips in both XLIFF and XLF files. - Updated the MobileWorkflowSteps component to display tips for current steps in a dialog. - Enhanced the state management for workflow steps to include completed step tracking. - Added new string keys for tips in the localization model and reducers. - remove unused WorkflowStepsMobile component
ca29981 to
4148a01
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/renderer/src/components/PassageDetail/mobile/MobileWorkflowSteps.tsx
Outdated
Show resolved
Hide resolved
| <ButtonBase | ||
| key={step.id} | ||
| data-cy="workflow-step" | ||
| role="button" |
There was a problem hiding this comment.
The step indicator buttons are focusable/clickable but have no accessible name (no text, no aria-label). Add an aria-label (e.g., derived from getWfLabel(step.label)) so screen readers can announce what each step button represents.
| role="button" | |
| role="button" | |
| aria-label={getWfLabel(step.label)} |
There was a problem hiding this comment.
This is way more information given to the user of the mobile app so I don't think this is appropriate.
…wSteps.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>