Commit ed68c02
authored
feat(code): Signals inbox progressive, prioritized, professional (#1305)
## Problem
PostHog Code users who onboard to self-driving need a clear experience of reports flowing in: see what's processing vs. ready, see readable summaries without opening the web app, and triage by actionability priority (P0–P4) for researched reports.
## Changes
_Depends on PostHog/posthog#51740._
Adding the above, with progressive loading, polling, and and onboarding/warming states for connected sources.
(as summarized by Claude:)
- **Inbox**: progressive loading, window-focus–gated refetch, combined pipeline status filter, sort/helpers (`inboxConstants`, `inboxSort`)
- **Sidebar**: ready count and indicator when pipeline work is in flight
- **Reports**: markdown summaries in list and detail; **priority** chips aligned with the status chip height (consumes optional `priority` from the API)
- **UI**: warming/empty states, live rail, `rendererWindowFocusStore` for focus-aware polling
- **Types**: optional `priority` on `SignalReport`; related client/query hook updates
## How did you test this code?
https://github.com/user-attachments/assets/bc278e19-6a2d-403a-985d-0c0d85e4ba7c
## Publish to changelog?
do not publish to changelog
## Docs update
N/A1 parent 4428136 commit ed68c02
24 files changed
Lines changed: 813 additions & 114 deletions
File tree
- apps/code/src
- renderer
- api
- features
- inbox
- components
- hooks
- utils
- onboarding/components
- sidebar/components
- items
- hooks
- stores
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
330 | | - | |
| 332 | + | |
331 | 333 | | |
332 | 334 | | |
333 | 335 | | |
| |||
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | | - | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
| |||
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
84 | | - | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | | - | |
| 98 | + | |
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
| |||
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
98 | | - | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
125 | | - | |
| 135 | + | |
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
| |||
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
213 | | - | |
| 223 | + | |
214 | 224 | | |
215 | 225 | | |
216 | 226 | | |
| |||
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
225 | | - | |
| 235 | + | |
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
| |||
285 | 295 | | |
286 | 296 | | |
287 | 297 | | |
288 | | - | |
| 298 | + | |
289 | 299 | | |
290 | 300 | | |
291 | 301 | | |
| |||
324 | 334 | | |
325 | 335 | | |
326 | 336 | | |
327 | | - | |
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
331 | | - | |
332 | 340 | | |
333 | 341 | | |
334 | 342 | | |
| |||
344 | 352 | | |
345 | 353 | | |
346 | 354 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments