Commit 64c3da7
authored
feat(ui): adds repo-based collapsible grouping to Issues and PRs tabs (#6)
* feat(ui): adds repo-based collapsible grouping to Issues and PRs tabs
* perf(ui): replaces collapsedRepos createSignal<Set> with createStore
Migrates all 3 tabs (ActionsTab, IssuesTab, PullRequestsTab) from
createSignal<Set<string>> to createStore<Record<string, boolean>> for
per-repo fine-grained reactivity. Toggling one repo group no longer
re-evaluates aria-expanded, ChevronIcon rotation, and Show conditions
for all other groups.
Adds 6 new tests: aria-expanded toggle (collapse+re-expand for both
tabs), multi-page pagination, and oversized single-group behavior.
* test(ui): adds collapse-filter interaction test for IssuesTab
* fix: wraps filteredSorted/meta accessors in createMemo, fixes test gaps
* perf(ui): splits paginateGroups into pageLayout and pageGroups memos
* fix(ui): clamps stale page signal when pageCount shrinks
* test(ui): adds page-reset-on-data-shrink test for stale page fix
* fix(ui): addresses PR review findings across all 10 verified issues
- Extracts groupByRepo, computePageLayout, slicePageGroups to shared generic lib/grouping.ts, eliminating verbatim duplication between IssuesTab and PullRequestsTab
- Wraps pageCount in createMemo, consistent with commit 7749a68
- Inlines pageSize (removes unnecessary createMemo wrapper)
- Adds named isRepoCollapsed accessor in IssuesTab/PullRequestsTab, consistent with ActionsTab pattern
- Changes ChevronIcon sizeClass from createMemo to plain arrow fn, consistent with ItemRow isCompact pattern
- Adds aria-expanded to ActionsTab workflow-level toggle button
- Formats PullRequestsTab FilterChips handlers to multi-line style
- Adds unit tests for grouping boundary cases, PullRequestsTab page-reset, sort-order assertions, and ActionsTab aria-expanded tests
* fix(test): allocates dynamic port for E2E to avoid collisions
* fix(test): adds --strictPort to prevent silent port rebinding1 parent 5958018 commit 64c3da7
File tree
14 files changed
+798
-155
lines changed- src/app
- components
- dashboard
- lib
- tests
- components
- lib
- services
14 files changed
+798
-155
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 12 | + | |
30 | 13 | | |
31 | 14 | | |
32 | 15 | | |
| |||
122 | 105 | | |
123 | 106 | | |
124 | 107 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 108 | + | |
| 109 | + | |
131 | 110 | | |
132 | 111 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 112 | + | |
142 | 113 | | |
143 | 114 | | |
144 | 115 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 116 | + | |
154 | 117 | | |
155 | 118 | | |
156 | 119 | | |
| |||
255 | 218 | | |
256 | 219 | | |
257 | 220 | | |
258 | | - | |
| 221 | + | |
259 | 222 | | |
260 | 223 | | |
261 | 224 | | |
262 | 225 | | |
263 | 226 | | |
264 | 227 | | |
| 228 | + | |
265 | 229 | | |
266 | 230 | | |
267 | 231 | | |
| |||
274 | 238 | | |
275 | 239 | | |
276 | 240 | | |
277 | | - | |
| 241 | + | |
278 | 242 | | |
279 | 243 | | |
280 | 244 | | |
281 | 245 | | |
282 | 246 | | |
283 | 247 | | |
| 248 | + | |
284 | 249 | | |
285 | 250 | | |
286 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | | - | |
119 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
120 | 129 | | |
121 | 130 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
216 | | - | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
260 | 289 | | |
261 | 290 | | |
262 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments