connore 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/README.md +58 -46
  2. package/package.json +36 -33
  3. package/packs/CONTRIBUTING.md +32 -0
  4. package/packs/base/catalog/README.md +24 -0
  5. package/packs/base/catalog/api.md +46 -0
  6. package/packs/base/catalog/auth.md +46 -0
  7. package/packs/base/catalog/backend.md +46 -0
  8. package/packs/base/catalog/blueprints.md +46 -0
  9. package/packs/base/catalog/components.md +46 -0
  10. package/packs/base/catalog/database.md +46 -0
  11. package/packs/base/catalog/docs.md +46 -0
  12. package/packs/base/catalog/github.md +46 -0
  13. package/packs/base/catalog/golden.md +46 -0
  14. package/packs/base/catalog/motion.md +46 -0
  15. package/packs/base/catalog/plan.md +46 -0
  16. package/packs/base/catalog/screenshots.md +46 -0
  17. package/packs/base/catalog/skills.md +46 -0
  18. package/packs/base/catalog/tokens.md +47 -0
  19. package/packs/base/planning/START.md +29 -0
  20. package/packs/base/planning/blueprint-template.md +46 -0
  21. package/packs/base/planning/plan-template.md +46 -0
  22. package/packs/base/rules/anti-patterns.md +46 -0
  23. package/packs/base/rules/code-style.md +46 -0
  24. package/packs/base/rules/definition-of-done.md +47 -0
  25. package/packs/base/rules/dependency-policy.md +46 -0
  26. package/packs/base/rules/error-handling.md +46 -0
  27. package/packs/base/rules/security-audit.md +47 -0
  28. package/packs/base/rules/security-baseline.md +46 -0
  29. package/packs/base/templates/bug-report.md +46 -0
  30. package/packs/base/templates/feature-spec.md +46 -0
  31. package/packs/base/templates/handoff.md +46 -0
  32. package/packs/base/templates/project-brief.md +46 -0
  33. package/packs/base/workflow/build-loop.md +48 -0
  34. package/packs/base/workflow/code-review.md +46 -0
  35. package/packs/base/workflow/debugging.md +47 -0
  36. package/packs/base/workflow/git-and-commits.md +46 -0
  37. package/packs/base/workflow/idea-to-spec.md +46 -0
  38. package/packs/base/workflow/session-handoff.md +46 -0
  39. package/packs/base/workflow/spec-to-plan.md +46 -0
  40. package/packs/knowledge/backend/api/conventions.md +21 -0
  41. package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
  42. package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
  43. package/packs/knowledge/backend/database/schema.md +21 -0
  44. package/packs/knowledge/components/custom/ambient-background.md +26 -0
  45. package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
  46. package/packs/knowledge/components/custom/corner-frame.md +26 -0
  47. package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
  48. package/packs/knowledge/components/custom/cta-button.md +26 -0
  49. package/packs/knowledge/components/custom/cta-button.tsx +10 -0
  50. package/packs/knowledge/components/custom/page-transition.md +26 -0
  51. package/packs/knowledge/components/custom/page-transition.tsx +10 -0
  52. package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
  53. package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
  54. package/packs/knowledge/components/motion-effects/README.md +30 -0
  55. package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
  56. package/packs/knowledge/components/ui-primitives/README.md +22 -0
  57. package/packs/knowledge/components/ui-primitives/badge.md +26 -0
  58. package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
  59. package/packs/knowledge/components/ui-primitives/button.md +27 -0
  60. package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
  61. package/packs/knowledge/components/ui-primitives/card.md +26 -0
  62. package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
  63. package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
  64. package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
  65. package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
  66. package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
  67. package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
  68. package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
  69. package/packs/knowledge/components/ui-primitives/input.md +27 -0
  70. package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
  71. package/packs/knowledge/components/ui-primitives/label.md +26 -0
  72. package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
  73. package/packs/knowledge/components/ui-primitives/progress.md +26 -0
  74. package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
  75. package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
  76. package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
  77. package/packs/knowledge/components/ui-primitives/select.md +26 -0
  78. package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
  79. package/packs/knowledge/components/ui-primitives/separator.md +26 -0
  80. package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
  81. package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
  82. package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
  83. package/packs/knowledge/components/ui-primitives/switch.md +26 -0
  84. package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
  85. package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
  86. package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
  87. package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
  88. package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
  89. package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
  90. package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
  91. package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
  92. package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
  93. package/packs/knowledge/design/aesthetics/match.md +46 -0
  94. package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
  95. package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
  96. package/packs/knowledge/design/animations/motion.md +40 -0
  97. package/packs/knowledge/design/project-style.md +50 -0
  98. package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
  99. package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
  100. package/packs/knowledge/design/references/cta-centered.md +27 -0
  101. package/packs/knowledge/design/references/cta-centered.png +0 -0
  102. package/packs/knowledge/design/references/cta-split-media.md +27 -0
  103. package/packs/knowledge/design/references/cta-split-media.png +0 -0
  104. package/packs/knowledge/design/references/dashboard-overview.md +31 -0
  105. package/packs/knowledge/design/references/dashboard-overview.png +0 -0
  106. package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
  107. package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
  108. package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
  109. package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
  110. package/packs/knowledge/design/references/footer-four-column.md +27 -0
  111. package/packs/knowledge/design/references/footer-four-column.png +0 -0
  112. package/packs/knowledge/design/references/footer-two-column.md +27 -0
  113. package/packs/knowledge/design/references/footer-two-column.png +0 -0
  114. package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
  115. package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
  116. package/packs/knowledge/design/references/hero-split-media.md +27 -0
  117. package/packs/knowledge/design/references/hero-split-media.png +0 -0
  118. package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
  119. package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
  120. package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
  121. package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
  122. package/packs/knowledge/design/references/pricing-three-card.md +27 -0
  123. package/packs/knowledge/design/references/pricing-three-card.png +0 -0
  124. package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
  125. package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
  126. package/packs/knowledge/design/rules.md +35 -0
  127. package/packs/knowledge/design/token-structure.md +46 -0
  128. package/packs/knowledge/design/tokens.md +55 -0
  129. package/packs/knowledge/frontend/README.md +50 -0
  130. package/packs/knowledge/frontend/SOURCES.md +40 -0
  131. package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
  132. package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
  133. package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
  134. package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
  135. package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
  136. package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
  137. package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
  138. package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
  139. package/packs/knowledge/frontend/architecture/naming.md +43 -0
  140. package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
  141. package/packs/knowledge/frontend/architecture/routing.md +45 -0
  142. package/packs/knowledge/frontend/architecture/security.md +44 -0
  143. package/packs/knowledge/frontend/architecture/typescript.md +44 -0
  144. package/packs/knowledge/frontend/components/composition.md +45 -0
  145. package/packs/knowledge/frontend/components/data-display.md +47 -0
  146. package/packs/knowledge/frontend/components/library-choice.md +45 -0
  147. package/packs/knowledge/frontend/components/variants.md +44 -0
  148. package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
  149. package/packs/knowledge/frontend/forms/multi-step.md +43 -0
  150. package/packs/knowledge/frontend/forms/validation.md +47 -0
  151. package/packs/knowledge/frontend/layout/responsive.md +41 -0
  152. package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
  153. package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
  154. package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
  155. package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
  156. package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
  157. package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
  158. package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
  159. package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
  160. package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
  161. package/packs/knowledge/frontend/performance/rendering.md +40 -0
  162. package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
  163. package/packs/knowledge/frontend/state/api-layer.md +49 -0
  164. package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
  165. package/packs/knowledge/frontend/state/client-store.md +46 -0
  166. package/packs/knowledge/frontend/state/server-cache.md +42 -0
  167. package/packs/knowledge/frontend/state/state-categories.md +50 -0
  168. package/packs/knowledge/frontend/testing/component-tests.md +44 -0
  169. package/packs/knowledge/frontend/testing/strategy.md +46 -0
  170. package/packs/knowledge/inbox/README.md +14 -0
  171. package/packs/knowledge/workflows/authentication.md +18 -0
  172. package/packs/knowledge/workflows/crud.md +20 -0
  173. package/packs/knowledge/workflows/dashboard.md +22 -0
  174. package/packs/nextjs-fullstack/backend/api-conventions.md +48 -0
  175. package/packs/nextjs-fullstack/backend/auth-and-roles.md +46 -0
  176. package/packs/nextjs-fullstack/backend/background-jobs.md +46 -0
  177. package/packs/nextjs-fullstack/backend/caching.md +46 -0
  178. package/packs/nextjs-fullstack/backend/database.md +46 -0
  179. package/packs/nextjs-fullstack/backend/file-uploads.md +46 -0
  180. package/packs/nextjs-fullstack/backend/logging.md +46 -0
  181. package/packs/nextjs-fullstack/backend/migrations.md +46 -0
  182. package/packs/nextjs-fullstack/backend/rate-limiting.md +46 -0
  183. package/packs/nextjs-fullstack/backend/secrets-and-env.md +46 -0
  184. package/packs/nextjs-fullstack/backend/validation.md +46 -0
  185. package/packs/nextjs-fullstack/blueprints/ai-app.md +84 -0
  186. package/packs/nextjs-fullstack/blueprints/internal-tool.md +83 -0
  187. package/packs/nextjs-fullstack/blueprints/saas-app.md +83 -0
  188. package/packs/nextjs-fullstack/build-deploy/ci.md +45 -0
  189. package/packs/nextjs-fullstack/build-deploy/deploy.md +46 -0
  190. package/packs/nextjs-fullstack/build-deploy/monitoring.md +45 -0
  191. package/packs/nextjs-fullstack/build-deploy/performance.md +46 -0
  192. package/packs/nextjs-fullstack/build-deploy/project-structure.md +45 -0
  193. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +47 -0
  194. package/packs/nextjs-fullstack/build-deploy/testing.md +46 -0
  195. package/packs/nextjs-fullstack/evals/README.md +46 -0
  196. package/packs/nextjs-fullstack/examples/golden-app/README.md +45 -0
  197. package/packs/nextjs-fullstack/frontend/accessibility.md +46 -0
  198. package/packs/nextjs-fullstack/frontend/components.md +46 -0
  199. package/packs/nextjs-fullstack/frontend/copy.md +46 -0
  200. package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
  201. package/packs/nextjs-fullstack/frontend/forms.md +46 -0
  202. package/packs/nextjs-fullstack/frontend/layout.md +46 -0
  203. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +46 -0
  204. package/packs/nextjs-fullstack/frontend/motion.md +46 -0
  205. package/packs/nextjs-fullstack/frontend/responsive.md +46 -0
  206. package/packs/nextjs-fullstack/frontend/seo.md +47 -0
  207. package/packs/nextjs-fullstack/frontend/tables.md +46 -0
  208. package/packs/nextjs-fullstack/frontend/tokens.md +45 -0
  209. package/packs/nextjs-fullstack/integrations/analytics.md +46 -0
  210. package/packs/nextjs-fullstack/integrations/email.md +46 -0
  211. package/packs/nextjs-fullstack/integrations/llm-apis.md +46 -0
  212. package/packs/nextjs-fullstack/integrations/oauth.md +46 -0
  213. package/packs/nextjs-fullstack/integrations/object-storage.md +46 -0
  214. package/packs/nextjs-fullstack/integrations/payments.md +46 -0
  215. package/packs/nextjs-fullstack/integrations/queues.md +46 -0
  216. package/packs/nextjs-fullstack/integrations/search.md +46 -0
  217. package/packs/nextjs-fullstack/integrations/webhooks.md +46 -0
  218. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +46 -0
  219. package/packs/nextjs-fullstack/playbooks/add-auth.md +46 -0
  220. package/packs/nextjs-fullstack/playbooks/add-billing.md +50 -0
  221. package/packs/nextjs-fullstack/playbooks/add-crud.md +46 -0
  222. package/packs/nextjs-fullstack/playbooks/add-email.md +46 -0
  223. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +46 -0
  224. package/packs/nextjs-fullstack/playbooks/add-webhook.md +46 -0
  225. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +47 -0
  226. package/plugins/connore/.claude-plugin/plugin.json +10 -0
  227. package/plugins/connore/hooks/hooks.json +16 -0
  228. package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
  229. package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
  230. package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
  231. package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
  232. package/src/cli.js +377 -90
  233. package/src/commands/add.js +61 -57
  234. package/src/commands/catalog.js +21 -0
  235. package/src/commands/doctor.js +44 -0
  236. package/src/commands/edit.js +88 -0
  237. package/src/commands/graph.js +20 -0
  238. package/src/commands/handoff.js +45 -0
  239. package/src/commands/hook.js +67 -50
  240. package/src/commands/init.js +74 -55
  241. package/src/commands/learn.js +39 -0
  242. package/src/commands/lint.js +13 -0
  243. package/src/commands/list.js +10 -10
  244. package/src/commands/log.js +49 -0
  245. package/src/commands/memory.js +14 -0
  246. package/src/commands/packs.js +21 -0
  247. package/src/commands/plan.js +41 -0
  248. package/src/commands/reindex.js +8 -8
  249. package/src/commands/review.js +31 -0
  250. package/src/commands/routes.js +13 -0
  251. package/src/commands/search.js +26 -0
  252. package/src/commands/stats.js +35 -0
  253. package/src/commands/undo.js +7 -0
  254. package/src/commands/update.js +20 -14
  255. package/src/lib/catalog.js +32 -0
  256. package/src/lib/config.js +67 -0
  257. package/src/lib/fs-safe.js +36 -11
  258. package/src/lib/gitlog.js +75 -0
  259. package/src/lib/graph.js +96 -0
  260. package/src/lib/ignore.js +47 -0
  261. package/src/lib/index.js +88 -57
  262. package/src/lib/lessons.js +173 -0
  263. package/src/lib/lint.js +185 -0
  264. package/src/lib/lock.js +47 -0
  265. package/src/lib/memory.js +49 -0
  266. package/src/lib/mutate.js +26 -0
  267. package/src/lib/packs.js +25 -0
  268. package/src/lib/paths.js +6 -2
  269. package/src/lib/plan.js +156 -0
  270. package/src/lib/pointers.js +3 -3
  271. package/src/lib/prompts.js +66 -0
  272. package/src/lib/provider.js +27 -0
  273. package/src/lib/report.js +41 -17
  274. package/src/lib/routes.js +59 -0
  275. package/src/lib/run.js +116 -0
  276. package/src/lib/search.js +64 -0
  277. package/src/lib/secrets.js +25 -0
  278. package/src/lib/signals.js +55 -0
  279. package/src/lib/sync.js +20 -12
  280. package/src/lib/tokens.js +8 -0
@@ -0,0 +1,44 @@
1
+ ---
2
+ title: Import boundaries
3
+ type: rule
4
+ tags: [architecture, imports, eslint, boundaries]
5
+ updated: 2026-12-06
6
+ description: Load when wiring imports between app, features and shared code.
7
+ ---
8
+
9
+
10
+ # Import boundaries
11
+
12
+ Code flows one way: shared → features → app.
13
+
14
+ - Shared code (`components`, `hooks`, `lib`, `types`, `utils`) may be imported by anything.
15
+ - A feature may import shared code.
16
+ - `app/` may import features and shared code.
17
+ - Nothing imports from `app/`. Features do not import each other.
18
+
19
+ ## Always
20
+
21
+ 1. Import files directly by path.
22
+ 2. Keep the direction one-way, so deleting a feature cannot break another feature.
23
+ 3. Enforce the boundary with a lint rule rather than a convention in a README.
24
+
25
+ ## Never
26
+
27
+ 1. Never import from `app/` inside a feature.
28
+ 2. Never import feature A from feature B.
29
+ 3. Never add a barrel file that re-exports a whole feature.
30
+
31
+ ## Enforcing it
32
+
33
+ ESLint `import/no-restricted-paths` takes a list of zones. Give each feature a zone whose `target` is that feature and whose `from` is the features directory, with the feature itself in `except`. Add one zone with `target: './src/features'` and `from: './src/app'` for the one-way rule, and one whose `target` is the shared folders and whose `from` is features plus app.
34
+
35
+ Verify by running the linter, not by reading the config.
36
+
37
+ ## Common mistakes
38
+
39
+ - Adding the zones but leaving the feature out of its own `except` list, which blocks every internal import.
40
+ - Enforcing the rule only in CI, so local work drifts for a week before it fails.
41
+
42
+ ## Source
43
+
44
+ Bulletproof React `docs/project-structure.md`, MIT. Rule names are from ESLint's `import` plugin. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: Naming and imports
3
+ type: rule
4
+ tags: [naming, conventions, imports, files]
5
+ updated: 2026-12-06
6
+ description: Load before creating a file, naming a symbol, or writing an import path.
7
+ ---
8
+
9
+
10
+ # Naming and imports
11
+
12
+ Consistency here costs nothing and saves every later search.
13
+
14
+ ## Files and folders
15
+
16
+ - Name files and folders in `kebab-case`. One convention, enforced, beats a tasteful mix.
17
+ - Name the file after what it exports: `user-profile.tsx` exports `UserProfile`.
18
+ - Keep test folders as `__tests__` beside the code they cover.
19
+ - This is lintable. A filename and folder naming rule in ESLint catches drift before review does.
20
+
21
+ ## Symbols
22
+
23
+ - Components in `PascalCase`, hooks as `useThing`, everything else in `camelCase`.
24
+ - Constants that are genuinely fixed go in `SCREAMING_SNAKE_CASE`; a value computed once does not.
25
+ - Booleans read as assertions: `isLoading`, `hasAccess`, `canEdit`. Not `loading` on a prop that might be a string.
26
+ - Event handlers are `handleX` in the component and `onX` as the prop.
27
+
28
+ ## Imports
29
+
30
+ - Configure an absolute import alias and use it. `@/components/button` survives a file move; `../../../components/button` does not.
31
+ - One alias, `@/*` mapped to `src/*`, is enough. Several aliases invite confusion about what came from `node_modules`.
32
+ - Set it in `tsconfig.json` under `compilerOptions.paths`, and make the bundler agree, or imports resolve in the editor and fail at build.
33
+ - Use a relative import only inside the same feature folder, where the files move together.
34
+
35
+ ## Never
36
+
37
+ 1. Never mix naming conventions within one folder because an existing file got it wrong. Fix the file.
38
+ 2. Never alias so deeply that the import hides which layer it crossed. See `frontend/architecture/import-boundaries.md`.
39
+ 3. Never name a file `index.ts` purely to shorten an import. It makes every tab say `index`.
40
+
41
+ ## Source
42
+
43
+ Bulletproof React `docs/project-standards.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: Project structure
3
+ type: guide
4
+ tags: [architecture, structure, folders, react]
5
+ updated: 2026-12-06
6
+ description: Load before creating folders or deciding where a new file belongs.
7
+ ---
8
+
9
+
10
+ # Project structure
11
+
12
+ Framework-independent. The same shape works for React, Next.js and React Native.
13
+
14
+ Keep most code under `src/`, split by role:
15
+
16
+ - `app/` routes, root component, providers, router config
17
+ - `components/` shared components used by more than one feature
18
+ - `features/` one folder per feature, where most code lives
19
+ - `hooks/` `lib/` `utils/` `types/` shared and reusable, with no feature knowledge
20
+ - `config/` env vars and global config
21
+ - `stores/` global state
22
+ - `testing/` test utilities and mocks
23
+ - `assets/` static files
24
+
25
+ ## When
26
+
27
+ Use at the start of a project, and whenever a file has no obvious home.
28
+
29
+ ## Rules
30
+
31
+ - Put new code in a feature folder first. Promote it to `components/` or `hooks/` only once a second feature needs it.
32
+ - Add a folder when it has a second file, not before.
33
+ - Keep a dedicated top-level `api/` folder only when many features share the same requests. Otherwise requests live in the feature.
34
+ - The layout survives a framework change because only `app/` is framework-shaped.
35
+
36
+ ## Common mistakes
37
+
38
+ - A flat `components/` folder holding eighty unrelated files. That is the failure this layout prevents.
39
+ - Creating all nine folders in an empty repo, so the structure says nothing about the code.
40
+ - Mixing feature code into the shared folders, which makes the shared layer depend on features.
41
+
42
+ ## Related
43
+
44
+ `frontend/architecture/feature-modules.md`, `frontend/architecture/import-boundaries.md`.
45
+
46
+ ## Source
47
+
48
+ Bulletproof React `docs/project-structure.md`, MIT. Summarised in our own words. See `frontend/SOURCES.md`.
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: Routing
3
+ type: guide
4
+ tags: [routing, routes, navigation, lazy, guards]
5
+ updated: 2026-12-06
6
+ description: Load when adding a route, a nested layout, or a protected area.
7
+ ---
8
+
9
+
10
+ # Routing
11
+
12
+ Routes are the application's public shape. Keep them in one place and keep them thin.
13
+
14
+ ## Structure
15
+
16
+ - Declare routes in `app/routes/`, mirroring the URL. A reader should map a path to a file without searching.
17
+ - A route file wires things together: it reads params, calls a feature's hook, and renders a feature component. Business logic lives in the feature, not the route.
18
+ - Nest layouts for shared chrome. A sidebar, a header, or an auth shell is a parent route, not a wrapper repeated in every child.
19
+ - Group protected routes under one parent so the check exists once.
20
+
21
+ ## Params and data
22
+
23
+ - Validate params. An id from the URL is user input, not a guarantee.
24
+ - Prefetch in the route rather than in the component when the router supports it. Fetching after render creates a waterfall; see `frontend/architecture/app-foundations.md`.
25
+ - Keep filter and sort state in the URL when the user would expect to share or reload it. Keep transient UI state out of it.
26
+
27
+ ## Code splitting
28
+
29
+ Split at the route boundary, not below it, unless a specific component is heavy. Give each lazy route a fallback that holds the layout. See `frontend/performance/code-splitting.md`.
30
+
31
+ ## Guards
32
+
33
+ - A route guard decides whether to render, redirect, or show a forbidden state. It is not a security boundary; the server enforces access. See `frontend/architecture/security.md`.
34
+ - Redirect unauthenticated users to sign-in with a return path, so they land where they intended.
35
+ - Render a real forbidden state for a signed-in user without permission. Redirecting them to the dashboard looks like a bug.
36
+
37
+ ## Common mistakes
38
+
39
+ - Fetching and rendering a 404 for a valid id because the param was read before the loader resolved.
40
+ - A guard duplicated in every child route, so adding a route silently leaves it open.
41
+ - Route components that grow into feature components, which makes them impossible to test or reuse.
42
+
43
+ ## Source
44
+
45
+ Bulletproof React `docs/project-structure.md` and `docs/performance.md`, MIT, plus the router guidance in react.dev. See `frontend/SOURCES.md`.
@@ -0,0 +1,44 @@
1
+ ---
2
+ title: Frontend security
3
+ type: rule
4
+ tags: [security, auth, authorization, xss, tokens]
5
+ updated: 2026-12-06
6
+ description: Load when handling tokens, user identity, permissions, or user-supplied content.
7
+ ---
8
+
9
+
10
+ # Frontend security
11
+
12
+ Client-side checks improve the experience. They protect nothing. The server enforces access; assume every client check can be bypassed.
13
+
14
+ ## Tokens
15
+
16
+ - Storing a token in `localStorage` exposes it to any cross-site scripting flaw on the page, which means token theft.
17
+ - A cookie with `HttpOnly` set cannot be read by client JavaScript, which removes that path. This is the safer default, and it requires the API to set the attribute.
18
+ - Holding the token only in application state is the most secure option and loses the session on refresh, which is usually unacceptable.
19
+ - Never log a token, put one in a URL, or commit one. Use obvious placeholders in examples.
20
+
21
+ ## Identity
22
+
23
+ Treat the signed-in user as one piece of global state, readable anywhere. Derive "is authenticated" from the presence of a user object rather than tracking a separate boolean that can disagree with it.
24
+
25
+ ## Authorization
26
+
27
+ - Role-based control maps roles to permissions: a role grants a fixed set of rights. It covers most screens.
28
+ - Permission-based control answers finer questions, such as whether this user owns this specific comment. Use it where ownership, not role, decides.
29
+ - Express the check as a component or hook used consistently, so a new screen cannot forget it.
30
+ - Hiding a button is not authorization. The endpoint behind it must refuse the call.
31
+
32
+ ## User content
33
+
34
+ Sanitise anything a user supplied before rendering it, especially Markdown and HTML. Unsanitised user content is the most common route to cross-site scripting.
35
+
36
+ ## Never
37
+
38
+ 1. Never trust a value from the URL, local storage, or a form without validating it.
39
+ 2. Never put a secret in client code or a public environment variable. Anything shipped to the browser is public.
40
+ 3. Never rely on a hidden route to keep data private.
41
+
42
+ ## Source
43
+
44
+ Bulletproof React `docs/security.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,44 @@
1
+ ---
2
+ title: TypeScript conventions
3
+ type: rule
4
+ tags: [typescript, types, props, safety]
5
+ updated: 2026-12-06
6
+ description: Load when typing props, API payloads, or a shared utility.
7
+ ---
8
+
9
+
10
+ # TypeScript conventions
11
+
12
+ TypeScript catches issues during refactors that nothing else will. It checks at build time and prevents no runtime failure, so treat it as a refactoring tool, not a guarantee.
13
+
14
+ ## Always
15
+
16
+ 1. Infer types from one source of truth. Derive API types from the response schema; derive form types from the validation schema. Do not maintain a parallel interface.
17
+ 2. Type props as an explicit interface or type next to the component, and export it when the component is shared.
18
+ 3. Model mutually exclusive states as a discriminated union, not as several optional fields. A union makes the impossible state uncompilable.
19
+ 4. Give functions a return type when they are exported. Inference inside a file is fine; across a boundary it drifts silently.
20
+ 5. When refactoring, update the type declarations first, then work through the errors. That is the whole value of having them.
21
+
22
+ ## Never
23
+
24
+ 1. Never use `any` to move on. If the shape is genuinely unknown, use `unknown` and narrow it.
25
+ 2. Never cast with `as` to silence an error. A cast asserts you know better than the compiler, which is rarely true at that moment.
26
+ 3. Never use a non-null assertion on data that came from the network.
27
+ 4. Never type a prop as `string` when it is one of four values. Use the union.
28
+
29
+ ## Enums and unions
30
+
31
+ Prefer a union of string literals to an enum. It is simpler, erases at build, and compares against plain strings without conversion.
32
+
33
+ ## Strictness
34
+
35
+ Turn `strict` on at the start. Adding it to a mature codebase is a project; starting with it is free.
36
+
37
+ ## Common mistakes
38
+
39
+ - A shared type defined in the component that needs it, then imported upward, inverting the dependency.
40
+ - Optional props that are actually required in half the call sites, discovered only at runtime.
41
+
42
+ ## Source
43
+
44
+ Bulletproof React `docs/project-standards.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: Component composition
3
+ type: rule
4
+ tags: [components, composition, props, children]
5
+ updated: 2026-12-06
6
+ description: Load before building a component or adding another prop to one.
7
+ ---
8
+
9
+
10
+ # Component composition
11
+
12
+ Prefer composition over configuration. A component with twelve boolean props should have been three components.
13
+
14
+ ## Primitives and composites
15
+
16
+ - A primitive renders one thing and owns no data: button, input, card surface.
17
+ - A composite arranges primitives and may own layout: a form row, a toolbar, a page section.
18
+ - Only feature components know about requests and domain types. Primitives never do.
19
+
20
+ ## Children
21
+
22
+ Pass content as `children` instead of as props whenever the parent does not need to inspect it. JSX passed as `children` is created by the parent of the stateful component, so it is not re-rendered when that component's state changes. This is the cheapest render optimisation available and it needs no memo.
23
+
24
+ Use the same idea for slots: `header`, `footer` and `actions` as nodes rather than as strings plus flags.
25
+
26
+ ## Rules
27
+
28
+ - Keep the data-fetching component separate from the presentational one. The presentational component takes props and can be rendered in isolation.
29
+ - A prop that only switches which element is rendered usually means two components.
30
+ - Do not reach into a child's internals from the parent. Give the child what it needs.
31
+ - Keep props serialisable where possible, so a component can move across the server boundary.
32
+
33
+ ## Common mistakes
34
+
35
+ - Passing a render flag down three levels instead of passing the node.
36
+ - A component that takes both the data and the request hook, so it cannot be reused.
37
+ - Wrapping everything in memo instead of fixing where the state lives.
38
+
39
+ ## Related
40
+
41
+ `frontend/performance/rendering.md`, `frontend/components/variants.md`.
42
+
43
+ ## Source
44
+
45
+ Bulletproof React `docs/components-and-styling.md` and `docs/performance.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Lists, tables and pagination
3
+ type: guide
4
+ tags: [lists, tables, pagination, data-display]
5
+ updated: 2026-12-06
6
+ description: Load when rendering a collection, a table, or a paged result.
7
+ ---
8
+
9
+
10
+ # Lists, tables and pagination
11
+
12
+ Most product screens are a collection with actions. Get the mechanics right and the screen is most of the way there.
13
+
14
+ ## Choosing
15
+
16
+ - A list for items read one at a time, or on narrow screens.
17
+ - A table when the user compares values across rows. Tabular data needs a real `table`, so screen readers can announce row and column.
18
+ - A grid of cards when the item has an image or needs more than two lines.
19
+
20
+ ## Rules
21
+
22
+ - Give every row a stable key from the data, never the array index. An index key corrupts state when the list reorders.
23
+ - Render all four states: loading, error, empty, loaded. See `frontend/state/async-ui-states.md`.
24
+ - Keep row actions reachable by keyboard. A control that appears only on hover is invisible to a keyboard and a touch user.
25
+ - Put sort and filter state in the URL so a view can be shared and survives reload.
26
+ - Right-align numbers, left-align text, and keep a consistent number format down a column.
27
+
28
+ ## Pagination
29
+
30
+ - Prefer pages when the user needs position and totals; prefer infinite scroll for browsing. Infinite scroll makes the footer unreachable, so do not use it on a page that has one.
31
+ - Keep the page in the URL. A reader who refreshes should not jump to page one.
32
+ - Preserve the scroll position and the loaded pages when the user navigates back into the list.
33
+ - Prefetch the next page on intent rather than after the click.
34
+
35
+ ## Large lists
36
+
37
+ Virtualise only when the row count genuinely hurts, and measure first. Virtualisation breaks find-in-page and complicates keyboard navigation, so it is a cost, not a free win.
38
+
39
+ ## Common mistakes
40
+
41
+ - An empty state that is just a blank area, so the user cannot tell it from a failure.
42
+ - A table that becomes a horizontally scrolling wall on a phone instead of collapsing to rows.
43
+ - Selection state lost on page change, so a bulk action silently applies to the wrong items.
44
+
45
+ ## Source
46
+
47
+ This project's conventions, with the state rules from Bulletproof React `docs/state-management.md`, MIT, and the markup requirements from WCAG 2.2. See `frontend/SOURCES.md`.
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: Choosing a component source
3
+ type: guide
4
+ tags: [components, headless, copy-in, libraries, styling]
5
+ updated: 2026-12-06
6
+ description: Load before installing a component library or writing a custom component.
7
+ ---
8
+
9
+
10
+ # Choosing a component source
11
+
12
+ Three kinds of source, with different costs.
13
+
14
+ ## Styled libraries
15
+
16
+ MUI, Ant Design and Mantine ship components with their own design language. Fast when the product can look like the library. Expensive when it cannot, because overriding a full design system fights the library on every screen. Ant Design in particular suits admin dashboards.
17
+
18
+ ## Headless libraries
19
+
20
+ Radix UI, Base UI, Headless UI, React Aria and Ark UI ship behaviour and accessibility with no styling. Correct choice when the product has its own design. You write every style yourself.
21
+
22
+ ## Copy-in components
23
+
24
+ shadcn/ui and Park UI give you the code rather than a dependency. You own the files and edit them directly. Upgrades are manual, which is the trade for full control.
25
+
26
+ ## Order to try
27
+
28
+ 1. Use a component already in `components/ui-primitives`. Those files list their real props beside them.
29
+ 2. Add a missing one with the project's install command rather than hand-writing a copy.
30
+ 3. Write a custom component in `components/custom` only when nothing fits, with a short note of its props and one example.
31
+
32
+ Never vendor an effects library whose licence forbids redistributing the components. Install it into the app instead, as `components/motion-effects/README.md` explains.
33
+
34
+ ## Styling note
35
+
36
+ Runtime styling such as styled-components or Emotion generates styles during render. Build-time approaches, Tailwind, CSS modules and vanilla-extract, do not. React Server Components require a zero-runtime solution, so this choice constrains the architecture.
37
+
38
+ ## Common mistakes
39
+
40
+ - Installing a second component library for one missing component.
41
+ - Rebuilding a dialog or menu by hand and losing focus trapping and keyboard support.
42
+
43
+ ## Source
44
+
45
+ Bulletproof React `docs/components-and-styling.md`, MIT, and this project's existing component conventions. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,44 @@
1
+ ---
2
+ title: Component variants and props
3
+ type: guide
4
+ tags: [components, variants, props, typescript, cva]
5
+ updated: 2026-12-06
6
+ description: Load when giving a component sizes, styles or a typed prop interface.
7
+ ---
8
+
9
+
10
+ # Component variants and props
11
+
12
+ A variant is a named visual choice: `size`, `tone`, `intent`. Declare the set, do not accept arbitrary classes.
13
+
14
+ ## Rules
15
+
16
+ - Define variants in one place per component and export the type, so callers get autocomplete and invalid values fail to compile.
17
+ - Give every variant a default, so the common call is short.
18
+ - Keep variants orthogonal. `size` should not change the colour.
19
+ - Accept a `className` for one-off spacing, but never let a caller restyle the component through it. If a caller needs a new look, add a variant.
20
+ - Forward the native element props and the ref, so the component works with forms, tooltips and focus management.
21
+
22
+ ## Prop interfaces
23
+
24
+ - Name props for what they mean, not how they render: `isLoading`, not `showSpinner`.
25
+ - Prefer one union prop over several booleans. Three booleans allow eight states, most of which are nonsense.
26
+ - Keep required props to the ones with no sensible default.
27
+
28
+ ## Tooling
29
+
30
+ `class-variance-authority` is the convention in this project's component set, with `cn` for merging. It is a styling helper, not a requirement of the pattern; the same rules apply with plain objects or any other approach.
31
+
32
+ ## Common mistakes
33
+
34
+ - A `variant="custom"` escape hatch that ends up on half the call sites.
35
+ - Variants defined in the component and again in a wrapper, which drift apart.
36
+ - Dropping the ref, so the component cannot be focused or measured.
37
+
38
+ ## Related
39
+
40
+ `components/ui-primitives/README.md` lists what each copied component actually declares. `frontend/components/library-choice.md` covers where components come from.
41
+
42
+ ## Source
43
+
44
+ Bulletproof React `docs/components-and-styling.md`, MIT, and the component set already in `components/ui-primitives`. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: Form architecture
3
+ type: guide
4
+ tags: [forms, inputs, react, controlled]
5
+ updated: 2026-12-06
6
+ description: Load before building a form or adding a field component.
7
+ ---
8
+
9
+
10
+ # Form architecture
11
+
12
+ Wrap the form library once, then build screens against your own components. Screens should not import the library directly.
13
+
14
+ ## Shape
15
+
16
+ - One `Form` component that owns submission, the schema and the error surface.
17
+ - One wrapper per input type: text, select, checkbox, textarea. Each takes a label, a name, and an error, and renders the project's field markup.
18
+ - Screens compose those wrappers. Changing form library then touches the wrappers, not every screen.
19
+
20
+ ## Controlled or uncontrolled
21
+
22
+ - Uncontrolled fields keep their value in the DOM and re-render less. They suit most forms.
23
+ - Controlled fields keep the value in React. Use them when another part of the UI must react to each keystroke, such as a live preview or a dependent field.
24
+ - Do not mix the two on one field. A field with both `value` and `defaultValue` is a bug.
25
+
26
+ ## Rules
27
+
28
+ - Every input has a label element bound to it. A placeholder is not a label.
29
+ - Keep field state in the form library, not in a global store.
30
+ - Disable the submit button while a submission is in flight, and keep the entered values if it fails.
31
+ - Report the submission result where the user is looking, not only as a toast.
32
+
33
+ ## Libraries
34
+
35
+ React Hook Form, Formik and React Final Form all handle validation, errors and submission. Pick one per project.
36
+
37
+ ## Common mistakes
38
+
39
+ - A field wrapper per screen, so eight forms have eight different error styles.
40
+ - Clearing the form on a failed submit, which throws away the user's work.
41
+ - Submitting on Enter in a multi-field form that has no explicit submit button.
42
+
43
+ ## Related
44
+
45
+ `frontend/forms/validation.md`, `components/ui-primitives/input.md`, `components/ui-primitives/label.md`.
46
+
47
+ ## Source
48
+
49
+ Bulletproof React `docs/state-management.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: Multi-step forms
3
+ type: guide
4
+ tags: [forms, wizard, steps, validation]
5
+ updated: 2026-12-06
6
+ description: Load when a form spans more than one screen or step.
7
+ ---
8
+
9
+
10
+ # Multi-step forms
11
+
12
+ One form state across all steps. Each step is a view over that state, not its own form.
13
+
14
+ ## Rules
15
+
16
+ - Hold the values in a single store for the whole flow, so going back never loses input.
17
+ - Validate each step against the slice of the schema it covers. Validate the whole schema once more on final submit.
18
+ - Block forward navigation when the current step is invalid. Always allow going back.
19
+ - Show where the user is and how far is left. A step count is enough.
20
+ - Submit once, at the end, unless a step genuinely has to persist on its own.
21
+
22
+ ## When to avoid
23
+
24
+ Do not split a form that fits on one screen. Steps add navigation, state and failure modes. Three fields do not need a wizard.
25
+
26
+ ## Resuming
27
+
28
+ If the flow can be abandoned and resumed, persist the values deliberately and say so in the UI. Never persist payment details or anything that belongs in a vault.
29
+
30
+ ## Common mistakes
31
+
32
+ - A separate form per step, so the back button clears what was typed.
33
+ - Validating everything on step one, which errors on fields the user has not reached.
34
+ - A final submit that fails and drops the user back to step one with an empty form.
35
+ - A progress indicator that cannot be trusted because steps are added conditionally.
36
+
37
+ ## Related
38
+
39
+ `frontend/forms/form-architecture.md`, `frontend/forms/validation.md`.
40
+
41
+ ## Source
42
+
43
+ Derived from the form guidance in Bulletproof React `docs/state-management.md`, MIT, applied to multi-step flows. No step-specific source was present in the raw set. See `frontend/SOURCES.md`.
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Form validation
3
+ type: guide
4
+ tags: [forms, validation, schema, errors]
5
+ updated: 2026-12-06
6
+ description: Load when validating input or showing field and server errors.
7
+ ---
8
+
9
+
10
+ # Form validation
11
+
12
+ Declare one schema per form and derive both the types and the validation from it.
13
+
14
+ ## Rules
15
+
16
+ - Define the schema next to the request declaration, so the client and the API agree on one shape.
17
+ - Infer the form's TypeScript types from the schema. Do not maintain a parallel interface.
18
+ - Validate on the server as well. Client validation is a convenience, never a guarantee.
19
+ - Map server field errors back onto the matching fields. A server error shown only as a banner leaves the user hunting.
20
+
21
+ ## When to validate
22
+
23
+ - On submit, always.
24
+ - On blur for a field the user has already left, which is the least noisy default.
25
+ - While typing only after that field has errored once, so the message clears as it is fixed.
26
+
27
+ Do not validate a field the user has not touched. `touched` and `dirty` exist for this.
28
+
29
+ ## Messages
30
+
31
+ - Say what is wrong and what to do: "Use at least 8 characters", not "Invalid".
32
+ - Put the message next to its field, and link it to the input so screen readers announce it. See `frontend/accessibility/semantics-and-keyboard.md`.
33
+ - Keep one summary at the top for long forms, with links to the failed fields.
34
+
35
+ ## Common mistakes
36
+
37
+ - Validating on every keystroke from the first render, so a fresh form is already red.
38
+ - A schema that allows a shape the API rejects, moving the failure to the network tab.
39
+ - Showing only the first error when several fields failed.
40
+
41
+ ## Version note
42
+
43
+ Zod and Yup are both common resolvers. The raw sources name schema validation without pinning a library version, so confirm what is installed.
44
+
45
+ ## Source
46
+
47
+ Bulletproof React `docs/state-management.md` and `docs/api-layer.md`, MIT. Summarised. See `frontend/SOURCES.md`.
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: Responsive layout
3
+ type: guide
4
+ tags: [layout, responsive, grid, container, breakpoints]
5
+ updated: 2026-12-06
6
+ description: Load when building a page layout, grid or container.
7
+ ---
8
+
9
+
10
+ # Responsive layout
11
+
12
+ Let the browser do the layout. Reach for a breakpoint only when the content genuinely needs a different arrangement, not to patch a number.
13
+
14
+ ## Rules
15
+
16
+ - Build mobile first. Start with the single-column case and add rules upward.
17
+ - Prefer intrinsic sizing to fixed widths: a wrapping flex row, `minmax` grid tracks, `clamp` for type. These adapt without a media query.
18
+ - Define containers once as a reusable width, so pages do not each pick their own.
19
+ - Use breakpoints at the point where the layout breaks, not at device names. Phones and windows are arbitrary widths.
20
+ - Keep the reading measure bounded. Full-width body text at 1600px is unreadable regardless of the grid.
21
+ - Content must reflow at 320 CSS pixels wide, which is a 1280px viewport at 400% zoom, without a horizontal scrollbar.
22
+
23
+ ## Grids
24
+
25
+ - A card grid is `repeat(auto-fit, minmax(<min>, 1fr))` before it is a set of breakpoints.
26
+ - Keep gaps on a spacing scale. Do not hand-tune each section.
27
+ - Do not nest grids to achieve alignment that one grid with named lines would give.
28
+
29
+ ## Avoid
30
+
31
+ - Magic numbers chosen because they looked right on one screen.
32
+ - A breakpoint per component, which makes the page impossible to reason about.
33
+ - Layout that depends on an element's measured height in JavaScript.
34
+
35
+ ## Measurement note
36
+
37
+ Spacing and container widths for this project's reference screens are not measured. Treat them as TODO in `design/tokens.md` rather than inventing pixel values.
38
+
39
+ ## Source
40
+
41
+ The argument for algorithmic layout is general and widely held; the raw set contained only a sales page for a paid book on the topic, so nothing from that book is reproduced here. The 320 pixel figure is WCAG 2.2 Reflow. See `frontend/SOURCES.md`.
@@ -0,0 +1,16 @@
1
+ ---
2
+ title: App shell
3
+ type: blueprint
4
+ tags: [dashboard, app-shell, sidebar]
5
+ updated: 2026-12-06
6
+ description: Signed-in overview layout from the dashboard reference.
7
+ ---
8
+
9
+
10
+ # App shell
11
+
12
+ Spec: `design/references/dashboard-overview.md`. This is a reference layout, not the Context101 schema. Data for a real dashboard is in `workflows/dashboard.md`.
13
+
14
+ Sidebar: logo, workspace, search with a shortcut, nav, then a footer with the user. Main: page title, a short toolbar, then cards. First row can be two columns. A warning banner spans the main column when a job is paused.
15
+
16
+ Colors from the sample: sidebar `#04100c`, main `#0c1010`. One white primary button. Other toolbar buttons are dark with a light border. Do not use the landing accent `#06e27a` on this shell.