Commit 2220936
authored
feat: adds upstream repo discovery and multi-user tracking (#36)
* feat: adds upstream repo discovery and multi-user tracking
* fix: addresses review findings from Phase 4 swarm
* fix: lowercases userLogin fallback in surfacedBy filter
* fix: adds createRoot wrapper, avatar CDN check, PR tab tests
* perf(api): parallelizes main-user backfill with tracked-user searches
* feat(onboarding): sorts org groups by personal-first then alphabetical
Replaces activity-based org sorting in RepoSelector with personal org first (type user), then remaining orgs alphabetically. Upstream section remains structurally last. Repos within orgs retain recency order from fetchRepos.
* fix: addresses PR review findings across 22 issues
- refactor(api): extracts executeLightCombinedQuery shared helper, eliminating
~80 lines of duplication between graphqlLightCombinedSearch and
graphqlGlobalUserSearch
- fix(api): removes superfluous !userLogin from early exit guard
- fix(api): guards onLightData to only fire when results exist
- perf(api): swaps PR_SEARCH_QUERY to LIGHT_PR_SEARCH_QUERY in
discoverUpstreamRepos for lower GraphQL point cost
- fix(api): unifies VALID_LOGIN with VALID_TRACKED_LOGIN regex
- refactor(dashboard): extracts buildSurfacedByUsers helper, removes
duplicated surfacedByBadge logic from IssuesTab and PullRequestsTab
- fix(dashboard): guards allUsers memo against empty login
- fix(dashboard): adds stale user-filter guard for removed tracked users
- fix(settings): renumbers section comments after Tracked Users insertion
- refactor(tabs): imports TrackedUser type instead of inline declaration
- perf(onboarding): uses Set for manualUpstreamRepos dedup
- test: adds ConfigSchema, TrackedUsersSection, RepoSelector, and
api-users coverage for identified gaps
* fix(onboarding): validates upstream repo existence on manual add
- adds GET /repos/{owner}/{repo} check on manual upstream entry
- 404 shows "Repository not found", disables input during check
- enables "Finish Setup" when upstream repos selected (no org repos)
- updates button repo count to include upstream repos
* feat(dashboard): adds "Involved" role badge for upstream items
- adds "involved" fallback role when upstream item has no specific
author/assignee/reviewer match (ghost badge-sm styling)
- settings repo count now includes upstream repos with breakdown
* fix(onboarding): runs upstream discovery even with zero org repos
* fix(onboarding): prevents discovery re-trigger on repo select
* fix: corrects tracked-user scoping, config wipe, upstream discovery
* feat(labels): expands GitHub emoji shortcodes to Unicode1 parent f9ee41b commit 2220936
File tree
30 files changed
+3597
-291
lines changed- src/app
- components
- dashboard
- onboarding
- settings
- lib
- services
- stores
- tests
- components
- dashboard
- onboarding
- settings
- helpers
- lib
- services
- stores
30 files changed
+3597
-291
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
322 | 330 | | |
323 | 331 | | |
324 | 332 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
310 | 319 | | |
311 | 320 | | |
312 | 321 | | |
| |||
335 | 344 | | |
336 | 345 | | |
337 | 346 | | |
| 347 | + | |
| 348 | + | |
338 | 349 | | |
339 | 350 | | |
340 | 351 | | |
341 | 352 | | |
342 | 353 | | |
343 | 354 | | |
344 | 355 | | |
| 356 | + | |
| 357 | + | |
345 | 358 | | |
346 | 359 | | |
347 | 360 | | |
348 | 361 | | |
349 | 362 | | |
350 | 363 | | |
| 364 | + | |
351 | 365 | | |
352 | 366 | | |
353 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
58 | 82 | | |
59 | 83 | | |
60 | 84 | | |
| |||
76 | 100 | | |
77 | 101 | | |
78 | 102 | | |
79 | | - | |
| 103 | + | |
80 | 104 | | |
81 | 105 | | |
82 | 106 | | |
| |||
87 | 111 | | |
88 | 112 | | |
89 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
90 | 122 | | |
91 | 123 | | |
92 | 124 | | |
| |||
172 | 204 | | |
173 | 205 | | |
174 | 206 | | |
175 | | - | |
| 207 | + | |
176 | 208 | | |
177 | 209 | | |
178 | 210 | | |
| |||
291 | 323 | | |
292 | 324 | | |
293 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
294 | 334 | | |
295 | 335 | | |
296 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
123 | 147 | | |
124 | 148 | | |
125 | 149 | | |
| |||
141 | 165 | | |
142 | 166 | | |
143 | 167 | | |
144 | | - | |
| 168 | + | |
145 | 169 | | |
146 | 170 | | |
147 | 171 | | |
| |||
170 | 194 | | |
171 | 195 | | |
172 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
173 | 205 | | |
174 | 206 | | |
175 | 207 | | |
| |||
261 | 293 | | |
262 | 294 | | |
263 | 295 | | |
264 | | - | |
| 296 | + | |
265 | 297 | | |
266 | 298 | | |
267 | 299 | | |
| |||
435 | 467 | | |
436 | 468 | | |
437 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
438 | 478 | | |
439 | 479 | | |
440 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
123 | | - | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | | - | |
| 134 | + | |
127 | 135 | | |
128 | | - | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| |||
0 commit comments