Commit 146e25b
committed
Remove legacy selection infrastructure and dead UI components
- Remove ModeManager (dead modes: deletePolyrhythm, mobileSelection, selectByMouseOver)
- Remove MouseHandler (redundant — SelectionView handles all interactions)
- Remove NoteViewer (unused component — only static getParityClass retained)
- Remove TouchHoldDetector (only referenced by NoteViewer)
- Remove legacy currentTrackSelections/ITrackSelection from SelectionManager
- Remove isSelected(note) — callers use currentSelection directly
- Extract getParityClass from NoteViewer into core/utils.ts
- Add Requisitions notesClicked event for click-to-play audio preview
- Publish selected note IDs from SelectionManager.endSelection
- Clean up ScoreBookUiServices, App.tsx, ArrangementEditControls, SelectionControls
- Fix Minimap and SelectionManager tests for removed dependencies
Signed-off-by: Mike Lischke <mike@lischke-online.de>1 parent 63462b4 commit 146e25b
15 files changed
Lines changed: 122 additions & 982 deletions
File tree
- src
- components/ui
- Arrangement
- GuideRail
- Note
- core
- player
- supplement
- ui
- tests/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
67 | | - | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| |||
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
| 185 | + | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
| |||
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
743 | 742 | | |
744 | 743 | | |
745 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
746 | 772 | | |
747 | 773 | | |
748 | 774 | | |
| |||
1458 | 1484 | | |
1459 | 1485 | | |
1460 | 1486 | | |
1461 | | - | |
1462 | | - | |
1463 | 1487 | | |
1464 | 1488 | | |
1465 | 1489 | | |
| |||
1479 | 1503 | | |
1480 | 1504 | | |
1481 | 1505 | | |
1482 | | - | |
1483 | 1506 | | |
1484 | 1507 | | |
1485 | 1508 | | |
1486 | 1509 | | |
1487 | 1510 | | |
1488 | | - | |
1489 | 1511 | | |
1490 | 1512 | | |
1491 | 1513 | | |
| |||
1497 | 1519 | | |
1498 | 1520 | | |
1499 | 1521 | | |
1500 | | - | |
| 1522 | + | |
1501 | 1523 | | |
1502 | 1524 | | |
1503 | 1525 | | |
| |||
1535 | 1557 | | |
1536 | 1558 | | |
1537 | 1559 | | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
| 1560 | + | |
1541 | 1561 | | |
1542 | 1562 | | |
1543 | 1563 | | |
| |||
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| |||
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
171 | | - | |
| 168 | + | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
| |||
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
207 | | - | |
| 204 | + | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
214 | 211 | | |
215 | 212 | | |
216 | 213 | | |
217 | | - | |
218 | | - | |
219 | 214 | | |
220 | 215 | | |
221 | 216 | | |
| |||
247 | 242 | | |
248 | 243 | | |
249 | 244 | | |
250 | | - | |
| 245 | + | |
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
| |||
260 | 255 | | |
261 | 256 | | |
262 | 257 | | |
263 | | - | |
264 | 258 | | |
265 | 259 | | |
266 | 260 | | |
| |||
320 | 314 | | |
321 | 315 | | |
322 | 316 | | |
323 | | - | |
| 317 | + | |
324 | 318 | | |
325 | 319 | | |
326 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments