@thanhnguyxn/pixelcraft 0.0.0-stage → 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 (455) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +20 -0
  4. package/.claude-plugin/plugin.json +22 -0
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/LICENSE +21 -0
  13. package/README.md +264 -2
  14. package/SECURITY.md +28 -0
  15. package/assets/README.md +28 -0
  16. package/assets/pixelcraft-logo-128.png +0 -0
  17. package/assets/pixelcraft-logo-256.png +0 -0
  18. package/assets/pixelcraft-logo-512.png +0 -0
  19. package/bin/pixelcraft.mjs +852 -0
  20. package/docs/ARCHITECTURE.md +105 -0
  21. package/docs/DESIGN-RATIONALE.md +191 -0
  22. package/docs/INSTALL.md +221 -0
  23. package/evals/README.md +37 -0
  24. package/evals/fixtures/3d-web-engineering.json +69 -0
  25. package/evals/fixtures/README.md +36 -0
  26. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  27. package/evals/fixtures/ai-ui-libraries.json +53 -0
  28. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  29. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  30. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  31. package/evals/fixtures/build-and-architecture.json +53 -0
  32. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  33. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  34. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  35. package/evals/fixtures/component-systems.json +53 -0
  36. package/evals/fixtures/component-testing.json +53 -0
  37. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  38. package/evals/fixtures/creative-code-rendering.json +69 -0
  39. package/evals/fixtures/creative-reference-evidence.json +67 -0
  40. package/evals/fixtures/data-app-python-marimo.json +49 -0
  41. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  42. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  43. package/evals/fixtures/desktop-native-workspace.json +48 -0
  44. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  45. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  46. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  47. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  48. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  49. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  50. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  51. package/evals/fixtures/enterprise-data-ui.json +53 -0
  52. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  53. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  54. package/evals/fixtures/file-upload-media-ui.json +53 -0
  55. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  56. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  57. package/evals/fixtures/forms-validation.json +53 -0
  58. package/evals/fixtures/game-go-ebitengine.json +49 -0
  59. package/evals/fixtures/game-godot-gdscript.json +49 -0
  60. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  61. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  62. package/evals/fixtures/i18n-engineering.json +53 -0
  63. package/evals/fixtures/local-first-sync.json +53 -0
  64. package/evals/fixtures/lynxjs.json +53 -0
  65. package/evals/fixtures/maizzle-email.json +53 -0
  66. package/evals/fixtures/maps-geospatial.json +53 -0
  67. package/evals/fixtures/media-og-and-video-export.json +43 -0
  68. package/evals/fixtures/media-players.json +53 -0
  69. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  70. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  71. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  72. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  73. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  74. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  75. package/evals/fixtures/motion-engineering.json +69 -0
  76. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  77. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  78. package/evals/fixtures/plan-discovery-interview.json +31 -0
  79. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  80. package/evals/fixtures/reactive-data-apps.json +53 -0
  81. package/evals/fixtures/review-evidence-audit.json +43 -0
  82. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  83. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  84. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  85. package/evals/fixtures/state-architecture.json +53 -0
  86. package/evals/fixtures/styling-ecosystem.json +53 -0
  87. package/evals/fixtures/token-tooling.json +53 -0
  88. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  89. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  90. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  91. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  92. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  93. package/evals/fixtures/web-3d-engines.json +53 -0
  94. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  95. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  96. package/evals/fixtures/workflow-checkpoints.json +30 -0
  97. package/evals/pixelcraft-accessibility.md +74 -0
  98. package/evals/pixelcraft-brandkit.md +58 -0
  99. package/evals/pixelcraft-chat-ui.md +55 -0
  100. package/evals/pixelcraft-constrained.md +55 -0
  101. package/evals/pixelcraft-craft.md +76 -0
  102. package/evals/pixelcraft-data-apps.md +55 -0
  103. package/evals/pixelcraft-dataviz.md +59 -0
  104. package/evals/pixelcraft-desktop.md +55 -0
  105. package/evals/pixelcraft-direction.md +77 -0
  106. package/evals/pixelcraft-document.md +55 -0
  107. package/evals/pixelcraft-email.md +55 -0
  108. package/evals/pixelcraft-extensions.md +55 -0
  109. package/evals/pixelcraft-game-ui.md +59 -0
  110. package/evals/pixelcraft-handoff.md +57 -0
  111. package/evals/pixelcraft-media.md +55 -0
  112. package/evals/pixelcraft-mobile.md +59 -0
  113. package/evals/pixelcraft-patterns.md +73 -0
  114. package/evals/pixelcraft-plan.md +127 -0
  115. package/evals/pixelcraft-review.md +63 -0
  116. package/evals/pixelcraft-spatial.md +55 -0
  117. package/evals/pixelcraft-tokens.md +57 -0
  118. package/evals/pixelcraft-tui.md +55 -0
  119. package/evals/pixelcraft-ux.md +59 -0
  120. package/evals/pixelcraft-visual-qa.md +86 -0
  121. package/evals/pixelcraft-web.md +89 -0
  122. package/evals/pixelcraft.md +70 -0
  123. package/gemini-extension.json +6 -0
  124. package/install.ps1 +341 -0
  125. package/install.sh +512 -0
  126. package/package.json +91 -4
  127. package/plugin.json +29 -0
  128. package/scripts/build-adapters.mjs +288 -0
  129. package/scripts/build-release-archives.mjs +61 -0
  130. package/scripts/build-skill-zips.mjs +94 -0
  131. package/scripts/run-evals.mjs +397 -0
  132. package/scripts/sync-docs.mjs +381 -0
  133. package/scripts/test-build-adapters.mjs +61 -0
  134. package/scripts/test-cross-platform-qa.mjs +359 -0
  135. package/scripts/test-distribution.mjs +203 -0
  136. package/scripts/test-export-tokens.mjs +361 -0
  137. package/scripts/test-finish-gate.mjs +271 -0
  138. package/scripts/test-installers.mjs +216 -0
  139. package/scripts/test-release-archives.mjs +42 -0
  140. package/scripts/test-shoot.mjs +87 -0
  141. package/scripts/test-slop-scan.mjs +416 -0
  142. package/scripts/test-style-inventory.mjs +234 -0
  143. package/scripts/test-sync-docs.mjs +140 -0
  144. package/scripts/test-validate-skills.mjs +195 -0
  145. package/scripts/validate-skills.mjs +658 -0
  146. package/skills/pixelcraft/SKILL.md +155 -0
  147. package/skills/pixelcraft/references/design-brief.md +75 -0
  148. package/skills/pixelcraft/references/floor.md +90 -0
  149. package/skills/pixelcraft/references/report-template.md +49 -0
  150. package/skills/pixelcraft/references/stack-detection.md +226 -0
  151. package/skills/pixelcraft/references/surface-acceptance.md +52 -0
  152. package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
  153. package/skills/pixelcraft-accessibility/SKILL.md +54 -0
  154. package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
  155. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  156. package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
  157. package/skills/pixelcraft-accessibility/references/verification.md +64 -0
  158. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
  159. package/skills/pixelcraft-brandkit/SKILL.md +127 -0
  160. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
  161. package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -0
  162. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  163. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  164. package/skills/pixelcraft-brandkit/references/logo-methods.md +97 -0
  165. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  166. package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
  167. package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
  168. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  169. package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
  170. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  171. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  172. package/skills/pixelcraft-chat-ui/references/conversation-design.md +84 -0
  173. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
  174. package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
  175. package/skills/pixelcraft-constrained/SKILL.md +52 -0
  176. package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
  177. package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
  178. package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
  179. package/skills/pixelcraft-craft/SKILL.md +58 -0
  180. package/skills/pixelcraft-craft/references/color.md +125 -0
  181. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  182. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  183. package/skills/pixelcraft-craft/references/layout.md +73 -0
  184. package/skills/pixelcraft-craft/references/motion.md +163 -0
  185. package/skills/pixelcraft-craft/references/typography.md +110 -0
  186. package/skills/pixelcraft-data-apps/SKILL.md +86 -0
  187. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  188. package/skills/pixelcraft-data-apps/references/dash.md +109 -0
  189. package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
  190. package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
  191. package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
  192. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
  193. package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
  194. package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
  195. package/skills/pixelcraft-data-apps/references/panel.md +99 -0
  196. package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
  197. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  198. package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
  199. package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
  200. package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
  201. package/skills/pixelcraft-dataviz/SKILL.md +60 -0
  202. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  203. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  204. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +107 -0
  205. package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
  206. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  207. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
  208. package/skills/pixelcraft-desktop/SKILL.md +93 -0
  209. package/skills/pixelcraft-desktop/references/appkit.md +92 -0
  210. package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
  211. package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
  212. package/skills/pixelcraft-desktop/references/electron.md +96 -0
  213. package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
  214. package/skills/pixelcraft-desktop/references/gtk.md +97 -0
  215. package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
  216. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
  217. package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
  218. package/skills/pixelcraft-desktop/references/tauri.md +110 -0
  219. package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
  220. package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
  221. package/skills/pixelcraft-desktop/references/working-context.md +84 -0
  222. package/skills/pixelcraft-direction/SKILL.md +120 -0
  223. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  224. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  225. package/skills/pixelcraft-direction/references/direction-card.md +64 -0
  226. package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
  227. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  228. package/skills/pixelcraft-direction/references/movements.md +71 -0
  229. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  230. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  231. package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
  232. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  233. package/skills/pixelcraft-document/SKILL.md +58 -0
  234. package/skills/pixelcraft-document/references/archetypes.md +106 -0
  235. package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
  236. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  237. package/skills/pixelcraft-document/references/print-css.md +187 -0
  238. package/skills/pixelcraft-document/references/slides.md +198 -0
  239. package/skills/pixelcraft-email/SKILL.md +80 -0
  240. package/skills/pixelcraft-email/references/client-quirks.md +113 -0
  241. package/skills/pixelcraft-email/references/html-tables.md +114 -0
  242. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  243. package/skills/pixelcraft-email/references/mjml.md +54 -0
  244. package/skills/pixelcraft-email/references/react-email.md +95 -0
  245. package/skills/pixelcraft-extensions/SKILL.md +56 -0
  246. package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
  247. package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
  248. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  249. package/skills/pixelcraft-extensions/references/raycast.md +98 -0
  250. package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
  251. package/skills/pixelcraft-game-ui/SKILL.md +80 -0
  252. package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
  253. package/skills/pixelcraft-game-ui/references/godot.md +130 -0
  254. package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
  255. package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
  256. package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
  257. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  258. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
  259. package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
  260. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  261. package/skills/pixelcraft-handoff/SKILL.md +50 -0
  262. package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
  263. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  264. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  265. package/skills/pixelcraft-media/SKILL.md +49 -0
  266. package/skills/pixelcraft-media/references/banners-video.md +130 -0
  267. package/skills/pixelcraft-media/references/og-generation.md +154 -0
  268. package/skills/pixelcraft-media/references/social-cards.md +71 -0
  269. package/skills/pixelcraft-mobile/SKILL.md +86 -0
  270. package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
  271. package/skills/pixelcraft-mobile/references/flet.md +80 -0
  272. package/skills/pixelcraft-mobile/references/flutter.md +113 -0
  273. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  274. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
  275. package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
  276. package/skills/pixelcraft-mobile/references/kivy.md +82 -0
  277. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
  278. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  279. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  280. package/skills/pixelcraft-mobile/references/react-native-expo.md +106 -0
  281. package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
  282. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  283. package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
  284. package/skills/pixelcraft-mobile/references/uikit.md +92 -0
  285. package/skills/pixelcraft-patterns/SKILL.md +75 -0
  286. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  287. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  288. package/skills/pixelcraft-patterns/references/auth-onboarding.md +44 -0
  289. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  290. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  291. package/skills/pixelcraft-patterns/references/commerce.md +47 -0
  292. package/skills/pixelcraft-patterns/references/communication.md +45 -0
  293. package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
  294. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  295. package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
  296. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  297. package/skills/pixelcraft-patterns/references/marketing.md +44 -0
  298. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  299. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  300. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  301. package/skills/pixelcraft-patterns/references/pattern-selection.md +80 -0
  302. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  303. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  304. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  305. package/skills/pixelcraft-patterns/references/settings.md +51 -0
  306. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  307. package/skills/pixelcraft-plan/SKILL.md +103 -0
  308. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  309. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  310. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  311. package/skills/pixelcraft-plan/references/plan-template.md +134 -0
  312. package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
  313. package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
  314. package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
  315. package/skills/pixelcraft-review/SKILL.md +86 -0
  316. package/skills/pixelcraft-review/references/audit-report.md +69 -0
  317. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  318. package/skills/pixelcraft-review/references/heuristics.md +63 -0
  319. package/skills/pixelcraft-review/references/personas.md +53 -0
  320. package/skills/pixelcraft-review/references/polish.md +78 -0
  321. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  322. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  323. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  324. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  325. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  326. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  327. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  328. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  329. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  330. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  331. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  332. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  333. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  334. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  335. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  336. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  337. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  338. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  339. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  340. package/skills/pixelcraft-review/scripts/slop-scan.mjs +1233 -0
  341. package/skills/pixelcraft-spatial/SKILL.md +51 -0
  342. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
  343. package/skills/pixelcraft-spatial/references/platforms.md +147 -0
  344. package/skills/pixelcraft-tokens/SKILL.md +60 -0
  345. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  346. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  347. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  348. package/skills/pixelcraft-tokens/references/format.md +84 -0
  349. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  350. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  351. package/skills/pixelcraft-tokens/references/theme-presets.md +122 -0
  352. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  353. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
  354. package/skills/pixelcraft-tui/SKILL.md +76 -0
  355. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
  356. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  357. package/skills/pixelcraft-tui/references/ink.md +109 -0
  358. package/skills/pixelcraft-tui/references/ratatui.md +102 -0
  359. package/skills/pixelcraft-tui/references/rich.md +82 -0
  360. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  361. package/skills/pixelcraft-tui/references/textual.md +108 -0
  362. package/skills/pixelcraft-ux/SKILL.md +56 -0
  363. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  364. package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
  365. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  366. package/skills/pixelcraft-ux/references/forms.md +151 -0
  367. package/skills/pixelcraft-ux/references/i18n.md +221 -0
  368. package/skills/pixelcraft-ux/references/laws.md +39 -0
  369. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  370. package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
  371. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  372. package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
  373. package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
  374. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  375. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
  376. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  377. package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
  378. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
  379. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -0
  380. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  381. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  382. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  383. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  384. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
  385. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  386. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  387. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  388. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  389. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  390. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  391. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +174 -0
  392. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  393. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  394. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  395. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  396. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  397. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  398. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  399. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +668 -0
  400. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
  401. package/skills/pixelcraft-web/SKILL.md +132 -0
  402. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  403. package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
  404. package/skills/pixelcraft-web/references/angular.md +108 -0
  405. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  406. package/skills/pixelcraft-web/references/astro.md +113 -0
  407. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  408. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  409. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  410. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  411. package/skills/pixelcraft-web/references/clojurescript.md +88 -0
  412. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  413. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  414. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  415. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  416. package/skills/pixelcraft-web/references/elm.md +53 -0
  417. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  418. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  419. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  420. package/skills/pixelcraft-web/references/fsharp-fable.md +54 -0
  421. package/skills/pixelcraft-web/references/gsap.md +102 -0
  422. package/skills/pixelcraft-web/references/html-css.md +220 -0
  423. package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
  424. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  425. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  426. package/skills/pixelcraft-web/references/java-web.md +61 -0
  427. package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
  428. package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
  429. package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
  430. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  431. package/skills/pixelcraft-web/references/media-players.md +104 -0
  432. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  433. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  434. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  435. package/skills/pixelcraft-web/references/pwa.md +230 -0
  436. package/skills/pixelcraft-web/references/qwik.md +94 -0
  437. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  438. package/skills/pixelcraft-web/references/react-next.md +168 -0
  439. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  440. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  441. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  442. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  443. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  444. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  445. package/skills/pixelcraft-web/references/server-rendered.md +114 -0
  446. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  447. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  448. package/skills/pixelcraft-web/references/solid.md +111 -0
  449. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  450. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  451. package/skills/pixelcraft-web/references/svelte.md +111 -0
  452. package/skills/pixelcraft-web/references/tailwind.md +99 -0
  453. package/skills/pixelcraft-web/references/video-media.md +69 -0
  454. package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
  455. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -0,0 +1,47 @@
1
+ # Commerce: PLP, PDP, cart, checkout
2
+
3
+ Commerce UX is trust plus momentum. Never sacrifice price, availability, or policy clarity for visual novelty. This reference covers **retail and transactional e-commerce**; for SaaS subscriptions, usage metering, seat upgrades, and feature paywalls, read [billing-paywalls.md](billing-paywalls.md).
4
+
5
+ ## Product listing pages (PLP)
6
+
7
+ - Show honest availability, unit/total price, variant swatches with text/accessible names, shipping/returns cues, and decision-relevant specs on each tile/row.
8
+ - Keep filter, sort, and pagination state visible, shareable (deep-linkable where supported), reversible, and preserved when returning from a PDP.
9
+ - When filtered results are empty, diagnose why and offer concrete one-action recovery (remove a restrictive filter, broaden price range, include out-of-stock)—never display only "No results."
10
+ - Preserve scroll position across pagination or load-more transitions and announce newly loaded counts or fetch failures clearly.
11
+
12
+ ## Product detail pages (PDP)
13
+
14
+ - Lead with product identity, current variant price and stock status, truthful media, and the primary purchase action.
15
+ - Prevent impossible variant combinations cleanly (disable or clearly mark unavailable size/color pairings without resetting unrelated choices) and preserve user selections when inventory errors occur.
16
+ - Sizing guides, specs, ratings, and reviews require clear provenance and moderation context; never fabricate ratings, counts, or testimonials.
17
+ - Pair delivery estimates with location and cutoff-time qualifiers rather than vague promises.
18
+
19
+ ## Cart and checkout
20
+
21
+ - Keep the cart editable without friction: quantity changes, variant switches, save-for-later, removal with immediate undo, and transparent updates for price changes, shipping fees, taxes, and promo codes.
22
+ - Checkout minimizes distraction without trapping users in a dead end; preserve all entered fields across validation failures, session refreshes, and guest-vs-account switches.
23
+ - Payment errors must distinguish 3DS/bank authentication failure, card decline, network timeout, and field validation without leaking sensitive card details or clearing valid inputs.
24
+ - Order confirmation must show order ID, current status, itemized total, delivery/access timeline, receipt path, and support/cancellation options.
25
+
26
+ ## State matrix
27
+
28
+ | State | Required behavior |
29
+ |---|---|
30
+ | Out-of-stock variant | Keep variant inspectable with explicit status, restock alert or nearest alternative; never silently switch variants |
31
+ | Inventory race at checkout | Highlight exact affected line item, available quantity, and revised total before allowing retry |
32
+ | Promo code invalid/expired | State specific reason (expired, minimum spend unmet, ineligible category) while keeping cart intact |
33
+ | Tax/shipping recalculated | Announce updated total clearly before final payment commitment |
34
+ | Payment pending / timeout | Prevent duplicate charge with idempotency, disable double-submit, and confirm order status before asking to retry |
35
+
36
+ ## Do/don't pairs
37
+
38
+ | Do | Don't |
39
+ |---|---|
40
+ | Disclose shipping, fees, and taxes before final checkout review | Surprise buyers with hidden fees on the final pay step |
41
+ | Support guest checkout with optional post-purchase account creation | Force account registration before entering shipping details |
42
+ | Show real stock counts only when backed by live inventory | Display fabricated "Only 2 left!" or resetting countdown timers |
43
+ | Preserve cart and form input across failed promo or payment attempts | Clear the entire checkout form on a single field validation error |
44
+
45
+ ## Verification
46
+
47
+ Test out-of-stock variants, multi-currency and locale formatting, expired cart/promo codes, inventory race, payment decline vs timeout, paste/autofill/password-manager behavior, keyboard/touch flow, reduced motion, failed product imagery, fee transparency, and light/dark contrast.
@@ -0,0 +1,45 @@
1
+ # Chat, comments, and collaboration
2
+
3
+ Communication UI depends on sequence, authorship, timing, and trust. Visual flair must never obscure who said what, which thread it belongs to, or whether it was delivered.
4
+
5
+ > **Cross-skill boundary:** This reference covers human-to-human in-app messaging, comments, and collaborative threads. Both **hosted messaging bots/mini apps** (Slack, Discord, Telegram, WhatsApp, Teams, LINE, WeChat, Zalo) **and in-app AI/agentic chat workspaces** (streaming traces, tool cards, citations, approval gates) route to `pixelcraft-chat-ui` alongside `pixelcraft-patterns`. Cross-app notification centers and activity feeds are detailed in [notifications-activity.md](notifications-activity.md).
6
+
7
+ ## Message hierarchy and threading models
8
+
9
+ Choose one explicit threading model per surface and keep reply ancestry legible:
10
+
11
+ | Threading model | Best for | Required cues |
12
+ |---|---|---|
13
+ | Quote / inline reply | Fast chat rooms, mobile messaging | Compact quoted snippet that jumps to original message; handle deleted parent gracefully |
14
+ | Side-panel / sub-thread | Team channels, document comments | Reply count + participant avatars + last-reply timestamp on parent; explicit "Also send to channel" toggle when needed |
15
+ | Topic-scoped thread list | Support tickets, issue discussions, async forums | Subject title, resolution/status badge, participant list, clear open vs resolved filter |
16
+
17
+ - Distinguish author, role/badge, relative + exact hover/focus timestamp (with timezone awareness), body, attachments, reactions, edited/deleted markers, and system events.
18
+ - Delivery states must stay truthful: composing, queued offline, sending, sent, delivered/read only when actually verified by the backend.
19
+ - Expire presence and typing indicators automatically on timeout or disconnect; never fabricate online dots.
20
+
21
+ ## Unread dividers, search, pins, and triage
22
+
23
+ - **Unread divider**: Anchor a visible "New messages" divider at the last-read watermark without jumping scroll position unexpectedly while the user is reading history. Offer a floating "Jump to unread / latest" pill and a keyboard-accessible "Mark as read" action.
24
+ - **Message search & pins**: Search results must show surrounding snippet context, author, channel, and date, and jumping to a match must temporarily highlight the target message and provide a "Back to latest" return cue. Keep pinned messages inspectable in a dedicated drawer/banner without cluttering the stream.
25
+ - **Notification triage**: Expose per-channel/thread mute, mentions-only, and follow/unfollow controls right in the conversation header so busy threads do not force users to mute the entire app.
26
+
27
+ ## Composer and collaboration states
28
+
29
+ - Preserve unsent drafts per conversation/thread across navigation and reloads; warn before discarding attachments or long drafts.
30
+ - Match Enter vs Shift+Enter / Cmd+Enter behavior to platform convention and document it subtly near the send control.
31
+ - Show attachment filename, MIME/type, size, upload progress, cancel/retry, and safe preview/download handling; keep typed text intact if an upload fails validation.
32
+ - Handle empty rooms, rapid message bursts, scrollback pagination without scroll-jump, offline send queues, duplicate-click idempotency, permission revocation mid-thread, and moderated/deleted messages cleanly.
33
+
34
+ ## Do/don't pairs
35
+
36
+ | Do | Don't |
37
+ |---|---|
38
+ | Anchor an unread divider and show a non-jumping "N new messages" pill | Yank the viewport to the bottom while a user reads older messages |
39
+ | Persist drafts per channel and thread across switches | Wipe a typed reply when switching rooms to copy a link |
40
+ | Keep deleted parent messages as a clear tombstone in active threads | Break thread ancestry or orphan replies silently |
41
+ | Expose per-thread mute / mentions-only controls inline | Force all-or-nothing app-wide notification muting |
42
+
43
+ ## Verification
44
+
45
+ Test live-region politeness (do not read every burst message aloud automatically), keyboard jump between unread/messages/composer, mixed RTL/LTR text, emoji/ZWJ sequences, unbroken URLs, timezone/DST timestamps, failed image previews, offline queue flush and retry, permission loss, and reduced motion.
@@ -0,0 +1,42 @@
1
+ # Editors, creative tools, and canvas
2
+
3
+ Creative surfaces are precision instruments. Chrome must recede while work is in progress yet stay discoverable, spatially stable, and reversible. For transaction-stack undo/redo, named snapshots, and diff comparisons, pair with [history-diff-undo.md](history-diff-undo.md).
4
+
5
+ ## Core workspace anatomy
6
+
7
+ - Preserve spatial stability across the primary canvas/document, tool rail, layer/outline tree, property inspector, timeline (if temporal), and status bar.
8
+ - Make active tool and mode unmistakable via cursor shape, selection bounds, transform handles, inspector readout, and status bar hints.
9
+ - Direct manipulation is primary, but every critical operation (select, nudge, group, align, duplicate, reorder, delete, zoom) must have a keyboard, menu, and command-palette path.
10
+
11
+ ## Layers, multi-select inspectors, snapping, and version history
12
+
13
+ | Subsystem | Required UX behavior |
14
+ |---|---|
15
+ | **Layer tree & grouping** | Show hierarchy depth, type icon, visibility (eye), and lock toggles; support search/filter, collapse-all, keyboard tree navigation, and keyboard reorder alternatives alongside drag-and-drop. Locking prevents accidental canvas clicks while keeping the layer selectable in the tree to unlock. |
16
+ | **Mixed-value multi-select inspector** | When selected objects differ on a property (e.g., width, font size, fill), display a clear `"Mixed"` placeholder rather than the first item's value or `0`. Committing a new value applies to all selected items; leaving `"Mixed"` untouched preserves each object's distinct value. Support relative math inputs (`+8`, `*2`) where numeric precision matters. |
17
+ | **Snapping, guides, and grids** | Render distance/alignment smart guides only during active move/resize, respect user grid/unit settings (`px`, `mm`, `pt`), and provide a hold-modifier key to temporarily bypass snapping without flipping global settings. |
18
+ | **Zoom, pan, and viewport** | Zoom around the pointer or active selection center, expose exact zoom percentage with quick presets (`Fit`, `100%`, `Zoom to selection`), and keep thin strokes/handles crisp across zoom levels. |
19
+ | **Autosave & version history** | Persist continuous autosave locally/remotely with a calm sync status indicator, allow named manual checkpoints ("Before typography pass"), and preview historical snapshots read-only before restoring or duplicating. |
20
+
21
+ ## State matrix
22
+
23
+ | State | Required behavior |
24
+ |---|---|
25
+ | Empty / untitled document | Ready-to-work canvas with clear primary creation action and unobtrusive template/import entry |
26
+ | Missing font or broken media asset | Render explicit fallback bounding box and non-destructive relink/substitute action; never silently flatten |
27
+ | Read-only / view-only permission | Switch cleanly to inspect/comment/export mode without dead disabled edit chrome cluttering the viewport |
28
+ | Large document performance | Virtualize layer trees, cull off-screen canvas geometry, and keep frame pacing steady during pan/zoom |
29
+ | Offline / conflict | Queue local edits safely, expose conflict status clearly, and let users duplicate or merge rather than overwriting |
30
+
31
+ ## Do/don't pairs
32
+
33
+ | Do | Don't |
34
+ |---|---|
35
+ | Show `"Mixed"` in inspectors when multi-selected values differ | Overwrite differing widths/colors with the first selected item's value |
36
+ | Provide keyboard nudge, reorder, and layer actions alongside drag | Lock essential editing behind pointer-only drag handles |
37
+ | Allow holding a modifier key to temporarily override snapping | Force users into Preferences to disable snap for one nudge |
38
+ | Keep locked layers selectable in the layer panel to unlock | Make locked objects completely unreachable |
39
+
40
+ ## Verification
41
+
42
+ Test numeric precision and unit rounding, IME text composition on canvas, mixed-value multi-select commits, pointer-capture interruption (Escape mid-drag), keyboard-only grouping/reordering/deletion, layer tree virtualization at 1,000+ nodes, high-DPI rendering, color-picker contrast, reduced motion, and accessible outline/tree alternatives.
@@ -0,0 +1,38 @@
1
+ # Art-directed editorial composition patterns
2
+
3
+ Use this reference for **expressive layout rhythm, visual pacing, and art-directed editorial composition** (portfolios, case studies, product launches, brand stories, interactive showcases). For conversion hierarchy, proof ethics, and funnel mechanics, read [marketing.md](marketing.md); for platform-specific CSS grid, animation, and WebGL implementation mechanics, coordinate with `pixelcraft-web`.
4
+
5
+ ## Editorial composition catalog
6
+
7
+ Treat each entry as a content-and-interaction recipe—never a fixed wireframe to copy verbatim:
8
+
9
+ | Pattern | Editorial rhythm | Key failure & resilience checks |
10
+ |---|---|---|
11
+ | **Editorial opener** | Subject-led framing (asymmetric split, full-bleed artifact, typographic poster, or live specimen) + concrete claim + single next cue | Avoid default centered hero / two CTAs / three-card row; verify text contrast over media and narrow-viewport crop |
12
+ | **Case-study index** | Curated grid or indexed list with real domain metadata (year, discipline, outcome) and persistent filters | Preserve labels, keyboard reach, filter state on Back, and empty/loading states |
13
+ | **Project detail** | Context & constraint -> role -> process artifact -> verified outcome | Never invent metrics; ensure full long-form reading works cleanly under reduced motion |
14
+ | **Product story** | Material/problem -> mechanism -> live/static specimen -> decision action | Keep specs, pricing, and interactive controls accessible without depending on animation |
15
+ | **Interactive artifact viewer** | Primary visual/3D/specimen paired with semantic specs and explicit viewpoint presets | Renderer failure or slow GPU must fall back to high-res stills without blocking comparison |
16
+ | **Capabilities / index directory** | Structured typographic table or grouped index with concrete examples | Replace decorative infinite marquee tickers with scanable, pauseable or static content |
17
+ | **Narrative chapter** | Numbered/titled chapter prose paired with an optional persistent artifact | Require direct chapter links, normal scroll pacing, and static reduced-motion layout |
18
+ | **Structured mega-menu / index overlay** | Grouped destinations with clear spatial hierarchy and keyboard model | Enforce Escape dismissal, focus restoration, viewport height fit, and touch parity |
19
+ | **Editorial footer** | Colophon, sitemap, contact/legal, and a meaningful next-story cue | Do not trap users behind decorative curtain animations delaying footer links |
20
+
21
+ ## Adapting references without cloning
22
+
23
+ 1. Analyze reference sites at the **structural level** (pacing, typographic scale contrast, whitespace ratio, media-to-copy balance, transition timing)—never copy brand palettes, iconography, copy tone, or assets.
24
+ 2. Pair expressive sections with calm functional sections so eye fatigue stays low and interactive controls remain immediately recognizable.
25
+ 3. Define how each asymmetric or multi-column editorial band collapses into a clean single-column reading order on narrow screens before implementation.
26
+
27
+ ## Do/don't pairs
28
+
29
+ | Do | Don't |
30
+ |---|---|
31
+ | Derive section pacing from real media aspect ratios and copy length | Stretch thin copy across giant empty scroll corridors |
32
+ | Pair interactive 3D/canvas specimens with static fallback imagery | Render a blank black box when GPU acceleration is unavailable |
33
+ | Keep reading order and visual order aligned across breakpoints | Reorder columns purely visually in ways that scramble keyboard/screen-reader flow |
34
+ | Give expressive typography generous fallback metrics and zoom headroom | Lock display headlines to rigid viewport-height boxes that clip at 200% zoom |
35
+
36
+ ## Acceptance
37
+
38
+ Every editorial pattern must document its primary reading task, collapsed mobile/narrow order, localization/text-expansion tolerance, reduced-motion fallback, and media-failure behavior.
@@ -0,0 +1,35 @@
1
+ # Dashboard and admin
2
+
3
+ Dashboards are operational instruments, not metric collages. Start from decisions: what must the operator notice, diagnose, or act on next?
4
+
5
+ > **Cross-skill boundary:** This reference governs operational workspace structure, triage flows, drill-down context, and admin action safety. For chart selection, perceptual encoding, axes/baselines, colorblind-safe palettes, sparklines, and analytical table typography, coordinate with `pixelcraft-dataviz`. For multi-tenant permissions and audit trails, see [multi-tenant-rbac.md](multi-tenant-rbac.md).
6
+
7
+ ## Structure and operational hierarchy
8
+
9
+ - **Lead with exceptions and actions**: Put system health, SLA breaches, failed jobs, and pending approvals ahead of historical vanity totals.
10
+ - **Group by operational object or workflow**, not by chart widget type. State time range, timezone, freshness timestamp, data source, and permission scope once per coherent region.
11
+ - **Overview -> Inspect -> Act**: Open object details in a side inspector, split pane, or dedicated drill-down view that preserves active filters, sort order, selection, and scroll position on back navigation rather than stacking nested modals.
12
+ - **Match density to operator frequency**: High-frequency operations consoles favor dense tables, compact status rails, and keyboard shortcuts; periodic executive summaries favor fewer, higher-signal comparisons.
13
+
14
+ ## State matrix
15
+
16
+ | State | Required behavior |
17
+ |---|---|
18
+ | No data yet (unconfigured) | Explain setup/integration step clearly without fake sparklines or placeholder numbers |
19
+ | Partial / permission-limited | State scope restriction explicitly ("Showing 2 of 6 regions you can access"); never let missing access look like zero activity |
20
+ | Stale / degraded feed | Timestamp last successful sync, label cached metrics as stale, and keep inspection usable while retrying |
21
+ | Alert overload | Aggregate by root cause/severity, expose pause/acknowledge/filter controls, and avoid equal-weight card walls |
22
+ | Source/query failure | Isolate error copy and `Retry` to the failing widget while keeping healthy panels and active filters intact |
23
+
24
+ ## Do/don't pairs
25
+
26
+ | Do | Don't |
27
+ |---|---|
28
+ | Dense scanable tables and exception queues for daily operators | Equal-height 4-card KPI mosaics regardless of priority |
29
+ | Explicit thresholds, baselines, and redundant icon/text status | Color-only red/green numbers without period or unit context |
30
+ | Permission-aware admin actions with audit logging and clear labels | Destructive actions hidden behind unlabeled icon buttons |
31
+ | Preserve active filters and time range across drill-down and Back | Reset date range to "Last 7 days" every time an operator closes a detail drawer |
32
+
33
+ ## Verification
34
+
35
+ Test slow queries, zero rows, one row, thousands of rows, partial source failure, stale cache timestamps, denied permissions, long entity names, locale/tabular numeric formatting, keyboard focus across filter -> table -> inspector, and narrow-viewport reflow. Measure rendering cost with realistic cardinality.
@@ -0,0 +1,50 @@
1
+ # History, undo/redo stacks, version snapshots, and diff viewers
2
+
3
+ Users explore confidently only when mistakes are cheap to inspect and reverse. Treat undo, version history, and diffs as first-class operational workflows rather than afterthought utilities.
4
+
5
+ ## Atomic undo/redo transaction stacks
6
+
7
+ - **Group by user intent, not raw events**: Coalesce rapid character typing, continuous slider drags, and multi-object drags into single atomic undo transactions (commit on pointer-up, pause boundary, or discrete command) so one `Undo` reverses the whole intent rather than 1 pixel or 1 keystroke.
8
+ - **Label the action**: Where menus, tooltips, or command palettes expose undo/redo, name the transaction (`Undo Move 3 layers`, `Redo Change status`) and disable controls cleanly at stack boundaries.
9
+ - **Multiplayer per-user undo**: In collaborative documents (CRDT / OT), `Undo` must reverse **only the local user's own operations** without wiping another collaborator's intervening edits. When a collaborator has modified or deleted the same target, resolve cleanly via CRDT semantics or inform the user why the operation cannot be undone cleanly.
10
+ - **Selection & scroll restoration**: Undoing a delete or move should restore focus/selection to the affected object and bring it into view if off-screen.
11
+
12
+ ## Version history and named snapshots
13
+
14
+ - Separate **automatic checkpoints** (grouped by time window and author so history is not cluttered with 400 tiny autosaves) from **named manual snapshots** ("Q3 pricing sign-off", "Pre-migration baseline") with optional filter "Named versions only".
15
+ - **Preview before restore**: Opening any historical version enters an unmistakable **read-only preview state** (banner showing timestamp, author, and diff summary) with non-destructive options: **`Restore this version`** (creating a *new* head revision so current work is still recoverable in history) or **`Duplicate as new copy`**.
16
+ - Never destroy the current head silently when restoring an older snapshot—restoration itself must be undoable.
17
+
18
+ ## Diff viewers (code, rich text, and structured config/JSON)
19
+
20
+ Choose representation and controls to match the artifact being compared:
21
+
22
+ | Artifact type | Primary diff modes | Required UX cues |
23
+ |---|---|---|
24
+ | **Code & plain text** | Unified (inline) + Split (side-by-side) toggle, syntax highlighting, word/character intraline emphasis | Line numbers for old/new sides, expandable unchanged-context folds (`Show 20 more lines`), whitespace-ignore toggle, jump-to-next/prev hunk (`n`/`p`) |
25
+ | **Rich text / documents** | Tracked-changes inline view + margin attribution cards + clean "Preview final" toggle | Author attribution, timestamp, per-change `Accept` / `Reject` plus bulk actions, clear formatting-change vs text-change markers |
26
+ | **JSON / YAML / config / tables** | Semantic key-path diff (ignoring harmless key order) + raw text toggle | Highlight added, removed, and changed keys with old -> new values, type-change callouts (`"42"` string -> `42` number), sensitive-value redaction |
27
+
28
+ - **Colorblind-safe diff encoding**: Never rely on green/red background tint alone—always combine `+` / `-` / `~` markers, strikethrough or underline accents, explicit accessible labels (`Added line`, `Removed line`), and high-contrast intraline highlights in both light and dark modes.
29
+
30
+ ## State matrix
31
+
32
+ | State | Required behavior |
33
+ |---|---|
34
+ | Large diff (> 2,000 changed lines or binary file) | Render file/section index first, collapse huge/generated files with explicit "Load diff" opt-in, and show size/metadata or visual side-by-side compare for images/binaries |
35
+ | Identical revisions | State `"No differences between these versions"` (and note if whitespace-only changes are hidden) |
36
+ | Multiplayer undo conflict | Undo only local ops; surface clear notice if remote edits superseded the target |
37
+ | Restoring an old snapshot | Append as a new latest revision with audit attribution so the prior state stays recoverable |
38
+
39
+ ## Do/don't pairs
40
+
41
+ | Do | Don't |
42
+ |---|---|
43
+ | Coalesce a drag or typing burst into one atomic Undo step | Require 45 presses of `Cmd+Z` to undo one slider drag |
44
+ | Scope multiplayer `Undo` strictly to the local user's edits | Revert a teammate's concurrent paragraph when pressing `Cmd+Z` |
45
+ | Preview version snapshots read-only and restore as a new revision | Overwrite history destructively with zero path back |
46
+ | Encode diffs with `+`/`-` symbols, intraline marks, and ARIA cues | Distinguish additions and deletions solely with faint red/green backgrounds |
47
+
48
+ ## Verification
49
+
50
+ Test transaction coalescing during drags/typing, keyboard `Undo`/`Redo` stack limits and focus restoration, two-client concurrent undo behavior, named snapshot creation and non-destructive restore, unified vs split diff switching on narrow viewports, colorblind/monochrome diff legibility, large-file collapse performance, and screen-reader traversal of diff hunks.
@@ -0,0 +1,44 @@
1
+ # Marketing and conversion architecture
2
+
3
+ Marketing surfaces are persuasion instruments—landing pages, product announcements, pricing pages, app-store listings, and in-app upgrade campaigns. They carry stronger narrative focus than operational UI, while still honoring truthfulness, accessibility, and clarity.
4
+
5
+ > **Role distinction:** Use this reference for **conversion architecture, proof, trust, and persuasion ethics** (what claim you make, how you substantiate it, and how users act on it). Use [creative-web-composition.md](creative-web-composition.md) for **art-directed editorial layout rhythm, visual pacing, and expressive section patterns**.
6
+
7
+ ## Persuasion vs operational app UI
8
+
9
+ | Marketing surface | Operational app UI |
10
+ |---|---|
11
+ | Orientation + memory + one clear next action | Repeated high-velocity task completion |
12
+ | Narrative sequence builds confidence progressively | Stable dense structure supports rapid scanning |
13
+ | Expressive composition carries brand distinctiveness | Predictable chrome and low friction lead |
14
+ | Focused conversion path with low exit confusion | Multiple parallel workflows and deep drill-downs |
15
+
16
+ Do not paste operational dashboard cards, fake KPI widgets, or app chrome onto a persuasion surface unless demonstrating a real, truthful product artifact.
17
+
18
+ ## Conversion structure
19
+
20
+ 1. **Concrete promise**: Name the audience, problem, and outcome in plain language rather than generic taglines.
21
+ 2. **Truthful proof**: Real product artifacts, verifiable benchmarks (with test date and conditions), real customer quotes (with attribution), or live interactive tryouts.
22
+ 3. **Mechanism and differentiation**: Explain *how* the product works and what trade-offs it intentionally makes compared to alternatives.
23
+ 4. **Objection handling**: Clear pricing assumptions, security/compliance facts, migration path, limits, and FAQ answers near the decision point.
24
+ 5. **Explicit next step**: Every CTA states what happens after clicking ("Start 14-day free trial — no card required", "Book 20-min demo", "Download macOS DMG") rather than vague "Get started".
25
+
26
+ ## Trust and anti-dark-pattern rules
27
+
28
+ - Never fabricate logos, testimonials, user counts, awards, ratings, countdown timers, or artificial scarcity.
29
+ - Label illustrative or conceptual product visuals clearly if real screenshots/data are not yet available.
30
+ - Keep pricing, renewal cadence, seat minimums, and comparison dates transparent (for full SaaS billing/upgrade flows, read [billing-paywalls.md](billing-paywalls.md)).
31
+ - Lead-capture and waitlist forms state how contact data is used, preserve user input across validation errors, and confirm submission state explicitly.
32
+
33
+ ## Do/don't pairs
34
+
35
+ | Do | Don't |
36
+ |---|---|
37
+ | Let the subject material and direction card dictate hero layout | Default to centered headline + two buttons + 3 generic icon cards |
38
+ | State exact CTA outcome ("Create free account", "View pricing") | Hide trials behind ambiguous "Get started" buttons |
39
+ | Include benchmark dates, units, and real customer attributions | Invent "+340% productivity" callouts or placeholder logo strips |
40
+ | Keep interactive demos functional with static/error fallbacks | Leave blank broken embeds when third-party scripts fail or offline |
41
+
42
+ ## Verification
43
+
44
+ Test narrow/mobile reading order, long localized headlines, RTL mirroring, font fallback, failed hero media, reduced motion, keyboard path through skip link -> nav -> CTA -> form, text contrast over imagery, interactive demo error/offline fallbacks, and honest claim provenance.
@@ -0,0 +1,47 @@
1
+ # Multi-tenant workspaces, RBAC, SSO/SCIM, API keys, and audit logs
2
+
3
+ Enterprise and team products fail silently when tenant boundaries blur or privilege changes lack visibility. Make context, permissions, credentials, and audit trails unmistakable.
4
+
5
+ ## Tenant and workspace switching
6
+
7
+ - Display the active **Organization / Workspace** persistently in the primary shell chrome with a distinct name/avatar/environment badge (`Production`, `Staging`, `Sandbox`) so operators never execute writes in the wrong tenant.
8
+ - Workspace switchers must support keyboard search when users belong to many tenants, indicate pending invites and role per tenant, and reset or scope active tabs, filters, drafts, and cached client data cleanly upon switching—**never leak objects or toast notifications across tenant boundaries**.
9
+ - When opening a deep link belonging to another tenant the user can access, offer a clear context-switch prompt ("This resource belongs to Acme EU — switch workspace?") instead of a generic 404.
10
+
11
+ ## RBAC / ABAC permission matrix editors
12
+
13
+ - Separate **built-in roles** (Owner, Admin, Editor, Viewer — clearly marked read-only) from **custom roles** with clone-from-base starting points.
14
+ - Structure permission editors by domain resource × capability (`Projects: Read / Create / Edit / Delete`, `Billing: View / Manage`) rather than flat lists of backend scopes (`proj:w_all`).
15
+ - Explain **inherited vs explicit** permissions (e.g., granted via Team/Group membership or ABAC attribute rule) and prevent admins from accidentally locking out the last Organization Owner.
16
+ - Show an explicit impact preview before saving a role edit ("Affects 14 members across 3 groups").
17
+
18
+ ## SSO / SCIM admin setup
19
+
20
+ - Guide SAML 2.0 / OIDC configuration as a verifiable checklist: copyable ACS URL / Entity ID -> IdP metadata/cert upload -> **Test connection in dry-run mode** -> enable optional SSO -> enforce mandatory SSO only after test succeeds.
21
+ - Preserve a documented break-glass owner sign-in or recovery code path so an expired IdP certificate never bricks the organization.
22
+ - For SCIM directory sync, display last sync timestamp, synced user/group counts, deprovisioning policy (suspend vs delete), and concrete per-record sync error logs.
23
+
24
+ ## API keys and webhook management
25
+
26
+ | Surface | Mandatory safety & UX rules |
27
+ |---|---|
28
+ | **API keys / PATs** | Require descriptive name, least-privilege scopes, and expiration date; reveal the secret **exactly once** on creation with explicit copy confirmation and warning; afterward display only prefix/last-4, owner, scope summary, created date, last-used timestamp, and instant `Revoke` with blast-radius confirmation. |
29
+ | **Webhooks** | Display target URL, subscribed events, signing-secret rotation (with dual-secret overlap window), delivery history log (HTTP status, latency, request/response payload preview), manual redeliver/replay, and auto-disable warning after consecutive failures. |
30
+
31
+ ## Audit logs
32
+
33
+ - Design audit logs as forensic instruments: immutable chronological table with UTC + local hover timestamp, actor (human user, API key, SCIM, or system automation), IP/user-agent, action verb, target resource ID/name, outcome (`Success` / `Denied` / `Failed`), and expandable **before/after JSON or field diff**.
34
+ - Support fast filtering by date range, actor, action category, resource ID, and outcome, plus verified CSV/JSON export with filter provenance and retention-window disclosure ("Logs retained for 365 days under Enterprise plan").
35
+
36
+ ## Do/don't pairs
37
+
38
+ | Do | Don't |
39
+ |---|---|
40
+ | Flush tenant-scoped caches and drafts when switching workspaces | Show Tenant A's search results or notifications inside Tenant B |
41
+ | Test SSO connection in dry-run before enforcing mandatory SSO | Lock out all org admins immediately on a typoed SAML certificate |
42
+ | Show API secrets once on creation and track `last_used_at` | Display plaintext long-lived API secrets indefinitely in settings |
43
+ | Show before/after field diffs and actor identity in Audit Logs | Emit unsearchable text blobs like `"settings updated"` with no diff |
44
+
45
+ ## Verification
46
+
47
+ Test cross-tenant deep links, workspace switch cache isolation, custom role permission inheritance, last-owner lockout guard, SSO dry-run failure states, one-time API key reveal and revocation, webhook delivery failure + replay, audit log filtering/export at high row counts, and read-only member views.
@@ -0,0 +1,42 @@
1
+ # Narrative systems
2
+
3
+ Narrative surfaces guide a reader through an ordered argument, process, or dataset (editorial explainers, interactive reports, product walkthroughs, exhibitions). These rules apply across web, native tablet/desktop editorial apps, and interactive document surfaces.
4
+
5
+ ## Story before choreography
6
+
7
+ Write the complete linear outline before designing pinned visuals or stage transitions. Each chapter must specify:
8
+ 1. One primary claim or question.
9
+ 2. Concrete evidence or visual artifact (chart, diagram, photo, specimen, quote).
10
+ 3. Concise explanatory prose tied directly to the artifact.
11
+ 4. Transition rationale (what changes between this chapter and the next).
12
+ 5. Clear orientation and next-step cue.
13
+
14
+ If the narrative does not hold together as linear text plus static figures, motion choreography will not rescue it.
15
+
16
+ ## Narrative model matrix
17
+
18
+ | Model | Progression | Best fit | Primary risk |
19
+ |---|---|---|---|
20
+ | **Artifact + annotations** | One persistent visual (product, diagram, map) with chapter-linked callouts | Architecture explainers, anatomy breakdowns, spatial context | Callouts obscuring key detail on narrow or zoomed viewports |
21
+ | **Journey / process** | Origin -> milestones -> outcome | Supply chain, user workflow, place-based reporting | Forcing irrelevant intermediate steps just to fill length |
22
+ | **Chronological sequence** | Ordered eras, versions, or timestamps | History, release evolution, incident postmortems | Ambiguous time intervals (linear spacing for uneven gaps) |
23
+ | **Before / after** | Baseline condition -> intervention -> measured change | Redesign case studies, impact reports, optimization proofs | Changing scales or crops between baseline and result |
24
+ | **Guided exploration** | Reader selects chapters in any order with reset to overview | Portfolios, exhibitions, interactive curricula | Losing track of visited vs unvisited chapters |
25
+ | **Data narrative** | Claim -> chart/table -> provenance -> takeaway | Analytical essays, annual reports, investigative pieces | Animating charts in ways that obscure axes, units, or outliers |
26
+
27
+ ## Chapter state contract
28
+
29
+ Every narrative chapter must model explicit states cleanly across devices:
30
+
31
+ | State | Required UX behavior |
32
+ |---|---|
33
+ | **Inactive / upcoming** | Readable in normal document/reading order without hiding text permanently behind opacity traps |
34
+ | **Active** | Visual artifact reflects this chapter's exact annotation/state; chapter indicator updates truthfully |
35
+ | **Completed / passed** | Reversing scroll or navigating backward cleanly restores prior artifact state |
36
+ | **Deep-linked** | Opening a chapter link/anchor lands directly on the chapter prose with its matching visual state synced immediately |
37
+ | **Reduced-motion / narrow fallback** | Renders linear chapters with discrete inline static figures—zero hidden content and zero broken pins |
38
+
39
+ ## Structural rules
40
+
41
+ - Assign every chapter a stable ID, heading, concise label for table-of-contents navigation, source provenance where claims cite data, and direct linkability.
42
+ - Never equate scroll depth with comprehension or task completion; provide a visible table of contents, skip-narrative option, and linear path through every piece of evidence.
@@ -0,0 +1,57 @@
1
+ # Notifications, inbox triage, and live activity feeds
2
+
3
+ Notification surfaces govern user attention. Noisy, ungrouped alerts train users to ignore critical events; over-aggressive live updates break reading flow.
4
+
5
+ ## Notification center and inbox triage
6
+
7
+ Design an in-app notification center as a triage queue, not an infinite dump of chronological log lines:
8
+
9
+ - **Clear tabs / filters**: Separate `Unread` vs `All` (and high-signal buckets such as `Mentions`, `Assigned`, `Approvals`, or `Archived`) so users reach actionable items in one step.
10
+ - **Event batching & grouping**: Collapse bursts on the same object ("Alex, Priya, and 4 others commented on PR #412") with expandable detail instead of emitting 6 identical rows.
11
+ - **Direct triage actions**: Provide keyboard and pointer actions on each row: mark read/unread, archive/done, **snooze** (with explicit wake time and timezone), and mute this thread/object.
12
+ - **Safe bulk triage**: Pair `Mark all as read` (and `Archive all read`) with an immediate **Undo** affordance or explicit count confirmation when affecting unread items across pages so one misclick never wipes a morning's triage queue.
13
+ - **Deep-link accuracy**: Clicking a notification navigates straight to the exact comment, diff hunk, or approval step, marks the item read (with option to keep unread), and preserves Back navigation to the inbox.
14
+
15
+ ## Channel × event preference matrix
16
+
17
+ Users need predictable control over *what* interrupts them and *where*:
18
+
19
+ | Event category | In-app | Email digest / instant | Push / mobile | Webhook / Slack |
20
+ |---|---|---|---|---|
21
+ | Security & billing alerts | Always on (locked) | Always on (locked) | Optional | Optional |
22
+ | Direct mentions & approvals | On | Instant / fallback if offline | On | Optional |
23
+ | Watched object comments | On | Hourly/daily digest | Off | Optional |
24
+ | Workspace announcements | On | Weekly digest | Off | Off |
25
+
26
+ - Clearly mark mandatory security/billing alerts as locked so users understand why they cannot be muted.
27
+ - Offer **digest cadence** (instant, hourly, daily, weekly), **smart presence suppression** (skip email/push if already active in-app), and **quiet hours / Do Not Disturb** respecting the user's timezone.
28
+
29
+ ## Live activity feeds (zero scroll-jump contract)
30
+
31
+ - **Never yank scroll position**: When a user has scrolled down or is reading an activity stream, buffer incoming real-time items above the fold behind a calm **`N new updates`** pill button rather than injecting rows that push content downward.
32
+ - **Coherent event grammar**: Format every feed entry consistently (`Actor` + `verb` + `object link` + concise change preview + `relative/exact timestamp`).
33
+ - **Grouping & filtering**: Let operators filter by actor, event type, or date range and collapse noisy automated/bot churn separately from human edits.
34
+ - **Connection honesty**: Distinguish live streaming, paused, reconnecting, and offline states without flashing distracting badges.
35
+
36
+ ## State matrix
37
+
38
+ | State | Required behavior |
39
+ |---|---|
40
+ | Inbox zero (caught up) | Calm confirmation state with quick link to `Archived` or `Notification settings`; never invent fake tips |
41
+ | Snoozed item wakes up | Re-enters top of `Unread` clearly labeled `"Snoozed until 9:00 AM"` |
42
+ | Target object deleted or access revoked | Show clear tombstone ("This issue is no longer accessible") and allow archiving the notification cleanly |
43
+ | Burst of 50+ events | Batch by object/actor and throttle badge/screen-reader announcements rather than firing 50 chimes or live-region alerts |
44
+ | Mark-all-read misclick | Show timed `Undo` banner restoring exact prior unread flags |
45
+
46
+ ## Do/don't pairs
47
+
48
+ | Do | Don't |
49
+ |---|---|
50
+ | Show a non-jumping `"3 new items"` pill while scrolled in a feed | Prepend live rows that shift reading position mid-paragraph |
51
+ | Provide `Undo` after `Mark all as read` | Permanently clear 40 unread items on one accidental click |
52
+ | Offer a structured Channel × Event matrix with digest & quiet hours | Give only one global "Enable emails" checkbox |
53
+ | Batch repeated comments on the same thread into one grouped item | Flood the bell menu with 18 separate rows for one conversation |
54
+
55
+ ## Verification
56
+
57
+ Test unread badge synchronization across tabs/devices, keyboard triage (`j`/`k`/archive/snooze/undo), batch grouping under event bursts, live feed scroll stability when scrolled down, deleted/unauthorized notification targets, timezone-aware snooze/quiet hours, screen-reader announcement restraint, and narrow mobile inbox layout.
@@ -0,0 +1,80 @@
1
+ # Pattern decision matrices
2
+
3
+ Use this reference before applying any named product pattern. Patterns encode recurring behavior, but the correct choice depends on task frequency, object count, risk, collaboration, input modality, and recovery cost. Do not pick a pattern because it is visually familiar.
4
+
5
+ ## Workflow structure matrix
6
+
7
+ | User/task shape | Prefer | Avoid or constrain | Required behavior |
8
+ |---|---|---|---|
9
+ | short infrequent linear task | single page or one-step flow | unnecessary wizard | visible submit/review behavior; preserve input |
10
+ | infrequent high-consequence branching task | guided stepper/wizard | hidden branching logic | progress truthfully shown; back/edit/resume; validation before irreversible commitment |
11
+ | expert repeated data entry | dense editable table/form or command workflow | forced stepper per item | keyboard flow, defaults, duplicate/copy, batch validation, undo |
12
+ | exploratory decision | comparison matrix/list-detail/filterable collection | forced linear narrative | stable comparison attributes, save/share state, reversible exploration |
13
+ | ongoing monitoring | dashboard/instrument panel | marketing-style narrative cards | freshness/source/state; alarm hierarchy; drill-down without losing overview |
14
+ | collaborative artifact | persistent canvas/document plus presence/history | isolated modal-per-action editing | ownership/conflict/restore/version behavior |
15
+ | import/migration | staged preview -> validate -> commit -> recover | direct blind commit | mapping memory, partial failure semantics, rollback/report |
16
+ | setup/configuration | sensible defaults plus progressive advanced controls | expose every option at once | inheritance badges, sticky dirty-save bar, reset/undo, danger-zone confirmation |
17
+ | SaaS subscription / quota gating | transparent plan comparison, proration preview, soft/hard paywalls | silent charges or dark-pattern cancel flows | unit/cadence clarity, non-admin upgrade requests, dunning grace, self-serve cancel |
18
+ | enterprise admin & access governance | workspace switcher, RBAC matrix, SSO dry-run, diffable audit logs | flat backend scope lists or unverified SSO enforcement | cross-tenant cache isolation, last-owner guard, one-time API key reveal |
19
+ | attention & activity triage | grouped inbox with snooze/archive/undo + channel × event matrix | ungrouped bell dumps or scroll-jumping live feeds | `"N new updates"` pill, mark-all-read undo, quiet hours |
20
+ | temporal planning & board triage | timezone-explicit calendars, Gantt timelines, Kanban boards | drag-only card moves or silent recurring overwrites | recurrence edit scopes, DST clarity, WCAG 2.5.7 single-pointer/keyboard move |
21
+ | revision comparison & recovery | atomic undo stacks, named read-only snapshots, unified/split/JSON diffs | raw keystroke undo or destructive restore | multiplayer per-user undo, preview-before-restore, colorblind-safe diff cues |
22
+ | embedded AI & offline-first work | inspectable NL-to-filter chips, inline diff previews, calm sync outbox | invisible AI writes or silent last-write-wins overwrites | human approval gates, queued-edit inspection, explicit conflict resolution |
23
+
24
+ ## Navigation matrix
25
+
26
+ | Content/device shape | Prefer | Caveat |
27
+ |---|---|---|
28
+ | few top-level tasks, frequent switching | persistent tab/segment/rail according to platform | do not hide primary task behind generic menu |
29
+ | deep hierarchical object space | tree/sidebar plus breadcrumb/location | keyboard/tree semantics and state restoration required |
30
+ | large flat searchable corpus | list/index/search-first navigation | result state, sort/filter persistence, empty recovery |
31
+ | focused creation/editing | full-screen/split workspace with explicit exit | escape/back/dirty-state protection |
32
+ | companion/reference material | inspector/panel/popover chosen by frequency and screen size | focus order, occlusion, resize behavior |
33
+ | mobile compact flow | bottom/top native navigation or stacked push idioms | do not copy desktop sidebar/menubar literally |
34
+
35
+ ## Search/filter decision rules
36
+
37
+ Choose the lightest control that matches user knowledge:
38
+
39
+ | User knowledge/data shape | Pattern |
40
+ |---|---|
41
+ | knows exact object/name | direct search with keyboard submission/paste/clear |
42
+ | knows attributes, not exact name | faceted/filterable list with visible applied filters |
43
+ | compares few items | sortable table/list or comparison view |
44
+ | explores broad domain | grouped navigation plus search, not a blank search box alone |
45
+ | frequent expert retrieval | saved filters/views/history/command syntax only after basic UI works |
46
+
47
+ Mandatory recovery behavior: distinguish no matches, permission-hidden data, invalid query, network failure, stale response, and indexing delay. Empty state must offer concrete recovery in order of likelihood: remove/loosen filter, correct spelling, broaden scope, clear query, inspect permissions/indexing status, or create/import the missing object. Never write only “No results found.”
48
+
49
+ ## Dense table/list decision rules
50
+
51
+ Use a dense table when users scan aligned attributes, compare rows, or perform repeated expert work. Use list/cards when object identity/media/content matters more than column comparison.
52
+
53
+ Required dense-table semantics:
54
+
55
+ - stable ordering and visible sort/filter state;
56
+ - row selection model documented: single/multiple/range/all-visible/all-query;
57
+ - selection survives or intentionally resets across sort/filter/page/virtualization—do not silently lose it;
58
+ - bulk actions show affected count/scope and handle partial permission/failure;
59
+ - keyboard/controller navigation does not require traversing every cell when row-level actions exist;
60
+ - virtualized rows preserve total-count/position orientation and focus restoration;
61
+ - resize/reflow chooses priority columns rather than uniform compression;
62
+ - empty/loading/error/permission/offline states remain inside table context;
63
+ - row deletion/focus removal restores focus predictably.
64
+
65
+ Do not virtualize away accessibility or selection semantics. Do not use pagination merely because rendering was not designed; choose pagination/infinite/loading behavior based on object count, comparison needs, shareability, and platform norms.
66
+
67
+ ## Hybrid boundary rule
68
+
69
+ A screen may combine patterns only when each region has a dominant job and boundary: overview vs detail, browse vs edit, monitoring vs investigation, conversation vs artifact. Name the primary pattern per region and verify focus/order/back behavior across boundaries. Do not blend dashboard cards, wizard steps, canvas tools, and marketing persuasion into one undifferentiated surface.
70
+
71
+ ## Pattern selection record
72
+
73
+ Before implementation, record:
74
+
75
+ ```markdown
76
+ | Screen/region | Primary pattern | User/task evidence | Rejected alternative | Recovery risk | Verification required |
77
+ |---|---|---|---|---|---|
78
+ ```
79
+
80
+ A missing record means the pattern is probably inherited from a template rather than chosen.
@@ -0,0 +1,47 @@
1
+ # Scheduling, calendars, Gantt timelines, and Kanban boards
2
+
3
+ Temporal planning and workflow-board UIs break when timezone ambiguity, recurrence side effects, or drag-only manipulation trap users.
4
+
5
+ ## Calendars, scheduling, and booking
6
+
7
+ - **Timezone and DST clarity**: Always display the active timezone abbreviation and UTC offset (`America/Los_Angeles (UTC-7)`), show dual-timezone hints when scheduling across participants, and handle Daylight Saving Time spring-forward (nonexistent hour) and fall-back (ambiguous repeated hour) explicitly rather than shifting slots silently.
8
+ - **Recurrence edit scopes**: Whenever editing or deleting a recurring event, require an explicit scope choice: **`This event only`**, **`This and following events`**, or **`All events in series`**, clearly noting whether attendee RSVP statuses or exceptions will reset.
9
+ - **Availability pickers & booking slots**: Distinguish busy, tentative, out-of-office, buffer time, and working hours using pattern/label plus color (never color alone). Handle slot-taken race conditions gracefully on confirm by refreshing nearby slots while keeping the invitee's form inputs intact.
10
+ - **Dense overlap & multi-day spans**: Cap stacked overlapping events with a clear `+N more` overflow popover and preserve multi-day all-day bars across week boundaries.
11
+
12
+ ## Gantt and roadmap timelines
13
+
14
+ - Keep the left **task hierarchy tree** row-aligned with the right **time grid** across vertical scrolling, resizing, and collapsible parent summaries.
15
+ - Render **dependency connectors** (Finish-to-Start, Start-to-Start) cleanly without spaghetti overlaps; highlight critical-path impact or constraint violations when a user moves a predecessor past a dependent date.
16
+ - Provide zoom granularity toggles (`Day`, `Week`, `Month`, `Quarter`), a visible **`Today` marker** with one-click jump-to-today, and keyboard/inspector date editing so precise schedule changes never depend solely on dragging bar edges.
17
+
18
+ ## Kanban boards and WCAG 2.5.7 compliance
19
+
20
+ - **Column & swimlane clarity**: Show column name, current item count, and optional **WIP (Work-In-Progress) limit** (`4 / 3` with distinct warning icon + text, never red color alone). Support optional horizontal swimlanes (by assignee, priority, or epic) with collapse controls.
21
+ - **Mandatory single-pointer & keyboard card movement (WCAG 2.5.7 Dragging Movements)**: Drag-and-drop between columns or ranks is an accelerator, never the sole mechanism. Every card must also offer a single-click/tap and keyboard alternative:
22
+ - Card action menu (`Move to column…`, `Move up`, `Move down`, `Move to top/bottom`), AND/OR
23
+ - Keyboard lift-and-move mode (`Space` to grab, `Arrow` keys to choose column/rank with live-region announcement, `Space`/`Enter` to drop, `Escape` to cancel).
24
+ - **Large boards & narrow screens**: Virtualize tall columns, keep column headers sticky, and collapse multi-column desktop boards into a column-tab or swipeable single-column view with an explicit column picker on narrow viewports.
25
+
26
+ ## State matrix
27
+
28
+ | State | Required behavior |
29
+ |---|---|
30
+ | Booking slot race condition | Explain that the slot was just claimed, refresh open times, and keep user's name/notes intact |
31
+ | Recurring event exception edited | Display clear indicator that the occurrence is detached from the series |
32
+ | WIP limit exceeded | Warn visibly with count + icon + policy behavior (soft warning vs hard block explained clearly) |
33
+ | Drag cancelled (`Escape` / drop outside) | Return card or timeline bar cleanly to exact origin with zero phantom mutation |
34
+ | Empty column / empty day | Show clean drop target + contextual `+ Add` action without collapsing column identity |
35
+
36
+ ## Do/don't pairs
37
+
38
+ | Do | Don't |
39
+ |---|---|
40
+ | Ask `This event` / `This and following` / `All events` on recurring edits | Silently overwrite a whole year of meetings on one edit |
41
+ | Provide menu + keyboard `Move to column…` on every Kanban card | Require mouse drag-and-drop as the only way to change card status |
42
+ | Display explicit timezone and handle DST transitions visibly | Render bare `"2:00 PM"` for cross-timezone bookings |
43
+ | Align Gantt task rows with keyboard-editable start/end date inputs | Force pixel-accurate mouse dragging on a 6-month zoomed bar |
44
+
45
+ ## Verification
46
+
47
+ Test timezone switching and DST boundary dates, recurring-event edit/delete scopes, concurrent booking conflicts, Kanban keyboard lift/move and single-pointer menu alternatives (WCAG 2.5.7), WIP limit overflow cues without color alone, Gantt tree-to-timeline scroll sync, horizontal overflow on narrow screens, and reduced-motion drag feedback.