Skip to content

Commit aadcb8c

Browse files
committed
Reorganization
1 parent 1b41942 commit aadcb8c

7 files changed

Lines changed: 9 additions & 229 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ If you need help with your legal name change or gender marker change, come join
1414
| `public` | Images, fonts, favicons, and app icons. |
1515
| `src/components` | All of the .astro components that are used and reused across the site. |
1616
| `src/constants` | Shared data for site info and colors. |
17-
| `src/forms` | React components for step-by-step guided forms. |
1817
| `src/layouts` | Shared layout files for wrapping pages. |
1918
| `src/pages` | Page-based routing for everything on the site. |
2019
| `src/pdfs` | All PDF forms along with their schema definitions and tests. |

src/forms/README.md

Lines changed: 0 additions & 161 deletions
This file was deleted.

src/forms/formRegistry.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/pages/forms/social-security/_Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { FormEvent } from "react";
22
import { FormContainer, type Step } from "~/components/react/forms";
33
import type { FieldName, FieldType } from "~/constants";
4-
import { useForm } from "~/forms/useForm";
4+
import { useForm } from "~/utils/useForm";
55
import { downloadMergedPdf, loadPdfs } from "~/pdfs/utils";
66
import * as Steps from "./_steps";
77

src/sanity/schema/formType.ts

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { OlistIcon } from "@sanity/icons";
22
import { defineField, defineType } from "sanity";
3-
import { FORM_REGISTRY_METADATA } from "../../forms/formRegistry";
43

54
export const formType = defineType({
65
name: "form",
@@ -23,18 +22,16 @@ export const formType = defineType({
2322
type: "string",
2423
}),
2524
defineField({
26-
name: "componentId",
27-
title: "Form Component",
25+
name: "slug",
26+
title: "Slug",
27+
type: "slug",
2828
description:
29-
"The React component that powers this form's interactive functionality",
30-
type: "string",
29+
"The URL path for this form (e.g., 'social-security' for /forms/social-security). Must match an existing form page.",
30+
validation: (Rule) => Rule.required(),
3131
options: {
32-
list: FORM_REGISTRY_METADATA.map(({ id, title }) => ({
33-
title,
34-
value: id,
35-
})),
32+
source: "title",
33+
maxLength: 96,
3634
},
37-
validation: (Rule) => Rule.required(),
3835
}),
3936
defineField({
4037
name: "state",
@@ -49,18 +46,6 @@ export const formType = defineType({
4946
to: [{ type: "category" }],
5047
validation: (Rule) => Rule.required(),
5148
}),
52-
defineField({
53-
name: "slug",
54-
title: "Slug",
55-
type: "slug",
56-
description:
57-
"The URL path for this form (e.g., 'court-order-ma' for /forms/court-order-ma)",
58-
validation: (Rule) => Rule.required(),
59-
options: {
60-
source: "title",
61-
maxLength: 96,
62-
},
63-
}),
6449
],
6550
preview: {
6651
select: {

worker-configuration.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* eslint-disable */
2-
// Generated by Wrangler by running `wrangler types` (hash: 9d50a76cdc759facba0bb43994cbf977)
2+
// Generated by Wrangler by running `wrangler types` (hash: 187132f48ddf0f604882ba8213fe386f)
33
// Runtime types generated with workerd@1.20251118.0 2025-08-15 nodejs_compat
44
declare namespace Cloudflare {
5-
interface GlobalProps {
6-
mainModule: typeof import("./dist/_worker.js/index");
7-
}
85
interface Env {
96
ASSETS: Fetcher;
107
}

0 commit comments

Comments
 (0)