fix(activity): distinguish load failures from empty results in three Activity panels (#728) - #861
Conversation
…ery, Tool identities, and Live inspector panels (btsouth#728) All three panels now track loading/ready/error status, matching the existing LoadStatus pattern already used for the audit log and security event panels. A failed load shows an explicit error notice with retry instead of collapsing into the same empty-state message as a genuinely empty panel. ToolIdentities no longer returns null on a failed load. Signed-off-by: Akachukwu <167121284+Vermitrude@users.noreply.github.com>
btsouth
left a comment
There was a problem hiding this comment.
This is the right shape. The three panels now separate a failed load from an empty one and the retry paths are covered by tests. Thanks for sticking with it through the environment trouble.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesActivity panel load-state handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #728. DiscoveryTraces, ToolIdentities, and LiveInspector now track loading/ready/error status the same way the audit log and security-event panels already do, instead of collapsing a rejected fetch into an empty-state message. ToolIdentities no longer returns null on a failed load. Tests cover a rejected fetch for each panel.
Note
Distinguish load failures from empty results in three Activity panels
PanelLoadingNoticeandPanelErrorNoticecomponents to ActivityView.tsxDiscoveryTraces,ToolIdentities, andLiveInspectorto track loading, ready, and error states with a retry counterDiscoveryTraces,ToolIdentities, andLiveInspectoreffect dependency arrays now include a retry counter to support refetches on retry clicksMacroscope summarized 736ec7a.