Skip to content

feat: improve error modal with user-friendly messages and expandable details#137

Merged
larkly merged 1 commit intomainfrom
feat/error-modal-context
Apr 6, 2026
Merged

feat: improve error modal with user-friendly messages and expandable details#137
larkly merged 1 commit intomainfrom
feat/error-modal-context

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Apr 6, 2026

Summary\nImplements Issue #56 — opaque error messages when API calls fail.\n\n### Changes\n- ParseError struct: New structured error type with , , , and fields\n- Error categorization: Detects and maps 6 error categories (conflict, forbidden, not_found, bad_request, quota, network) with actionable guidance\n- Modal improvements: Shows friendly message by default, press to toggle raw error details\n- URL sanitization: All raw errors are sanitized to remove endpoint URLs\n- Tests: Comprehensive test coverage for all error categories, network patterns, nil handling, and backward compatibility\n\n### Files changed\n- — ParseError struct + categorization logic\n- — 14 new test cases\n- — Updated modal with friendly/raw split and detail toggle\n- — Updated tests for new modal behavior\n\nAll tests pass (FAIL ./... [setup failed]

FAIL). kept for backward compatibility, now delegates to .

…details\n\nAdd ParseError struct with categorized error types and actionable guidance.\nModal now shows friendly messages by default with press-d for raw details.\nAdd comprehensive test coverage for all error categories.
@larkly larkly merged commit 49ba645 into main Apr 6, 2026
3 checks passed
@larkly larkly deleted the feat/error-modal-context branch April 6, 2026 07:05
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