Commit 723c58c
authored
feat(inbox): Source product icons, PR badges, and rendering improvements (#1755)
## Problem
The report list in Code lacked indication for source products and PR status. Users couldn't quickly identify what type of signal initiated a report or whether a PR already exists. Some of the spacing was rough too, and we were losing a lot of info due to truncated headings or description.
<img width="900" height="208" alt="Screenshot 2026-04-21 at 18 58 42@2x" src="https://github.com/user-attachments/assets/a1f94ee1-c4c4-447b-b690-0002cea20b71" />
## Changes
<img width="968" height="198" alt="Screenshot 2026-04-21 at 17 45 08@2x" src="https://github.com/user-attachments/assets/3fa20bcf-5d99-4ee8-9ccd-4fd080d552a4" />
A few things (as summarized by Claude):
- **Source product icon**: Replace generic FileTextIcon with colored source product icon (from `SOURCE_PRODUCT_META`) in report list rows, with tooltip "Report initiated by a signal from X"
- **PR badge in list**: Show a mini PR badge pill in `ReportCardContent` when `implementation_pr_url` is set, with merged/closed/open color states via `usePrDetails`
- **PR badge in task bar**: Move the PR badge from the detail header into the implementation task bar, showing "Create PR" / "Working on a PR…" / PR link badge depending on state
- **Clean up detail header**: Remove PR badge, `implementationPrUrl` state, and `onPrUrlChange` callback from `ReportDetailPane`
- **Layout polish**: Tighter list row spacing, improved summary markdown rendering (single-line, 12px font normalization)
Backend companion: PostHog/posthog#55464
## How did you test this code?
[Recorded a demo.](https://posthog.slack.com/archives/C09SK2PAGKF/p1776774168687849?thread_ts=1776419606.835789&cid=C09SK2PAGKF)1 parent 91a94a1 commit 723c58c
7 files changed
Lines changed: 239 additions & 63 deletions
File tree
- apps/code/src
- renderer/features/inbox/components
- detail
- list
- utils
Lines changed: 4 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
| |||
279 | 275 | | |
280 | 276 | | |
281 | 277 | | |
282 | | - | |
283 | | - | |
284 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 284 | | |
302 | 285 | | |
303 | 286 | | |
| |||
555 | 538 | | |
556 | 539 | | |
557 | 540 | | |
558 | | - | |
559 | 541 | | |
560 | 542 | | |
561 | 543 | | |
| |||
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 168 | | |
173 | 169 | | |
174 | 170 | | |
| |||
179 | 175 | | |
180 | 176 | | |
181 | 177 | | |
| 178 | + | |
| 179 | + | |
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | 186 | | |
189 | | - | |
190 | | - | |
191 | 187 | | |
192 | 188 | | |
193 | 189 | | |
194 | 190 | | |
195 | 191 | | |
196 | 192 | | |
197 | | - | |
198 | 193 | | |
199 | 194 | | |
200 | 195 | | |
| |||
206 | 201 | | |
207 | 202 | | |
208 | 203 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 204 | | |
213 | 205 | | |
214 | 206 | | |
| |||
250 | 242 | | |
251 | 243 | | |
252 | 244 | | |
| 245 | + | |
253 | 246 | | |
254 | 247 | | |
255 | 248 | | |
| |||
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
375 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
376 | 375 | | |
377 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
Lines changed: 49 additions & 10 deletions
| 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 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
8 | 41 | | |
9 | 42 | | |
10 | 43 | | |
| |||
37 | 70 | | |
38 | 71 | | |
39 | 72 | | |
40 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
41 | 76 | | |
42 | 77 | | |
43 | 78 | | |
44 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
45 | 85 | | |
46 | 86 | | |
47 | 87 | | |
| |||
69 | 109 | | |
70 | 110 | | |
71 | 111 | | |
72 | | - | |
73 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
74 | 115 | | |
75 | 116 | | |
76 | 117 | | |
77 | 118 | | |
78 | 119 | | |
79 | | - | |
| 120 | + | |
80 | 121 | | |
81 | 122 | | |
82 | 123 | | |
83 | | - | |
| 124 | + | |
84 | 125 | | |
85 | 126 | | |
86 | 127 | | |
| |||
102 | 143 | | |
103 | 144 | | |
104 | 145 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 146 | + | |
108 | 147 | | |
109 | 148 | | |
110 | 149 | | |
111 | | - | |
| 150 | + | |
112 | 151 | | |
113 | 152 | | |
114 | 153 | | |
| |||
Lines changed: 44 additions & 15 deletions
| 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 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
38 | 64 | | |
39 | 65 | | |
40 | 66 | | |
41 | 67 | | |
42 | 68 | | |
43 | 69 | | |
44 | 70 | | |
45 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
46 | 75 | | |
47 | 76 | | |
48 | 77 | | |
49 | 78 | | |
50 | 79 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
56 | 85 | | |
57 | 86 | | |
58 | 87 | | |
| |||
0 commit comments