• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentic-dev-library / thumbcode / 21119387846
23%

Build:
DEFAULT BRANCH: main
Ran 18 Jan 2026 10:07PM UTC
Jobs 1
Files 70
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jan 2026 10:06PM UTC coverage: 25.529% (+3.7%) from 21.828%
21119387846

push

github

web-flow
feat(error): implement comprehensive error handling and logging system (#52)

* feat(error): implement comprehensive error handling and logging system

- Add production-grade logging service with levels (debug, info, warn, error, fatal)
- Add Logger class with context enrichment and optional remote logging
- Create ErrorBoundary component for catching React errors
- Create ErrorFallback component with organic design styling
- Add CompactErrorFallback for inline error display
- Implement global error handler with standardized AppError type
- Add error codes and user-friendly error messages
- Create retry utility with exponential backoff and jitter
- Add retry presets (quick, standard, patient, aggressive)
- Implement useNetworkError hook for network status monitoring
- Implement useIsOnline hook for simple connectivity checks
- Integrate ErrorBoundary in root layout
- Initialize global error handlers on app start

Closes #16

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(error): add comprehensive tests for error handling utilities

- Add tests for Logger class (log levels, filtering, context, buffering)
- Add tests for error handler (createAppError, parseError, handleError)
- Add tests for retry utility (retry, withRetry, presets, error detection)
- Increases test coverage from ~5% to ~34%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(error): address CodeRabbit review feedback

- Add onPress handler to Report Issue button in ErrorFallback
- Add onReportIssue prop for custom report handling
- Fix stale closure in useNetworkError by using ref for previous state
- Validate maxAttempts in retry function (normalize to at least 1)
- Initialize lastError to avoid throwing undefined
- Remove unused type import in error-handler tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

260 of 1612 branches covered (16.13%)

Branch coverage included in aggregate %.

126 of 220 new or added lines in 7 files covered. (57.27%)

621 of 1839 relevant lines covered (33.77%)

1.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.71
src/lib/retry.ts
2
0.0
0.0% app/_layout.tsx
8
0.0
src/components/error/ErrorFallback.tsx
9
82.02
src/lib/logger.ts
10
80.25
src/lib/error-handler.ts
20
0.0
src/components/error/ErrorBoundary.tsx
44
0.0
src/hooks/use-network-error.ts
Jobs
ID Job ID Ran Files Coverage
1 unit-tests - 21119387846.1 18 Jan 2026 10:07PM UTC 70
25.53
GitHub Action Run
Source Files on build 21119387846
  • Tree
  • List 70
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21119387846
  • 1c5d35a4 on github
  • Prev Build on main (#21119149169)
  • Next Build on main (#21120137025)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc