Skip to content

fix(activity): distinguish load failures from empty results in three Activity panels (#728) - #861

Merged
btsouth merged 1 commit into
btsouth:mainfrom
Vermitrude:fix/728-activity-panel-load-errors
Sep 15, 2026
Merged

btsouth merged 1 commit into
btsouth:mainfrom
Vermitrude:fix/728-activity-panel-load-errors

Conversation

@Vermitrude

@Vermitrude Vermitrude commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

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

  • Adds reusable PanelLoadingNotice and PanelErrorNotice components to ActivityView.tsx
  • Updates DiscoveryTraces, ToolIdentities, and LiveInspector to track loading, ready, and error states with a retry counter
  • Load failures now render a retryable alert instead of the empty state, and initial loads show a loading notice
  • Behavioral Change: DiscoveryTraces, ToolIdentities, and LiveInspector effect dependency arrays now include a retry counter to support refetches on retry clicks

Macroscope summarized 736ec7a.

…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 btsouth left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@btsouth
btsouth marked this pull request as ready for review September 15, 2026 02:45
@btsouth
btsouth merged commit 79758a7 into btsouth:main Sep 15, 2026
13 of 14 checks passed
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 12e4b9ff-66ce-4a50-8f6a-b3ab719a248f

📥 Commits

Reviewing files that changed from the base of the PR and between d702073 and 736ec7a.

📒 Files selected for processing (2)
  • src/components/ActivityView.test.tsx
  • src/components/ActivityView.tsx

📝 Walkthrough

Walkthrough

ActivityView now shows loading and retryable error states for discovery, tool identities, and live inspection. Tests cover rejected requests, retry actions, and successful empty results.

Changes

Activity panel load-state handling

Layer / File(s) Summary
Discovery load state
src/components/ActivityView.tsx, src/components/ActivityView.test.tsx
Discovery now tracks request status, shows loading and error notices, supports retry, and distinguishes failed loads from empty results.
Tool identities load state
src/components/ActivityView.tsx, src/components/ActivityView.test.tsx
Tool identities now preserves existing rows during refresh failures, shows a retryable error, and avoids treating failures as missing data.
Live inspector load state
src/components/ActivityView.tsx, src/components/ActivityView.test.tsx
Live inspection now distinguishes loading, failed loading, and an empty capture buffer. The tests configure controllable API spies and verify retry behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: btsouth

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Three Activity panels render a failed load as an empty result

2 participants