-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add typecheck npm script and start addressing type errors. * Set default checked value for required checkbox in the input pattern edit component. * Create separate safeZodParseFormErrors from safeZodParse * Cleanup types around the parseUserInput pattern controller method. This will be further refined when we revisit the presentation of the public-facing form. * Make children optional on FormManagerLayoutProps * Punt on sorting out weird Storybook types by typing parameters to describeStories with "any" * Remove references to unused "required" field on radio groups. Could be added back later. * Sort out noEmit? * typecheck: handle jsx and cache for incremental builds * Typechecking on all packages working (I think) * Run typechecking in test workflow * Linting * Add "Initialize Terraform CDK configuration" step to run-tests workflow, so we can typecheck the infra * Work around type issues in stories * Update pnpm-lock.yaml after Storybook minor update. Not sure why this wasn't picked up originally.
- Loading branch information
1 parent
357ae72
commit 0c903e9
Showing
57 changed files
with
801 additions
and
1,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,17 @@ jobs: | |
shell: bash | ||
run: pnpm test | ||
|
||
- name: Initialize Terraform CDK configuration | ||
shell: bash | ||
run: | | ||
cd infra | ||
pnpm cdktf get | ||
pnpm build:tsc | ||
- name: Typecheck source code | ||
shell: bash | ||
run: pnpm typecheck | ||
|
||
#- name: Vitest Coverage Report | ||
# if: always() | ||
# uses: davelosert/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ html/ | |
node_modules/ | ||
NOTES.md | ||
tsconfig.tsbuildinfo | ||
|
||
*storybook.log | ||
*storybook.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"outDir": "./dist", | ||
"emitDeclarationOnly": true | ||
}, | ||
"include": [ | ||
"./src" | ||
], | ||
"include": ["./src"], | ||
"references": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
// For reference, the base Astro tsconfig: | ||
// https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/base.json | ||
"extends": "../../tsconfig.json", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"noEmit": true, | ||
"jsx": "react", | ||
"resolveJsonModule": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"src/components/**" | ||
] | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/components/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"emitDeclarationOnly": true, | ||
"rootDir": "src" | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../packages/interviews" | ||
} | ||
] | ||
"include": ["src/**/*"], | ||
"references": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
// For reference, the base Astro tsconfig: | ||
// https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/base.json | ||
"extends": "../../tsconfig.json", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"noEmit": true, | ||
"jsx": "react", | ||
"resolveJsonModule": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"src/components/**" | ||
] | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/components/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"emitDeclarationOnly": true | ||
}, | ||
"include": [ | ||
"./src" | ||
], | ||
"include": ["./src"], | ||
"references": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
packages/design/src/Form/components/RadioGroup/RadioGroup.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
import { Meta, Story } from '@storybook/react'; | ||
import { Meta, StoryFn } from '@storybook/react'; | ||
|
||
import RadioGroup, { RadioInput } from './RadioGroup'; | ||
import React from 'react'; | ||
|
||
export default { | ||
const meta: Meta = { | ||
title: 'Components/RadioGroup', | ||
component: RadioGroup, | ||
tags: ['autodocs'], | ||
} as Meta; | ||
}; | ||
export default meta; | ||
|
||
const Template: Story = () => ( | ||
export const Default: StoryFn = () => ( | ||
<RadioGroup legend="Select an item"> | ||
<RadioInput | ||
id="option-1" | ||
name="select-item" | ||
defaultValue="option1" | ||
defaultChecked={false} | ||
label="Option 1" | ||
/> | ||
<RadioInput | ||
id="option-2" | ||
name="select-item" | ||
defaultValue="option2" | ||
defaultChecked={false} | ||
label="Option 2" | ||
/> | ||
<RadioInput | ||
id="option-3" | ||
name="select-item" | ||
defaultValue="option3" | ||
defaultChecked={true} | ||
label="Option 3" | ||
/> | ||
</RadioGroup> | ||
); | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.