Skip to content

feat(crash): frontend error capture (ErrorBoundary + global handlers)#693

Merged
fixcik merged 3 commits into
masterfrom
feat/crash-reporting-phase2
Jun 15, 2026
Merged

feat(crash): frontend error capture (ErrorBoundary + global handlers)#693
fixcik merged 3 commits into
masterfrom
feat/crash-reporting-phase2

Conversation

@fixcik

@fixcik fixcik commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Фаза 2 локального crash-reporting (Refs #687). Захват ошибок фронта → Rust-команда report_frontend_crash из Фазы 1.

Что внутри

  • ErrorBoundary (components/ErrorBoundary.tsx) — ловит ошибки рендера React, показывает fallback с кнопкой перезагрузки.
  • Глобальные хендлеры в main.tsxwindow.onerror и onunhandledrejection.
  • breadcrumbapi.ts запоминает имя последнего invoke(...), кладётся в отчёт как «последняя операция».
  • reportCrashSafe — общий guard-репортер: re-entrancy-флаг рвёт потенциальную петлю (реджект report_frontend_crashunhandledrejection → снова репорт), и console.error first — ошибка видна даже если запись в бэк упала.
  • Биндинги домена api.crash (listPending/reportFrontend/markReported/dismiss/buildReport).

Проверки

pnpm build (tsc + vite + i18n-check) — зелёно; pnpm test — 816/816.

Ревью

spec ✅ · code-quality (нашло и починило Critical: петлю репортинга) ✅ · финальное независимое ✅.

Дальше

Фаза 3 — UX отправки: старт-промпт о неотправленном креше, пункт меню «Сообщить о проблеме», tauri-plugin-opener, i18n namespace crash (заменит временные литералы в ErrorBoundary).

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@fixcik, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 33 minutes and 13 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1697266a-53c6-4893-8aea-5c5cc7bd3dd0

📥 Commits

Reviewing files that changed from the base of the PR and between ee50ee2 and 2bba4fd.

📒 Files selected for processing (3)
  • cuprum-ui/src/components/ErrorBoundary.tsx
  • cuprum-ui/src/lib/api.ts
  • cuprum-ui/src/main.tsx

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 and usage tips.

@fixcik fixcik enabled auto-merge (squash) June 15, 2026 23:51
@fixcik fixcik merged commit 5c6c804 into master Jun 15, 2026
4 checks passed
@fixcik fixcik deleted the feat/crash-reporting-phase2 branch June 15, 2026 23:56
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.

1 participant