Skip to content

TT-7472 Revamp header/footer step (or passage) navigation#374

Closed
nghtctrl wants to merge 542 commits into
sillsdev:masterfrom
nghtctrl:TT-7472
Closed

TT-7472 Revamp header/footer step (or passage) navigation#374
nghtctrl wants to merge 542 commits into
sillsdev:masterfrom
nghtctrl:TT-7472

Conversation

@nghtctrl

Copy link
Copy Markdown

No description provided.

gtryus and others added 30 commits April 30, 2026 15:09
- Added IPlayerState interface to manage player state in PassageDetailPlayer.
- Integrated playerState prop to allow external control of player state.
- Updated SelectMyResource to adjust TextField styling based on mobile detection, improving responsiveness on smaller screens.
- Added optional width prop to TeamCheckReferenceMobile for better layout control.
- Adjusted paneWidth calculation to utilize the new width prop, enhancing responsiveness.
- Improved ResizeObserver implementation for dynamic width updates.
- Updated conditional checks for currentstep and currentSegmentIndex to ensure they are only assigned when defined, enhancing code robustness.

Co-authored-by: Greg Trihus <gtryus@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Implemented `normalizeTextToUsfm` function to handle conversion from USJ and USX formats to USFM.
- Created tests for `normalizeTextToUsfm` to ensure correct functionality for various input formats.
- Developed `preprocessTextTranslationBurritoToUsfm` to ensure `textTranslation` burritos contain `text/usfm` ingredients, facilitating migration scripts.
- Integrated preprocessing step in `ImportTab` to automatically generate USFM ingredients during import.

Co-authored-by: Greg Trihus <gtryus@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Introduced `resolvePathUnderRoot` utility to safely resolve paths within a specified root directory, preventing directory traversal vulnerabilities.
- Updated `preprocessTextTranslationBurritoToUsfm` to utilize the new path resolution utility, ensuring that burrito and ingredient paths remain within the designated wrapper directory.
- Added tests to verify that the preprocessing function correctly skips paths that resolve outside the wrapper directory, enhancing security and robustness.
- Refactored related functions in `parseBurritoMetadata` to incorporate the new path resolution logic, ensuring consistent behavior across the application.

Co-authored-by: Greg Trihus <gtryus@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…-transcriptions

TT-7262  Convert usj and usx to usfm for import
…crolls to the bottom

- Introduced a new test file for the StepEditor component, implementing various test cases to validate the loading of workflow steps, the addition of new steps, and the behavior of the sticky toolbar during scrolling.
- Enhanced the StepEditor component to support scrolling new steps into view and improved the layout of the sticky toolbar for better user experience.
- Added a list end anchor to facilitate scrolling behavior when new steps are added, ensuring that the UI remains intuitive and responsive.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
TT-7087 Impove StepEditor Add so it leaves button on the screen and scrolls to the bottom
- Removed direct index usage in favor of a memoized approach to select media rows based on `transSelected`, addressing potential lag issues.
- Enhanced state management for selected media, ensuring proper synchronization with the textarea.
- Updated effects to respond to changes in selected media, improving overall responsiveness and user experience.
- Refactored logic in `TranscriberContext` to ensure accurate selection of transcriber roles and media files, enhancing data integrity.
- Adjusted `useTodo` hook to handle index defaults more robustly.
TT-7046 Update PBT step submit to move step and update transcription
- Introduced a new test file for the useMediaUpload hook, covering various scenarios including online success, failure paths, and offline handling.
- Refactored the upload completion logic to utilize a dedicated finishUpload function, improving code clarity and maintainability.
- Enhanced snackbar messaging to provide user feedback on upload status, ensuring a better user experience.
- Updated dependencies and mock implementations to support the new test cases and functionality.
- Introduced state management for bootstrapped team ID in ProjectsScreen to handle team selection more effectively.
- Updated useEffect hooks to prevent infinite render loops and ensure proper team switching logic for PAP-like users.
- Added SwitchTeamsGuard component to redirect users with only a personal team to the team home, enhancing user experience.
- Conditional rendering of the "Switch Teams" button based on user type to streamline the interface.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
TT-4965 Show success message when uploading recorded audio
- Added a Tooltip around the project name to improve user experience by providing additional context.
- Refactored layout to ensure proper handling of text overflow and alignment within the ProjectCard.
- Updated the structure to maintain responsiveness and visual clarity.
- Removed text overflow handling from ProjectCard to streamline layout.
- Simplified upload completion logic in useMediaUpload to accurately reflect upload success in the success message, enhancing user feedback.
TT-6963 long project names shown with elipsise
- Added Typography import for better text handling.
- Implemented checks for schemeId to prevent unnecessary actions and ensure proper rendering of scheme names.
- Updated visibility condition for AssignSection to use null check for improved clarity.
- Added `teamDirectoryReady` state to `TeamContext` to indicate when team data is available.
- Updated `setState` logic in `TeamProvider` to manage team changes and readiness more effectively.
- Refactored `ProjectsScreen` to simplify team ID handling and ensure proper navigation based on team selection.
- Introduced `SwitchTeamsGuard` to conditionally redirect users based on team availability, improving user experience for PAP-like users.
- Updated tests to reflect changes in team context and navigation logic.
TT-6964 no empty permission scheme dialog
TT-6962 No Switch Teams for work alone offline
…ieval

- Introduced useMemo to compute the performer from media records, improving performance by reducing unnecessary calculations.
- Updated useEffect dependencies to ensure correct state updates for speaker and rights management based on mediafileId and performer data.
…der look

- Updated height calculations in WSAudioPlayer to consider new props `keepItSmall` and `hideToolbar`.
- Enhanced rendering logic in WSAudioPlayer to conditionally display components based on new state.
- Adjusted height in CommentEditor from 200 to 40 for better layout management.
- Set `hideToolbar` and `showSize` props in CommentEditor for a more compact UI.
TT-7179 Refactor PassageDetailRecord to optimize media performer retrieval
TT-7169 Refactor WSAudioPlayer and CommentEditor for simplified recorder look
- Introduced new utility functions for handling media file paths and extensions, improving file management.
- Updated the useBurritoAudio hook to ensure proper directory creation and error handling for media downloads.
- Added logic to prevent duplication of section-level resources during media export.
- Implemented new tests for getBurritoMediaExportStem and getMediaExt to validate media file handling.
- Refactored existing code for better readability and maintainability.
- Enhanced the `getMediaExt` utility to utilize content type for determining file extensions, including new cases for webm and opus formats.
- Introduced a mapping for audio MIME types to their corresponding file extensions in `mimeTypes.ts`.
- Updated tests for `getMediaExt` to cover additional scenarios, ensuring robust media file handling.
- Refactored `useBurritoAudio` and `useCreateBurrito` for improved readability and maintainability.
TT-7124 Enhance useBurritoAudio fore resource burrito creation

- Introduced new utility functions for handling media file paths and extensions, improving file management.
- Updated the useBurritoAudio hook to ensure proper directory creation and error handling for media downloads.
- Added logic to prevent duplication of section-level resources during media export.
- Implemented new tests for getBurritoMediaExportStem and getMediaExt to validate media file handling.
- handle all supported audio types
nghtctrl added 28 commits June 18, 2026 12:40
…ze. Also get rid of maxWidth limit for labels
@nghtctrl nghtctrl closed this Jun 29, 2026
@nghtctrl nghtctrl deleted the TT-7472 branch June 29, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants