fix(ui): improve error message specificity in NewsPanel and PWA registration#833
Open
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
Open
fix(ui): improve error message specificity in NewsPanel and PWA registration#833NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
Conversation
…tration
- NewsPanel: replace generic "Could not generate summary" / "Summary failed"
with contextual messages like "Summary failed (timeout)" or
"Summary unavailable (no providers responded)"
- InsightsPanel: replace generic "Analysis failed" with categorized reason
(timeout, network error, rate limited, etc.)
- main.ts: replace silent .catch(() => {}) on service worker registration and
update with console.warn logging for easier offline-mode debugging
- Add classifyError() helper to NewsPanel and InsightsPanel that categorizes
errors into user-friendly labels without exposing internal details
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
"Could not generate summary"and"Summary failed"with contextual messages that include the error category (e.g."Summary failed (timeout)","Summary unavailable (no providers responded)")"Analysis failed - retrying..."with categorized error reason (e.g."Analysis failed (network error) - retrying...").catch(() => {})on service worker registration and the hourly update interval withconsole.warnlogging that includes the error object, aiding offline-mode debuggingclassifyError()static helper to bothNewsPanelandInsightsPanelthat maps common error types (timeout, network, rate limit, auth, server error) to concise user-facing labels without exposing internal detailsDetails
Error classification categories:
AbortErrorDOMExceptionrequest cancelledTypeErrorwith fetch/networknetwork errortimeoutrate limitedauth errorserver errorunexpected errorAll developer-facing
console.warncalls include the full error object for debugging.Test plan
[PWA] Service worker registration failed:with error details🤖 Generated with Claude Code