Skip to content

docs/ERROR_HANDLING.md says there's no global error boundary #431

Closed

Description

@presidojay1

docs/ERROR_HANDLING.md:3-9 ends with:

there's no global error boundary yet, so an unhandled throw outside those
call sites would hit Next's default error page.

src/app/global-error.tsx is 124 lines of branded last-resort boundary, with
inlined colours (because it replaces the whole document and can't use
globals.css), an error.digest reference, a retry button and a reload button
— shipped by #197, and covered by src/app/global-error.test.ts.

The rest of the file is also behind the code:

  • it describes apiFetch throwing ApiError for non-2xx, but not
    NetworkError (src/lib/api.ts:22-27), which is what a timeout or a dead
    connection now produces, nor DEFAULT_TIMEOUT_MS (:30);
  • it doesn't mention getErrorMessage(err, fallback) (:42-47), the helper
    every page now funnels errors through, nor isUnauthorized
    (:33-35) and the 401-clears-the-token behaviour in
    AuthProvider.refresh (src/lib/auth-context.tsx:37-43);
  • it says every caller "renders the message via the shared FormError
    component", which is true, but doesn't note that FormError is not a live
    region (fix: pause and stabilize particle animation #164) — the one thing a contributor needs to know when adding a new
    error path.

Fix: rewrite the file around the current three-layer story — apiFetch's error
taxonomy, getErrorMessage at the call site, and the two boundaries
(global-error.tsx now, error.tsx per #196) — and link each claim to the
file:line it describes so the next drift is visible in review.

Activity

  1. added
    documentation
    on Nov 12, 2026
  2. added
    Stellar Wave
    on Nov 19, 2026
  3. Luna-netty commented on Nov 19, 2026

    @Luna-netty

    @Luna-netty has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    Hi maintainer, I have read and understood the issue requirements and checked the necessary documentation. I’m confident I can work on this task effectively and deliver a proper solution.
    Happy to discuss the approach first if that's useful before I start.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Luna-netty to this issue.

  4. Temi-suwa18 commented on Nov 19, 2026

    @Temi-suwa18
    Collaborator

    @Temi-suwa18 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    Hi Maintainer, I would love to work on this pls assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Temi-suwa18 to this issue.

  5. drips-wave commented on Nov 19, 2026

    @drips-wave

    Congratulations, @Temi-suwa18! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

    🧑‍💻 @Temi-suwa18: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  6. drips-wave commented on Nov 19, 2026

    @drips-wave

    This issue has been completed by @Temi-suwa18 as part of the Stellar Wave Program's 11th Wave 🥳

    😎 @Temi-suwa18: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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

Metadata

Metadata

Assignees

Labels

Stellar Wavedocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions