From af4beae15fd1a26f585a82862d4a4ba14e998616 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sat, 24 Oct 2026 23:18:49 +0000 Subject: [PATCH 1/2] fix: allow boolean true in application starter tailwind search param --- src/components/application-starter/useApplicationStarterUrl.ts | 2 +- src/routes/application-starter.index.tsx | 2 +- tests/application-starter-search.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/application-starter/useApplicationStarterUrl.ts b/src/components/application-starter/useApplicationStarterUrl.ts index 838192375..f35d1d9c2 100644 --- a/src/components/application-starter/useApplicationStarterUrl.ts +++ b/src/components/application-starter/useApplicationStarterUrl.ts @@ -17,7 +17,7 @@ interface ApplicationStarterSearchParams { template?: string // template preset ID features?: string // comma-separated feature IDs pm?: string // package manager: pnpm, npm, yarn, bun - tailwind?: string + tailwind?: 'false' | true // Feature options serialized as: featureId.optionKey=value [key: string]: string | undefined } diff --git a/src/routes/application-starter.index.tsx b/src/routes/application-starter.index.tsx index 63d6ee7e2..78b4c2ddd 100644 --- a/src/routes/application-starter.index.tsx +++ b/src/routes/application-starter.index.tsx @@ -23,7 +23,7 @@ const applicationStarterSearchSchema = v.pipe( framework: v.optional(v.string()), features: v.optional(v.string()), // comma-separated feature IDs pm: v.optional(v.picklist(['pnpm', 'npm', 'yarn', 'bun'])), - tailwind: v.optional(v.literal('false')), + tailwind: v.optional(v.union([v.literal('false'), v.literal(true)])), tab: v.optional(v.picklist(['summary', 'code', 'preview'])), file: v.optional(v.string()), // selected file in files tab addon: v.optional(v.string()), // selected addon in addons tab diff --git a/tests/application-starter-search.test.ts b/tests/application-starter-search.test.ts index 2b293fbe4..bc2a660c1 100644 --- a/tests/application-starter-search.test.ts +++ b/tests/application-starter-search.test.ts @@ -28,6 +28,7 @@ test('application starter preserves optional fields and custom feature options', }, ...['pnpm', 'npm', 'yarn', 'bun'].map((pm) => ({ pm })), ...['summary', 'code', 'preview'].map((tab) => ({ tab })), + { tailwind: true }, ]) { const result = await standardSchema.validate(input) assert.equal(result.issues, undefined) @@ -41,7 +42,6 @@ test('application starter rejects invalid known fields instead of coercing them' [], 'name=app', { pm: 'deno' }, - { tailwind: true }, { tailwind: 'true' }, { tab: 'unknown' }, ...[ From fdb1321f263e6f26f90fc53a3351027e311472bb Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sat, 24 Oct 2026 23:23:41 +0000 Subject: [PATCH 2/2] Allow boolean values in ApplicationStarterSearchParams index signature --- src/components/application-starter/useApplicationStarterUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/application-starter/useApplicationStarterUrl.ts b/src/components/application-starter/useApplicationStarterUrl.ts index f35d1d9c2..6739e9b70 100644 --- a/src/components/application-starter/useApplicationStarterUrl.ts +++ b/src/components/application-starter/useApplicationStarterUrl.ts @@ -19,7 +19,7 @@ interface ApplicationStarterSearchParams { pm?: string // package manager: pnpm, npm, yarn, bun tailwind?: 'false' | true // Feature options serialized as: featureId.optionKey=value - [key: string]: string | undefined + [key: string]: string | boolean | undefined } export function useApplicationStarterUrl() {