/design ships in production, for server administrators only (#952) #953
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/design-admin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #952. Lane 0's review needs
/designon dev, and dev runs the production image, so the owner chose (2026-09-30) to ship it in production for administrators only.How it works:
/designis always mounted and still lazy (its own 73 kB chunk; the main bundle is unchanged). It's wrapped incomponents/DesignAccess.jsx:NotFound, the same page an unknown address gets, with no redirect and no 403. Nothing hints that the page exists.user.is_admincheck thatAppFrameanduseContentsuse.Production safety:
DesignReferenceimports onlyui/pieces, its CSS and theui/*/states.jsxglob. It has no dev-only fixtures and makes no fetch calls. Its inline styles are within the prod CSP (style-src 'self' 'unsafe-inline').Tests:
DesignAccess.test.jsx, five cases: admin sees the page; non-admin and signed-out get NotFound; loading shows neither; dev-open shows the page even when signed out.npm run buildshows DesignReference as its own chunk.Docs:
ui/README.md;Changelog:
changelog.d/952-design-admin.changed.md.🤖 Generated with Claude Code