Commit 531a534
fix: resolve race condition where Design Notes button never appeared in hub top bar
The hpux-prototypes iframe posts hpux-prototype-loaded during bootstrap, which
fires before the hub's useEffect listener is registered when the iframe loads from
cache. Fix: hub now sends an hpux-hub-ready ping to the iframe 100 ms after mount
(and on each prototype change), and PrototypeContext re-sends hpux-prototype-loaded
on receiving that ping if a prototype is already loaded.
Also adds designNotes to shiri-alerting-ui-v2 so the button appears for both
shiri-alerting-ui-v2 and observability-agentic-troubleshooting-ai as intended.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 63ba8d9 commit 531a534
3 files changed
Lines changed: 65 additions & 2 deletions
File tree
- hpux-prototypes/src/app
- core
- prototypes/shiri-alerting-ui-v2
- hub/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
87 | 119 | | |
88 | 120 | | |
89 | 121 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
48 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| 1309 | + | |
| 1310 | + | |
1309 | 1311 | | |
1310 | 1312 | | |
1311 | 1313 | | |
| |||
1327 | 1329 | | |
1328 | 1330 | | |
1329 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1330 | 1342 | | |
1331 | 1343 | | |
1332 | 1344 | | |
| |||
1436 | 1448 | | |
1437 | 1449 | | |
1438 | 1450 | | |
1439 | | - | |
| 1451 | + | |
1440 | 1452 | | |
1441 | 1453 | | |
1442 | 1454 | | |
| |||
0 commit comments