1.8 KiB
1.8 KiB
Decisions
Design (DDR)
- 0002 Render every tag through island
Element, flex layouts throughFlexBox, grid layouts throughGridBox; never native JSX tags orflex/gridclasses, island included. - 0011 Serve Yekan Bakh FaNum (
font-sans, all UI text) and Yekan Bakh (font-latin, شبا and bank codes only) frompublic/fonts/under fixed names declared in islandfonts.css; no version, never hashed, nevernext/font; a changed font gets a new name.
Architecture (ADR)
- 0001 Share one platform,
platforms/market, betweenapps/bullandapps/bear; tag all threescope:market. - 0012 Wrap each app's
next.configin island'swithIconSpriteandwithFontCopy; they writesymbol-defs.svgand the fonts intopublic/unhashed, served immutable; link the sprite as?v=<ICON_SPRITE_VERSION>. - 0013 Render every
(auth)page's steps only in the browser behindGuestGuard: the server sends the frame, a same-size skeleton andnoindex; flow state stays in memory, never in the URL or storage.
Proposed
- 0003 design: Only semantic tokens, named as in the Lumina Design System, produce Tailwind utilities (
@theme inline); primitives stay plain:rootvariables and Tailwind's defaults are removed. - 0005 design: Island holds Lumina's product components and status-to-tone map; they take every text as props (
childrenorlabels) and never import i18next or platform code. - 0006 architecture: Make every non-app project a pnpm workspace package
@lumina/<name>with subpathexports; third-party dependencies stay in the root package.json. - 0014 architecture: Serve registration step 5 under
(onboarding)behindAuthGuard; a creator's profile autosaves as a server draft (PATCH) and completes only throughPOST …/profile/complete.