mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
Bugs found while writing the CRUD contract suite (#606) and reviewing the form-error slices, one commit each, each with a test that failed before it. - Analytics weeks: every day of a month is in one of its weeks, a week's trends cover the seven days its label names, and a week or a month the calendar does not have answers no days. Both runtimes, through shared/calendarWeeks.ts. - The heatmap's day drill-down lists the day's transactions in local-first. - A cloud PDF report reads every transaction of its range, not the newest 1,000. - The net worth timeline takes each account's latest balance on or before the day, in both runtimes (shared/netWorthTimeline.ts). - Quick entry, Goals, Bills, Budgets and Categories say why an action failed. Deleting a goal or a category that another tab already deleted says so, as Bills does, and the Worker names a missing goal or bill. - Local-first answers an unexpected failure with the Worker's generic sentence (shared/genericError.ts), never an exception's text. - Twelve months back from 29 February reach 28 February, in both runtimes. - 13 Worker routes and 12 local-first routes that nothing called are removed, with a second registration of POST /api/calculator/compound-interest. The contract runner now fails on a route registered twice. - Achievements leave out a loan deleted while they count, without a console error. - The formButtonType guard reads the whole tag.
10 lines
549 B
TypeScript
10 lines
549 B
TypeScript
/**
|
|
* What a client is told when a request fails in a way nobody wrote words for: by the Worker
|
|
* (worker/src/error-response.ts), by the local-first router (localApiRouter.ts), and by the page
|
|
* for a 500 that brought no words of its own (core/apiError.ts statusMessage).
|
|
*
|
|
* The error itself goes to the Worker's logs or the browser's console: its text names tables,
|
|
* columns and code, and the person reading it in a toast cannot act on any of it.
|
|
*/
|
|
export const GENERIC_ERROR = 'Something went wrong on our side. Try again in a moment.';
|