-
Notifications
You must be signed in to change notification settings - Fork 35
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
Handling different navigation/form progress designs #169
Comments
🙌 thanks @afeld |
Thanks for the feedback @afeld! Use cases like this are exactly what we need to determine the next steps for this project. As you've noted, the idea of chapters, pages, and the nav comes from us-forms-system. Some form elements are taken from react-json-schema and others are new widgets in us-forms-system. You can see those in At the moment I think the project is too monolithic to be oriented for use cases like this but it seems like we could do it. The In the meantime you could try pulling out some of the widgets to see whether they work standalone and if they do the trick for your use case. If so, that could make a stronger case for having the widgets separated from the nav and exposed as a project to themselves. |
Yeah, a couple ways I could see for using the System more incrementally:
Will poke around, but any other guidance is certainly welcome! |
I was thinking about something similar last night. One data structure could define the chapter/page hierarchy, one could define which widgets go on a particular page and their relation to the output schema, and another map widgets to actual code implementation. For the case of Bring Your Own Navigation you would just want the page definition and widget-to-code setup. Right now we have a single deeply nested |
Something @dmethvin-gov and I were talking about on the phone yesterday was imagining splitting the form config up into 2 separate configs:
Perhaps in this new version of the library where the form config is split, it would be possible to use only the first config, and use your own components for all of the things that wrap the actual questions, like navigation, headers, and footers, etc. @afeld would that meet the needs of what you're looking for? |
That sounds like a good solution! |
Just an update here -- as we determine precisely what 2.0.0-alpha might look like (starting Oct 1, aka "phase 2") this is something that will be top of mind It's important for the library to be generic and broadly useful, and not being prescriptive about a lot of things. Right now we're still pretty prescriptive in some cases. That works for some, doesn't work for others. We want to fix that! |
Duplicate ticket here: #201 |
#66 also related |
For now this library is committed to the wizard-style design that provides forward, back, and a review page. |
Hello! I'm at @18F, and part of the team working on the new form for eQIP. We are interested in trying out the Forms System! eQIP is a relatively large+complex React frontend already, so not sure how easy realistic switching over will be from a code perspective...
That being said, I see in the starter app that there are some interface elements included that aren't explicitly part of the specification, namely the progress bar, page numbers, and navigation buttons at the bottom.
In our app, we have a hierarchical navigational structure with conditional styling, etc. To give you an idea:
From an interface perspective, any guesses about how hard it would be to leverage the Forms System? Rather than try to switch the whole form over at once, it would be great to try it out more piecemeal. Perhaps there are lower-level components we can leverage?
I know this is a big question, so feel free to point me to existing documentation/issues. Also more than happy to set up a time to talk through things and see if we can be guinea pigs for the project ([email protected]). Thanks!
The text was updated successfully, but these errors were encountered: