app-ui
created pr with
46.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 46 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 46.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 46
Patchset
46.1
Install react-use-websocket
Eric Abruzzese
Update the diagnostics create form to navigate to the details page with query parameters instead of POSTing to the external service
2025-01-15T14:28:15ZEric Abruzzese
Collect events on the diagnostic details page and construct a dashboard state
2025-01-15T14:29:34ZEric Abruzzese
Formatting and cleanup
2025-01-15T14:30:03ZEric Abruzzese
Show dashboard messages, resources, operations, and plots
2025-01-15T14:34:02ZMichael Peterson
Support async plot annotations
2025-01-28T20:23:45ZEric Abruzzese
Fix an issue that would cause a page crash if datasets weren't perfectly aligned
2025-01-31T17:53:30ZEric Abruzzese
Add VITE_APTIBLE_AI_URL to .env.example
2025-02-03T20:19:05ZEric Abruzzese
Update VITE_APTIBLE_AI_URL references to point to Hotshot
2025-02-04T16:30:13ZEric Abruzzese
Update the analysis using PlotAnnotated events
2025-02-05T17:50:02ZEric Abruzzese
Install react-use-websocket
2025-02-05T17:51:11ZEric Abruzzese
Update the diagnostics create form to navigate to the details page with query parameters instead of POSTing to the external service
2025-01-15T14:28:15ZEric Abruzzese
Collect events on the diagnostic details page and construct a dashboard state
2025-01-15T14:29:34ZEric Abruzzese
Formatting and cleanup
2025-01-15T14:30:03ZEric Abruzzese
Show dashboard messages, resources, operations, and plots
2025-01-15T14:34:02ZMichael Peterson
Support async plot annotations
2025-01-28T20:23:45ZEric Abruzzese
→ Fix an issue that would cause a page crash if datasets weren't perfectly aligned
2025-01-31T17:53:30ZEric Abruzzese
Add VITE_APTIBLE_AI_URL to .env.example
2025-02-03T20:19:05ZEric Abruzzese
Update VITE_APTIBLE_AI_URL references to point to Hotshot
2025-02-04T16:30:13ZEric Abruzzese
Update the analysis using PlotAnnotated events
2025-02-05T17:50:02ZEric Abruzzese
Refactor charts
2025-02-05T17:51:11ZMichael Peterson
Refactor OperationsTimeline, chart hover state
2025-02-05T18:25:59ZMichael Peterson
Extract types into aptible-ai/index, useDashboard hook
2025-02-05T18:42:20ZMichael Peterson
Fix a linter error
2025-02-05T19:21:56ZEric Abruzzese
Fix linter errors
2025-02-05T19:40:48ZEric Abruzzese
2025-02-05T19:50:07Z
Fix an issue that would cause a page crash if datasets weren't perfectly aligned
Eric Abruzzese
2025-02-03T20:19:05ZSemantic diff summary
0 added,
1 modified,
0 signature changed,
0 removed
across 1 analyzed file
+14
-4
src/ui/pages/diagnostics-detail.tsx
#
| ... | ... | @@ -577,10 +577,20 @@ const SynchronizedHoverLineChartWrapper = ({ | |
| 577 | 577 | const timestampIndex = labels.indexOf(timestamp); | |
| 578 | 578 | if (timestampIndex === -1) return; | |
| 579 | 579 | ||
| 580 | - | const activeElements = datasets.map((dataset, datasetIndex) => ({ | |
| 581 | - | datasetIndex, | |
| 582 | - | index: timestampIndex, | |
| 583 | - | })); | |
| 580 | + | const activeElements = datasets.reduce<{ | |
| 581 | + | datasetIndex: number; | |
| 582 | + | index: number; | |
| 583 | + | }[]>((acc, dataset, datasetIndex) => { | |
| 584 | + | if (!dataset.data[timestampIndex]) return acc; | |
| 585 | + | ||
| 586 | + | return [ | |
| 587 | + | ...acc, | |
| 588 | + | { | |
| 589 | + | datasetIndex, | |
| 590 | + | index: timestampIndex, | |
| 591 | + | }, | |
| 592 | + | ]; | |
| 593 | + | }, []); | |
| 584 | 594 | ||
| 585 | 595 | chart.setActiveElements(activeElements); | |
| 586 | 596 | chart.tooltip?.setActiveElements(activeElements, { x: 0, y: 0 }); |