App reorganization

This commit is contained in:
adilallo
2026-04-18 14:12:49 -06:00
parent f866d11ff8
commit e9dab04b34
288 changed files with 2698 additions and 5029 deletions
@@ -0,0 +1,28 @@
import { describe, vi } from "vitest";
import {
componentTestSuite,
type ComponentTestSuiteConfig,
} from "../utils/componentTestSuite";
import { GovernanceTemplateGrid } from "../../app/components/sections/GovernanceTemplateGrid";
import { GOVERNANCE_TEMPLATE_CATALOG } from "../../lib/templates/governanceTemplateCatalog";
type Props = React.ComponentProps<typeof GovernanceTemplateGrid>;
const config: ComponentTestSuiteConfig<Props> = {
component: GovernanceTemplateGrid,
name: "GovernanceTemplateGrid",
props: {
entries: GOVERNANCE_TEMPLATE_CATALOG.slice(0, 2),
onTemplateClick: vi.fn(),
} as Props,
requiredProps: ["entries", "onTemplateClick"],
primaryRole: "button",
testCases: {
renders: true,
accessibility: true,
},
};
describe("GovernanceTemplateGrid", () => {
componentTestSuite<Props>(config);
});