Commit 1758b2c
Greg Trihus
TT-7300 Align Mark Verses with mobile design
- Improved segment matching logic in usePlayerLogic for better accuracy.
- Updated WSAudioPlayer to support new markVersesTailOpenRef prop for managing verse states.
- Enhanced PassageDetailMarkVerses to handle incomplete verse rows and apply region colors dynamically.
- Refactored EditReferenceDropdown to manage end verse options and suffix handling more effectively.
- Improved MarkVersesTableIsMobile to allow for better interaction and visual feedback based on segment states.
- Added tests to ensure correct behavior of new features and UI changes.
Enhance PassageDetailMarkVersesIsMobile tests
- Updated existing test to verify that the reference input is not read-only when editable.
- Added new test to ensure the reference input remains read-only and disabled when the row lacks timestamps.
- Improved interaction feedback for better user experience in mobile view.
Recomendations from UX (AI 2nd draft)
- Clicking + to add segment while playing should not stop playing but it does.
- Marking verses should autosave (remove Save button)
- After adding segment, the position is set to the beginning of the preceeding segment instead of the new segment. I think this used to work better. Also the second segment is yellow for active even though the position is in the first segment which is shown as completed.
- When you click in a segment region (except the first) you have to press Play twice to play.
- When you click add a segment boundary and click play, it plays the segment before. I think this used to work better on the last commit.
- When undoing a boundary deletion. the table correctly shows the segment boundaries but the boundary does not show on the wave form.
- We can mark a verse to be 1:11a but then the following verse should start with 1:11b (instead of 12)
- The reset button still shows after the Mark Verses wave form and table are reset and there is nothing more to reset.
Recomendations from UX (AI 1st draft)
- Add segment while playing should not stop playing
- Marking verses should autosave (remove Save button)
- After adding segment, you have to tap Play twice to resume
- Related: The design shows that the succeeding segment should be selected after adding, not the preceding. This was a specific request from you, so I'm wondering if you're unaware that this is not working?
- The rows should not be editable. Please also remove the textfield-style underline for the Reference cells. I do see some merit to this for the desktop, but on mobile devices, showing the keyboard every tap is very distracting. (I did not run this local branch on my mobile device.)
- The rows should be in a scrollable area, not the whole page. Moving to a scrollable table will reduce the scrollable space, so you'll at that point really need to focus on minimizing the vertical space consumed by the rest of the page. For example, the Plus/Minus row consumes a lot of height. Same for the Play/Duration row.
- After you do this comment, the next important thing to do is to scroll to the row when selecting a segment in the waveform. (Right now it's a little frustrating that all the later rows are highlighted offscreen.)
- The Edit Reference doesn't appear to support spanning chapters. This was a request during the design phase. Maybe it's not MVP?
- The Edit Reference dropdown numbers look really large. Maybe Jiho can help with general styling and spacing these new pages.
- When deleting a boundary, the waveform and table highlights get out of sync, and it appears to select the segment after where the cursor is.
- I like the way the Minus button works with segment selection, even though it doesn't match the design.
- Undo seems broken. It's more of a question in the design whether or not we need it, but in its current state it is not very useful.
- Undo seems to undo more than the previous action.
- Undo seems to not appear many times, e.g. add, delete, etc.
- Undo also seems to disappear after one undo operation. Is it just saving the most recent action? It's pretty difficult to test in its current state.
- Save navigates away from the page? It appears to also do a Step Complete, which should not be happening either. These issues should go away if you can accomplish autosave for this step.
- I'm not really sure how to mark something as just a partial verse, e.g. 1:11a. This may be a flaw in the design. Do you know how to do this in the app? (other than manual entry in the row)
- Reset does not remove the table row highlight (visual quirk)
- Reset is not recoverable. Either do a confirmation dialog or make it undo-able.
feat: enhance verse marking functionality with letter suffix handling and autosave improvements
feat: improve playback handling during region splits to prevent unwanted seeks
feat: enhance verse parsing and suffix handling in mark verses functionality
Fix static reported issues.
Enhance refMatch functionality to support same verse letter ranges and improve test coverage for edge cases. Added tests for valid and invalid letter suffix scenarios.
Enhance PassageDetailMarkVersesIsMobile test by adding isPlaying mock function to improve playback state handling during tests.
Refactor PassageDetailMarkVersesIsMobile by removing unused cell change handling and clipboard parsing functions. Updated MarkVersesTableIsMobile props to streamline verse marking functionality.
Update PassageDetailMarkVerses to use dynamic RGBA values for completed and current verse backgrounds, enhancing visual feedback for verse marking functionality.
Refactor PassageDetailMarkVerses to simplify row highlighting logic by utilizing applyRowHighlight function, improving code readability and maintainability.1 parent a41883a commit 1758b2c
32 files changed
Lines changed: 2625 additions & 961 deletions
File tree
- localization
- src/renderer
- public/localization
- src
- __tests__
- business/player
- components
- PassageDetail
- mobile/MarkVerses
- context
- crud
- store/localization
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10633 | 10633 | | |
10634 | 10634 | | |
10635 | 10635 | | |
| 10636 | + | |
| 10637 | + | |
| 10638 | + | |
| 10639 | + | |
| 10640 | + | |
| 10641 | + | |
| 10642 | + | |
10636 | 10643 | | |
10637 | 10644 | | |
10638 | 10645 | | |
| |||
10689 | 10696 | | |
10690 | 10697 | | |
10691 | 10698 | | |
| 10699 | + | |
| 10700 | + | |
| 10701 | + | |
| 10702 | + | |
| 10703 | + | |
| 10704 | + | |
| 10705 | + | |
10692 | 10706 | | |
10693 | 10707 | | |
10694 | 10708 | | |
| |||
10759 | 10773 | | |
10760 | 10774 | | |
10761 | 10775 | | |
| 10776 | + | |
| 10777 | + | |
| 10778 | + | |
| 10779 | + | |
| 10780 | + | |
| 10781 | + | |
| 10782 | + | |
10762 | 10783 | | |
10763 | 10784 | | |
10764 | 10785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9112 | 9112 | | |
9113 | 9113 | | |
9114 | 9114 | | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
9115 | 9121 | | |
9116 | 9122 | | |
9117 | 9123 | | |
| |||
9160 | 9166 | | |
9161 | 9167 | | |
9162 | 9168 | | |
| 9169 | + | |
| 9170 | + | |
| 9171 | + | |
| 9172 | + | |
| 9173 | + | |
| 9174 | + | |
9163 | 9175 | | |
9164 | 9176 | | |
9165 | 9177 | | |
| |||
9220 | 9232 | | |
9221 | 9233 | | |
9222 | 9234 | | |
| 9235 | + | |
| 9236 | + | |
| 9237 | + | |
| 9238 | + | |
| 9239 | + | |
| 9240 | + | |
9223 | 9241 | | |
9224 | 9242 | | |
9225 | 9243 | | |
| |||
This file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 | | |
| 127 | + | |
115 | 128 | | |
116 | 129 | | |
117 | 130 | | |
| |||
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
131 | 156 | | |
132 | 157 | | |
133 | 158 | | |
| |||
147 | 172 | | |
148 | 173 | | |
149 | 174 | | |
| 175 | + | |
150 | 176 | | |
151 | 177 | | |
152 | 178 | | |
153 | 179 | | |
| 180 | + | |
154 | 181 | | |
155 | 182 | | |
156 | 183 | | |
157 | 184 | | |
| 185 | + | |
| 186 | + | |
158 | 187 | | |
159 | 188 | | |
160 | 189 | | |
| |||
463 | 492 | | |
464 | 493 | | |
465 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
0 commit comments