connore 0.1.1 → 0.2.1
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/README.md +13 -8
- package/bin/ctxkit.js +5 -5
- package/package.json +2 -1
- package/packs/base/planning/START.md +29 -28
- package/packs/base/planning/blueprint-template.md +46 -46
- package/packs/base/planning/plan-template.md +46 -45
- package/packs/base/rules/anti-patterns.md +19 -16
- package/packs/base/rules/code-style.md +19 -16
- package/packs/base/rules/dependency-policy.md +19 -16
- package/packs/base/rules/error-handling.md +19 -16
- package/packs/base/rules/security-audit.md +47 -0
- package/packs/base/rules/security-baseline.md +19 -16
- package/packs/base/templates/bug-report.md +19 -16
- package/packs/base/templates/feature-spec.md +19 -16
- package/packs/base/templates/handoff.md +19 -16
- package/packs/base/templates/project-brief.md +19 -16
- package/packs/base/workflow/code-review.md +19 -16
- package/packs/base/workflow/debugging.md +18 -14
- package/packs/base/workflow/git-and-commits.md +19 -16
- package/packs/base/workflow/idea-to-spec.md +19 -16
- package/packs/base/workflow/session-handoff.md +19 -16
- package/packs/base/workflow/spec-to-plan.md +19 -16
- package/packs/knowledge/backend/api/conventions.md +21 -0
- package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
- package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
- package/packs/knowledge/backend/database/schema.md +21 -0
- package/packs/knowledge/components/custom/ambient-background.md +26 -0
- package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
- package/packs/knowledge/components/custom/corner-frame.md +26 -0
- package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
- package/packs/knowledge/components/custom/cta-button.md +26 -0
- package/packs/knowledge/components/custom/cta-button.tsx +10 -0
- package/packs/knowledge/components/custom/page-transition.md +26 -0
- package/packs/knowledge/components/custom/page-transition.tsx +10 -0
- package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
- package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
- package/packs/knowledge/components/motion-effects/README.md +30 -0
- package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
- package/packs/knowledge/components/ui-primitives/README.md +22 -0
- package/packs/knowledge/components/ui-primitives/badge.md +26 -0
- package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
- package/packs/knowledge/components/ui-primitives/button.md +27 -0
- package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
- package/packs/knowledge/components/ui-primitives/card.md +26 -0
- package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
- package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
- package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
- package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
- package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
- package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
- package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
- package/packs/knowledge/components/ui-primitives/input.md +27 -0
- package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
- package/packs/knowledge/components/ui-primitives/label.md +26 -0
- package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
- package/packs/knowledge/components/ui-primitives/progress.md +26 -0
- package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
- package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
- package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
- package/packs/knowledge/components/ui-primitives/select.md +26 -0
- package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
- package/packs/knowledge/components/ui-primitives/separator.md +26 -0
- package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
- package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
- package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
- package/packs/knowledge/components/ui-primitives/switch.md +26 -0
- package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
- package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
- package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
- package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
- package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
- package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
- package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
- package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
- package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
- package/packs/knowledge/design/aesthetics/match.md +46 -0
- package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
- package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
- package/packs/knowledge/design/animations/motion.md +40 -0
- package/packs/knowledge/design/project-style.md +50 -0
- package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
- package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
- package/packs/knowledge/design/references/cta-centered.md +27 -0
- package/packs/knowledge/design/references/cta-centered.png +0 -0
- package/packs/knowledge/design/references/cta-split-media.md +27 -0
- package/packs/knowledge/design/references/cta-split-media.png +0 -0
- package/packs/knowledge/design/references/dashboard-overview.md +31 -0
- package/packs/knowledge/design/references/dashboard-overview.png +0 -0
- package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
- package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
- package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
- package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
- package/packs/knowledge/design/references/footer-four-column.md +27 -0
- package/packs/knowledge/design/references/footer-four-column.png +0 -0
- package/packs/knowledge/design/references/footer-two-column.md +27 -0
- package/packs/knowledge/design/references/footer-two-column.png +0 -0
- package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
- package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
- package/packs/knowledge/design/references/hero-split-media.md +27 -0
- package/packs/knowledge/design/references/hero-split-media.png +0 -0
- package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
- package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
- package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
- package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
- package/packs/knowledge/design/references/pricing-three-card.md +27 -0
- package/packs/knowledge/design/references/pricing-three-card.png +0 -0
- package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
- package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
- package/packs/knowledge/design/rules.md +35 -0
- package/packs/knowledge/design/token-structure.md +46 -0
- package/packs/knowledge/design/tokens.md +55 -0
- package/packs/knowledge/frontend/README.md +50 -0
- package/packs/knowledge/frontend/SOURCES.md +40 -0
- package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
- package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
- package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
- package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
- package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
- package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
- package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
- package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
- package/packs/knowledge/frontend/architecture/naming.md +43 -0
- package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
- package/packs/knowledge/frontend/architecture/routing.md +45 -0
- package/packs/knowledge/frontend/architecture/security.md +44 -0
- package/packs/knowledge/frontend/architecture/typescript.md +44 -0
- package/packs/knowledge/frontend/components/composition.md +45 -0
- package/packs/knowledge/frontend/components/data-display.md +47 -0
- package/packs/knowledge/frontend/components/library-choice.md +45 -0
- package/packs/knowledge/frontend/components/variants.md +44 -0
- package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
- package/packs/knowledge/frontend/forms/multi-step.md +43 -0
- package/packs/knowledge/frontend/forms/validation.md +47 -0
- package/packs/knowledge/frontend/layout/responsive.md +41 -0
- package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
- package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
- package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
- package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
- package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
- package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
- package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
- package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
- package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
- package/packs/knowledge/frontend/performance/rendering.md +40 -0
- package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
- package/packs/knowledge/frontend/state/api-layer.md +49 -0
- package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
- package/packs/knowledge/frontend/state/client-store.md +46 -0
- package/packs/knowledge/frontend/state/server-cache.md +42 -0
- package/packs/knowledge/frontend/state/state-categories.md +50 -0
- package/packs/knowledge/frontend/testing/component-tests.md +44 -0
- package/packs/knowledge/frontend/testing/strategy.md +46 -0
- package/packs/knowledge/inbox/README.md +14 -0
- package/packs/knowledge/workflows/authentication.md +18 -0
- package/packs/knowledge/workflows/crud.md +20 -0
- package/packs/knowledge/workflows/dashboard.md +22 -0
- package/packs/nextjs-fullstack/backend/auth-and-roles.md +19 -16
- package/packs/nextjs-fullstack/backend/background-jobs.md +19 -16
- package/packs/nextjs-fullstack/backend/caching.md +17 -14
- package/packs/nextjs-fullstack/backend/database.md +19 -16
- package/packs/nextjs-fullstack/backend/file-uploads.md +19 -16
- package/packs/nextjs-fullstack/backend/logging.md +17 -14
- package/packs/nextjs-fullstack/backend/migrations.md +17 -14
- package/packs/nextjs-fullstack/backend/rate-limiting.md +19 -16
- package/packs/nextjs-fullstack/backend/secrets-and-env.md +19 -16
- package/packs/nextjs-fullstack/backend/validation.md +19 -16
- package/packs/nextjs-fullstack/blueprints/ai-app.md +1 -1
- package/packs/nextjs-fullstack/blueprints/internal-tool.md +1 -1
- package/packs/nextjs-fullstack/blueprints/saas-app.md +1 -1
- package/packs/nextjs-fullstack/build-deploy/ci.md +18 -16
- package/packs/nextjs-fullstack/build-deploy/deploy.md +19 -16
- package/packs/nextjs-fullstack/build-deploy/monitoring.md +16 -14
- package/packs/nextjs-fullstack/build-deploy/performance.md +17 -14
- package/packs/nextjs-fullstack/build-deploy/project-structure.md +18 -16
- package/packs/nextjs-fullstack/build-deploy/release-checklist.md +20 -16
- package/packs/nextjs-fullstack/build-deploy/testing.md +19 -16
- package/packs/nextjs-fullstack/evals/README.md +18 -15
- package/packs/nextjs-fullstack/examples/golden-app/README.md +18 -16
- package/packs/nextjs-fullstack/frontend/accessibility.md +17 -14
- package/packs/nextjs-fullstack/frontend/components.md +19 -16
- package/packs/nextjs-fullstack/frontend/copy.md +46 -0
- package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
- package/packs/nextjs-fullstack/frontend/forms.md +17 -14
- package/packs/nextjs-fullstack/frontend/layout.md +19 -16
- package/packs/nextjs-fullstack/frontend/loading-empty-error.md +19 -16
- package/packs/nextjs-fullstack/frontend/motion.md +17 -14
- package/packs/nextjs-fullstack/frontend/responsive.md +19 -16
- package/packs/nextjs-fullstack/frontend/seo.md +20 -16
- package/packs/nextjs-fullstack/frontend/tables.md +17 -14
- package/packs/nextjs-fullstack/frontend/tokens.md +18 -16
- package/packs/nextjs-fullstack/integrations/analytics.md +17 -14
- package/packs/nextjs-fullstack/integrations/email.md +17 -14
- package/packs/nextjs-fullstack/integrations/llm-apis.md +19 -16
- package/packs/nextjs-fullstack/integrations/oauth.md +19 -16
- package/packs/nextjs-fullstack/integrations/object-storage.md +19 -16
- package/packs/nextjs-fullstack/integrations/payments.md +17 -14
- package/packs/nextjs-fullstack/integrations/queues.md +17 -14
- package/packs/nextjs-fullstack/integrations/search.md +19 -16
- package/packs/nextjs-fullstack/integrations/webhooks.md +17 -14
- package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-auth.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-crud.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-email.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-file-upload.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-webhook.md +19 -16
- package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +20 -16
- package/plugins/connore/.claude-plugin/plugin.json +10 -0
- package/plugins/connore/hooks/hooks.json +16 -0
- package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
- package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
- package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
- package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
- package/src/cli.js +110 -21
- package/src/commands/doctor.js +2 -0
- package/src/commands/edit.js +88 -0
- package/src/commands/graph.js +20 -0
- package/src/commands/handoff.js +45 -0
- package/src/commands/init.js +8 -3
- package/src/commands/lint.js +13 -5
- package/src/commands/log.js +49 -25
- package/src/commands/packs.js +21 -0
- package/src/commands/routes.js +13 -0
- package/src/commands/search.js +7 -2
- package/src/commands/update.js +5 -1
- package/src/lib/config.js +67 -64
- package/src/lib/graph.js +96 -0
- package/src/lib/index.js +88 -72
- package/src/lib/lessons.js +173 -173
- package/src/lib/lint.js +185 -67
- package/src/lib/mutate.js +26 -24
- package/src/lib/packs.js +25 -10
- package/src/lib/paths.js +1 -1
- package/src/lib/prompts.js +66 -0
- package/src/lib/report.js +41 -33
- package/src/lib/routes.js +59 -0
- package/src/lib/run.js +116 -73
- package/src/lib/search.js +24 -0
- package/src/lib/tokens.js +8 -0
|
@@ -1,43 +1,47 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Release
|
|
2
|
+
title: Release checklist
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [release, deploy]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before telling the user a change can ship.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Release
|
|
11
|
+
# Release checklist
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The branch is about to go to production.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Tests pass, secrets are env-only, migrations run from empty, and there is a way back.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A docs-only change with no runtime effect. Say that and skip the migration check.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never deploy because the page looks right locally. Never ship a migration you cannot reverse or follow.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
The missed step is the one that locks users out after the happy path demo.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Run the test suite and lint.
|
|
30
|
+
2. Confirm the migration applies on an empty database.
|
|
31
|
+
3. Confirm production secrets are set and are not in the diff.
|
|
32
|
+
4. Name the rollback: previous release, or a forward fix.
|
|
33
|
+
5. Watch the error log for the first requests after deploy.
|
|
30
34
|
|
|
31
35
|
## Done when
|
|
32
|
-
|
|
36
|
+
The user has the deploy step, the rollback, and a clean suite.
|
|
33
37
|
|
|
34
38
|
## Example
|
|
35
|
-
|
|
39
|
+
Billing ships only after a replayed webhook is shown not to double-grant.
|
|
36
40
|
|
|
37
41
|
## Common mistakes
|
|
38
|
-
|
|
42
|
+
Shipping from a dirty working tree. Discovering a missing env var from the first user.
|
|
39
43
|
|
|
40
44
|
## Sources
|
|
41
|
-
|
|
45
|
+
Connore pack.
|
|
42
46
|
|
|
43
47
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Testing
|
|
2
|
+
title: Testing approach
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [testing]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding a test or calling a change finished.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Testing
|
|
11
|
+
# Testing approach
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A behavior can regress, or the definition of done asks for a check.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Test the path the user walks: sign in, the write, the read-back. One assertion per behavior. Do not mock the thing you are trying to prove.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A pure function with a sharp edge, such as a price calculation. A unit test is enough.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never assert that a mock was called and call the feature tested. Never delete a failing test to go green.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
The suite stays green while the real request returns 500.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Name the behavior in the test name.
|
|
30
|
+
2. Hit the handler or the page with a real session fixture.
|
|
31
|
+
3. Assert the status and the row that was written.
|
|
32
|
+
4. Keep the test data inside the test, not in a shared account.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The test fails if the authorization check is removed.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A member of another org requests the invoice and the test expects 404.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Snapshotting the whole page. A test that only checks the component renders.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Evals
|
|
3
|
-
type:
|
|
4
|
-
tags: [eval]
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [ai, eval]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before changing a prompt that users depend on.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Evals
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A model call is part of the product and a change could make it worse.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Keep a small set of inputs with the output you accept. Run it before shipping a prompt change.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A one-off experiment the user will not keep. Say so and skip the set.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never claim the model is correct because one example looked good. Never put private customer text in the set.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A prompt change with no check ships a quiet regression.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Write inputs that represent the real job.
|
|
30
|
+
2. Record the answer you would accept for each.
|
|
31
|
+
3. Run the set when the prompt or the model name changes.
|
|
32
|
+
4. Block the change when a case that used to pass now fails.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The set runs and the result is written down.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
Five support replies, each with the reply you would send.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Judging from one happy prompt. Using a live customer's message as a fixture.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Golden app
|
|
3
|
-
type:
|
|
4
|
-
tags: [example]
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [example, reference]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when you need a shape for a small app and the blueprint is already chosen.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Golden
|
|
11
|
+
# Golden app
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The user wants a reference layout for the pieces a small app has.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
One signed-in workflow, one table with an owner column, and the four states on the screen that reads it.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
The blueprint already names the files to open. Follow the blueprint, not this note.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never copy this into a product and call it done. Never add a second workflow to the example.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
An example that tries to be a product teaches the wrong size.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Read the blueprint phase you are in.
|
|
30
|
+
2. Match its data rule and its auth rule.
|
|
31
|
+
3. Stop when that phase gate is true.
|
|
30
32
|
|
|
31
33
|
## Done when
|
|
32
|
-
|
|
34
|
+
The example is used as a map, and the product code follows the blueprint.
|
|
33
35
|
|
|
34
36
|
## Example
|
|
35
|
-
|
|
37
|
+
Phase 2 is one list and one form, not a settings maze.
|
|
36
38
|
|
|
37
39
|
## Common mistakes
|
|
38
|
-
|
|
40
|
+
Building every integration into the example before the first workflow works.
|
|
39
41
|
|
|
40
42
|
## Sources
|
|
41
|
-
|
|
43
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
44
|
|
|
43
45
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Accessibility
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [a11y, keyboard]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when adding a control, a dialog, or text on a colored background.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Accessibility
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
Anything the user can click, or text that must be read.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Use the real element: button, link, label. Keep focus visible. Meet contrast for the colors the owner chose.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A purely decorative image. Give it an empty alt and move on.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never remove the focus outline without a replacement. Never convey state by color alone.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A mouse-only control ships, and the keyboard user cannot finish the task.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Pair each input with a label.
|
|
30
|
+
2. Tab through the new screen with the pointer unused.
|
|
31
|
+
3. Put the dialog focus inside the dialog and return it on close.
|
|
32
|
+
4. Check the text color against its background before calling the screen done.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
Every new control is reachable by keyboard and has a visible focus.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
An icon button has an accessible name. The error text is tied to the field.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A clickable div. A placeholder standing in for a label. A dialog that traps focus and never releases it.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Thresholds live in the product accessibility notes, not restated here as new measurements.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: Component usage
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [components, ui]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before building a control or wrapping a library component.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Component usage
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A button, input, dialog, or menu is needed.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Use the project's existing component. If none exists, add one with a name, a size, and an explicit state for loading and disabled.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A one-off graphic that is not interactive. It does not need the component set.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never attach a click handler to a div and call it a button. Never restyle a library component with a one-off class at every call site.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents restyle the same control five ways, then the dialog loses its focus trap.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Search the project component folder first.
|
|
30
|
+
2. Pass content as children instead of adding another boolean prop.
|
|
31
|
+
3. Give icon-only controls a text name.
|
|
32
|
+
4. Keep the library's keyboard behavior. Do not rewrite a dialog.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The same action looks the same in every screen, and a keyboard can reach it.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A delete action uses the shared button with a danger tone, not a new red div.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Twelve boolean props. A custom modal that does not return focus on close.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Copy guidance
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [copy, writing]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before writing words the user will ship.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Copy guidance
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A headline, an empty state, an error, or a button label.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Use the product's own nouns. Say what the control does. Keep the owner's terms when they have already chosen them.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The user supplied the final copy. Use it. Do not improve it unasked.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never invent a customer quote, a metric, or a guarantee. Never write that the product solves a legal or security problem it has not been measured to solve.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Generic copy is how a product starts to sound like every other generated page.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Read the owner's words for the feature name.
|
|
30
|
+
2. Write the button as a verb plus the object.
|
|
31
|
+
3. Write the empty state as what is true and what to do next.
|
|
32
|
+
4. Write the error as what failed and how to retry.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A stranger can tell what the button will do without reading the code.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
Create project, not Submit. No projects yet. Create one. not Oops.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A headline that could sit on any product. A claim of a percentage with no source.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: State and data fetching
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [state, data]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before storing data or calling the server from the UI.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# State and data fetching
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A screen needs data, or someone is about to add a global store.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Server data stays in the request or a server cache. UI state stays in the component that draws it. Fetch on the server when the page can render there.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
A value that changes on every keystroke and never hits the server. Keep it in component state.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never copy a server response into a global store and then keep editing the copy. Never fetch in an effect when the server component could have loaded it.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Two copies drift. The user sees stale data and the agent adds another fetch to compensate.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Name the data: server record, UI state, or form draft.
|
|
30
|
+
2. Load server records in the server component or a route loader.
|
|
31
|
+
3. Pass the result down. Let the client component hold only what it edits.
|
|
32
|
+
4. After a mutation, invalidate the one query that changed.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
Reloading the page shows the same record the mutation wrote.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A settings page reads the row on the server and passes it into a form. The form does not refetch on mount.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
useEffect plus setState as the data layer. A store that holds the whole API response.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. No library API was copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Forms
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [forms, validation]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding a field or a submit handler.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Forms
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The user types something that must be stored or sent.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
One schema for the field rules. Validate on the server even if the client already did. Keep the values when the submit fails.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A control that only toggles local UI, such as a disclosure. It does not need a form library.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never clear the form after a failed submit. Never treat a client check as the security check.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents rebuild the field, drop the error text, and trust the browser.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Bind a label to each input.
|
|
30
|
+
2. Validate the payload on the server and map field errors back onto the fields.
|
|
31
|
+
3. Disable the submit control while the request is in flight.
|
|
32
|
+
4. Show a success state only after the server confirms the write.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
An empty required field is rejected on the server and the message sits on that field.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
An email field left blank returns 400 and the input still holds what the user typed.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A placeholder used as the label. Errors shown only in a toast.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. No form-library snippet copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Layout
|
|
2
|
+
title: Layout patterns
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [layout, page]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when composing a page, a shell, or a section stack.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Layout
|
|
11
|
+
# Layout patterns
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A page needs regions: header, main, a list, a detail, a footer.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
One shell for signed-in pages and one column for marketing. Sections stack in the order the task needs. Skip a section rather than inventing one.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A single form. It does not need a marketing section stack.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never put a marketing hero inside an app shell. Never fix a width that forces a horizontal scrollbar at 320px.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents mix the landing page and the product into one layout, then both read as unfinished.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Pick shell or marketing before drawing.
|
|
30
|
+
2. Put navigation in the shell, not copied into each page.
|
|
31
|
+
3. Let a list use a wrapping grid before adding breakpoints.
|
|
32
|
+
4. Keep the reading line short enough to read.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The signed-in page and the public page do not share a hero.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
Settings uses the app shell with a title and a form. The pricing page is a public column.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A breakpoint per component. A max width that clips the form on a phone.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Loading
|
|
2
|
+
title: Loading, empty, and error
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [states, ui]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before rendering a screen that depends on a request.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Loading
|
|
11
|
+
# Loading, empty, and error
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A view reads data that can be missing, slow, or failed.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Four states: loading, empty, error, and ready. Empty is a successful response with nothing to show.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A static page with no request. It has one state.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never render the ready view when the request failed. Never call an error an empty list.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents check only the happy path. The first real failure paints undefined into the page.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Branch on the request status before reading fields.
|
|
30
|
+
2. Give the error a retry and a plain sentence.
|
|
31
|
+
3. Give empty a sentence and one action.
|
|
32
|
+
4. Keep the layout stable so content does not jump in.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
A failed request and a zero-row result look different.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
No projects yet shows a create action. A 500 shows a retry and does not say there are no projects.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A spinner that replaces data the user was already reading. An empty table with no words.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|