Skip to content

Engineering / Open resources

My World Mental

Form builder for workplace mental health assessment, following the requirements of Brazil's NR-1 regulation.

Open repository

Contribution tasks

Proposals based on source inspection, awaiting maintainer review. Check the current version and existing issues before submitting. The link opens a draft: you review it and decide whether to publish.

Source inspected on

Recover from tracking-page loading failures

TrackingPage calls fetch and resp.json in an effect without catching errors; a rejection prevents setLoading(false). Unsuccessful HTTP responses become ticket-not-found, although the route also returns 500 when the messages query fails.

Estimated size
S · 3–5 hours
Skills
React · Next.js · TypeScript

Files and evidence

Step-by-step acceptance criteria

  1. Reproduce rejected fetch and invalid JSON; end the loading state for every outcome, including exceptions.
  2. Distinguish 404 from network errors or 500 and provide an accessible retry for transient failures.
  3. When the token changes, clear previous data and cancel or ignore stale responses; do not log tokens or messages.
  4. Cover 200, 404, 500, offline, invalid JSON, retry and token changes using synthetic data only.
Review draft on GitHub

How to start contributing

Links come from the portfolio catalog; check availability, license and open tasks in each repository. Read the README and license, run the project and propose a small documentation improvement or a reproducible test case. Discuss larger changes with the maintainer first.

Read the README

Project evidence