Skip to content
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

Merged
merged 4 commits into from
Jan 23, 2025
Merged

yourgov mutable steps #1929

merged 4 commits into from
Jan 23, 2025

Conversation

ChrisLaneAU
Copy link
Contributor

@ChrisLaneAU ChrisLaneAU commented Jan 20, 2025

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

  • Prefix the PR title with the slug of the package or component - e.g. accordion: Updated padding or docs: Updated header links
  • Describe the changes clearly in the PR description
  • Read and check your code before tagging someone for review
  • Create a changeset file by running yarn changeset. Learn more about change management.

Testing

  • Manually test component in various modern browsers at various sizes (use Browserstack)
  • Manually test component in various devices (phone, tablet, desktop)
  • Manually test component using a keyboard
  • Manually test component using a screen reader
  • Manually tested in dark mode
  • Component meets Web Content Accessibility Guidelines (WCAG) 2.1 standards
  • Add any necessary unit tests (HTML validation, snapshots etc)
  • Run yarn test to ensure tests are passing. If required, run yarn test -u to update any generated snapshots.

Documentation

  • Create or update documentation on the website
  • Create or update stories for Storybook
  • Create or update stories for Playroom snippets

Creating new component

  • Add documentation for the component (docs/overview.mdx and docs/code.mdx at a minimum)
  • Preconstruct entrypoint has been created (run yarn in the root of the repo to do this)
  • Changeset file includes a minor
  • Export components for docs site and Playroom (docs/components/designSystemComponents.tsx)
  • Add component to Kitchen Sink (.storybook/stories/KitchenSink.tsx)
  • Add snippets to Playroom (docs/playroom/snippets.ts)
  • Add figmaGalleryNodeId to Docs (docs/components/pictograms/index.tsx)
  • Add pictogram to Docs (docs/components/pictograms/index.tsx)

@ChrisLaneAU ChrisLaneAU self-assigned this Jan 20, 2025
Copy link

changeset-bot bot commented Jan 20, 2025

🦋 Changeset detected

Latest commit: 52e7a21

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ag.ds-next/yourgov Minor

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

Copy link
Contributor

github-actions bot commented Jan 20, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-01-23 05:31 UTC

@ChrisLaneAU ChrisLaneAU changed the base branch from develop to yourgov-review-and-submit-sub-level January 20, 2025 07:07
@ChrisLaneAU ChrisLaneAU requested a review from stowball January 21, 2025 22:35
@ChrisLaneAU ChrisLaneAU marked this pull request as ready for review January 21, 2025 22:35
@ChrisLaneAU ChrisLaneAU changed the base branch from yourgov-review-and-submit-sub-level to develop January 22, 2025 22:35
@ChrisLaneAU ChrisLaneAU force-pushed the yourgov-mutable-steps branch from 9117256 to e4591a3 Compare January 22, 2025 23:14
Copy link

{
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
Copy link
Contributor

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()}?

Copy link
Contributor Author

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.

Copy link
Contributor

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!

@ChrisLaneAU ChrisLaneAU merged commit 756a022 into develop Jan 23, 2025
8 checks passed
@ChrisLaneAU ChrisLaneAU deleted the yourgov-mutable-steps branch January 23, 2025 05:26
stowball pushed a commit that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants