The Logo That Would Have Smuggled a Financial Credential Onto the Page
Before wiring in a third-party logo, open the image and read what it asserts. A badge baked into the pixels is a claim — and in financial UI, an une
React, Next.js, CSS and the interfaces people touch.
Before wiring in a third-party logo, open the image and read what it asserts. A badge baked into the pixels is a claim — and in financial UI, an une
My first leveling formula hit Level 12 in 11 weeks. That's not a progression system — it's a countdown clock.
Tailwind v4 changed translate utilities to emit the CSS translate: property instead of transform:. If your animation keyframe uses transform, the
The Setup
Middleware gates your pages. It doesn't gate your server actions. Put requireAuth() on the first line of every mutation — fail-closed — or you're leav
If your custom modal doesn't have max-h-[90vh] overflow-y-auto on the content element, tall forms will push the Save button off-screen — and users lit
In React 19, <form action={serverFn}> resets uncontrolled inputs after the action returns — even when the save succeeded. Make them controlled wit
When you retrofit Tailwind v4 onto an existing interactive app, split your CSS into two buckets — authored @layer components for anything JS touch
When a server mutation fails, calling mutate() to revalidate your SWR cache isn't optional. Skip it and your UI silently shows the user a state th
On iOS Safari, 100vh is taller than the visible screen. Use 100dvh instead. One unit, one fix.
window.confirm() silently returns false the moment Chrome decides to block it — with zero warning to the user. Don't touch it. Use an in-app dialog.
We stored event times as naive wall-clock UTC, then almost 'fixed' the display — which would have shifted every event four hours wrong. The rot was
VERCELURL is set in production too — it's a per-deploy hash, not your real domain. Gate your metadataBase on VERCELENV === 'production' inst
/([a-z])/g skips underscores followed by digits. runrate7d becomes runRate7d. TypeScript doesn't notice. ?? 0 turns undefined into a r
In a static-site pipeline, validate frontmatter dates at parse time — one regex in toDate() and bad dates blow up the build before they ever ship.
A 'gradient walled in a rectangle' got four CSS patches. None worked. The fix was removing the cursor-glow entirely — because it was the rectangle
To get consistent 12-stage pixel-art progression, chain each stage's initimage from the previous output. Tune initimagestrength by zone — ~335 to
if you're generating a character progression with AI art, independent text prompts can't give you a consistent character AND visibly distinct stages at
My CDP audit came back with zero overflow across all seven routes. The dt labels in my pricing value-stack were still rendering at 14px — one word
router.replace(?foo=bar) on a force-dynamic page hits the server every single time. Use React state + window.history.replaceState for UI state
Next.js production masks thrown server-action errors behind useless digest hashes. Return errors as typed data — ActionResult with ok() and fai
Your app can look completely done and be a silent failure machine. A WIN audit — asking every screen whether it handles loading, empty, error, partial
When your AI chat transport needs fresh context at send time, don't recreate the transport — keep it stable and read the latest value through a use
On Vercel (and Netlify / Cloudflare Pages), a page served at /webinars with no trailing slash has a base URL of /, not /webinars/ — so relativ
If your service worker bootstrap hangs after the first registration, stop waiting for controllerchange. Just await serviceWorker.ready and reload()
If your CSS variables use cqi units, never apply them to html — even inside a shared html, body {} rule. Set font-size on body only. One m
React Compiler owns memoization now. When its eslint rules flag a useMemo, delete the annotation first — don't eslint-disable. Nine times out of te
CSS grid items default to min-width: auto. If one column holds a <pre> block with long lines, the whole layout blows past the viewport. Fix: mi
Never set font-size on html. cqi on the root element resolves against the viewport, not a container — and it will silently detonate every rem-ba
Xero returns undefined for amounts on untouched projects. Feed that into a currency formatter and you get $NaN. One ?? 0 fixes it. But the sam