mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 01:24:30 +01:00
feat(storybook): mirror the complete feature-map index (#16052)
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - The feature map describes its user-facing capabilities and verification recipes. > - Storybook provides isolated UI examples for those capabilities. > - The previous organization showed only features with primary story suites. > - This pull request derives the complete Storybook index from the upstream map. > - Readers can find the same features in both places and see related examples or explicit gaps. ## Linked Issues or Issue Description Refs #16046 and #16049. **What existing behavior does this improve?** Storybook navigation and the downstream feature catalog. **Current behavior** The sidebar has 28 primary feature homes. The feature map lists 35. The main guide groups suites alphabetically by area slug. Related examples can live under a different feature. **Proposed behavior** Use the feature map's eight sections and 35 features in the same order. Give each feature an Overview page with all its capabilities, related example links, and missing-example messages. Keep shared foundations outside the product index. Preserve all existing stories and URLs. **Reason and benefit** Readers can move between the feature map and Storybook without learning a second index. A feature without cataloged examples remains visible. **Breaking changes** None to existing story IDs or product behavior. Storybook start and build now reject stale generated feature pages and ordering. Run the catalog generator after upstream changes, inspect the output, and review affected source fingerprints. ## What Changed - Generate 35 feature Overview stories and capability data from the upstream map. Generate the inline sidebar order required by Storybook. - Replace the main guide with the full ordered feature index and search. Link all related suites from feature pages, even across primary homes. - Preserve all 223 authored files, 2,210 story IDs, and the existing docs ID. Keep status, implementation, and fixture classifications visible. - Put the generated Markdown catalog in feature-map order. Keep generated guides outside example counts. - Update maintenance and review skills, documentation, and generator tests. Keep the feature map independent of Storybook. ## Verification - Passed: 16 catalog and generator tests; map checks; token gates; both skill validators. - Passed: `pnpm -r typecheck`, `pnpm build`, and the Storybook build. - Built-index comparison preserved all 2,211 previous entries and added only 35 feature overviews. Feature order matches the map. - Browser: inspected the complete index and sidebar, searched for Goals, opened its overview, and followed a related suite under Projects. The original suite renders. - Passed: all 8,170 UI tests in 728 files. Browser checks also covered empty search, capability-ID search, missing-example pages, the original editable-text bookmark, the CLI sidebar label, and searching/opening shared foundations. - The broad local `pnpm test:run` was stopped after a failure in the unchanged GitHub chat test `authorizes description edits as the editor, never inheriting the original author's access`. That exact test passed alone without code or expectation changes. A complete local repository suite pass is not established. - Original revision CI passed after one runner retry. The merged revision `5ca01c70716f23974680a8019ddc613035d11bc4` passed fresh CI. Local UI typecheck, catalog checks, 16 generator tests, map checks and token gates pass. - Greptile: 5/5 on final commit `5ca01c70716f23974680a8019ddc613035d11bc4`, with all findings resolved. - Master merge: inspected source drift in 61 catalog entries and regenerated INDEX, preserving upstream notes. Marked the sidebar suite that mounts IssueDetail unreviewed for the new activity query; recorded limits for composer and channel-default changes. No stories removed. - Final Storybook build passed. Browser filename searches for `new-task-composer` and `forms-editors` return the expected feature and shared example. - No visual-baseline or full production acceptance claim. The deeper authored scenario groups remain intact. ## Risks - The parser depends on the feature-map Markdown contract. It rejects unknown index rows, omitted feature recipes, and unexpected generated files. - A suite can reference several capabilities. A link proves catalog association, not complete behavior coverage or production parity. - Storybook treats `/` as a folder separator. Sidebar labels use a comma for that character; the guide and page headings retain the upstream name. - No database, API, authorization, or production component changes. ## Model Used OpenAI Codex, GPT-6 family, with reasoning, code execution, and browser inspection. The exact runtime model ID and context window are not exposed in this session. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
52 files changed
+2943
-782
No files matched your search
+2
-2
@@ -17,8 +17,8 @@
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:preview": "vite build --config vite.preview.config.mjs",
|
||||
"storybook": "storybook dev -p 6006 -c storybook/.storybook",
|
||||
"build-storybook": "storybook build -c storybook/.storybook -o storybook-static",
|
||||
"storybook": "node ../scripts/storybook-feature-index.mjs && storybook dev -p 6006 -c storybook/.storybook",
|
||||
"build-storybook": "node ../scripts/storybook-feature-index.mjs && storybook build -c storybook/.storybook -o storybook-static",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "tsc -b",
|
||||
"clean": "rm -rf dist dist-preview storybook-static tsconfig.tsbuildinfo",
|
||||
|
||||
@@ -16,7 +16,7 @@ const paperclipInstanceOrigin = (() => {
|
||||
})();
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: ["../stories/**/*.stories.@(ts|tsx|mdx)"],
|
||||
stories: ["../stories/**/*.stories.@(ts|tsx|mdx)", "../generated/features/*.stories.tsx"],
|
||||
staticDirs: ["../../public", "../public"],
|
||||
addons: ["@storybook/addon-docs", "@storybook/addon-a11y"],
|
||||
framework: {
|
||||
|
||||
@@ -856,62 +856,62 @@ const preview: Preview = {
|
||||
"Overview",
|
||||
"Getting started and access",
|
||||
[
|
||||
"Onboarding and first work",
|
||||
"Login, invitations, and access",
|
||||
"Companies and portability"
|
||||
"Onboarding and first work", ["Overview", "*"],
|
||||
"Login, invitations, and access", ["Overview", "*"],
|
||||
"Companies and portability", ["Overview", "*"]
|
||||
],
|
||||
"Tasks and conversations",
|
||||
[
|
||||
"Task creation and lifecycle",
|
||||
"Delegation, dependencies, and signoff",
|
||||
"Inbox, decisions, and search",
|
||||
"Agent conversations and project handoff",
|
||||
"Questions and approvals",
|
||||
"Steering and queued messages",
|
||||
"Documents, attachments, and work products"
|
||||
"Task creation and lifecycle", ["Overview", "*"],
|
||||
"Delegation, dependencies, and signoff", ["Overview", "*"],
|
||||
"Inbox, decisions, and search", ["Overview", "*"],
|
||||
"Agent conversations and project handoff", ["Overview", "*"],
|
||||
"Questions and approvals", ["Overview", "*"],
|
||||
"Steering and queued messages", ["Overview", "*"],
|
||||
"Documents, attachments, and work products", ["Overview", "*"]
|
||||
],
|
||||
"Agents and reusable capabilities",
|
||||
[
|
||||
"Hiring, configuration, and organization",
|
||||
"Runs, harnesses, and model accounts",
|
||||
"Skills and Skill Studio",
|
||||
"Team packages and installation"
|
||||
"Hiring, configuration, and organization", ["Overview", "*"],
|
||||
"Runs, harnesses, and model accounts", ["Overview", "*"],
|
||||
"Skills and Skill Studio", ["Overview", "*"],
|
||||
"Team packages and installation", ["Overview", "*"]
|
||||
],
|
||||
"Projects and execution",
|
||||
[
|
||||
"Projects and repositories",
|
||||
"Goals and work alignment",
|
||||
"Workspaces, services, and files",
|
||||
"Execution environments",
|
||||
"Recovery"
|
||||
"Projects and repositories", ["Overview", "*"],
|
||||
"Goals and work alignment", ["Overview", "*"],
|
||||
"Workspaces, services, and files", ["Overview", "*"],
|
||||
"Execution environments", ["Overview", "*"],
|
||||
"Recovery", ["Overview", "*"]
|
||||
],
|
||||
"Apps, channels, and extensions",
|
||||
[
|
||||
"Connection setup",
|
||||
"App access and action permissions",
|
||||
"External chat and email",
|
||||
"Tool gateways and access profiles",
|
||||
"Secrets and proposals",
|
||||
"Plugins"
|
||||
"Connection setup", ["Overview", "*"],
|
||||
"App access and action permissions", ["Overview", "*"],
|
||||
"External chat and email", ["Overview", "*"],
|
||||
"Tool gateways and access profiles", ["Overview", "*"],
|
||||
"Secrets and proposals", ["Overview", "*"],
|
||||
"Plugins", ["Overview", "*"]
|
||||
],
|
||||
"Automation and structured work",
|
||||
[
|
||||
"Routines, schedules, and triggers",
|
||||
"Pipelines, review queues, and learnings",
|
||||
"Cases",
|
||||
"Status cards"
|
||||
"Routines, schedules, and triggers", ["Overview", "*"],
|
||||
"Pipelines, review queues, and learnings", ["Overview", "*"],
|
||||
"Cases", ["Overview", "*"],
|
||||
"Status cards", ["Overview", "*"]
|
||||
],
|
||||
"Oversight and operation",
|
||||
[
|
||||
"Costs and budgets",
|
||||
"Dashboards and audit trails",
|
||||
"Navigation, profile, and announcements",
|
||||
"Instance operations",
|
||||
"CLI/API and local worktrees"
|
||||
"Costs and budgets", ["Overview", "*"],
|
||||
"Dashboards and audit trails", ["Overview", "*"],
|
||||
"Navigation, profile, and announcements", ["Overview", "*"],
|
||||
"Instance operations", ["Overview", "*"],
|
||||
"CLI, API and local worktrees", ["Overview", "*"]
|
||||
],
|
||||
"Contributor surfaces",
|
||||
[
|
||||
"Developer previews and diagnostic labs"
|
||||
"Developer previews and diagnostic labs", ["Overview", "*"]
|
||||
],
|
||||
"Foundations"
|
||||
],
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-access",
|
||||
title: "Getting started and access/Login, invitations, and access/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "access" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-activity",
|
||||
title: "Oversight and operation/Dashboards and audit trails/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "activity" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-agent-chat",
|
||||
title: "Tasks and conversations/Agent conversations and project handoff/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "agent-chat" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-agents",
|
||||
title: "Agents and reusable capabilities/Hiring, configuration, and organization/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "agents" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-app-permissions",
|
||||
title: "Apps, channels, and extensions/App access and action permissions/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "app-permissions" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-budgets-costs",
|
||||
title: "Oversight and operation/Costs and budgets/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "budgets-costs" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-cases",
|
||||
title: "Automation and structured work/Cases/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "cases" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-chat-channels",
|
||||
title: "Apps, channels, and extensions/External chat and email/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "chat-channels" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-cli-operations",
|
||||
title: "Oversight and operation/CLI, API and local worktrees/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "cli-operations" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-companies",
|
||||
title: "Getting started and access/Companies and portability/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "companies" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-connection-setup",
|
||||
title: "Apps, channels, and extensions/Connection setup/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "connection-setup" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-developer-labs",
|
||||
title: "Contributor surfaces/Developer previews and diagnostic labs/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "developer-labs" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-documents-artifacts",
|
||||
title: "Tasks and conversations/Documents, attachments, and work products/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "documents-artifacts" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-execution-environments",
|
||||
title: "Projects and execution/Execution environments/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "execution-environments" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-gateways-profiles",
|
||||
title: "Apps, channels, and extensions/Tool gateways and access profiles/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "gateways-profiles" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-goals",
|
||||
title: "Projects and execution/Goals and work alignment/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "goals" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-inbox-search",
|
||||
title: "Tasks and conversations/Inbox, decisions, and search/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "inbox-search" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-instance-operations",
|
||||
title: "Oversight and operation/Instance operations/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "instance-operations" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-navigation-preferences",
|
||||
title: "Oversight and operation/Navigation, profile, and announcements/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "navigation-preferences" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-onboarding",
|
||||
title: "Getting started and access/Onboarding and first work/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "onboarding" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-pipelines",
|
||||
title: "Automation and structured work/Pipelines, review queues, and learnings/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "pipelines" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-plugins",
|
||||
title: "Apps, channels, and extensions/Plugins/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "plugins" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-projects",
|
||||
title: "Projects and execution/Projects and repositories/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "projects" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-questions-and-approvals",
|
||||
title: "Tasks and conversations/Questions and approvals/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "questions-and-approvals" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-recovery",
|
||||
title: "Projects and execution/Recovery/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "recovery" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-routines",
|
||||
title: "Automation and structured work/Routines, schedules, and triggers/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "routines" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-runs-adapters",
|
||||
title: "Agents and reusable capabilities/Runs, harnesses, and model accounts/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "runs-adapters" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-secrets",
|
||||
title: "Apps, channels, and extensions/Secrets and proposals/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "secrets" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-skills",
|
||||
title: "Agents and reusable capabilities/Skills and Skill Studio/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "skills" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-status-cards",
|
||||
title: "Automation and structured work/Status cards/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "status-cards" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-steering",
|
||||
title: "Tasks and conversations/Steering and queued messages/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "steering" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-task-coordination",
|
||||
title: "Tasks and conversations/Delegation, dependencies, and signoff/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "task-coordination" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-tasks",
|
||||
title: "Tasks and conversations/Task creation and lifecycle/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "tasks" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-teams",
|
||||
title: "Agents and reusable capabilities/Team packages and installation/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "teams" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { FeatureOverview } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "feature-map-workspaces",
|
||||
title: "Projects and execution/Workspaces, services, and files/Overview",
|
||||
component: FeatureOverview,
|
||||
args: { area: "workspaces" },
|
||||
tags: ["!autodocs"],
|
||||
parameters: { layout: "fullscreen" },
|
||||
} satisfies Meta<typeof FeatureOverview>;
|
||||
export default meta;
|
||||
export const Overview: StoryObj<typeof meta> = {};
|
||||
@@ -1,93 +1,12 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import catalog from "../../../../maps/storybook-map/catalog.json";
|
||||
|
||||
type IndexEntry = { id: string; type: string; importPath: string };
|
||||
|
||||
function StorybookGuide() {
|
||||
const [query, setQuery] = useState("");
|
||||
const [storyLinks, setStoryLinks] = useState<Record<string, string>>({});
|
||||
const [indexError, setIndexError] = useState(false);
|
||||
useEffect(() => {
|
||||
const controller = new AbortController();
|
||||
void fetch(new URL("index.json", window.location.href), { signal: controller.signal })
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error("Story index unavailable");
|
||||
return response.json() as Promise<{ entries: Record<string, IndexEntry> }>;
|
||||
})
|
||||
.then(index => {
|
||||
const links: Record<string, string> = {};
|
||||
for (const entry of Object.values(index.entries)) {
|
||||
if (entry.type !== "story") continue;
|
||||
const file = `ui/${entry.importPath.replace(/^\.\//, "")}`;
|
||||
links[file] ??= `./?path=/story/${entry.id}`;
|
||||
}
|
||||
setStoryLinks(links);
|
||||
})
|
||||
.catch(() => { if (!controller.signal.aborted) setIndexError(true); });
|
||||
return () => controller.abort();
|
||||
}, []);
|
||||
const groups = useMemo(() => {
|
||||
const result = new Map<string, typeof catalog.entries>();
|
||||
const search = query.trim().toLowerCase();
|
||||
for (const entry of catalog.entries) {
|
||||
if (search && ![entry.purpose, entry.file, entry.status, entry.implementation, ...entry.capabilities].join(" ").toLowerCase().includes(search)) continue;
|
||||
const area = entry.capabilities[0]?.split("/")[0] ?? "foundations-and-guides";
|
||||
const entries = result.get(area) ?? [];
|
||||
entries.push(entry);
|
||||
result.set(area, entries);
|
||||
}
|
||||
return [...result].sort(([a], [b]) => a.localeCompare(b));
|
||||
}, [query]);
|
||||
return (
|
||||
<main className="paperclip-story__inner space-y-6 p-6">
|
||||
<header className="space-y-3">
|
||||
<h1 className="text-2xl font-semibold">Storybook by feature</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{catalog.entries.length} story suites organized by the feature map. Current means source-reviewed;
|
||||
it does not mean every interaction or production journey passed. Production components can use simulated data.
|
||||
</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Historical designs and proposals stay available. Unreviewed entries need deeper comparison with the current product.
|
||||
The maintained contract and full source references are in maps/storybook-map/.
|
||||
</p>
|
||||
<Input aria-label="Find stories by feature, title, or status" placeholder="Find a feature, story, or status…" value={query} onChange={event => setQuery(event.target.value)} />
|
||||
{indexError ? <p role="alert" className="text-sm text-destructive">Story links could not load. Reload this guide to try again.</p> : null}
|
||||
</header>
|
||||
{groups.length === 0 ? <p className="text-sm text-muted-foreground">No matching stories.</p> : null}
|
||||
{groups.map(([area, entries]) => (
|
||||
<section key={area} className="space-y-3">
|
||||
<h2 className="text-lg font-semibold">{area}</h2>
|
||||
<ul className="divide-y divide-border">
|
||||
{entries.map(entry => (
|
||||
<li key={entry.file} className="space-y-2 py-4">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{storyLinks[entry.file]
|
||||
? <a className="font-medium underline underline-offset-4" href={storyLinks[entry.file]} target="_top">{entry.purpose}</a>
|
||||
: <span className="font-medium">{entry.purpose}</span>}
|
||||
<Badge variant="outline">{entry.status}</Badge>
|
||||
<Badge variant="outline">{entry.implementation}</Badge>
|
||||
<Badge variant="outline">{entry.boundary}</Badge>
|
||||
</div>
|
||||
<p className="text-sm text-muted-foreground">{entry.notes}</p>
|
||||
<p className="font-mono text-xs text-muted-foreground">{entry.capabilities.join(" · ") || "Shared foundations and contributor guidance"}</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</section>
|
||||
))}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
import { FeatureMapIndex } from "../../support/feature-map/FeatureOverview";
|
||||
|
||||
const meta = {
|
||||
id: "overview-storybook-guide",
|
||||
title: "Overview/Storybook Guide",
|
||||
component: StorybookGuide,
|
||||
component: FeatureMapIndex,
|
||||
parameters: { docs: { description: { component: "Feature-based navigation from the downstream catalog, with separate product, component, and fixture classifications. Story links come from this build's index." } } },
|
||||
} satisfies Meta<typeof StorybookGuide>;
|
||||
} satisfies Meta<typeof FeatureMapIndex>;
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
export const CoverageGuide: Story = {};
|
||||
@@ -0,0 +1,148 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import catalog from "../../../../maps/storybook-map/catalog.json";
|
||||
import featureIndex from "../../generated/feature-index.json";
|
||||
|
||||
type Entry = Omit<(typeof catalog.entries)[number], "capabilities"> & { capabilities: string[] };
|
||||
const entries: Entry[] = catalog.entries;
|
||||
type IndexEntry = { id: string; type: string; importPath: string };
|
||||
const recipeRoot = "https://github.com/paperclipai/paperclip/blob/master/maps/feature-map/";
|
||||
const allFeatures = featureIndex.sections.flatMap(section => section.features);
|
||||
const examples = entries.filter(entry => entry.implementation !== "guide");
|
||||
const featureHref = (id: string) => `./?path=/story/feature-map-${id}--overview`;
|
||||
|
||||
function useStoryLinks() {
|
||||
const [links, setLinks] = useState<Record<string, string>>({});
|
||||
const [error, setError] = useState(false);
|
||||
useEffect(() => {
|
||||
const controller = new AbortController();
|
||||
void fetch(new URL("index.json", window.location.href), { signal: controller.signal })
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error("Story index unavailable");
|
||||
return response.json() as Promise<{ entries: Record<string, IndexEntry> }>;
|
||||
})
|
||||
.then(index => {
|
||||
const next: Record<string, string> = {};
|
||||
for (const entry of Object.values(index.entries)) {
|
||||
if (entry.type !== "story") continue;
|
||||
const file = `ui/${entry.importPath.replace(/^\.\//, "")}`;
|
||||
next[file] ??= `./?path=/story/${entry.id}`;
|
||||
}
|
||||
setLinks(next);
|
||||
})
|
||||
.catch(() => { if (!controller.signal.aborted) setError(true); });
|
||||
return () => controller.abort();
|
||||
}, []);
|
||||
return { links, error };
|
||||
}
|
||||
|
||||
function SuiteLink({ entry, links }: { entry: Entry; links: Record<string, string> }) {
|
||||
return (
|
||||
<li className="space-y-2 py-3">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{links[entry.file]
|
||||
? <a className="font-medium underline underline-offset-4" href={links[entry.file]} target="_top">{entry.purpose}</a>
|
||||
: <span className="font-medium">{entry.purpose}</span>}
|
||||
<Badge variant="outline">{entry.status}</Badge>
|
||||
<Badge variant="outline">{entry.implementation}</Badge>
|
||||
<Badge variant="outline">{entry.boundary}</Badge>
|
||||
</div>
|
||||
<p className="text-sm text-muted-foreground">{entry.notes}</p>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
export function FeatureMapIndex() {
|
||||
const [query, setQuery] = useState("");
|
||||
const { links, error } = useStoryLinks();
|
||||
const search = query.trim().toLowerCase();
|
||||
const sections = useMemo(() => featureIndex.sections.map(section => ({
|
||||
...section,
|
||||
features: section.features.filter(feature => {
|
||||
const related = entries.filter(entry => entry.capabilities.some(ref => ref.startsWith(`${feature.id}/`)));
|
||||
return [section.title, feature.title, feature.id, feature.description,
|
||||
...feature.capabilities.flatMap(capability => [capability.id, capability.label, capability.description]),
|
||||
...related.flatMap(entry => [entry.file, entry.purpose, entry.status, entry.implementation]),
|
||||
].join(" ").toLowerCase().includes(search);
|
||||
}),
|
||||
})).filter(section => section.features.length), [search]);
|
||||
const foundations = examples.filter(entry => !entry.capabilities.length
|
||||
&& ["Shared foundations", entry.file, entry.purpose, entry.status, entry.implementation, entry.boundary].join(" ").toLowerCase().includes(search));
|
||||
return (
|
||||
<main className="paperclip-story__inner space-y-6 p-6">
|
||||
<header className="space-y-3">
|
||||
<h1 className="text-2xl font-semibold">Paperclip feature map</h1>
|
||||
<p className="text-sm text-muted-foreground">The same product index as the feature map, with Storybook examples alongside each capability.</p>
|
||||
<p className="text-sm text-muted-foreground">{allFeatures.length} feature families · {allFeatures.reduce((count, feature) => count + feature.capabilities.length, 0)} capabilities. Examples are fixtures and references, not proof of production behavior.</p>
|
||||
<a className="text-sm underline underline-offset-4" href={`${recipeRoot}README.md`} target="_blank" rel="noreferrer">Read the feature-map index</a>
|
||||
<Input aria-label="Find a feature or capability" placeholder="Find a feature, capability, or example…" value={query} onChange={event => setQuery(event.target.value)} />
|
||||
</header>
|
||||
{sections.length === 0 && foundations.length === 0 ? <p>No matching features or examples.</p> : null}
|
||||
{sections.map(section => (
|
||||
<section key={section.title} className="space-y-3">
|
||||
<h2 className="text-lg font-semibold">{section.title}</h2>
|
||||
<ul className="divide-y divide-border">
|
||||
{section.features.map(feature => {
|
||||
const suites = examples.filter(entry => entry.capabilities.some(ref => ref.startsWith(`${feature.id}/`)));
|
||||
return (
|
||||
<li key={feature.id} className="space-y-2 py-3">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<a className="font-medium underline underline-offset-4" href={featureHref(feature.id)} target="_top">{feature.title}</a>
|
||||
<span className="text-sm text-muted-foreground">{suites.length ? `${suites.length} related example ${suites.length === 1 ? "suite" : "suites"}` : "No cataloged examples yet"}</span>
|
||||
</div>
|
||||
<p className="text-sm text-muted-foreground">{feature.description}</p>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</section>
|
||||
))}
|
||||
{foundations.length ? (
|
||||
<section className="space-y-3">
|
||||
<h2 className="text-lg font-semibold">Shared foundations</h2>
|
||||
<p className="text-sm text-muted-foreground">Shared UI components sit outside the product feature index.</p>
|
||||
{error ? <p role="alert">Example links could not load. Reload to try again.</p> : null}
|
||||
<ul className="divide-y divide-border">{foundations.map(entry => <SuiteLink key={entry.file} entry={entry} links={links} />)}</ul>
|
||||
</section>
|
||||
) : null}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
export function FeatureOverview({ area }: { area: string }) {
|
||||
const feature = allFeatures.find(item => item.id === area);
|
||||
const { links, error } = useStoryLinks();
|
||||
if (!feature) return <p role="alert">This feature is not in the feature-map index.</p>;
|
||||
const guides = entries.filter(entry => entry.implementation === "guide" && entry.capabilities.some(ref => ref.startsWith(`${area}/`)));
|
||||
return (
|
||||
<main className="paperclip-story__inner space-y-6 p-6">
|
||||
<header className="space-y-3">
|
||||
<a className="text-sm underline underline-offset-4" href="./?path=/story/overview-storybook-guide--coverage-guide" target="_top">All features</a>
|
||||
<h1 className="text-2xl font-semibold">{feature.title}</h1>
|
||||
<p className="text-muted-foreground">{feature.description}</p>
|
||||
<a className="text-sm underline underline-offset-4" href={`${recipeRoot}${area}.md`} target="_blank" rel="noreferrer">Feature recipe and verification steps</a>
|
||||
<p className="text-sm text-muted-foreground">Capabilities follow the feature recipe in the same order. Related suites may live under another feature. A suite link does not establish that every behavior has an example or passed a test.</p>
|
||||
{error ? <p role="alert">Example links could not load. Reload to try again.</p> : null}
|
||||
</header>
|
||||
<nav aria-label="Capabilities" className="flex flex-wrap gap-3">
|
||||
{feature.capabilities.map(capability => <a key={capability.id} className="text-sm underline underline-offset-4" href={`#${capability.id.split("/")[1]}`}>{capability.label}</a>)}
|
||||
</nav>
|
||||
{feature.capabilities.map(capability => {
|
||||
const suites = examples.filter(entry => entry.capabilities.includes(capability.id));
|
||||
return (
|
||||
<section key={capability.id} id={capability.id.split("/")[1]} className="space-y-3">
|
||||
<h2 className="text-lg font-semibold">{capability.label}</h2>
|
||||
<code className="text-xs text-muted-foreground">{capability.id}</code>
|
||||
<div className="text-sm text-muted-foreground"><ReactMarkdown>{capability.description}</ReactMarkdown></div>
|
||||
{suites.length
|
||||
? <ul className="divide-y divide-border">{suites.map(entry => <SuiteLink key={entry.file} entry={entry} links={links} />)}</ul>
|
||||
: <p className="text-sm">No cataloged example yet. Use the feature recipe for entry points, verification steps, and known limits.</p>}
|
||||
</section>
|
||||
);
|
||||
})}
|
||||
{guides.length ? <section className="space-y-3"><h2 className="text-lg font-semibold">Related guides</h2><ul className="divide-y divide-border">{guides.map(entry => <SuiteLink key={entry.file} entry={entry} links={links} />)}</ul></section> : null}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user