@thanhnguyxn/pixelcraft 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.
- package/.agents/plugins/marketplace.json +1 -1
- package/.antigravity-plugin/plugin.json +32 -0
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +15 -4
- package/.codex-plugin/plugin.json +45 -0
- package/.cursor-plugin/marketplace.json +17 -0
- package/.cursor-plugin/plugin.json +27 -0
- package/.devin-plugin/plugin.json +21 -0
- package/.github/plugin/marketplace.json +34 -0
- package/CHANGELOG.md +159 -0
- package/GEMINI.md +1 -0
- package/README.md +185 -328
- package/SECURITY.md +28 -0
- package/assets/pixelcraft-logo-128.png +0 -0
- package/assets/pixelcraft-logo-256.png +0 -0
- package/bin/pixelcraft.mjs +431 -23
- package/docs/ARCHITECTURE.md +40 -37
- package/docs/DESIGN-RATIONALE.md +51 -3
- package/docs/INSTALL.md +221 -0
- package/evals/README.md +16 -6
- package/evals/fixtures/3d-web-engineering.json +69 -0
- package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
- package/evals/fixtures/ai-ui-libraries.json +53 -0
- package/evals/fixtures/audio-visual-accessibility.json +69 -0
- package/evals/fixtures/auth-and-checkout-ui.json +53 -0
- package/evals/fixtures/brandkit-identity-governance.json +48 -0
- package/evals/fixtures/build-and-architecture.json +53 -0
- package/evals/fixtures/canvas-and-node-editors.json +53 -0
- package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
- package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
- package/evals/fixtures/component-systems.json +53 -0
- package/evals/fixtures/component-testing.json +53 -0
- package/evals/fixtures/constrained-voice-and-tv.json +43 -0
- package/evals/fixtures/creative-code-rendering.json +69 -0
- package/evals/fixtures/creative-reference-evidence.json +67 -0
- package/evals/fixtures/data-app-python-marimo.json +49 -0
- package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
- package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
- package/evals/fixtures/desktop-native-workspace.json +48 -0
- package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
- package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
- package/evals/fixtures/document-rust-typst-invoice.json +49 -0
- package/evals/fixtures/document-typst-and-print-css.json +43 -0
- package/evals/fixtures/email-mjml-dark-mode.json +49 -0
- package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
- package/evals/fixtures/enterprise-data-ui.json +53 -0
- package/evals/fixtures/extended-tui-toolkits.json +53 -0
- package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
- package/evals/fixtures/file-upload-media-ui.json +53 -0
- package/evals/fixtures/forms-validation.json +53 -0
- package/evals/fixtures/game-go-ebitengine.json +49 -0
- package/evals/fixtures/game-godot-gdscript.json +49 -0
- package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
- package/evals/fixtures/i18n-engineering.json +53 -0
- package/evals/fixtures/local-first-sync.json +53 -0
- package/evals/fixtures/lynxjs.json +53 -0
- package/evals/fixtures/maizzle-email.json +53 -0
- package/evals/fixtures/maps-geospatial.json +53 -0
- package/evals/fixtures/media-og-and-video-export.json +43 -0
- package/evals/fixtures/media-players.json +53 -0
- package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
- package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
- package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
- package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
- package/evals/fixtures/mobile-jetpack-compose.json +49 -0
- package/evals/fixtures/mobile-swiftui-ios.json +49 -0
- package/evals/fixtures/motion-engineering.json +69 -0
- package/evals/fixtures/pdfjs-and-pptx.json +53 -0
- package/evals/fixtures/plan-discovery-interview.json +31 -0
- package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
- package/evals/fixtures/reactive-data-apps.json +53 -0
- package/evals/fixtures/review-evidence-audit.json +43 -0
- package/evals/fixtures/rich-text-and-code-editors.json +53 -0
- package/evals/fixtures/scrollytelling-resilience.json +70 -0
- package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
- package/evals/fixtures/state-architecture.json +53 -0
- package/evals/fixtures/styling-ecosystem.json +53 -0
- package/evals/fixtures/token-tooling.json +53 -0
- package/evals/fixtures/tui-go-bubbletea.json +49 -0
- package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
- package/evals/fixtures/tui-rust-ratatui.json +49 -0
- package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
- package/evals/fixtures/web-3d-engines.json +53 -0
- package/evals/fixtures/web-php-laravel-filament.json +49 -0
- package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
- package/evals/pixelcraft-accessibility.md +17 -0
- package/evals/pixelcraft-craft.md +16 -0
- package/evals/pixelcraft-dataviz.md +3 -3
- package/evals/pixelcraft-direction.md +17 -0
- package/evals/pixelcraft-game-ui.md +3 -3
- package/evals/pixelcraft-mobile.md +3 -3
- package/evals/pixelcraft-patterns.md +16 -0
- package/evals/pixelcraft-plan.md +65 -3
- package/evals/pixelcraft-review.md +3 -3
- package/evals/pixelcraft-visual-qa.md +11 -5
- package/evals/pixelcraft-web.md +21 -3
- package/evals/pixelcraft.md +4 -4
- package/gemini-extension.json +3 -2
- package/install.ps1 +57 -11
- package/install.sh +82 -7
- package/package.json +32 -4
- package/plugin.json +6 -1
- package/scripts/build-adapters.mjs +11 -13
- package/scripts/run-evals.mjs +397 -0
- package/scripts/sync-docs.mjs +381 -0
- package/scripts/test-build-adapters.mjs +14 -1
- package/scripts/test-cross-platform-qa.mjs +359 -0
- package/scripts/test-distribution.mjs +86 -7
- package/scripts/test-export-tokens.mjs +259 -3
- package/scripts/test-finish-gate.mjs +133 -10
- package/scripts/test-installers.mjs +155 -6
- package/scripts/test-shoot.mjs +23 -1
- package/scripts/test-slop-scan.mjs +390 -3
- package/scripts/test-style-inventory.mjs +23 -0
- package/scripts/test-sync-docs.mjs +140 -0
- package/scripts/test-validate-skills.mjs +82 -4
- package/scripts/validate-skills.mjs +149 -3
- package/skills/pixelcraft/SKILL.md +67 -47
- package/skills/pixelcraft/references/design-brief.md +2 -2
- package/skills/pixelcraft/references/floor.md +36 -19
- package/skills/pixelcraft/references/report-template.md +25 -11
- package/skills/pixelcraft/references/stack-detection.md +138 -67
- package/skills/pixelcraft/references/surface-acceptance.md +33 -21
- package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
- package/skills/pixelcraft-accessibility/SKILL.md +34 -13
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
- package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
- package/skills/pixelcraft-accessibility/references/verification.md +15 -10
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
- package/skills/pixelcraft-brandkit/SKILL.md +42 -30
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
- package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
- package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
- package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
- package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
- package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
- package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
- package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
- package/skills/pixelcraft-chat-ui/references/conversation-design.md +12 -6
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
- package/skills/pixelcraft-constrained/SKILL.md +21 -20
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
- package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
- package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
- package/skills/pixelcraft-craft/SKILL.md +29 -15
- package/skills/pixelcraft-craft/references/color.md +62 -6
- package/skills/pixelcraft-craft/references/layout.md +32 -0
- package/skills/pixelcraft-craft/references/motion.md +99 -12
- package/skills/pixelcraft-craft/references/typography.md +48 -9
- package/skills/pixelcraft-data-apps/SKILL.md +50 -31
- package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
- package/skills/pixelcraft-data-apps/references/dash.md +87 -31
- package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
- package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
- package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
- package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
- package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
- package/skills/pixelcraft-data-apps/references/panel.md +69 -23
- package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
- package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
- package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
- package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
- package/skills/pixelcraft-dataviz/SKILL.md +21 -24
- package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
- package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
- package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
- package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
- package/skills/pixelcraft-desktop/SKILL.md +61 -39
- package/skills/pixelcraft-desktop/references/appkit.md +60 -26
- package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
- package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
- package/skills/pixelcraft-desktop/references/electron.md +68 -26
- package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
- package/skills/pixelcraft-desktop/references/gtk.md +74 -31
- package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
- package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
- package/skills/pixelcraft-desktop/references/tauri.md +80 -24
- package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
- package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
- package/skills/pixelcraft-desktop/references/working-context.md +82 -3
- package/skills/pixelcraft-direction/SKILL.md +48 -82
- package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
- package/skills/pixelcraft-direction/references/direction-card.md +11 -1
- package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
- package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
- package/skills/pixelcraft-direction/references/movements.md +3 -0
- package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
- package/skills/pixelcraft-document/SKILL.md +27 -23
- package/skills/pixelcraft-document/references/archetypes.md +27 -4
- package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
- package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
- package/skills/pixelcraft-document/references/print-css.md +96 -43
- package/skills/pixelcraft-document/references/slides.md +123 -27
- package/skills/pixelcraft-email/SKILL.md +42 -20
- package/skills/pixelcraft-email/references/client-quirks.md +101 -33
- package/skills/pixelcraft-email/references/html-tables.md +83 -22
- package/skills/pixelcraft-email/references/maizzle.md +54 -0
- package/skills/pixelcraft-email/references/mjml.md +13 -11
- package/skills/pixelcraft-email/references/react-email.md +76 -34
- package/skills/pixelcraft-extensions/SKILL.md +32 -27
- package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
- package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
- package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
- package/skills/pixelcraft-extensions/references/raycast.md +90 -11
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
- package/skills/pixelcraft-game-ui/SKILL.md +45 -26
- package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
- package/skills/pixelcraft-game-ui/references/godot.md +100 -27
- package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
- package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
- package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
- package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
- package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
- package/skills/pixelcraft-handoff/SKILL.md +14 -13
- package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
- package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
- package/skills/pixelcraft-media/SKILL.md +20 -23
- package/skills/pixelcraft-media/references/banners-video.md +83 -65
- package/skills/pixelcraft-media/references/og-generation.md +110 -63
- package/skills/pixelcraft-media/references/social-cards.md +57 -58
- package/skills/pixelcraft-mobile/SKILL.md +53 -36
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
- package/skills/pixelcraft-mobile/references/flet.md +53 -26
- package/skills/pixelcraft-mobile/references/flutter.md +76 -32
- package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
- package/skills/pixelcraft-mobile/references/kivy.md +54 -31
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
- package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
- package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
- package/skills/pixelcraft-mobile/references/react-native-expo.md +66 -31
- package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
- package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
- package/skills/pixelcraft-mobile/references/uikit.md +57 -23
- package/skills/pixelcraft-patterns/SKILL.md +30 -13
- package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
- package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
- package/skills/pixelcraft-patterns/references/auth-onboarding.md +32 -13
- package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
- package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
- package/skills/pixelcraft-patterns/references/commerce.md +35 -16
- package/skills/pixelcraft-patterns/references/communication.md +34 -15
- package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
- package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
- package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
- package/skills/pixelcraft-patterns/references/marketing.md +31 -19
- package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
- package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
- package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
- package/skills/pixelcraft-patterns/references/pattern-selection.md +8 -2
- package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
- package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
- package/skills/pixelcraft-patterns/references/settings.md +40 -12
- package/skills/pixelcraft-plan/SKILL.md +54 -18
- package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
- package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
- package/skills/pixelcraft-plan/references/plan-template.md +44 -9
- package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
- package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
- package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
- package/skills/pixelcraft-review/SKILL.md +41 -19
- package/skills/pixelcraft-review/references/audit-report.md +20 -1
- package/skills/pixelcraft-review/references/heuristics.md +63 -18
- package/skills/pixelcraft-review/references/personas.md +41 -14
- package/skills/pixelcraft-review/references/polish.md +66 -26
- package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
- package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
- package/skills/pixelcraft-spatial/SKILL.md +16 -17
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
- package/skills/pixelcraft-spatial/references/platforms.md +123 -53
- package/skills/pixelcraft-tokens/SKILL.md +18 -14
- package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
- package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
- package/skills/pixelcraft-tokens/references/format.md +39 -9
- package/skills/pixelcraft-tokens/references/governance.md +1 -1
- package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
- package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
- package/skills/pixelcraft-tui/SKILL.md +41 -25
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
- package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
- package/skills/pixelcraft-tui/references/ink.md +77 -28
- package/skills/pixelcraft-tui/references/ratatui.md +70 -30
- package/skills/pixelcraft-tui/references/rich.md +53 -33
- package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
- package/skills/pixelcraft-tui/references/textual.md +75 -34
- package/skills/pixelcraft-ux/SKILL.md +22 -12
- package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
- package/skills/pixelcraft-ux/references/forms.md +57 -3
- package/skills/pixelcraft-ux/references/i18n.md +50 -12
- package/skills/pixelcraft-ux/references/laws.md +35 -14
- package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
- package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
- package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
- package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
- package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
- package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
- package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
- package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
- package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
- package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +50 -11
- package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
- package/skills/pixelcraft-web/SKILL.md +105 -49
- package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
- package/skills/pixelcraft-web/references/angular.md +63 -16
- package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
- package/skills/pixelcraft-web/references/astro.md +64 -13
- package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
- package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
- package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
- package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
- package/skills/pixelcraft-web/references/clojurescript.md +52 -17
- package/skills/pixelcraft-web/references/component-systems.md +102 -0
- package/skills/pixelcraft-web/references/component-testing.md +170 -0
- package/skills/pixelcraft-web/references/creative-effects.md +59 -0
- package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
- package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
- package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
- package/skills/pixelcraft-web/references/forms-validation.md +123 -0
- package/skills/pixelcraft-web/references/fsharp-fable.md +3 -2
- package/skills/pixelcraft-web/references/gsap.md +102 -0
- package/skills/pixelcraft-web/references/html-css.md +144 -12
- package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
- package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
- package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
- package/skills/pixelcraft-web/references/java-web.md +27 -18
- package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
- package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
- package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
- package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
- package/skills/pixelcraft-web/references/media-players.md +104 -0
- package/skills/pixelcraft-web/references/motion-react.md +96 -0
- package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
- package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
- package/skills/pixelcraft-web/references/pwa.md +6 -1
- package/skills/pixelcraft-web/references/qwik.md +51 -11
- package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
- package/skills/pixelcraft-web/references/react-next.md +112 -13
- package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
- package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
- package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
- package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
- package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
- package/skills/pixelcraft-web/references/server-rendered.md +106 -63
- package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
- package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
- package/skills/pixelcraft-web/references/solid.md +67 -16
- package/skills/pixelcraft-web/references/state-architecture.md +107 -0
- package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
- package/skills/pixelcraft-web/references/svelte.md +61 -11
- package/skills/pixelcraft-web/references/tailwind.md +40 -14
- package/skills/pixelcraft-web/references/video-media.md +69 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
- package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
# Dashboard and admin
|
|
2
2
|
|
|
3
|
-
Dashboards are operational instruments, not metric collages. Start from decisions: what
|
|
3
|
+
Dashboards are operational instruments, not metric collages. Start from decisions: what must the operator notice, diagnose, or act on next?
|
|
4
4
|
|
|
5
|
-
|
|
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
6
|
|
|
7
|
-
|
|
8
|
-
- Group by decision or operational object; label time range, freshness, source, and permissions.
|
|
9
|
-
- Make every metric answer a question. If no action or understanding follows, remove or demote it.
|
|
10
|
-
- Preserve drill-down context: filters, time range, selection, scroll, and back navigation.
|
|
11
|
-
- Use overview → inspect → act progression rather than modal cascades.
|
|
7
|
+
## Structure and operational hierarchy
|
|
12
8
|
|
|
13
|
-
|
|
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
|
|
14
15
|
|
|
15
16
|
| State | Required behavior |
|
|
16
17
|
|---|---|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
| overload |
|
|
21
|
-
|
|
|
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 |
|
|
22
23
|
|
|
23
|
-
## Do
|
|
24
|
+
## Do/don't pairs
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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 |
|
|
28
32
|
|
|
29
33
|
## Verification
|
|
30
34
|
|
|
31
|
-
Test slow queries, zero rows, one row, thousands of rows, stale cache
|
|
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.
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
# Marketing
|
|
1
|
+
# Marketing and conversion architecture
|
|
2
2
|
|
|
3
|
-
Marketing
|
|
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
4
|
|
|
5
|
-
|
|
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
6
|
|
|
7
|
-
|
|
7
|
+
## Persuasion vs operational app UI
|
|
8
|
+
|
|
9
|
+
| Marketing surface | Operational app UI |
|
|
8
10
|
|---|---|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
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.
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
## Conversion structure
|
|
15
19
|
|
|
16
|
-
|
|
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".
|
|
17
25
|
|
|
18
|
-
|
|
19
|
-
2. evidence or demonstration using truthful material;
|
|
20
|
-
3. differentiation and mechanism;
|
|
21
|
-
4. objection handling/detail;
|
|
22
|
-
5. clear action with expectation of what happens next.
|
|
26
|
+
## Trust and anti-dark-pattern rules
|
|
23
27
|
|
|
24
|
-
|
|
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.
|
|
25
32
|
|
|
26
|
-
##
|
|
33
|
+
## Do/don't pairs
|
|
27
34
|
|
|
28
|
-
|
|
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 |
|
|
29
41
|
|
|
30
42
|
## Verification
|
|
31
43
|
|
|
32
|
-
Test narrow/mobile reading order, long localized headlines, RTL, font fallback,
|
|
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.
|
|
@@ -12,8 +12,14 @@ Use this reference before applying any named product pattern. Patterns encode re
|
|
|
12
12
|
| exploratory decision | comparison matrix/list-detail/filterable collection | forced linear narrative | stable comparison attributes, save/share state, reversible exploration |
|
|
13
13
|
| ongoing monitoring | dashboard/instrument panel | marketing-style narrative cards | freshness/source/state; alarm hierarchy; drill-down without losing overview |
|
|
14
14
|
| collaborative artifact | persistent canvas/document plus presence/history | isolated modal-per-action editing | ownership/conflict/restore/version behavior |
|
|
15
|
-
| import/migration | staged preview
|
|
16
|
-
| setup/configuration | sensible defaults plus progressive advanced controls | expose every option at once |
|
|
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 |
|
|
17
23
|
|
|
18
24
|
## Navigation matrix
|
|
19
25
|
|
|
@@ -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.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Scroll and progression choreography
|
|
2
|
+
|
|
3
|
+
This reference defines the **surface-independent UX contract** for scroll-coupled and stepped narrative progression. For browser-specific implementation APIs (CSS Scroll-Driven Animations, `IntersectionObserver`, `position: sticky`, or GSAP ScrollTrigger), coordinate with `pixelcraft-web`; for native scroll-offset choreography, coordinate with `pixelcraft-mobile` or `pixelcraft-desktop`.
|
|
4
|
+
|
|
5
|
+
## Synchronization model matrix
|
|
6
|
+
|
|
7
|
+
Choose the simplest coupling that communicates the story without fighting user control:
|
|
8
|
+
|
|
9
|
+
| Coupling model | User-experience role | When to choose | When to avoid |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| **Normal flow (unpinned)** | Standard continuous reading with inline visuals | Default for articles, docs, and narrow mobile viewports | Only when side-by-side persistent artifact comparison materially aids comprehension |
|
|
12
|
+
| **Threshold-activated stages** | Discrete chapter transitions when each section enters reading focus | Step-by-step diagrams, chart filter changes, highlighted callouts | Smooth scrub physics that require frame-by-frame interpolation |
|
|
13
|
+
| **Sticky artifact + flowing prose** | One persistent visual stays anchored while explanatory steps scroll alongside | Artifact + annotations, data narratives, product anatomy | Short viewport heights where the pinned visual crowds out readable text |
|
|
14
|
+
| **Continuous progress scrub** | Visual transformation tracks user scroll offset proportionally inside a bounded stage | Controlled before/after reveals, bounded timeline/camera progression | Multi-screen forced scrub walls where users lose scroll speed intuition |
|
|
15
|
+
| **Explicit stepped controls** | Previous / Next / Chapter selector controls change stage without scroll hijacking | Accessibility fallback, touch carousels, keyboard-first inspection, embedded frames | Never omit as an escape hatch on complex interactive stages |
|
|
16
|
+
|
|
17
|
+
## Behavioral contract
|
|
18
|
+
|
|
19
|
+
- **Scroll is read-only input**: Never hijack wheel inertia, touch momentum, scrollbar dragging, PageUp/PageDown, or Back/Forward history.
|
|
20
|
+
- **Bounded pinning**: Every pinned visual stage has an unmistakable entry, a bounded duration, and a clean release back into normal flow. Never nest pinned stages inside each other.
|
|
21
|
+
- **Anchor-driven state**: Derive chapter state from semantic chapter identifiers/anchors, not brittle raw pixel offsets that break on font load, text zoom, localization expansion, or viewport resize.
|
|
22
|
+
- **Bidirectional fidelity**: Scrolling backward, jumping via table-of-contents links, or resizing mid-chapter must settle immediately into the accurate visual state for the visible chapter.
|
|
23
|
+
- **Viewport-height budgeting**: Short landscape viewports (e.g., 1280×600 laptops, split-screen tablets) fail pinned layouts faster than narrow widths—test height constraints explicitly and release pinning when the visual plus caption cannot fit comfortably.
|
|
24
|
+
|
|
25
|
+
## Narrow-viewport and compact fallback
|
|
26
|
+
|
|
27
|
+
- Prefer linear chapters with inline static or compact interactive visuals on phones and narrow split panes.
|
|
28
|
+
- If offering a horizontal step sequence, expose explicit Previous/Next buttons, visible step indicators (`2 of 6`), keyboard arrow controls, and direct chapter links—never scale down a wide desktop pinned canvas into an illegible thumbnail.
|
|
29
|
+
|
|
30
|
+
## Do/don't pairs
|
|
31
|
+
|
|
32
|
+
| Do | Don't |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Keep native scroll physics intact and observe position passively | Intercept wheel/touch events to enforce fake momentum or scroll locks |
|
|
35
|
+
| Derive visual state from semantic chapter IDs and deep links | Hardcode magic pixel offsets (`y > 2400`) that drift on text resize |
|
|
36
|
+
| Fall back to stacked inline visuals on narrow or short viewports | Pin a 500 px diagram inside a 560 px tall laptop window |
|
|
37
|
+
| Provide chapter jumps and a skip-section link | Force readers to scrub through 8 screens to reach the summary |
|
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
# Settings and preferences
|
|
2
2
|
|
|
3
|
-
Settings are high-trust operational surfaces. Predictability
|
|
3
|
+
Settings are high-trust operational surfaces. Predictability, scope clarity, and safe commit semantics beat visual novelty.
|
|
4
4
|
|
|
5
|
-
## Organization
|
|
5
|
+
## Organization and scope inheritance
|
|
6
6
|
|
|
7
|
-
- Group by user goal or
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
7
|
+
- Group settings by user goal or domain object (Account, Notifications, Security, Workspace), never by backend microservice or database table.
|
|
8
|
+
- In multi-level products (**Organization -> Workspace -> User**), expose inheritance explicitly:
|
|
9
|
+
- Label every inherited value ("Inherited from Org default") and highlight local overrides with a one-action `Reset to default`.
|
|
10
|
+
- When a higher-level policy locks a setting, render it read-only with a visible explanation ("Managed by Organization Admin") rather than silently disabling or hiding it.
|
|
11
|
+
- Settings search should jump directly to the matching section while preserving its scope breadcrumb and permission state.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Save models and sticky dirty-save bars
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Choose one explicit save model per section and never mix them ambiguously:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
| Save model | Best for | Required feedback |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| Immediate toggle/auto-commit | Low-risk personal preferences (theme, compact density, mute sound) | Instant applied state + rollback toast on failure; no separate Save button |
|
|
20
|
+
| Explicit Save / Discard with sticky dirty bar | Multi-field forms, security/SSO configs, webhook URLs, retention policies | Sticky bottom/top bar showing unsaved change count, `Save changes` and `Discard`, plus unsaved-navigation guard on route leave |
|
|
21
|
+
| Staged apply / restart required | System configs requiring reload, worker restart, or re-indexing | Banner explaining pending change and when it takes effect |
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## Controls and danger zones
|
|
24
|
+
|
|
25
|
+
- Match control to choice semantics: radio group for 2–5 mutually exclusive visible choices, select/combobox for larger sets, checkbox for independent booleans, switch/toggle strictly for immediate persistent preferences. Always expose accessible state labels alongside toggles.
|
|
26
|
+
- Isolate irreversible actions (delete workspace, revoke all tokens, purge data, transfer ownership) inside a clearly separated **Danger Zone** at the bottom or dedicated sub-tab:
|
|
27
|
+
- State the exact blast radius (e.g., "Permanently deletes 14 projects, 320 files, and revokes 8 API keys").
|
|
28
|
+
- Require **type-to-confirm** matching the concrete resource slug or name (not a generic "Are you sure?" click) plus re-authentication for account/org destruction.
|
|
29
|
+
|
|
30
|
+
## State matrix
|
|
31
|
+
|
|
32
|
+
| State | Required behavior |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Unsaved edits (dirty) | Sticky dirty bar visible; warn before navigating away; allow one-click discard |
|
|
35
|
+
| Permission read-only | Show current value clearly with lock reason and who can change it |
|
|
36
|
+
| Validation failure | Keep dirty bar active, highlight inline errors, preserve every entered value |
|
|
37
|
+
| Concurrent edit conflict | Detect stale version (`ETag`/revision), show conflicting fields, never silently overwrite another admin's save |
|
|
38
|
+
| Failed destructive action | Preserve confirmation context, explain partial or full failure, and report audit ID if generated |
|
|
39
|
+
|
|
40
|
+
## Do/don't pairs
|
|
41
|
+
|
|
42
|
+
| Do | Don't |
|
|
43
|
+
|---|---|
|
|
44
|
+
| Show "Inherited from Org" badge + `Reset to default` action | Hide whether a value is global, workspace-wide, or personal |
|
|
45
|
+
| Sticky dirty-save bar + leave-page warning for multi-field settings | Silently discard 10 edited fields when the user clicks another tab |
|
|
46
|
+
| Type-to-confirm resource name with concrete blast radius in Danger Zone | One-click red Delete button next to Save |
|
|
47
|
+
| Confirm actual backend persistence before clearing dirty state | Show "Saved" optimistically and ignore failed writes |
|
|
20
48
|
|
|
21
49
|
## Verification
|
|
22
50
|
|
|
23
|
-
Test refresh/back/deep link,
|
|
51
|
+
Test refresh/back/deep link, dirty-state leave guards, inherited vs overridden values, admin-locked read-only controls, concurrent two-window save conflicts, validation with preserved input, keyboard tab order, focus restoration after save/error, long localized labels, narrow layouts, and danger-zone type-to-confirm enforcement.
|