-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yourgov mutable steps #1929
yourgov mutable steps #1929
Conversation
🦋 Changeset detectedLatest commit: 52e7a21 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
9117256
to
e4591a3
Compare
yourgov/components/FormMobileFoodVendorPermit/steps/stepsData.ts
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
{ | ||
formStateKey: 'stepReviewAndSubmit', | ||
label: 'Review and submit', | ||
labelWhenChanging: 'Change review and submit', // Not used but it simplifies the type and makes the submit pages more robust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha. I wonder if we should just have a "Change" link component on the review page that simply does Change ${label.toLowerCase()}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol we could but we have "Upload documents" that we don't want as "Change upload documents". What we really want is to separate the data collection steps form the review and submit step. Then the review and submit step doesn't need this value and validation could be mapped over the "data collection" steps. We could concatenate them for the purposes of the ProgressIndicator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, "Change upload documents" what a pain in the butt!
Changes to the steps data so that they're not tightly coupled with their order allowing for reordering, adding, removing in one place.
View preview
Checklist
Preflight
accordion: Updated padding
ordocs: Updated header links
yarn changeset
. Learn more about change management.Testing
yarn test
to ensure tests are passing. If required, runyarn test -u
to update any generated snapshots.Documentation
Creating new component
docs/overview.mdx
anddocs/code.mdx
at a minimum)yarn
in the root of the repo to do this)docs/components/designSystemComponents.tsx
).storybook/stories/KitchenSink.tsx
)docs/playroom/snippets.ts
)figmaGalleryNodeId
to Docs (docs/components/pictograms/index.tsx
)docs/components/pictograms/index.tsx
)