Skeleton tracks the shared grid helpers; test jsonBody's 204 guard

Fixkamo-internal
Ya
12 Agosti 2026, 21:26 UTC
Mwandishi
kamo
Ahadi ya
2ee2bb6

The loading skeleton in app/hr/overview/page.tsx still hand-wrote the 1800px breakpoint that OverviewPillars and friends extracted into primitives.tsx (WIDE_BREAKPOINT / columnTrack / responsiveColumns). Switch it to the same helpers so its grid sx is byte-for-byte the object OverviewPillars renders, closing the last drift risk between the skeleton and the real layout. app/lib/jsonBody.ts (tryParseJson / errorMessageFromBody) had no test despite guarding the read-text-then-parse pattern that exists solely because .json() on a 204/empty-200 throws and used to surface as a 500. Add **************** covering empty and whitespace bodies, valid/malformed JSON, the error-field preference order, and non-object JSON scalars (including the null-vs-undefined distinction the undefined sentinel depends on). No bug found; the helper's existing behaviour is pinned as-is.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei