Guides

Per-section error boundaries with retry and reset

Use one error boundary around each content section on every signed-in route. When one section fails to load or fails to render, that section shows a clear failure with retry and reset, and every other section stays usable.

Gap this guide closes

Retry, timeout, and failure states states the failure screen for a whole page, and sign-in, session, and workspace recovery states 401, 403, 5xx, timeout, offline, workspace load failure, and unknown route. Neither states what happens when one section on a working page fails.

Failure today, gap, and change in this guide
FailureState todayChange in this guide
One list request fails on a page where other sections loadThe page failure screen is defined for a whole page. A single section failure has no stated screen.One boundary per section. The failed section shows its own failure, retry, and reset. Other sections stay usable.
A render error in one cardNo section boundary is stated, so one card can unmount or freeze the rest of the route.One boundary per card group. A render error is caught in that boundary and never propagates to the route.
A section loads without finishingTimeout wording is stated for a check. No loading timeout is stated for a section.One loading timeout per section, with the same retry and reset actions as a failed request.

This guide adds no new role, no new permission, no new sign-in path, and no new tenancy path. Who may sign in, who may view full questions, and who may export stay under Set retention and access and Read reports.

What ships and what does not ship

Build only the first column. The second column stays out of the build, so a boundary never hides a permission or tenancy failure.

What ships

  • One error boundary around each content section on Today, Ask, Sources, Assistants, Improve, Reports, Team, and Governance
  • Same-request retry and section reset inside the failed section only
  • One loading timeout per section, with the same failure screen as a failed request
  • A correlation ID on every section failure, with Copy correlation ID

What does not ship

  • No boundary that catches 401 or 403. Session ended and role denied keep the page-level screens in Sign-in, session, and workspace recovery
  • No automatic retry loop in the background and no auto-send after a retry
  • No reset that clears typed text, filters, or another section, and no reset that deletes a saved record
  • No new notification type and no change to answered share, unanswered rate, or helpful rate

Boundary placement by route

Place one boundary around each row below. A route with two lists gets two boundaries, so one list can fail while the other stays usable.

Route, sections with a boundary, and what stays usable when one section fails
RouteSections with a boundaryStays usable
TodayFirst action card, second queue card, third queue card, each as a separate boundaryThe header with college, assistant, channel, and date range, and every queue card that did not fail
AskAnswer card with sources, discussion thread, handoff panel, each as a separate boundaryThe question field, the assistant choice, and the thread when only the answer card fails, and the answer when only the thread fails
Sources and AssistantsList section and detail section, each as a separate boundaryFilters, the list when only the detail fails, and the detail when only the list fails
Improve and ReportsHeadline numbers section, list behind a number, chart or trend section, each as a separate boundaryFilters and headline numbers when only the list fails, and the list when only a number fails
Team and GovernanceMembers section, roles section, data-use rules section, each as a separate boundaryEvery settings section that did not fail, with its saved value unchanged

The workspace switcher, the header, and the footer stay outside every section boundary, so a section failure never removes the college name, the workspace switch, or the way back to Today.

Anatomy of one boundary failure

Show these parts in this order inside the failed section, in the same place as the section content. Keep the page heading and the filter controls visible on the rest of the page.

  1. Title that names the section

    Show the section title followed by a plain failure line, such as Questions in this list could not be loaded. Name the section, never a raw error name.

  2. What is kept

    State what is kept in this college workspace, such as the typed question, the selected assistant, the filters, and saved records that were already confirmed. State typed text is kept for the same college workspace only.

  3. Retry the same request

    One primary button, Try again, retries the same request with the same parameters and the same request identifier. The button is disabled while a retry is in progress. A retry creates no second saved item and no second record.

  4. Reset this section only

    One secondary button, Reset this section, clears the failed section state and loads it again from the start. It keeps other sections, filters, typed text, and saved records unchanged. When a reset would discard typed text that belongs to this section only, state that before the reset runs.

  5. Correlation ID

    Show the server supplied correlation ID, or a client reference labeled as a client reference when the server supplied none, with Copy correlation ID. Never invent a server ID and never show a token, a password, or question text from another college.

Announce the failure once in a status region, move focus to the failure heading, and return focus to the section title when the retry or the reset succeeds. Keep every control at least 44 pixels high and focus visible by keyboard.

Retry, reset, and loading rules

Apply these rules in order. The first rule that fits decides the route, and no later step runs for that failure.

  1. Offline before the first attempt

    If the device reports offline, run no attempt in any section. Each section that has not loaded states offline, states that entered text and drafts are kept, and offers Try again when the device is online. An online event updates that state. It runs no request and sends no queued action.

  2. Retry a transient failure, with one attempt count per section

    Retry only a network failure, a timeout, or status 500 to 599. Do not retry status 400 to 499, including 401, 403, 404, and 405. State attempt 1 of 3, then retrying in about 1 second or about 2 seconds. Each section keeps its own attempt count, so a retry in one section never retries a working section.

  3. Loading timeout per section

    Each section shows its loading state, then a failure after its timeout if no data arrives. A section timeout uses the same Try again and Reset this section actions as a failed request, and the rest of the page stays usable while that section waits.

  4. Reset never widens scope

    A reset reloads one section for the signed in college workspace only. It never loads another college, never restores a draft from another college, and never resets a settings section to a value that was not saved.

  5. Session-only mode

    In session-only mode, a reset states that nothing is kept after the session ends instead of claiming a section was saved.

Checks before you ship a boundary change

Run each check in a test college workspace with test recipients, on phone and desktop, with keyboard and screen reader. If a check fails, fix it before you publish.

  • Fail the list request on Improve and confirm the list section shows its title, the failure line, Try again, Reset this section, and a correlation ID, while the filters and the headline numbers stay usable
  • Fail the answer card on Ask and confirm the question field, the assistant choice, and the discussion thread stay usable, and the failed card shows its own failure with retry and reset
  • Render an error in one queue card on Today and confirm the other queue cards and the header stay usable, with focus on the failure heading and focus returned after a successful retry
  • Confirm Try again keeps the same request, creates no second saved item, and is disabled while a retry runs, and that a 403 keeps the page-level screen with no Try again button in any section
  • Confirm Reset this section keeps typed text, filters, other sections, and saved records, and that a wrong college name stops the task with switch workspace stated before any reset action
  • Confirm an offline section runs no attempt, keeps entered text, and updates on reconnect with no request, and that a loading section times out to its own failure with the rest of the page usable
  • Confirm test and staff preview sessions are labeled as test and excluded from counts, and that an app failure is not counted as not answered and unavailable stays separate

Follow Retry, timeout, and failure states for the shared attempt, backoff, status, and no-loss pattern, Sign-in, session, and workspace recovery for 401, 403, workspace load failure, and preserved destinations, and Read reports for counts by college and assistant.

Next guide

Keep drafts and entered text when a check times out or stops.