Skip to content

Conversation

@syedszeeshan
Copy link
Collaborator

@syedszeeshan syedszeeshan commented May 8, 2025

@syedszeeshan syedszeeshan changed the title NOT READY - fix(#2408): formstepper docs NOT READY - fix(#2408): form stepper docs May 8, 2025
@netlify
Copy link

netlify bot commented May 8, 2025

Deploy Preview for abgov-ui-component-docs ready!

Name Link
🔨 Latest commit eee9cd9
🔍 Latest deploy log https://app.netlify.com/projects/abgov-ui-component-docs/deploys/6849b30fdb95ff0008e7696e
😎 Deploy Preview https://deploy-preview-362--abgov-ui-component-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@vanessatran-ddi vanessatran-ddi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the 2nd example, you may want to change the note:
image

The status of each step can be configured to either “complete” or “incomplete” using the status property.

I think it makes sense to add not-started to this example too.

And also we need to update the package.json for the latest alpha version.

@syedszeeshan
Copy link
Collaborator Author

syedszeeshan commented May 12, 2025

@vanessatran-ddi
I have made the changes as suggested and added the examples also.

On hold....will resume once this PR GovAlta/ui-components#2702 gets merged to alpha

@syedszeeshan syedszeeshan marked this pull request as draft May 12, 2025 20:00
@syedszeeshan syedszeeshan marked this pull request as ready for review June 10, 2025 19:14
@syedszeeshan syedszeeshan marked this pull request as draft June 10, 2025 19:14
# Conflicts:
#	package-lock.json
#	package.json
@syedszeeshan syedszeeshan marked this pull request as ready for review June 10, 2025 19:51
"incomplete"
"not-started"
])
function setPage(page: number) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function setPage here is different from the function setStatusPage at line 20. Therefore when I copy the code snippet of React (version 6), and play it, the step 4 is updated to be completed when I navigate to step 4 and navigate back to step 3, while on the sandbox it doesn't show that. (Step 4 remains not-started even we navigate to back and forth). I think we should update the code snippet to make it synced with the code we use inside the Example sandbox.

Copy link
Collaborator

@vanessatran-ddi vanessatran-ddi Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference is:

 setStatus((prevStatus) =>
                    prevStatus.map((_, index) => (index < page ? "complete" : "incomplete"))
                  );

while the setStatusStep line 20 doesn't have that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR has been updated.

@twjeffery twjeffery merged commit e3fffa7 into alpha Jun 13, 2025
7 checks passed
@twjeffery twjeffery deleted the Syed/2408-Docs branch June 13, 2025 15:55
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.

Form Stepper: Incomplete being rendered as Partially complete

4 participants