Commit 13ec3ba
feat(web): highlight selected playlist rows while in edit mode
Builds on the row-click selection from this branch to give the user
visible feedback for which tracks are currently selected.
- `TracksTable` gains an optional `rowClassNameAddition(track, index)`
prop that's composed with the table's existing per-row className
(used internally for the locked/disabled states). The hook is
ref-stable so external state changes don't force a full re-render
of the table machinery.
- `EditAwareTracksTable` passes a `rowClassNameAddition` that
returns the new `selected` CSS class when the row's track id is
in the selection set and the page is in edit mode. The class
draws a surface-2 background fill and a 3px accent bar on the
left edge so selected rows are immediately scannable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 503bdd1 commit 13ec3ba
3 files changed
Lines changed: 42 additions & 5 deletions
File tree
- packages/web/src/components
- collection/desktop/edit-mode/tracks
- tracks-table
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
66 | 83 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| |||
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
1046 | 1053 | | |
1047 | 1054 | | |
1048 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1049 | 1059 | | |
1050 | 1060 | | |
1051 | 1061 | | |
| |||
1058 | 1068 | | |
1059 | 1069 | | |
1060 | 1070 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1065 | 1080 | | |
1066 | 1081 | | |
1067 | 1082 | | |
| |||
0 commit comments