@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,30 +1,50 @@
|
|
|
1
1
|
# Feedback, response time, and perceived performance
|
|
2
2
|
|
|
3
|
-
Evidence: response-time limits,
|
|
3
|
+
Evidence: response-time limits, Core Web Vitals (INP / LoAF), streaming UX patterns, and state-hardening practice.
|
|
4
4
|
|
|
5
|
-
## Time budget
|
|
5
|
+
## Time budget and INP / LoAF
|
|
6
6
|
|
|
7
7
|
| Elapsed time | UX requirement |
|
|
8
8
|
|---|---|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
9
|
+
| `≤ 100 ms` | Direct manipulation feels instantaneous; press/drag/focus feedback must appear here |
|
|
10
|
+
| `≤ 200 ms` (INP good) | Web **Interaction to Next Paint (INP)** ceiling; inspect **Long Animation Frames (LoAF, > 50 ms)** and yield to the main thread (`scheduler.yield()` / chunked rendering / web workers) before heavy synchronous work blocks paint |
|
|
11
|
+
| `≤ 400 ms` (Doherty) | User momentum stays intact for search, filters, tab switches, and optimistic updates; never insert artificial animation delays |
|
|
12
|
+
| `~1 s` | Flow stays uninterrupted; avoid modal blocking chrome or flashing progress indicators below ~200–300 ms |
|
|
13
|
+
| `> 10 s` | Outer attention boundary; show explicit progress or stage status, cancellation, and whether navigating away cancels work |
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Skeleton vs. spinner vs. progress rules
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
Choose the loading pattern by duration and layout predictability—never throw a full-page spinner at every fetch:
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
-
|
|
19
|
+
| Situation | Use | Do not use |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Fast response (`< 200–300 ms`) | No loader (or subtle pressed state); delay indicator onset to avoid visual flash | Flashing skeleton/spinner that disappears in 1 frame |
|
|
22
|
+
| Structured page/list load (`300 ms – ~3 s`) | **Skeleton** matching real container geometry (`aria-busy="true"`, single polite announcement) | Generic centered spinner that causes severe CLS on hydrate, or skeletons with fake numbers |
|
|
23
|
+
| Single button / inline action | Inline button pending label + spinner inside fixed-width button (`aria-disabled="true"` preserving focus) | Replacing the entire screen with a backdrop overlay |
|
|
24
|
+
| Multi-second upload, export, or batch job (`> 2–3 s`) | **Determinate progress bar** (with bytes/items/step count) + Cancel control | Fake progress bar that stalls at 99% |
|
|
25
|
+
| Indeterminate multi-step backend work | **Stage list** (`Queued → Validating → Indexing`) + Cancel / background notice | Silent frozen button or bare looping spinner with no context |
|
|
23
26
|
|
|
24
|
-
##
|
|
27
|
+
## AI and streaming UX (TTFT vs. completion)
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
29
|
+
LLM and agentic tasks split latency into **Time to First Token (TTFT)** and **Total Completion Time**:
|
|
30
|
+
|
|
31
|
+
- **Acknowledge immediately (`< 100 ms`):** append the user's message optimistically, focus/scroll cleanly, and indicate connection or tool execution before the first token arrives.
|
|
32
|
+
- **Keep reading stable during streaming:** stream into reserved/growing containers without shifting controls above the stream; disable auto-scroll the moment the user scrolls upward and offer a “Jump to latest” control.
|
|
33
|
+
- **Separate thinking/tools from answer:** show tool invocations or reasoning summaries in compact collapsible status blocks so users know progress is real without drowning the final answer.
|
|
34
|
+
- **Make stop/cancel first-class:** stopping mid-stream preserves generated text, stops billing/network traffic, and keeps the input ready for immediate correction.
|
|
35
|
+
|
|
36
|
+
## Optimistic UI and rollback race conditions
|
|
37
|
+
|
|
38
|
+
Optimistic updates improve perceived speed only when reconciliation is race-safe:
|
|
39
|
+
|
|
40
|
+
- **Tag every mutation with a monotonic client token/version** so a slow response from mutation #1 cannot overwrite the newer optimistic state of mutation #2.
|
|
41
|
+
- **Mark unconfirmed state subtly** when financial, collaborative, or offline stakes are high (e.g., pending sync badge).
|
|
42
|
+
- **Preserve user edits on failure:** if an optimistic edit rolls back, do not wipe what the user typed—restore the previous committed value clearly OR keep the failed draft editable with a one-click Retry and an explicit notice explaining what failed.
|
|
43
|
+
- **Guard double-submit & idempotency:** disable duplicate dispatch with an idempotency key while keeping keyboard focus intact.
|
|
44
|
+
|
|
45
|
+
## Destructive feedback and perceived performance
|
|
46
|
+
|
|
47
|
+
- Use **undo** instead of confirmation whenever reversal is cheap and reliable (`Deleted "Q3 Draft" · Undo` toast with generous timeout and keyboard access). Reserve modal confirmation for irreversible, high-cost, ambiguous, or externally visible destruction.
|
|
48
|
+
- Name the exact object and consequence in destructive copy: “Delete 14 invoices” not “Are you sure?”
|
|
49
|
+
- Prioritize primary content/action over decorative media and below-fold assets; reserve media dimensions (`width`/`height`/`aspect-ratio`) to keep CLS near `0`.
|
|
50
|
+
- Measure or inspect the actual interactive path (startup, route transition, INP/LoAF traces, scroll/jank, image decode, API wait). A high synthetic Lighthouse score alone does not prove responsive interaction.
|
|
@@ -6,6 +6,8 @@ Evidence: validation and checkout research, WCAG redundant-entry/accessible-auth
|
|
|
6
6
|
|
|
7
7
|
- One persistent visible label per field. Placeholder is never a label because it disappears, harms recall, and is often low contrast.
|
|
8
8
|
- Ask only for information needed now. Mark optional fields rather than plastering required markers everywhere when most fields are required.
|
|
9
|
+
- When requesting sensitive or unexpected data (phone number, date of birth, government ID), add a one-line inline reason explaining *why* it is needed (e.g., “Used only for courier delivery updates”).
|
|
10
|
+
- On mobile, avoid detouring users onto separate subpages mid-form (e.g., separate address/coupon pages that risk losing scroll or input state); use inline disclosure or a single-step bottom sheet that preserves all entered fields.
|
|
9
11
|
- Group related choices; order by user mental model, not database schema. Use one column in most task flows.
|
|
10
12
|
- Use correct control type: text input vs select vs radio/checkbox/stepper/date picker. Do not force tiny dropdowns for few choices or free text for constrained values.
|
|
11
13
|
- Accept forgiving formats; parse and normalize rather than forcing users to match backend storage.
|
|
@@ -13,9 +15,9 @@ Evidence: validation and checkout research, WCAG redundant-entry/accessible-auth
|
|
|
13
15
|
|
|
14
16
|
## Input semantics and mobile adaptation
|
|
15
17
|
|
|
16
|
-
- Use correct autocomplete/input purpose tokens (`name`, `email`, `tel`, `url`, `postal-code`, payment fields), input types/modes, virtual keyboard layout, capitalization/autocorrect settings, and paste behavior.
|
|
18
|
+
- Use correct autocomplete/input purpose tokens (`name`, `email`, `tel`, `url`, `postal-code`, payment fields, and `autocomplete="username webauthn"` for passkey conditional UI), input types/modes, virtual keyboard layout, `enterkeyhint` (`search`, `send`, `next`, `done`, `go`), capitalization/autocorrect settings, and paste behavior.
|
|
17
19
|
- Never block paste in email/password/verification/payment fields. Do not require retyping email or other redundant entry unless a security/legal reason exists.
|
|
18
|
-
- Accessible authentication: no cognitive memory test, puzzle, or transcription-only flow; support password managers, paste, passkeys/biometrics
|
|
20
|
+
- Accessible authentication: no cognitive memory test, puzzle, or transcription-only flow; support password managers, paste, passkeys/biometrics (`autocomplete="webauthn"` conditional mediation plus an explicit "Sign in with passkey" button), and magic links where appropriate.
|
|
19
21
|
- Use input masking only when it visibly reduces uncertainty without trapping IMEs/paste/screen readers.
|
|
20
22
|
- Verification codes: allow paste/autofill, do not split focus unpredictably, announce errors accessibly, and preserve countdown/resend state.
|
|
21
23
|
|
|
@@ -45,7 +47,9 @@ Choose semantics before layout:
|
|
|
45
47
|
|
|
46
48
|
| Data | Input/control posture | Formatting behavior |
|
|
47
49
|
|---|---|---|
|
|
48
|
-
| email | email semantics; `email`
|
|
50
|
+
| email | email semantics; `autocomplete="email"`; `enterkeyhint="next"` or `"done"`; paste allowed | do not reject valid internationalized/plus-address forms because they look unusual; trim only insignificant outer whitespace |
|
|
51
|
+
| sign-in username / passkey | `autocomplete="username webauthn"` for conditional passkey autofill + explicit passkey button fallback | support password managers and WebAuthn conditional mediation without hiding fallback auth |
|
|
52
|
+
| search / chat composer | `type="search"` + `enterkeyhint="search"` (or `enterkeyhint="send"` for chat input) | match mobile virtual keyboard action key to actual submit/next behavior |
|
|
49
53
|
| telephone | telephone semantics/input mode; `tel` autocomplete | accept grouping punctuation/spaces; normalize internally; never assume one national format without locale scope |
|
|
50
54
|
| URL | URL semantics/input mode; paste allowed | accept bare host only if product explicitly supports normalization; explain final normalization |
|
|
51
55
|
| postal code | postal-code autocomplete; text input, not number | preserve leading zeroes/spaces/case; validate by selected country/region only when known |
|
|
@@ -95,3 +99,53 @@ For long or complex forms:
|
|
|
95
99
|
- after correction, remove stale summary entries or explain that revalidation/submission is required.
|
|
96
100
|
|
|
97
101
|
Focus movement is a context change. Do not use it as a substitute for visible persistent messages.
|
|
102
|
+
|
|
103
|
+
## Cross-platform IME composition guard & `Unicode NFC` normalization
|
|
104
|
+
|
|
105
|
+
Single-line search bars, chat/comment composers, tag inputs, inline cell editors, and dialogs that bind `Enter` (submit/send) or `Escape` (cancel/close) **must check active IME composition first**. Otherwise users typing Vietnamese Telex/VNI, Japanese Kana→Kanji, Korean Hangul, or Chinese Pinyin accidentally send half-composed messages or dismiss dialogs when committing/canceling IME candidates:
|
|
106
|
+
|
|
107
|
+
| Platform | Guard condition before treating `Enter` as submit or `Escape` as cancel/dismiss |
|
|
108
|
+
|---|---|
|
|
109
|
+
| **Web DOM** | `if (event.isComposing || event.keyCode === 229) return;` inside `keydown` (never bind submit to `keyup`) |
|
|
110
|
+
| **iOS UIKit / SwiftUI** | `guard textField.markedTextRange == nil else { return true }` (`UITextInput` marked text active) |
|
|
111
|
+
| **Android Views / Compose** | Views: `BaseInputConnection.getComposingSpanStart(editable) != -1`; Compose: `if (value.composition != null) return@onPreviewKeyEvent false` |
|
|
112
|
+
| **macOS AppKit / Qt / Desktop** | AppKit: `client.hasMarkedText()`; Qt: track active `QInputMethodEvent` preedit (`!preedit.isEmpty()`) before accepting `Qt::Key_Return` / `Qt::Key_Escape` |
|
|
113
|
+
|
|
114
|
+
Idiomatic multi-platform guards:
|
|
115
|
+
|
|
116
|
+
```js
|
|
117
|
+
// Web DOM: chat composer / search input / inline edit
|
|
118
|
+
input.addEventListener('keydown', (event) => {
|
|
119
|
+
if (event.isComposing || event.keyCode === 229) return;
|
|
120
|
+
if (event.key === 'Enter' && !event.shiftKey) {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
submitNormalized(input.value.normalize('NFC'));
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
```swift
|
|
128
|
+
// iOS UIKit / SwiftUI UITextInput bridge: ignore Return while marked IME text is active
|
|
129
|
+
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
|
|
130
|
+
guard textField.markedTextRange == nil else { return false }
|
|
131
|
+
submit((textField.text ?? "").precomposedStringWithCanonicalMapping)
|
|
132
|
+
return true
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```kotlin
|
|
137
|
+
// Jetpack Compose: guard hardware Enter while IME composition span is active
|
|
138
|
+
OutlinedTextField(
|
|
139
|
+
value = fieldValue,
|
|
140
|
+
onValueChange = { fieldValue = it },
|
|
141
|
+
modifier = Modifier.onPreviewKeyEvent { event ->
|
|
142
|
+
if (event.type == KeyEventType.KeyDown && event.key == Key.Enter && !event.isShiftPressed) {
|
|
143
|
+
if (fieldValue.composition != null) return@onPreviewKeyEvent false
|
|
144
|
+
onSubmit(Normalizer.normalize(fieldValue.text, Normalizer.Form.NFC))
|
|
145
|
+
true
|
|
146
|
+
} else false
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Normalize submitted and validated text to **`Unicode NFC`** before length checks, regex rules, deduplication, or persistence so pasted `NFD` strings (such as macOS filenames or Vietnamese names like `"Nguyễn"`) never fail validation or create duplicate records.
|
|
@@ -53,7 +53,7 @@ Fallback must be explicit per script and font role. Examples are starting points
|
|
|
53
53
|
|
|
54
54
|
```css
|
|
55
55
|
font-family:
|
|
56
|
-
"
|
|
56
|
+
"IBM Plex Sans", "Noto Sans", system-ui, sans-serif; /* Latin/Cyrillic/Greek example; pick voice per direction */
|
|
57
57
|
|
|
58
58
|
font-family:
|
|
59
59
|
"Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", sans-serif; /* Arabic/Persian */
|
|
@@ -80,19 +80,43 @@ Add emoji fallback such as platform emoji fonts where the product expects emoji
|
|
|
80
80
|
|
|
81
81
|
## Expansion, contraction, and layout budgets
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Split text-expansion budgets by UI element class rather than applying one flat percentage everywhere:
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
- never use ellipsis in legal/safety/destructive confirmation text without an inspectable full-text path;
|
|
91
|
-
- measure using real translations plus pseudo-localization, not guessed length multiplication alone.
|
|
85
|
+
| Element class | Budget | Why & examples |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| **Prose & multi-sentence paragraphs** | **`+30–40%`** | Sentence-level grammar evens out word length growth across German, French, Spanish, Portuguese, and Vietnamese |
|
|
88
|
+
| **Short UI labels (buttons, tabs, chips, badges, column headers)** | **`+50–100%`** (up to `+150%` on 3–5 char English words) | Compact English labels (`"Save"`, `"Edit"`, `"Views"`, `"New"`, `"Live"`) routinely double in German (`"Speichern"`, `"Aufrufe"`), Vietnamese (`"Lưu thay đổi"`, `"Lượt xem"`), Finnish, or Greek |
|
|
89
|
+
| **CJK & dense scripts** | `-10–30%` inline width, **`+15–25%` line-height / earlier wrap** | Fewer characters fit per line and complex Hanzi/Kanji/Hangul strokes require taller leading (`1.6–1.8`) without synthetic italics |
|
|
92
90
|
|
|
93
|
-
|
|
91
|
+
Design rules:
|
|
94
92
|
|
|
95
|
-
|
|
93
|
+
- prefer wrapping, intrinsic sizing, and responsive reflow (`flex-wrap`, auto-sizing columns) before truncation;
|
|
94
|
+
- never assign fixed pixel widths or single-line fixed heights to buttons, tabs, badges, or nav items;
|
|
95
|
+
- preserve minimum hit targets after translation and contraction;
|
|
96
|
+
- never use ellipsis in legal, safety, pricing, or destructive-confirmation text without an inspectable full-text path;
|
|
97
|
+
- measure using real target-locale strings plus pseudo-localization, not naive character-count multiplication.
|
|
98
|
+
|
|
99
|
+
## Unicode NFC diacritic integrity & Vietnamese glyph-coverage audit
|
|
100
|
+
|
|
101
|
+
1. **Normalize text to `Unicode NFC` at input, storage, comparison, and search boundaries:** macOS filesystems, clipboard pastes, and certain mobile/desktop keyboards emit decomposed `NFD` sequences (base letter + separate combining code points), causing misaligned marks, broken string equality, and off-by-one length checks. Normalize consistently (`str.normalize('NFC')` in JS, `precomposedStringWithCanonicalMapping` in Swift/Foundation, `Normalizer.normalize(s, Normalizer.Form.NFC)` in Kotlin/Java, `unicodedata.normalize('NFC', s)` in Python, ICU `unorm2` in C++/Rust).
|
|
102
|
+
2. **Audit custom font subsets against full stacked-diacritic glyph tables:** before shipping any display or UI font for Latin-extended locales, test **Vietnamese horn, breve, circumflex, barred-d, and stacked tone combinations (`ư, ơ, ă, â, ê, ô, đ` + `ệ, ử, ẫ, ợ, ằ, ậ, ữ` in both lowercase and uppercase)** alongside Central/Eastern European (`ł, ń, ř, ș, ț`) and target non-Latin scripts:
|
|
103
|
+
- zero mid-word fallback to a mismatched system font ("ransom-note" rendering where `"Nguyễn"` or `"Hệ thống"` swaps weight/x-height on `ễ` or `ệ`);
|
|
104
|
+
- zero ascender/descender clipping on stacked circumflex + acute/grave/hook/tilde marks under tight display `line-height` or `overflow: hidden`.
|
|
105
|
+
|
|
106
|
+
## Cross-platform IME composition guard
|
|
107
|
+
|
|
108
|
+
Pressing `Enter` during active Input Method Editor (`IME`) composition commits the candidate string (Vietnamese Telex/VNI, Japanese Kana→Kanji, Korean Hangul, Chinese Pinyin) and pressing `Escape` cancels the candidate popup—neither key may trigger form submit, search execution, chat send, inline-edit save, or modal close while composition is active:
|
|
109
|
+
|
|
110
|
+
| Platform | Active-composition check before handling `Enter` / `Escape` |
|
|
111
|
+
|---|---|
|
|
112
|
+
| **Web DOM** | On `keydown`, guard with `if (event.isComposing || event.keyCode === 229) return;` (never trigger submit on `keyup`, which fires *after* composition commits) |
|
|
113
|
+
| **iOS UIKit / SwiftUI** | Check `textField.markedTextRange != nil` (`UITextInput`) before treating Return/Enter as submit/send in `textFieldShouldReturn` or hardware-key commands |
|
|
114
|
+
| **Android Views / Jetpack Compose** | Check `BaseInputConnection.getComposingSpanStart(editable) != -1` in Views or `textFieldValue.composition != null` in Compose before `Key.Enter` triggers submit/send |
|
|
115
|
+
| **macOS AppKit / Qt / Desktop** | Check `NSTextInputClient.hasMarkedText()` on AppKit or `!event->preeditString().isEmpty()` (`QInputMethodEvent`) in Qt before committing inline edits or closing dialogs |
|
|
116
|
+
|
|
117
|
+
## ICU plural, gender, and message structure (ICU MF1 & Unicode MessageFormat 2.0)
|
|
118
|
+
|
|
119
|
+
Use complete locale-aware messages; never concatenate grammar around variables. ICU MessageFormat 1.0 supports plural/select/selectordinal and nested formatting:
|
|
96
120
|
|
|
97
121
|
```text
|
|
98
122
|
{gender, select,
|
|
@@ -105,6 +129,20 @@ Use complete locale-aware messages; never concatenate grammar around variables.
|
|
|
105
129
|
}
|
|
106
130
|
```
|
|
107
131
|
|
|
132
|
+
For greenfield pipelines or toolchains supporting the standardized Unicode **MessageFormat 2.0 (MF2)** specification (part of Unicode CLDR / LDML and upcoming `Intl.MessageFormat`), prefer MF2 syntax when supported by your localization vendor/runtime—it replaces fragile nested braces with explicit `.input`, `.local`, `.match`, and pluggable `:number`/`:datetime` functions:
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
.input {$count :number}
|
|
136
|
+
.input {$gender :string}
|
|
137
|
+
.match $gender $count
|
|
138
|
+
female one {{She updated {$count} file}}
|
|
139
|
+
female * {{She updated {$count} files}}
|
|
140
|
+
male one {{He updated {$count} file}}
|
|
141
|
+
male * {{He updated {$count} files}}
|
|
142
|
+
* one {{They updated {$count} file}}
|
|
143
|
+
* * {{They updated {$count} files}}
|
|
144
|
+
```
|
|
145
|
+
|
|
108
146
|
Correct behavior depends on locale plural categories: languages may use zero/one/two/few/many/other and different semantics. Gender is message/context dependent; do not infer it from names. Preserve placeholders, formatting types, escaping, and translator context. Do not reuse one key in multiple grammatical contexts merely because the English source matches.
|
|
109
147
|
|
|
110
148
|
## Locale formatting with platform APIs
|
|
@@ -172,7 +210,7 @@ A message is not localization-ready if translators cannot see the whole sentence
|
|
|
172
210
|
Use pseudolocalization early and repeatedly, not as a final screenshot trick:
|
|
173
211
|
|
|
174
212
|
1. **Enable a controlled pseudo-locale** or deterministic transform in the development environment.
|
|
175
|
-
2. **
|
|
213
|
+
2. **Accent visible Latin letters** to expose hard-coded/non-localized strings and encoding failure without making text unreadable to developers.
|
|
176
214
|
3. **Add visible boundaries** such as brackets so truncation/clipping is obvious.
|
|
177
215
|
4. **Expand representative strings** aggressively enough to expose fixed widths, missing wrapping, and overlap; do not treat one percentage as universal.
|
|
178
216
|
5. **Exercise placeholders/plurals** with zero/one/other and long variable values rather than only static copy.
|
|
@@ -1,18 +1,39 @@
|
|
|
1
1
|
# UX laws as operational checks
|
|
2
2
|
|
|
3
|
-
Evidence: established UX laws,
|
|
3
|
+
Evidence: established UX laws, platform ergonomics specifications, WCAG 2.2 target/timing floors, and usability research. Use these checks to spot concrete friction before build and during audit—not as pseudo-mathematical dogma.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Quantitative target & motor ergonomics (Fitts's Law)
|
|
6
|
+
|
|
7
|
+
Match control size, spacing, and screen placement to input precision and frequency:
|
|
8
|
+
|
|
9
|
+
| Surface / Modality | Minimum target size | Spacing / separation | Edge & ergonomic placement |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| **iOS / visionOS touch** | `44 × 44 pt` (`60 pt` recommended gaze/pinch on visionOS) | `≥ 8 pt` between adjacent controls | Primary frequent actions in bottom thumb zone; destructive actions separated from confirm |
|
|
12
|
+
| **Android / Material touch** | `48 × 48 dp` (even if visible icon is `24 dp`, expand hit slop) | `≥ 8 dp` clearance between interactive targets | Bottom bars / floating actions within one-handed reach; avoid top-corner primary triggers on tall phones |
|
|
13
|
+
| **Web pointer + coarse touch** | `≥ 24 × 24 CSS px` WCAG 2.2 AA floor (`≥ 44 × 44 CSS px` on touch/responsive targets) | ≥ 24px spacing circle if target is smaller than 24px; `≥ 8px` gap between destructive & primary actions | Never trap small icon buttons flush against resize handles or scrollbars |
|
|
14
|
+
| **Desktop pointer (macOS/Windows/Linux)** | `≥ 28–32 px` toolbar/row height; full-row hit target for lists/menus | Zero dead gap between screen edge and edge-pinned menus/scrollbars | Exploit infinite-depth screen edges (menu bar, top-corner close/back, docked rails) by extending hit areas flush to window/screen edges |
|
|
15
|
+
| **Terminal / TUI keyboard** | Single-key triggers (`j`/`k`, `/`, `?`, `q`, `Esc`) for high-frequency actions | Separate destructive chords (`Shift+D`, `Ctrl+K` + confirm) from navigation keys | Keep key legend visible in footer/status bar; never collide with terminal/tmux prefixes (`Ctrl+C`, `Ctrl+B`, `Ctrl+A`) or Vim/Emacs muscle memory without disclosure |
|
|
16
|
+
|
|
17
|
+
## Quantitative response-latency tiers (Doherty / Miller / Web Vitals)
|
|
18
|
+
|
|
19
|
+
| Latency tier | Threshold | Required UI behavior |
|
|
6
20
|
|---|---|---|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
| **Direct manipulation / press** | `≤ 100 ms` | Immediate visual/haptic acknowledgment (`:active`, selection highlight, cursor echo) |
|
|
22
|
+
| **Interactive responsiveness (INP)** | `≤ 200 ms` | Browser interaction-to-next-paint budget; break heavy JS work so clicks/typing stay fluid |
|
|
23
|
+
| **Momentum threshold (Doherty)** | `≤ 400 ms` | Ideal loop for filter, search-as-you-type, tab switch, and optimistic mutation |
|
|
24
|
+
| **Uninterrupted flow** | `≤ 1 s` | Avoid flashing spinners/skeletons below ~200–300 ms; show subtle pending cues only when work crosses it |
|
|
25
|
+
| **Attention boundary** | `> 10 s` | Show determinate progress (or stage status), allow cancellation, and support background continuation |
|
|
26
|
+
|
|
27
|
+
## Cognitive-load & decision checks (Hick, Jakob, Chunking)
|
|
28
|
+
|
|
29
|
+
| Principle | Quantitative / concrete check | Misuse to avoid |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| **Hick's Law** | Cap top-level primary navigation at ~5–7 distinct buckets; limit single-choice button bars to 1 primary + 1–2 secondary actions; group dense settings into scannable categories with search | Hiding frequent primary controls inside nested overflow menus just to make a toolbar look minimal |
|
|
32
|
+
| **Chunking / Miller** | Group related form fields into chunks of 3–5 inputs with visible section headings; format long strings (cards, IBANs, codes) in 3–4 character groups | Wrapping every unrelated field in nested bordered cards that multiply visual noise |
|
|
33
|
+
| **Jakob's Law** | Honor platform navigation/shortcut conventions (`Cmd+K` / `Ctrl+K`, swipe-back on iOS, system Back on Android, `Esc` closes overlays) | Copying mobile bottom sheets onto desktop CAD tools or web hamburger drawers onto native macOS apps |
|
|
34
|
+
| **Recognition over recall** | Show visible current filters, recent items, command palette hints, and inline units/formats instead of expecting users to memorize codes or hidden shortcuts | Dumping every rare advanced flag onto the default screen |
|
|
35
|
+
| **Smart defaults** | Preselect the safest, reversible, high-frequency option and display the active default plainly | Dark-pattern opt-ins, hidden consent, or silently destructive defaults |
|
|
36
|
+
| **Peak-end & recovery** | Design completion summaries, receipts, undo toasts, and error recovery with the same rigor as onboarding | Spending the entire craft budget on the hero/welcome screen while leaving errors generic |
|
|
37
|
+
| **Aesthetic-usability boundary** | Never accept visual polish as a substitute for a broken task, hidden label, or slow path | Rationalizing failed contrast or mystery navigation as “minimalist” |
|
|
38
|
+
|
|
39
|
+
Validate every hypothesis against real content, the state matrix, platform conventions, and evidence-labeled review.
|
|
@@ -31,9 +31,23 @@ Create this matrix for every meaningful view/component. Delete only rows proven
|
|
|
31
31
|
| duplication/retry | idempotency, double-submit prevention, status visibility |
|
|
32
32
|
| background/expired | session/auth expiry with data preservation and reauthentication |
|
|
33
33
|
|
|
34
|
+
## AI, streaming, and agentic states
|
|
35
|
+
|
|
36
|
+
Include these rows whenever a surface streams LLM output, invokes tools, or executes agent actions:
|
|
37
|
+
|
|
38
|
+
| State | Required design answer |
|
|
39
|
+
|---|---|
|
|
40
|
+
| streaming tokens | acknowledge request immediately; stream incrementally without reflow jitter; pause auto-scroll if the user scrolls up to read; render partial markdown/code fences safely |
|
|
41
|
+
| stop / abort | expose a keyboard-reachable Stop/Cancel control throughout generation; keep partial output visible and allow editing, copying, or resuming from the prompt |
|
|
42
|
+
| tool-call progress | name the active tool/action and target concisely (`Searching invoices…`); distinguish running, succeeded, and failed tool steps with expandable inputs/outputs |
|
|
43
|
+
| approval pending (HITL) | before side effects (write, delete, send, spend), present exact scope, diff/preview, and explicit Approve / Edit / Reject controls with safe focus defaults |
|
|
44
|
+
| citation / provenance fallback | bind claims to verifiable source links/snippets; when grounding is absent or partial, mark unverified/unavailable provenance explicitly instead of fabricating citations |
|
|
45
|
+
| undo of agent action | expose rollback/checkpoint/revert for state mutations with clear summary of what will be restored; require upfront approval when an action is irreversible |
|
|
46
|
+
| rate-limit / context-limit | explain whether the limit is transient (show retry-after / backoff) or context-window overflow (offer trim/summarize/start-new-thread); always preserve the user's unsent prompt |
|
|
47
|
+
|
|
34
48
|
## Rules
|
|
35
49
|
|
|
36
50
|
- Do not use spinners as the only answer. Choose stable layout, progressive content, or explicit task state based on duration/context.
|
|
37
51
|
- “Empty” is not an error unless the user expected required data.
|
|
38
52
|
- Error copy must say what happened, what was preserved, and how to proceed.
|
|
39
|
-
- Simulate slow network, cancellation, token expiry, malformed data, and concurrency where feasible; otherwise label `not-checked`.
|
|
53
|
+
- Simulate slow network, cancellation, token expiry, malformed data, streaming interruption, and concurrency where feasible; otherwise label `not-checked`.
|
|
@@ -11,6 +11,7 @@ Evidence: empty-state/form guidance, concise copy practice, and mode-specific ex
|
|
|
11
11
|
- Headings state the object or decision, not generic “Information”/“Details” when specificity is possible.
|
|
12
12
|
- Front-load distinguishing words for scanning and truncation.
|
|
13
13
|
- Do not blame users, expose internal exception text, or use fake warmth in high-stakes errors.
|
|
14
|
+
- **Ban 2025–2026 AI marketing copy clichés:** never write `supercharge`, `elevate`, `revolutionize`, `unlock`, `seamless`, `cutting-edge`, `next-gen`, `effortless`, `empower`, `streamline`, `all-in-one`, `reimagine`, `unleash`, `AI-powered`, `built for modern teams`, `delve`, `transform your`, or vague `"Get started"` / `"Learn more"` filler when a concrete domain outcome or action is knowable. Replace every buzzword with the verifiable user action, time/data unit, or domain object (e.g., `"Diff two Parquet schemas in 300ms"` instead of `"Effortlessly streamline your next-gen data workflow"`).
|
|
14
15
|
|
|
15
16
|
## Error pattern
|
|
16
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pixelcraft-visual-qa
|
|
3
|
-
description: Verifies interfaces through rendered evidence using a render → screenshot → self-critique → fix loop. Use for visual QA, screenshot
|
|
3
|
+
description: Verifies interfaces through rendered evidence using a render → screenshot → self-critique → fix loop and finish gate. Use for visual QA, Playwright screenshot/video/trace capture, Core Web Vitals (LCP, INP, CLS), responsive/light/dark/reduced-motion inspection, browser or device verification, WebGL/WebGPU profiling, horizontal overflow, clipping, contrast, PDF/document raster checks, and honest rendered-vs-static evidence reporting across web, mobile, desktop, terminal, email, document, and game surfaces.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -16,22 +16,29 @@ Render the actual surface, inspect representative captures, execute the primary
|
|
|
16
16
|
- Read [references/task-verification.md](references/task-verification.md) when behavior or task completion matters more than static appearance.
|
|
17
17
|
- Read [references/finish-gate.md](references/finish-gate.md) before verifying a new or materially changed UI flow; it defines required evidence and the repair limit.
|
|
18
18
|
- Read [references/baseline-governance.md](references/baseline-governance.md) before updating, trusting, masking, or retaining screenshot baselines.
|
|
19
|
+
- Read [references/motion-capture.md](references/motion-capture.md) when timing, scrub, drag, route transitions, or animated states need video/trace evidence.
|
|
20
|
+
- Read [references/realtime-graphics.md](references/realtime-graphics.md) for canvas/WebGL/WebGPU runtime states, context loss, GPU/asset budgets, and actual-device evidence.
|
|
19
21
|
- Read [references/performance-budgets.md](references/performance-budgets.md) when setting or evaluating web vitals, interaction latency, frame budgets, and asset budgets.
|
|
20
22
|
- Read [references/measured-craft.md](references/measured-craft.md) when comparing an expressive treatment, measuring before/after, or choosing non-browser evidence.
|
|
21
23
|
- Run `node scripts/style-inventory.mjs <url-or-html-file>` when a rendered style/payload inventory would make critique measurable; it emits JSON rather than proof of quality.
|
|
22
24
|
- Read [references/capture-mobile.md](references/capture-mobile.md) for iOS simulator, Android emulator/device, responsive viewport, gesture, and safe-area capture.
|
|
23
25
|
- Read [references/capture-terminal.md](references/capture-terminal.md) for tmux, VHS, asciinema, snapshot backends, color fallback, resize, and scrollback evidence.
|
|
24
|
-
- Read [references/capture-email.md](references/capture-email.md) for email-client matrix, image blocking, dark mode, plaintext, and capture
|
|
25
|
-
- Read [references/capture-
|
|
26
|
+
- Read [references/capture-email.md](references/capture-email.md) for email-client matrix, 102 KB Gmail clipping, image blocking, dark mode, plaintext, and local SMTP capture.
|
|
27
|
+
- Read [references/capture-document.md](references/capture-document.md) when verifying final PDFs, print layouts, PDF/UA tags, embedded fonts, or Slidev/Marp slide exports.
|
|
28
|
+
- Read [references/capture-desktop-game.md](references/capture-desktop-game.md) for native windows, Wayland/X11/macOS/Windows capture, Electron/Tauri drivers, high-DPI, frame capture, HUD legibility, and game-safe-area checks.
|
|
26
29
|
- Run `node scripts/shoot.mjs --help` for optional browser capture/audit. The script has no required dependencies; it uses Playwright only when already installed or installable by the user.
|
|
30
|
+
- Run `node scripts/check-contrast.mjs --help` for zero-dependency WCAG 2.2 / APCA contrast verification across tokens and stylesheets.
|
|
31
|
+
- Run `node scripts/check-email.mjs --help` for zero-dependency email HTML auditing (102 KB Gmail clipping, Outlook/Flexbox hazards, image-only CTA/alt checks, preheader spacer padding, plaintext parity, and `--headers` RFC 8058 One-Click unsubscribe checks).
|
|
32
|
+
- Run `node scripts/check-tui.mjs --help` for zero-dependency terminal output auditing (UAX #29 grapheme-cluster width/wrapping for CJK & ZWJ emoji, `NO_COLOR` resilience, and 6-step terminal mode teardown checks).
|
|
33
|
+
- Run `node scripts/check-pdf.mjs --help` for zero-dependency PDF verification (page geometry, embedded fonts, `/ToUnicode` CMap copy/ATS extractability, PDF/UA structure checks, and `--prepress` PDF/X `/TrimBox`, `/BleedBox`, `/OutputIntents` gates).
|
|
27
34
|
|
|
28
35
|
## Required loop
|
|
29
36
|
|
|
30
37
|
1. **Render** — build/run the real product surface. A typecheck, bundle, DOM snapshot, or successful server start is not visual evidence. For behavior that matters, execute a defined user task rather than only loading a page.
|
|
31
38
|
2. **Capture** — use the plan's applicable device/layout classes, including landscape and short height for responsive web. Observe the task, available controls, focus and state after resize or rotation, not just the fit of static screenshots. On other surfaces use supported devices, sizes, clients or output formats. Include applicable appearance and reduced-motion settings; capture meaningful states, task feedback, failures and end states.
|
|
32
39
|
3. **Inspect** — evaluate the capture against the direction card, platform conventions, floor requirements, rubric, and task. Look at edges, clipping, overlap, empty space, contrast, hierarchy, alignment, text truncation, input modality, and state communication.
|
|
33
|
-
4. **Fix and retest** —
|
|
34
|
-
5. **Gate and report** — run the finish gate for new or materially changed flows
|
|
40
|
+
4. **Fix and retest (`Scan → Fix → Rescan`)** — deterministic static/CLI/build failures (`slop-scan --fail-on p2`, `check-contrast`, `check-email`, `check-tui`, `check-pdf`, compiler/linter/test errors, dead controls, missing states) have **no early-exit cap**: fix the root cause and re-run all affected checks until they exit `0`. For rendered layout/pixel critique inside `finish-gate.mjs`, normally use one focused repair round and at most three documented rendered rounds (retaining earlier evidence) before escalating a genuinely blocked visual conflict as `OPEN`. Do not iterate by subjective taste.
|
|
41
|
+
5. **Gate and report** — run the finish gate for new or materially changed flows and confirm all applicable deterministic `check-*` / `slop-scan` commands exited `0`; report status, repair rounds, and any remaining `OPEN` or `not-checked` items. List captures inspected and use `rendered` only for actual runtime or capture evidence.
|
|
35
42
|
|
|
36
43
|
## Capture matrix
|
|
37
44
|
|
|
@@ -49,14 +56,21 @@ Choose rows relevant to the surface; do not claim rows skipped without saying so
|
|
|
49
56
|
## Browser quick path
|
|
50
57
|
|
|
51
58
|
```bash
|
|
52
|
-
node scripts/shoot.mjs http://localhost:3000 --out visual-qa
|
|
53
|
-
node scripts/shoot.mjs dist/index.html --breakpoints 390x844,768x1024,1440x900
|
|
59
|
+
node scripts/shoot.mjs http://localhost:3000 --out visual-qa --keyboard
|
|
60
|
+
node scripts/shoot.mjs dist/index.html --breakpoints 390x844,768x1024,1440x900 --keyboard
|
|
54
61
|
```
|
|
55
62
|
|
|
56
63
|
The script writes PNGs plus `report.json`; highlights overflow, clipping, contrast, broken images, essential content hidden after settling, and visible text possibly covered by opaque elements. Use `data-pixelcraft-essential` on task-critical content outside the built-in main/heading targets. Opt in with `--keyboard` on a safe fixture to probe up to eight Tab stops and likely missing visual indicators. Treat findings as leads: inspect the relevant state manually. A probe or clean report is not proof of task completion, contrast compliance, or correct focus order.
|
|
57
64
|
|
|
58
65
|
For local files, the built-in server defaults to the file's own directory. Pass `--root` only when shared parent assets are required: it exposes every non-dotfile beneath that root to page scripts for the duration of the capture. Dot-segments such as `.env` and `.git/` are refused. HTTP error pages are still captured and recorded; runs exit non-zero for 4xx/5xx unless `--allow-http-error` is intentionally used for error-page design review.
|
|
59
66
|
|
|
67
|
+
## Iron Law against abusing `not-checked`
|
|
68
|
+
|
|
69
|
+
**IRON LAW:** `not-checked` is an honest fallback for genuinely unavailable tooling—never an excuse to skip running available checks. Before marking *any* verification item `not-checked`:
|
|
70
|
+
|
|
71
|
+
1. Actively check and attempt every available local runtime/tool first (local dev server + Playwright/`shoot.mjs`, zero-dep `check-contrast.mjs` / `check-email.mjs` / `check-tui.mjs` / `check-pdf.mjs`, simulator/emulator, CLI capture, or build/test runner) and record the exact attempted command or missing binary.
|
|
72
|
+
2. **Never declare a UI "done", "verified", "clean", or "production-ready" while rendered checks remain `not-checked`.** Report the work as *implemented / statically checked only, pending rendered verification* and name the exact next command to verify it.
|
|
73
|
+
|
|
60
74
|
## Hard rules
|
|
61
75
|
|
|
62
76
|
- Do not use browser emulation as proof of physical-device behavior; label it emulation.
|
|
@@ -4,27 +4,48 @@
|
|
|
4
4
|
|
|
5
5
|
Capture real application windows at minimum size, default size, resize/maximized state, and high-DPI scaling. Verify native versus custom chrome, menu/shortcut behavior, focus rings, text scaling, dark/high-contrast mode, multi-window identity, dialog ownership, and restoration after minimize/resize.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Platform capture commands:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
# macOS interactive/window capture
|
|
11
11
|
screencapture -i -w capture.png
|
|
12
12
|
|
|
13
|
-
# Linux
|
|
13
|
+
# Linux Wayland (wlroots/Sway/Hyprland, KDE Plasma, GNOME)
|
|
14
|
+
grim capture.png # wlroots compositors
|
|
15
|
+
spectacle -b -n -o capture.png # KDE Plasma headless background capture
|
|
16
|
+
gnome-screenshot -w -f capture.png # GNOME active window
|
|
17
|
+
|
|
18
|
+
# Linux X11 (ImageMagick)
|
|
14
19
|
import -window root capture.png
|
|
15
20
|
```
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
```powershell
|
|
23
|
+
# Windows PowerShell screen capture (System.Drawing)
|
|
24
|
+
Add-Type -AssemblyName System.Windows.Forms,System.Drawing
|
|
25
|
+
$b = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds
|
|
26
|
+
$bmp = New-Object System.Drawing.Bitmap $b.Width, $b.Height
|
|
27
|
+
$g = [System.Drawing.Graphics]::FromImage($bmp); $g.CopyFromScreen($b.Location, [System.Drawing.Point]::Empty, $b.Size)
|
|
28
|
+
$bmp.Save("capture.png")
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Automated desktop drivers:
|
|
32
|
+
|
|
33
|
+
- **Electron:** launch and inspect the actual desktop window with Playwright `const app = await _electron.launch({ args: ['main.js'] }); const win = await app.firstWindow(); await win.screenshot({ path: 'app.png' });`.
|
|
34
|
+
- **Tauri:** drive the compiled native WebView binary with **`tauri-driver`** over WebDriver (paired with WebdriverIO or Selenium) so native IPC, window chrome, and OS webview rendering are verified end-to-end.
|
|
35
|
+
- Prefer platform-native capture/test tooling where available. A standalone browser preview of an Electron/Tauri frontend is not proof of desktop window chrome or native IPC behavior.
|
|
18
36
|
|
|
19
37
|
## Game UI
|
|
20
38
|
|
|
21
39
|
Capture HUDs at target resolutions/aspect ratios, including ultrawide and minimum supported size. Validate safe-area insets, text legibility at viewing distance, controller focus path, menu pause/resume state, localization expansion, colorblind-critical cues, and damage/alert readability over real gameplay backgrounds—not isolated gray screens.
|
|
22
40
|
|
|
23
|
-
Use engine capture/profilers:
|
|
41
|
+
Use engine capture/profilers and playmode screenshot hooks:
|
|
24
42
|
|
|
25
|
-
- Unity
|
|
26
|
-
- Godot
|
|
27
|
-
- Unreal
|
|
43
|
+
- **Unity:** Game view resolution/aspect matrix, Device Simulator, `ScreenCapture.CaptureScreenshot`, frame debugger/profiler;
|
|
44
|
+
- **Godot:** viewport resolution/stretch modes, `get_viewport().get_texture().get_image().save_png("user://qa.png")`;
|
|
45
|
+
- **Unreal:** PIE viewport presets, `HighResShot` / `AutomationDriver`, safe-zone visualization, UMG focus/navigation instrumentation;
|
|
46
|
+
- **Bevy (Rust):** spawn `Screenshot::primary_window()` with `save_to_disk("qa.png")` observer during playmode/test scenes;
|
|
47
|
+
- **MonoGame (C#):** render HUD scene to `RenderTarget2D` and export via `renderTarget.SaveAsPng(stream, width, height)`;
|
|
48
|
+
- **LÖVE2D (Lua):** call `love.graphics.captureScreenshot("qa.png")` on deterministic test frames.
|
|
28
49
|
|
|
29
50
|
Performance claims require scene-representative frame data. Menu-only capture says nothing about combat/effects scenes.
|
|
30
51
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Document, print, and slide capture
|
|
2
|
+
|
|
3
|
+
HTML or Typst source inspection is `static`; final document QA requires inspecting the compiled PDF or exported slide deck (`rendered`) after pagination, font subsetting, and rasterization.
|
|
4
|
+
|
|
5
|
+
## Rasterize pages for visual inspection
|
|
6
|
+
|
|
7
|
+
Render every representative page (cover, dense text, wide table, multi-page break, chart/diagram, final page) to PNG at `150 DPI` for layout review and `300 DPI` for fine print typography and hairlines:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Poppler: rasterize all pages to PNG
|
|
11
|
+
pdftoppm -png -r 150 output.pdf qa-pages/page
|
|
12
|
+
pdftoppm -png -r 300 -f 1 -l 2 output.pdf qa-pages/print-check
|
|
13
|
+
|
|
14
|
+
# MuPDF alternative (fast, cross-platform)
|
|
15
|
+
mutool draw -r 150 -o qa-pages/page-%d.png output.pdf
|
|
16
|
+
|
|
17
|
+
# Inspect embedded raster images and resolution
|
|
18
|
+
pdfimages -list output.pdf
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Check every rasterized page for orphaned headings, broken table headers across page splits, clipped margins/bleed, ink bleed onto dark areas, and unexpected font fallback.
|
|
22
|
+
|
|
23
|
+
## Reading order, fonts, and PDF/UA / PDF/A validation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Verify selectable text and logical reading order (catch garbled multi-column extraction)
|
|
27
|
+
pdftotext output.pdf - | head -n 80
|
|
28
|
+
|
|
29
|
+
# Verify page geometry, title, and PDF tagging metadata
|
|
30
|
+
pdfinfo output.pdf
|
|
31
|
+
pdfinfo -struct output.pdf | head -n 60
|
|
32
|
+
|
|
33
|
+
# Verify every typeface is embedded (never unembedded system substitution)
|
|
34
|
+
pdffonts output.pdf
|
|
35
|
+
|
|
36
|
+
# Validate PDF/A archival or PDF/UA accessibility compliance when veraPDF is installed
|
|
37
|
+
verapdf --flavour 2b output.pdf
|
|
38
|
+
verapdf --flavour ua1 output.pdf
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- `pdftotext` returning empty text or scrambled column order is a `P0`/`P1` defect (rasterized text or broken reading order).
|
|
42
|
+
- `pdffonts` showing `emb: no` for non-standard fonts means target viewers may substitute metrics and break pagination.
|
|
43
|
+
|
|
44
|
+
## Slide decks (Slidev / Marp / PptxGenJS)
|
|
45
|
+
|
|
46
|
+
Export slides to PNG/PDF in the actual presentation aspect ratio (`16:9` default, or `4:3` when specified):
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Slidev slide PNG/PDF export
|
|
50
|
+
npx slidev export --format png --output qa-slides/
|
|
51
|
+
npx slidev export --format pdf --output deck.pdf
|
|
52
|
+
|
|
53
|
+
# Marp CLI export
|
|
54
|
+
npx @marp-team/marp-cli slides.md --images png -o qa-slides/slide.png
|
|
55
|
+
npx @marp-team/marp-cli slides.md --pdf -o deck.pdf
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Inspect exported slides at thumbnail scale and full-room viewing distance:
|
|
59
|
+
|
|
60
|
+
- **Projector contrast:** low-contrast muted gray text (`< 4.5:1`) and thin 1px hairlines wash out on lit conference projectors; test high-contrast legibility.
|
|
61
|
+
- **Density & overflow:** verify zero clipped bullets, overlapping footers/page numbers, or unreadable tiny code/chart labels (`≥ 18–24 pt` equivalent body text on slides).
|
|
62
|
+
- **Color & monochrome print:** test grayscale/print preview for documents expected to be printed on office laser printers.
|
|
63
|
+
|
|
64
|
+
## Evidence checklist
|
|
65
|
+
|
|
66
|
+
- [ ] compiled PDF/slide artifact rasterized at `150–300 DPI` and visually inspected (`rendered`);
|
|
67
|
+
- [ ] `pdftotext` reading order and selectable text verified (`rendered`);
|
|
68
|
+
- [ ] `pdffonts` confirms all custom fonts embedded (`static`/`rendered`);
|
|
69
|
+
- [ ] `pdfinfo` / `verapdf` PDF/UA or PDF/A check run where in scope, or labeled `not-checked`;
|
|
70
|
+
- [ ] page breaks, running headers/footers, bleed/safe margins, and grayscale/projector contrast checked.
|