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

Bootstrap pydantic forms - Example repo #1602

Open
DutchBen opened this issue Nov 27, 2024 · 1 comment
Open

Bootstrap pydantic forms - Example repo #1602

DutchBen opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@DutchBen
Copy link
Collaborator

DutchBen commented Nov 27, 2024

Proposal
This is a proposal for expanding work on the functionality that is offered by the combination of the pydantic-forms pypy module and the frontend code that we use to automatically generate forms based on what Pydantic forms generates in a way that is open source and sharable and could be used by third parties who may be outside of the workflow orchestrator space.

Current situation
The (pydantic forms package)[https://pypi.org/project/pydantic-forms] allows for annotating pydantic models so it will gerenate a JSON schema. The JSON schema is transformed by code in the frontend into forms that are displayed to end users. Submitting this form triggers validations that can be provided to the pydantic models.

The frontend part of this setup is currently lives in the (WFO orchestrator UI library)[https://github.com/workfloworchestrator/orchestrator-ui-library] and is implemented based on a deprecated version of uniforms. A newer version of this code exists that we started calling dynamic forms that is also part of the frontend library code base.

Proposed situation
For easier sharing and accommodating the requirement mentioned above it's proposed to create a separate NPM package for the frontend code. This setup will have these components:

Acceptance
This ticket is to bootstrap this setup so

  • Pipelines are setup
  • Publishing to NPM works
  • There is a example application with a text field.
@DutchBen DutchBen changed the title Bootstrap pydantic forms example Bootstrap pydantic forms - Example repo Nov 27, 2024
@wouter1975
Copy link
Collaborator

See #1447

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

No branches or pull requests

2 participants