Commit ebc151d
fix(faults): enable real-time toast notifications for SSE fault events
- Subscribe to fault SSE stream on connect, unsubscribe on disconnect
- Listen for named SSE events (fault_confirmed, fault_cleared)
- Handle confirmed and cleared events separately:
- fault_confirmed: add/update fault, show warning toast
- fault_cleared: remove fault from list, show success toast
- Extract fault data from SSE payload structure { event_type, fault, timestamp }1 parent f02b5e6 commit ebc151d
2 files changed
+45
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1742 | 1746 | | |
1743 | 1747 | | |
1744 | | - | |
| 1748 | + | |
1745 | 1749 | | |
1746 | | - | |
| 1750 | + | |
1747 | 1751 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1755 | 1755 | | |
| 1756 | + | |
1756 | 1757 | | |
1757 | 1758 | | |
| 1759 | + | |
1758 | 1760 | | |
1759 | 1761 | | |
1760 | 1762 | | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1761 | 1779 | | |
1762 | 1780 | | |
1763 | 1781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
| |||
573 | 577 | | |
574 | 578 | | |
575 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
576 | 583 | | |
577 | 584 | | |
578 | 585 | | |
| |||
1392 | 1399 | | |
1393 | 1400 | | |
1394 | 1401 | | |
| 1402 | + | |
1395 | 1403 | | |
1396 | 1404 | | |
1397 | 1405 | | |
| |||
1407 | 1415 | | |
1408 | 1416 | | |
1409 | 1417 | | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
1410 | 1427 | | |
1411 | 1428 | | |
1412 | 1429 | | |
| |||
0 commit comments