feat(site): feature and preset reference UI + docs integration (#1258)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-04-14 17:19:01 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 5301202a18
commit d4b805ea69
35 changed files with 643 additions and 234 deletions
@@ -0,0 +1,42 @@
---
import Table from '@/components/typography/Table.astro';
import Tbody from '@/components/typography/Tbody.astro';
import Th from '@/components/typography/Th.astro';
import Thead from '@/components/typography/Thead.astro';
import Tr from '@/components/typography/Tr.astro';
import type { FeatureActionDef } from '@/types/feature-reference';
import StateRow from './StateRow.astro';
interface Props {
actions: Record<string, FeatureActionDef>;
featureName: string;
}
const { actions, featureName } = Astro.props;
const actionEntries = Object.entries(actions);
---
<Table maxWidth={false} outerClass="my-6">
<Thead>
<Tr>
<Th>Action</Th>
<Th>Type</Th>
<Th>Details</Th>
</Tr>
</Thead>
<Tbody>
{
actionEntries.map(([name, def]) => (
<StateRow
name={name}
type={def.type}
detailedType={def.detailedType}
description={def.description}
componentName={featureName}
kind="action"
/>
))
}
</Tbody>
</Table>