create-huenei-template 0.2.16 → 0.2.18
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/dist/config/templates.js +7 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +49 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +98 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +39 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +151 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +148 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +135 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +128 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +160 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +172 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +211 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +118 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +156 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +269 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +139 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +192 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +268 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +203 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +287 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +299 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +48 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +94 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +93 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +103 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/hooks.json +23 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/mcp.json +17 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/anti-generic-ui.mdc +39 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +190 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +87 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/form-patterns.mdc +74 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/mock-data.mdc +61 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +47 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +40 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/routing-patterns.mdc +81 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/settings.json +13 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/adapt/SKILL.md +199 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +175 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/audit/SKILL.md +148 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/bolder/SKILL.md +117 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/clarify/SKILL.md +183 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/colorize/SKILL.md +143 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/critique/SKILL.md +225 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/cognitive-load.md +106 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/heuristics-scoring.md +234 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/personas.md +178 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/daisyui/SKILL.md +1374 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +304 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/distill/SKILL.md +122 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/SKILL.md +365 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/color-and-contrast.md +105 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/craft.md +70 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/extract.md +70 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/interaction-design.md +195 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/motion-design.md +99 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/responsive-design.md +114 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/spatial-design.md +100 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/typography.md +142 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/ux-writing.md +107 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/scripts/cleanup-deprecated.mjs +214 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/layout/SKILL.md +125 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/mock-data-patterns/SKILL.md +175 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/optimize/SKILL.md +266 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +142 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/polish/SKILL.md +224 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/quieter/SKILL.md +103 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/shape/SKILL.md +96 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/SKILL.md +504 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/typeset/SKILL.md +116 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/vitest/SKILL.md +493 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/AGENTS.md +97 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/SKILL.md +127 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/dist/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/dist/templates/frontend/hub-pre-sales/.husky/pre-commit +1 -0
- package/dist/templates/frontend/hub-pre-sales/.impeccable.md +45 -0
- package/dist/templates/frontend/hub-pre-sales/.prettierrc +6 -0
- package/dist/templates/frontend/hub-pre-sales/.vscode/extensions.json +7 -0
- package/dist/templates/frontend/hub-pre-sales/.vscode/settings.json +31 -0
- package/dist/templates/frontend/hub-pre-sales/AGENTS.md +37 -0
- package/dist/templates/frontend/hub-pre-sales/README.md +108 -0
- package/dist/templates/frontend/hub-pre-sales/components.json +22 -0
- package/dist/templates/frontend/hub-pre-sales/eslint.config.js +41 -0
- package/dist/templates/frontend/hub-pre-sales/index.html +22 -0
- package/dist/templates/frontend/hub-pre-sales/package.json +82 -0
- package/dist/templates/frontend/hub-pre-sales/pnpm-workspace.yaml +5 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/layout/navbar.test.tsx +54 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/avatar.test.tsx +74 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/badge.test.tsx +55 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/button.test.tsx +121 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/card.test.tsx +144 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/dialog.test.tsx +121 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/form.test.tsx +165 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/input.test.tsx +52 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/label.test.tsx +40 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/password-input.test.tsx +59 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/separator.test.tsx +40 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/table.test.tsx +254 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/tabs.test.tsx +82 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/components/ui/textarea.test.tsx +47 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/helpers/render.tsx +90 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/lib/queryClient.test.ts +24 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/lib/utils.test.ts +43 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/routes/index.test.tsx +64 -0
- package/dist/templates/frontend/hub-pre-sales/src/__tests__/routes/root.test.tsx +78 -0
- package/dist/templates/frontend/hub-pre-sales/src/assets/react.svg +1 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/layout/navbar.tsx +25 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/avatar.tsx +42 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/badge.tsx +37 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/breadcrumb.tsx +106 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/button.tsx +58 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/card.tsx +72 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/dialog.tsx +122 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/form.tsx +165 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/input.tsx +22 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/label.tsx +24 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/password-input.tsx +41 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/separator.tsx +28 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/table.tsx +229 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/tabs.tsx +62 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/textarea.tsx +21 -0
- package/dist/templates/frontend/hub-pre-sales/src/components/ui/theme-toggle.tsx +35 -0
- package/dist/templates/frontend/hub-pre-sales/src/hooks/useLocalStorage.ts +32 -0
- package/dist/templates/frontend/hub-pre-sales/src/hooks/useTheme.ts +73 -0
- package/dist/templates/frontend/hub-pre-sales/src/index.css +282 -0
- package/dist/templates/frontend/hub-pre-sales/src/lib/queryClient.ts +11 -0
- package/dist/templates/frontend/hub-pre-sales/src/lib/utils.ts +6 -0
- package/dist/templates/frontend/hub-pre-sales/src/main.tsx +33 -0
- package/dist/templates/frontend/hub-pre-sales/src/router.tsx +13 -0
- package/dist/templates/frontend/hub-pre-sales/src/routes/__root.tsx +48 -0
- package/dist/templates/frontend/hub-pre-sales/src/routes/index.tsx +31 -0
- package/dist/templates/frontend/hub-pre-sales/src/test/setup.ts +61 -0
- package/dist/templates/frontend/hub-pre-sales/tsconfig.app.json +34 -0
- package/dist/templates/frontend/hub-pre-sales/tsconfig.json +10 -0
- package/dist/templates/frontend/hub-pre-sales/tsconfig.node.json +26 -0
- package/dist/templates/frontend/hub-pre-sales/vite.config.ts +27 -0
- package/dist/templates/frontend/hub-pre-sales/vitest.config.ts +48 -0
- package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +92 -77
- package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
- package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +87 -80
- package/dist/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -49
- package/dist/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +73 -0
- package/dist/templates/frontend/pre-sales/.cursor/commands/new-component.md +192 -232
- package/dist/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +135 -134
- package/dist/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +58 -0
- package/dist/templates/frontend/pre-sales/.cursor/context/pre-sales.md +2 -0
- package/dist/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +24 -1
- package/dist/templates/frontend/pre-sales/.cursor/hooks.json +23 -26
- package/dist/templates/frontend/pre-sales/.cursor/mcp.json +1 -5
- package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -206
- package/dist/templates/frontend/pre-sales/.cursor/rules/component-patterns.mdc +4 -0
- package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
- package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -60
- package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -42
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -0
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -0
- package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -0
- package/dist/templates/frontend/pre-sales/.impeccable.md +26 -0
- package/dist/templates/frontend/pre-sales/index.html +11 -2
- package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/navbar.test.tsx +0 -1
- package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -68
- package/dist/templates/frontend/pre-sales/src/__tests__/hooks/useAuth.test.tsx +2 -1
- package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -58
- package/dist/templates/frontend/pre-sales/src/__tests__/routes/index.test.tsx +8 -43
- package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -75
- package/dist/templates/frontend/pre-sales/src/components/layout/sidebar.tsx +42 -30
- package/dist/templates/frontend/pre-sales/src/components/providers/auth-provider.tsx +60 -0
- package/dist/templates/frontend/pre-sales/src/components/ui/button.tsx +1 -1
- package/dist/templates/frontend/pre-sales/src/components/ui/card.tsx +1 -1
- package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -182
- package/dist/templates/frontend/pre-sales/src/components/ui/input.tsx +2 -0
- package/dist/templates/frontend/pre-sales/src/components/ui/textarea.tsx +2 -0
- package/dist/templates/frontend/pre-sales/src/components/ui/theme-toggle.tsx +35 -0
- package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -255
- package/dist/templates/frontend/pre-sales/src/hooks/useAuth.ts +13 -0
- package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -0
- package/dist/templates/frontend/pre-sales/src/index.css +282 -134
- package/dist/templates/frontend/pre-sales/src/main.tsx +3 -2
- package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -54
- package/dist/templates/frontend/pre-sales/src/routes/_authenticated/app.tsx +20 -0
- package/dist/templates/frontend/pre-sales/src/routes/_authenticated.tsx +5 -4
- package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -163
- package/dist/templates/frontend/pre-sales/src/routes/index.tsx +53 -198
- package/dist/templates/frontend/pre-sales/src/test/utils.tsx +2 -1
- package/dist/templates/frontend/pre-sales/src/vite-env.d.ts +11 -0
- package/package.json +1 -1
- package/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +49 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +98 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +39 -0
- package/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +45 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +151 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +148 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +135 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +128 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +160 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +172 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +211 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +118 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +156 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +269 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +139 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +192 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +268 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +203 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +287 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +299 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +48 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +94 -0
- package/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +93 -0
- package/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +103 -0
- package/templates/frontend/hub-pre-sales/.cursor/hooks.json +23 -0
- package/templates/frontend/hub-pre-sales/.cursor/mcp.json +17 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/anti-generic-ui.mdc +39 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +190 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +87 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/form-patterns.mdc +74 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/mock-data.mdc +61 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +47 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +40 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/routing-patterns.mdc +81 -0
- package/templates/frontend/hub-pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -0
- package/templates/frontend/hub-pre-sales/.cursor/settings.json +13 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/adapt/SKILL.md +199 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +175 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/audit/SKILL.md +148 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/bolder/SKILL.md +117 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/clarify/SKILL.md +183 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/colorize/SKILL.md +143 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/critique/SKILL.md +225 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/cognitive-load.md +106 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/heuristics-scoring.md +234 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/critique/reference/personas.md +178 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/daisyui/SKILL.md +1374 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +304 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/distill/SKILL.md +122 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/SKILL.md +365 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/color-and-contrast.md +105 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/craft.md +70 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/extract.md +70 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/interaction-design.md +195 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/motion-design.md +99 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/responsive-design.md +114 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/spatial-design.md +100 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/typography.md +142 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/reference/ux-writing.md +107 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/impeccable/scripts/cleanup-deprecated.mjs +214 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/layout/SKILL.md +125 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/mock-data-patterns/SKILL.md +175 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/optimize/SKILL.md +266 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +142 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/polish/SKILL.md +224 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/quieter/SKILL.md +103 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/AGENTS.md +97 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/SKILL.md +116 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-devtools-performance.md +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-formprovider-memo.md +78 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/adv-testing-wrapper.md +63 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-complete-default-objects.md +66 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-separate-crud-operations.md +76 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-use-field-id-as-key.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/array-virtualization-formprovider.md +64 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-avoid-double-registration.md +46 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-controller-field-props.md +56 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-local-state-combination.md +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +62 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +64 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-async-default-values.md +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-default-values.md +57 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-revalidate-mode.md +48 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-should-unregister.md +62 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-useeffect-dependency.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formcfg-validation-mode.md +51 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-destructure-formstate.md +48 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +49 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/formstate-useformstate-isolation.md +62 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-mui-controller-pattern.md +59 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-shadcn-form-import.md +64 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-shadcn-select-wiring.md +64 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/integ-value-transform.md +59 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-avoid-watch-in-render.md +48 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-deep-subscription.md +62 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-useformcontext-sparingly.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-default-value.md +50 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-over-watch.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/sub-watch-specific-fields.md +54 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-delay-error.md +52 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-dynamic-schema-factory.md +57 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-error-message-strategy.md +65 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-inline-vs-resolver.md +63 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-native-validation.md +60 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form/references/valid-resolver-caching.md +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/SKILL.md +412 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/accessibility.md +359 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/error-handling.md +255 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/links-to-official-docs.md +197 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/performance-optimization.md +355 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/rhf-api-reference.md +420 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/shadcn-integration.md +390 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/top-errors.md +381 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/references/zod-schemas-guide.md +396 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/rules/react-hook-form-zod.md +138 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/scripts/check-versions.sh +51 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/advanced-form.tsx +427 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/async-validation.tsx +402 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/basic-form.tsx +285 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/custom-error-display.tsx +303 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/dynamic-fields.tsx +308 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/multi-step-form.tsx +367 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/package.json +35 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/server-validation.ts +313 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/react-hook-form-zod/templates/shadcn-form.tsx +351 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/SKILL.md +412 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/aspect-ratio.md +513 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/lazy-loading.md +397 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/modern-formats.md +526 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/picture-element.md +593 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/references/srcset-sizes.md +295 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/rules/responsive-images.md +418 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/responsive-images/templates/image-component.tsx +231 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/SKILL.md +487 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/agents/seo-generator.md +290 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/canonical-urls.md +429 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/json-ld.md +599 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/meta-description.md +426 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/open-graph.md +443 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/title-patterns.md +333 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/references/twitter-cards.md +423 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/rules/seo-meta.md +157 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/faq.json +46 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/local-business.json +58 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/json-ld-schemas/service.json +41 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/seo-meta/templates/meta-component.tsx +275 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/SKILL.md +1677 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/learn.md +145 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/official-ui-reference.md +1725 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/reference.md +586 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shadcn-ui/references/ui-reference.md +1578 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/shape/SKILL.md +96 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/SKILL.md +508 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/button-patterns.md +234 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/card-patterns.md +533 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/dark-mode-patterns.md +309 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/form-patterns.md +403 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/layout-patterns.md +542 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/navigation-patterns.md +634 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/references/typography-patterns.md +338 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/rules/tailwind-patterns.md +371 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/contact-form.tsx +265 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/feature-grid.tsx +141 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/footer.tsx +258 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-patterns/templates/components/hero-section.tsx +105 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/SKILL.md +665 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/commands/setup.md +200 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/architecture.md +206 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/common-gotchas.md +469 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/dark-mode.md +239 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/references/migration-guide.md +313 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +118 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/components.json +20 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/index.css +140 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +92 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +31 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/utils.ts +6 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwind-v4-shadcn/templates/vite.config.ts +17 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-animations/SKILL.md +432 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-performance/SKILL.md +374 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/SKILL.md +1058 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/assets/example-template.txt +14 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/best-practices.md +304 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/common-patterns.md +271 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/example-reference.md +26 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/testing.md +282 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/top-errors.md +332 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/typescript-patterns.md +291 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/rules/tanstack-query.md +126 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/scripts/example-script.sh +15 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/error-boundary.tsx +243 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/package.json +31 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/provider-setup.tsx +50 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/query-client-config.ts +72 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/SKILL.md +663 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/references/common-errors.md +77 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/rules/tanstack-router.md +125 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/package.json +26 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/route-examples.tsx +126 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-router/templates/vite.config.ts +16 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/REVIEW_REPORT.md +299 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/SKILL.md +781 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-start/planning/stability-tracker.md +49 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/SKILL.md +573 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/cloudflare-d1-examples.md +131 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/common-errors.md +208 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/performance-virtualization.md +106 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/query-integration.md +195 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/references/server-side-patterns.md +357 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/rules/tanstack-table.md +151 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/basic-client-table.tsx +101 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/column-configuration.tsx +177 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/d1-database-example.tsx +336 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/package.json +25 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/server-paginated-table.tsx +218 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/shadcn-styled-table.tsx +123 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/tanstack-table/templates/virtualized-large-dataset.tsx +164 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/SKILL.md +504 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/rules/testing-library-patterns.md +97 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/templates/msw-handlers.ts +117 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-library/templates/setup.ts +57 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/.claude-plugin/plugin.json +13 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/SKILL.md +400 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/coverage.md +458 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/create-tests.md +362 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/commands/run-tests.md +336 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/references/validation-rules.md +222 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/templates/test-agent.md +132 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/testing-patterns/templates/test-spec.yaml +69 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/typeset/SKILL.md +116 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/vitest/.claude-plugin/plugin.json +12 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/vitest/SKILL.md +493 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/vitest/rules/vitest-patterns.md +100 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/vitest/templates/test-utils.ts +86 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/vitest/templates/vitest.config.ts +39 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/web-design-guidelines/SKILL.md +39 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/AGENTS.md +97 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/SKILL.md +127 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-intersection.md +144 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-lazy-recursive.md +143 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-pipe.md +113 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-preprocess.md +142 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/compose-shared-schemas.md +137 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-avoid-throwing-in-refine.md +127 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-custom-messages.md +118 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-i18n.md +145 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-path-for-nested.md +130 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/error-use-flatten.md +131 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-discriminated-unions.md +138 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-extend-for-composition.md +147 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-optional-vs-nullable.md +117 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-partial-for-updates.md +123 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-pick-omit.md +146 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-strict-vs-strip.md +109 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-async-for-async-refinements.md +118 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-avoid-double-validation.md +129 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-handle-all-issues.md +125 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-never-trust-json.md +113 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-use-safeparse.md +102 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/parse-validate-early.md +120 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-arrays.md +153 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-avoid-dynamic-creation.md +139 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-cache-schemas.md +138 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-lazy-loading.md +135 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/perf-zod-mini.md +117 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-add-path.md +141 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-catch.md +143 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-defaults.md +131 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-transform-coerce.md +105 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/refine-vs-superrefine.md +152 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-avoid-optional-abuse.md +93 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-coercion-for-form-data.md +88 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-string-validations.md +90 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-enums.md +107 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-primitives-correctly.md +61 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/schema-use-unknown-not-any.md +88 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-branded-types.md +102 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-enable-strict-mode.md +130 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-export-schemas-and-types.md +116 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-input-vs-output.md +116 -0
- package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/type-use-z-infer.md +110 -0
- package/templates/frontend/hub-pre-sales/.husky/pre-commit +1 -0
- package/templates/frontend/hub-pre-sales/.impeccable.md +45 -0
- package/templates/frontend/hub-pre-sales/.prettierrc +6 -0
- package/templates/frontend/hub-pre-sales/.vscode/extensions.json +7 -0
- package/templates/frontend/hub-pre-sales/.vscode/settings.json +31 -0
- package/templates/frontend/hub-pre-sales/AGENTS.md +37 -0
- package/templates/frontend/hub-pre-sales/README.md +108 -0
- package/templates/frontend/hub-pre-sales/components.json +22 -0
- package/templates/frontend/hub-pre-sales/eslint.config.js +41 -0
- package/templates/frontend/hub-pre-sales/index.html +22 -0
- package/templates/frontend/hub-pre-sales/package.json +82 -0
- package/templates/frontend/hub-pre-sales/pnpm-lock.yaml +6575 -0
- package/templates/frontend/hub-pre-sales/pnpm-workspace.yaml +5 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/layout/navbar.test.tsx +54 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/avatar.test.tsx +74 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/badge.test.tsx +55 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/button.test.tsx +121 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/card.test.tsx +144 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/dialog.test.tsx +121 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/form.test.tsx +165 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/input.test.tsx +52 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/label.test.tsx +40 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/password-input.test.tsx +59 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/separator.test.tsx +40 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/table.test.tsx +254 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/tabs.test.tsx +82 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/components/ui/textarea.test.tsx +47 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/helpers/render.tsx +90 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/lib/queryClient.test.ts +24 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/lib/utils.test.ts +43 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/routes/index.test.tsx +64 -0
- package/templates/frontend/hub-pre-sales/src/__tests__/routes/root.test.tsx +78 -0
- package/templates/frontend/hub-pre-sales/src/assets/react.svg +1 -0
- package/templates/frontend/hub-pre-sales/src/components/layout/navbar.tsx +25 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/avatar.tsx +42 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/badge.tsx +37 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/breadcrumb.tsx +106 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/button.tsx +58 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/card.tsx +72 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/dialog.tsx +122 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/form.tsx +165 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/input.tsx +22 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/label.tsx +24 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/password-input.tsx +41 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/separator.tsx +28 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/table.tsx +229 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/tabs.tsx +62 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/textarea.tsx +21 -0
- package/templates/frontend/hub-pre-sales/src/components/ui/theme-toggle.tsx +35 -0
- package/templates/frontend/hub-pre-sales/src/hooks/useLocalStorage.ts +32 -0
- package/templates/frontend/hub-pre-sales/src/hooks/useTheme.ts +73 -0
- package/templates/frontend/hub-pre-sales/src/index.css +282 -0
- package/templates/frontend/hub-pre-sales/src/lib/queryClient.ts +11 -0
- package/templates/frontend/hub-pre-sales/src/lib/utils.ts +6 -0
- package/templates/frontend/hub-pre-sales/src/main.tsx +33 -0
- package/templates/frontend/hub-pre-sales/src/router.tsx +13 -0
- package/templates/frontend/hub-pre-sales/src/routes/__root.tsx +48 -0
- package/templates/frontend/hub-pre-sales/src/routes/index.tsx +31 -0
- package/templates/frontend/hub-pre-sales/src/test/setup.ts +61 -0
- package/templates/frontend/hub-pre-sales/tsconfig.app.json +34 -0
- package/templates/frontend/hub-pre-sales/tsconfig.json +10 -0
- package/templates/frontend/hub-pre-sales/tsconfig.node.json +26 -0
- package/templates/frontend/hub-pre-sales/vite.config.ts +27 -0
- package/templates/frontend/hub-pre-sales/vitest.config.ts +48 -0
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +92 -77
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
- package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +87 -80
- package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -49
- package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +73 -0
- package/templates/frontend/pre-sales/.cursor/commands/new-component.md +192 -232
- package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +135 -134
- package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +58 -0
- package/templates/frontend/pre-sales/.cursor/context/pre-sales.md +2 -0
- package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +24 -1
- package/templates/frontend/pre-sales/.cursor/hooks.json +23 -26
- package/templates/frontend/pre-sales/.cursor/mcp.json +1 -5
- package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -206
- package/templates/frontend/pre-sales/.cursor/rules/component-patterns.mdc +4 -0
- package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
- package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
- package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -60
- package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -42
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -0
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -0
- package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -0
- package/templates/frontend/pre-sales/.impeccable.md +26 -0
- package/templates/frontend/pre-sales/index.html +11 -2
- package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -0
- package/templates/frontend/pre-sales/skills-lock.json +10 -0
- package/templates/frontend/pre-sales/src/__tests__/components/layout/navbar.test.tsx +0 -1
- package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -68
- package/templates/frontend/pre-sales/src/__tests__/hooks/useAuth.test.tsx +2 -1
- package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
- package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
- package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -58
- package/templates/frontend/pre-sales/src/__tests__/routes/index.test.tsx +8 -43
- package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -75
- package/templates/frontend/pre-sales/src/components/layout/sidebar.tsx +42 -30
- package/templates/frontend/pre-sales/src/components/providers/auth-provider.tsx +60 -0
- package/templates/frontend/pre-sales/src/components/ui/button.tsx +1 -1
- package/templates/frontend/pre-sales/src/components/ui/card.tsx +1 -1
- package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
- package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -182
- package/templates/frontend/pre-sales/src/components/ui/input.tsx +2 -0
- package/templates/frontend/pre-sales/src/components/ui/textarea.tsx +2 -0
- package/templates/frontend/pre-sales/src/components/ui/theme-toggle.tsx +35 -0
- package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -255
- package/templates/frontend/pre-sales/src/hooks/useAuth.ts +13 -0
- package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -0
- package/templates/frontend/pre-sales/src/index.css +282 -134
- package/templates/frontend/pre-sales/src/main.tsx +3 -2
- package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -54
- package/templates/frontend/pre-sales/src/routes/_authenticated/app.tsx +20 -0
- package/templates/frontend/pre-sales/src/routes/_authenticated.tsx +5 -4
- package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -163
- package/templates/frontend/pre-sales/src/routes/index.tsx +53 -198
- package/templates/frontend/pre-sales/src/test/utils.tsx +2 -1
- package/templates/frontend/pre-sales/src/vite-env.d.ts +11 -0
package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-partial-for-updates.md
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use partial() for Update Schemas
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Creating separate update schemas duplicates definitions; partial() derives update schema from base, staying in sync
|
|
5
|
+
tags: object, partial, update, patch
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use partial() for Update Schemas
|
|
9
|
+
|
|
10
|
+
When handling PATCH/PUT updates, you need a schema where all fields are optional. Instead of duplicating the schema with optional fields, use `.partial()` to derive it from your base schema. This keeps both schemas in sync automatically.
|
|
11
|
+
|
|
12
|
+
**Incorrect (duplicating schemas):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
// Base schema
|
|
18
|
+
const userSchema = z.object({
|
|
19
|
+
name: z.string().min(1),
|
|
20
|
+
email: z.string().email(),
|
|
21
|
+
age: z.number().int().positive(),
|
|
22
|
+
role: z.enum(['admin', 'user']),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
// Manually duplicated for updates - will drift!
|
|
26
|
+
const updateUserSchema = z.object({
|
|
27
|
+
name: z.string().min(1).optional(),
|
|
28
|
+
email: z.string().email().optional(),
|
|
29
|
+
age: z.number().int().positive().optional(),
|
|
30
|
+
// Forgot to add role - schemas out of sync!
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
// Later, you add a field to userSchema but forget updateUserSchema
|
|
34
|
+
// Now updates silently ignore the new field
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Correct (using partial):**
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { z } from 'zod'
|
|
41
|
+
|
|
42
|
+
// Base schema - single source of truth
|
|
43
|
+
const userSchema = z.object({
|
|
44
|
+
name: z.string().min(1),
|
|
45
|
+
email: z.string().email(),
|
|
46
|
+
age: z.number().int().positive(),
|
|
47
|
+
role: z.enum(['admin', 'user']),
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
// All fields optional for updates
|
|
51
|
+
const updateUserSchema = userSchema.partial()
|
|
52
|
+
|
|
53
|
+
type User = z.infer<typeof userSchema>
|
|
54
|
+
// { name: string; email: string; age: number; role: 'admin' | 'user' }
|
|
55
|
+
|
|
56
|
+
type UpdateUser = z.infer<typeof updateUserSchema>
|
|
57
|
+
// { name?: string; email?: string; age?: number; role?: 'admin' | 'user' }
|
|
58
|
+
|
|
59
|
+
// Validate partial updates
|
|
60
|
+
updateUserSchema.parse({ email: 'new@example.com' }) // Valid
|
|
61
|
+
updateUserSchema.parse({}) // Valid - all fields optional
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Partial specific fields only:**
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
// Only name and email are optional for updates
|
|
68
|
+
const updateUserSchema = userSchema.partial({
|
|
69
|
+
name: true,
|
|
70
|
+
email: true,
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
type UpdateUser = z.infer<typeof updateUserSchema>
|
|
74
|
+
// { name?: string; email?: string; age: number; role: 'admin' | 'user' }
|
|
75
|
+
// age and role still required
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Deep partial for nested objects:**
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
const addressSchema = z.object({
|
|
82
|
+
street: z.string(),
|
|
83
|
+
city: z.string(),
|
|
84
|
+
country: z.string(),
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
const userSchema = z.object({
|
|
88
|
+
name: z.string(),
|
|
89
|
+
address: addressSchema,
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
// .partial() only makes top-level fields optional
|
|
93
|
+
const shallowPartial = userSchema.partial()
|
|
94
|
+
// { name?: string; address?: { street: string; city: string; country: string } }
|
|
95
|
+
// If address is provided, all its fields are still required!
|
|
96
|
+
|
|
97
|
+
// Use deepPartial for nested optionality
|
|
98
|
+
const deepPartialSchema = userSchema.deepPartial()
|
|
99
|
+
// { name?: string; address?: { street?: string; city?: string; country?: string } }
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Combining with required() for create vs update:**
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
const baseSchema = z.object({
|
|
106
|
+
id: z.string().uuid(),
|
|
107
|
+
name: z.string(),
|
|
108
|
+
email: z.string().email(),
|
|
109
|
+
createdAt: z.date(),
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
// Create: id and createdAt are generated, rest required
|
|
113
|
+
const createSchema = baseSchema.omit({ id: true, createdAt: true })
|
|
114
|
+
|
|
115
|
+
// Update: all user-editable fields optional
|
|
116
|
+
const updateSchema = baseSchema.partial().omit({ id: true, createdAt: true })
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**When NOT to use this pattern:**
|
|
120
|
+
- When update logic differs significantly from create (different validations)
|
|
121
|
+
- When using GraphQL with explicit input types
|
|
122
|
+
|
|
123
|
+
Reference: [Zod API - partial](https://zod.dev/api#partial)
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use pick() and omit() for Schema Variants
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Copying fields between schemas creates duplication; pick/omit derive variants that stay in sync with base schema
|
|
5
|
+
tags: object, pick, omit, variants
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use pick() and omit() for Schema Variants
|
|
9
|
+
|
|
10
|
+
When you need different views of the same data (public vs private, create vs response), use `.pick()` and `.omit()` instead of duplicating fields. This ensures derived schemas stay in sync with the base schema.
|
|
11
|
+
|
|
12
|
+
**Incorrect (duplicating for variants):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
// Full user schema
|
|
18
|
+
const userSchema = z.object({
|
|
19
|
+
id: z.string().uuid(),
|
|
20
|
+
email: z.string().email(),
|
|
21
|
+
passwordHash: z.string(),
|
|
22
|
+
name: z.string(),
|
|
23
|
+
createdAt: z.date(),
|
|
24
|
+
isAdmin: z.boolean(),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// Public view - manually duplicated
|
|
28
|
+
const publicUserSchema = z.object({
|
|
29
|
+
id: z.string().uuid(),
|
|
30
|
+
name: z.string(),
|
|
31
|
+
// Forgot email - now users can't see it
|
|
32
|
+
// Added avatar field - doesn't exist in base schema
|
|
33
|
+
avatar: z.string().optional(),
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
// Create input - manually duplicated
|
|
37
|
+
const createUserSchema = z.object({
|
|
38
|
+
email: z.string().email(),
|
|
39
|
+
password: z.string().min(8), // Different from passwordHash
|
|
40
|
+
name: z.string(),
|
|
41
|
+
// Missing isAdmin - can't set on create? Intentional?
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Correct (using pick and omit):**
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { z } from 'zod'
|
|
49
|
+
|
|
50
|
+
// Full user schema - single source of truth
|
|
51
|
+
const userSchema = z.object({
|
|
52
|
+
id: z.string().uuid(),
|
|
53
|
+
email: z.string().email(),
|
|
54
|
+
passwordHash: z.string(),
|
|
55
|
+
name: z.string(),
|
|
56
|
+
createdAt: z.date(),
|
|
57
|
+
isAdmin: z.boolean(),
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
// Public view - explicitly pick public fields
|
|
61
|
+
const publicUserSchema = userSchema.pick({
|
|
62
|
+
id: true,
|
|
63
|
+
email: true,
|
|
64
|
+
name: true,
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
type PublicUser = z.infer<typeof publicUserSchema>
|
|
68
|
+
// { id: string; email: string; name: string }
|
|
69
|
+
|
|
70
|
+
// API response - omit sensitive fields
|
|
71
|
+
const userResponseSchema = userSchema.omit({
|
|
72
|
+
passwordHash: true,
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
type UserResponse = z.infer<typeof userResponseSchema>
|
|
76
|
+
// { id: string; email: string; name: string; createdAt: Date; isAdmin: boolean }
|
|
77
|
+
|
|
78
|
+
// Create input - omit generated fields
|
|
79
|
+
const createUserInputSchema = userSchema
|
|
80
|
+
.omit({ id: true, createdAt: true, passwordHash: true })
|
|
81
|
+
.extend({
|
|
82
|
+
password: z.string().min(8), // Add password (different from hash)
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
type CreateUserInput = z.infer<typeof createUserInputSchema>
|
|
86
|
+
// { email: string; name: string; isAdmin: boolean; password: string }
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Common patterns:**
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
// Database row → API response (hide internal fields)
|
|
93
|
+
const dbRowSchema = z.object({
|
|
94
|
+
id: z.number(),
|
|
95
|
+
public_id: z.string().uuid(),
|
|
96
|
+
email: z.string(),
|
|
97
|
+
password_hash: z.string(),
|
|
98
|
+
internal_notes: z.string(),
|
|
99
|
+
created_at: z.date(),
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
const apiResponseSchema = dbRowSchema.omit({
|
|
103
|
+
id: true, // Internal DB id
|
|
104
|
+
password_hash: true, // Sensitive
|
|
105
|
+
internal_notes: true, // Staff only
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
// Form data → Database insert (add generated fields)
|
|
109
|
+
const formSchema = z.object({
|
|
110
|
+
title: z.string(),
|
|
111
|
+
content: z.string(),
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
const dbInsertSchema = formSchema.extend({
|
|
115
|
+
id: z.string().uuid(),
|
|
116
|
+
authorId: z.string().uuid(),
|
|
117
|
+
createdAt: z.date(),
|
|
118
|
+
updatedAt: z.date(),
|
|
119
|
+
})
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Chaining operations:**
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
const baseSchema = z.object({
|
|
126
|
+
id: z.string(),
|
|
127
|
+
name: z.string(),
|
|
128
|
+
email: z.string(),
|
|
129
|
+
role: z.enum(['admin', 'user']),
|
|
130
|
+
secret: z.string(),
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
// Combine pick, omit, partial, extend
|
|
134
|
+
const updateSchema = baseSchema
|
|
135
|
+
.omit({ id: true, secret: true }) // Remove immutable/sensitive
|
|
136
|
+
.partial() // Make all optional for updates
|
|
137
|
+
.extend({
|
|
138
|
+
updatedAt: z.date().optional(), // Add update timestamp
|
|
139
|
+
})
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**When NOT to use this pattern:**
|
|
143
|
+
- When derived schemas need different validation rules (not just different fields)
|
|
144
|
+
- When the relationship between schemas is not subset/superset
|
|
145
|
+
|
|
146
|
+
Reference: [Zod API - pick/omit](https://zod.dev/api#pickomit)
|
package/templates/frontend/hub-pre-sales/.cursor/skills/zod/references/object-strict-vs-strip.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Choose strict() vs strip() for Unknown Keys
|
|
3
|
+
impact: MEDIUM-HIGH
|
|
4
|
+
impactDescription: Default passthrough mode leaks unexpected data; strict() catches schema mismatches, strip() silently removes extras
|
|
5
|
+
tags: object, strict, strip, passthrough
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Choose strict() vs strip() for Unknown Keys
|
|
9
|
+
|
|
10
|
+
By default, Zod objects use `.strip()` behavior, silently removing unrecognized keys. This can hide schema/data mismatches. Use `.strict()` to reject unknown keys (catching errors) or explicitly use `.strip()` to document the intention.
|
|
11
|
+
|
|
12
|
+
**Default behavior (strip - silent removal):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const userSchema = z.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const input = {
|
|
23
|
+
id: '123',
|
|
24
|
+
name: 'John',
|
|
25
|
+
role: 'admin', // Extra field
|
|
26
|
+
secretToken: 'abc123', // Another extra field
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const user = userSchema.parse(input)
|
|
30
|
+
// { id: '123', name: 'John' }
|
|
31
|
+
// Extra fields silently removed - was this intentional?
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Using strict() to catch schema mismatches:**
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { z } from 'zod'
|
|
38
|
+
|
|
39
|
+
const userSchema = z.object({
|
|
40
|
+
id: z.string(),
|
|
41
|
+
name: z.string(),
|
|
42
|
+
}).strict()
|
|
43
|
+
|
|
44
|
+
const input = {
|
|
45
|
+
id: '123',
|
|
46
|
+
name: 'John',
|
|
47
|
+
role: 'admin',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
userSchema.parse(input)
|
|
51
|
+
// ZodError: Unrecognized key(s) in object: 'role'
|
|
52
|
+
|
|
53
|
+
// This catches:
|
|
54
|
+
// - Client sending fields the server doesn't expect
|
|
55
|
+
// - Schema out of sync with actual data structure
|
|
56
|
+
// - Typos in field names
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**When to use each mode:**
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
// strict() - Catch unexpected data (API contracts)
|
|
63
|
+
const apiRequestSchema = z.object({
|
|
64
|
+
action: z.string(),
|
|
65
|
+
payload: z.unknown(),
|
|
66
|
+
}).strict() // Fail if client sends unknown fields
|
|
67
|
+
|
|
68
|
+
// strip() - Clean up data (explicit intention)
|
|
69
|
+
const dbInsertSchema = z.object({
|
|
70
|
+
name: z.string(),
|
|
71
|
+
email: z.string(),
|
|
72
|
+
}).strip() // Explicitly remove metadata before insert
|
|
73
|
+
|
|
74
|
+
// passthrough() - Keep everything (pass-through proxy)
|
|
75
|
+
const proxySchema = z.object({
|
|
76
|
+
id: z.string(),
|
|
77
|
+
}).passthrough() // Keep fields we don't validate
|
|
78
|
+
|
|
79
|
+
const input = { id: '123', extra: 'data' }
|
|
80
|
+
proxySchema.parse(input) // { id: '123', extra: 'data' }
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Choosing the right mode:**
|
|
84
|
+
|
|
85
|
+
| Mode | Behavior | Use When |
|
|
86
|
+
|------|----------|----------|
|
|
87
|
+
| `.strict()` | Reject unknown keys | API contracts, security-sensitive, debugging |
|
|
88
|
+
| `.strip()` (default) | Remove unknown keys | General validation, data cleaning |
|
|
89
|
+
| `.passthrough()` | Keep unknown keys | Proxying, partial validation |
|
|
90
|
+
|
|
91
|
+
**Handling specific unknown keys:**
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
const schema = z.object({
|
|
95
|
+
id: z.string(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
}).catchall(z.unknown()) // Allow any additional fields of any type
|
|
98
|
+
|
|
99
|
+
// Or restrict additional fields to specific type
|
|
100
|
+
const metadataSchema = z.object({
|
|
101
|
+
id: z.string(),
|
|
102
|
+
}).catchall(z.string()) // Only allow string extras
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**When NOT to use this pattern:**
|
|
106
|
+
- `.strict()`: When forwarding data to another system that may add fields
|
|
107
|
+
- `.passthrough()`: When you need to ensure only known fields are stored
|
|
108
|
+
|
|
109
|
+
Reference: [Zod API - Objects](https://zod.dev/api#objects)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Use parseAsync for Async Refinements
|
|
3
|
+
impact: CRITICAL
|
|
4
|
+
impactDescription: Using parse() with async refinements throws an error; async validation silently fails or crashes the application
|
|
5
|
+
tags: parse, async, parseAsync, refinement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Use parseAsync for Async Refinements
|
|
9
|
+
|
|
10
|
+
If your schema uses `refine()` or `superRefine()` with async validation (like database lookups), you must use `parseAsync()` or `safeParseAsync()`. Using synchronous `parse()` with async refinements throws an error.
|
|
11
|
+
|
|
12
|
+
**Incorrect (sync parse with async refinement):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const userSchema = z.object({
|
|
18
|
+
email: z.string().email(),
|
|
19
|
+
username: z.string().min(3),
|
|
20
|
+
}).refine(
|
|
21
|
+
async (data) => {
|
|
22
|
+
// Async database check
|
|
23
|
+
const exists = await db.users.findByEmail(data.email)
|
|
24
|
+
return !exists
|
|
25
|
+
},
|
|
26
|
+
{ message: 'Email already registered' }
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
// This throws an error!
|
|
30
|
+
const user = userSchema.parse(formData)
|
|
31
|
+
// Error: Async refinement encountered during synchronous parse operation.
|
|
32
|
+
// Use .parseAsync instead.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Correct (using parseAsync):**
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { z } from 'zod'
|
|
39
|
+
|
|
40
|
+
const userSchema = z.object({
|
|
41
|
+
email: z.string().email(),
|
|
42
|
+
username: z.string().min(3),
|
|
43
|
+
}).refine(
|
|
44
|
+
async (data) => {
|
|
45
|
+
const exists = await db.users.findByEmail(data.email)
|
|
46
|
+
return !exists
|
|
47
|
+
},
|
|
48
|
+
{ message: 'Email already registered' }
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
// Use parseAsync for async refinements
|
|
52
|
+
const user = await userSchema.parseAsync(formData)
|
|
53
|
+
|
|
54
|
+
// Or safeParseAsync for error handling
|
|
55
|
+
const result = await userSchema.safeParseAsync(formData)
|
|
56
|
+
if (!result.success) {
|
|
57
|
+
console.log(result.error.issues)
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Async transforms also require parseAsync:**
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
const enrichedUserSchema = z.object({
|
|
65
|
+
userId: z.string().uuid(),
|
|
66
|
+
}).transform(async (data) => {
|
|
67
|
+
// Async data enrichment
|
|
68
|
+
const user = await db.users.findById(data.userId)
|
|
69
|
+
return {
|
|
70
|
+
...data,
|
|
71
|
+
email: user.email,
|
|
72
|
+
name: user.name,
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// Must use parseAsync
|
|
77
|
+
const enrichedUser = await enrichedUserSchema.parseAsync({ userId: '123' })
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Pattern for API routes:**
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import { z } from 'zod'
|
|
84
|
+
import { NextRequest, NextResponse } from 'next/server'
|
|
85
|
+
|
|
86
|
+
const registerSchema = z.object({
|
|
87
|
+
email: z.string().email(),
|
|
88
|
+
password: z.string().min(8),
|
|
89
|
+
}).superRefine(async (data, ctx) => {
|
|
90
|
+
const existingUser = await db.users.findByEmail(data.email)
|
|
91
|
+
if (existingUser) {
|
|
92
|
+
ctx.addIssue({
|
|
93
|
+
code: z.ZodIssueCode.custom,
|
|
94
|
+
path: ['email'],
|
|
95
|
+
message: 'Email already registered',
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
export async function POST(req: NextRequest) {
|
|
101
|
+
const body = await req.json()
|
|
102
|
+
|
|
103
|
+
// Always use safeParseAsync with async schemas
|
|
104
|
+
const result = await registerSchema.safeParseAsync(body)
|
|
105
|
+
|
|
106
|
+
if (!result.success) {
|
|
107
|
+
return NextResponse.json({ errors: result.error.issues }, { status: 400 })
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Proceed with registration
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**When NOT to use this pattern:**
|
|
115
|
+
- Schemas with only synchronous validation (use parse/safeParse)
|
|
116
|
+
- When async validation can be moved outside Zod (validate, then check)
|
|
117
|
+
|
|
118
|
+
Reference: [Zod API - parseAsync](https://zod.dev/api#parseasync)
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Avoid Double Validation
|
|
3
|
+
impact: HIGH
|
|
4
|
+
impactDescription: Parsing the same data twice wastes CPU cycles; in hot paths this adds measurable latency
|
|
5
|
+
tags: parse, performance, optimization, architecture
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Avoid Double Validation
|
|
9
|
+
|
|
10
|
+
Once data is validated by Zod, trust the result. Re-validating the same data in multiple layers doubles CPU usage and adds latency. Pass the typed result through your application instead.
|
|
11
|
+
|
|
12
|
+
**Incorrect (validating at every layer):**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { z } from 'zod'
|
|
16
|
+
|
|
17
|
+
const userSchema = z.object({
|
|
18
|
+
id: z.string().uuid(),
|
|
19
|
+
email: z.string().email(),
|
|
20
|
+
name: z.string(),
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
// Controller validates
|
|
24
|
+
export async function POST(req: NextRequest) {
|
|
25
|
+
const body = await req.json()
|
|
26
|
+
const user = userSchema.parse(body) // First parse
|
|
27
|
+
return await userService.create(user)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Service validates again
|
|
31
|
+
const userService = {
|
|
32
|
+
async create(data: unknown) {
|
|
33
|
+
const user = userSchema.parse(data) // Second parse - redundant
|
|
34
|
+
return await userRepository.insert(user)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Repository validates again
|
|
39
|
+
const userRepository = {
|
|
40
|
+
async insert(data: unknown) {
|
|
41
|
+
const user = userSchema.parse(data) // Third parse - wasteful
|
|
42
|
+
return await db.users.create({ data: user })
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Correct (validate once, pass typed data):**
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import { z } from 'zod'
|
|
51
|
+
|
|
52
|
+
const userSchema = z.object({
|
|
53
|
+
id: z.string().uuid(),
|
|
54
|
+
email: z.string().email(),
|
|
55
|
+
name: z.string(),
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
type User = z.infer<typeof userSchema>
|
|
59
|
+
|
|
60
|
+
// Controller validates at boundary
|
|
61
|
+
export async function POST(req: NextRequest) {
|
|
62
|
+
const body = await req.json()
|
|
63
|
+
|
|
64
|
+
const result = userSchema.safeParse(body)
|
|
65
|
+
if (!result.success) {
|
|
66
|
+
return NextResponse.json({ errors: result.error.issues }, { status: 400 })
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Pass validated, typed data
|
|
70
|
+
return await userService.create(result.data)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Service receives typed data, no re-validation needed
|
|
74
|
+
const userService = {
|
|
75
|
+
async create(user: User) {
|
|
76
|
+
// user is guaranteed to match schema
|
|
77
|
+
return await userRepository.insert(user)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Repository receives typed data
|
|
82
|
+
const userRepository = {
|
|
83
|
+
async insert(user: User) {
|
|
84
|
+
return await db.users.create({ data: user })
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**When you might validate at multiple layers:**
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
// Different schemas for different layers
|
|
93
|
+
const apiUserSchema = z.object({
|
|
94
|
+
email: z.string().email(),
|
|
95
|
+
password: z.string().min(8), // Only in API layer
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
const dbUserSchema = z.object({
|
|
99
|
+
id: z.string().uuid(),
|
|
100
|
+
email: z.string().email(),
|
|
101
|
+
passwordHash: z.string(), // Transformed before storage
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
// API validates input format
|
|
105
|
+
export async function POST(req: NextRequest) {
|
|
106
|
+
const input = apiUserSchema.parse(await req.json())
|
|
107
|
+
const user = await userService.create(input)
|
|
108
|
+
return NextResponse.json(user)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Service transforms and validates for storage
|
|
112
|
+
const userService = {
|
|
113
|
+
async create(input: z.infer<typeof apiUserSchema>) {
|
|
114
|
+
const dbUser = dbUserSchema.parse({
|
|
115
|
+
id: crypto.randomUUID(),
|
|
116
|
+
email: input.email,
|
|
117
|
+
passwordHash: await hash(input.password),
|
|
118
|
+
})
|
|
119
|
+
return await userRepository.insert(dbUser)
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**When NOT to use this pattern:**
|
|
125
|
+
- When schemas differ between layers (API vs DB shape)
|
|
126
|
+
- When data crosses trust boundaries (external service response)
|
|
127
|
+
- During development when debugging data flow
|
|
128
|
+
|
|
129
|
+
Reference: [Zod Performance](https://zod.dev/v4#performance)
|