Skip to content

fix(frontend): analytics sections show a failed load instead of an empty result (#17651) - #20539

Closed
mrveiss wants to merge 8 commits into
mainfrom
issue-17651-analytics-blank
Closed

mrveiss wants to merge 8 commits into
mainfrom
issue-17651-analytics-blank

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Thinking Path

The maintainer reports that some codebase analytics reports show blank and suspected outdated routes. A static check of the panels' URLs against the backend routes found them matching, so routes are not the cause on current main. One frontend cause is fixable here: four sections could not show a failure, so a failed load read as "nothing found".

What Changed

  • Problems, Code Smells, Declarations and Hardcodes take an error prop and show an error state before their empty state, with one new en.json key.
  • useAnalyticsDataFetchers.ts exposes the errors its endpoints already tracked, and CodebaseAnalytics.vue passes them down.

Verification

  • New sectionLoadFailed.test.ts: 8 passed, and its 4 failure-state tests fail with the section changes reverted. 28 passed with the neighbouring section tests, using a stubbed reka-ui, so CI is the real check.
  • The prop pass-through in CodebaseAnalytics.vue has no test. No report was seen rendering, and no live call was made.
  • A blank that comes with a successful response is not fixed here: the backend's swallowed ChromaDB errors, its data path and its row types are being worked on separately under bug(analytics): 13+ codebase-analytics panels render empty, and two of them cannot report a failure at all #17651.

Model Used

Claude Sonnet for the implementation, Claude Opus for coordination.

Single-issue rationale

Refs #17651 and does not close it: this covers failed versus empty for four sections only. "Not yet indexed", the remaining panels, the backend causes and the call graph 504 stay open.

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 1, 2026
@mrveiss mrveiss added the phase:M3.9 Chat, Agents, Analytics and Settings screens label Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 87eae8a and caa5d9f.

Files selected for processing: 10
  • autobot-frontend/src/components/analytics/CodeSmellsSection.vue
  • autobot-frontend/src/components/analytics/CodebaseAnalytics.vue
  • autobot-frontend/src/components/analytics/DeclarationsSection.vue
  • autobot-frontend/src/components/analytics/HardcodesSection.vue
  • autobot-frontend/src/components/analytics/ProblemsReportSection.vue
  • autobot-frontend/src/components/analytics/__tests__/sectionLoadFailed.test.ts
  • autobot-frontend/src/composables/analytics/useAnalyticsDataFetchers.ts
  • autobot-frontend/src/i18n/locales/en.json
  • repo_tests/i18n_untranslated_ratchet_test.py
  • scripts/frontend_file_size_known_large.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20539 (head 2d332ec): approve.

Read only. The four sections show a failed load ahead of the empty state, and the test asserts the failure text with real locale data. The CodebaseAnalytics.vue pass-through is untested, as the body says. This and #20543 touch the same pin files, so the second to land re-derives them.

This was referenced Nov 2, 2026
@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Landed through the merge train (PR #20594), merge 655489c, with the content check clean. Proof: git rev-list --no-merges --count origin/main..head = 0; the head moved only by syncing main after the train froze it. Closing and deleting the branch.

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

Labels

phase:M3.9 Chat, Agents, Analytics and Settings screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant