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

Replace @jupyterlab/rjsf with FormComponent from @jupyterlab/ui-components #625

Merged
merged 20 commits into from
Dec 9, 2024

Conversation

Meriem-BenIsmail
Copy link
Member

Description

This PR updates the JupyterCAD to use the FormComponent from the @jupyterlab/ui-components package instead of SchemaForm.

Key Changes:

  1. Form Component Migration:
    • Replaced SchemaForm of @jupyterlab/rjsf with FormComponent, the standardized form component in the JupyterLab ecosystem.
  2. Validator Integration:
    • Integrated validator-ajv8 with FormComponent to ensure schema validation.
  3. Custom Array Handling:
    • Added a custom array field (CustomArrayFieldWithoutButtons) to maintain existing customization for array data entry.

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks for starting this! I have some early comments/suggestions

package.json Outdated Show resolved Hide resolved
packages/base/src/panelview/formbuilder.tsx Outdated Show resolved Hide resolved
@Meriem-BenIsmail Meriem-BenIsmail force-pushed the form-component-rjsf branch 2 times, most recently from 363b241 to 6d6ee87 Compare December 2, 2024 15:22
Copy link
Contributor

github-actions bot commented Dec 2, 2024

Integration tests report: appsharing.space

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Preview PR at appsharing.space

@martinRenou
Copy link
Member

The Union operator form does not show dropdown selectors anymore:

Before this PR:

Screencast.From.2024-12-03.11-03-10.mp4

With this PR:

Screencast.From.2024-12-03.11-05-57.mp4

@Meriem-BenIsmail Meriem-BenIsmail force-pushed the form-component-rjsf branch 3 times, most recently from 1e463ed to 9d3e2bb Compare December 3, 2024 14:52
@Meriem-BenIsmail Meriem-BenIsmail marked this pull request as ready for review December 3, 2024 15:19
@Meriem-BenIsmail
Copy link
Member Author

please update snapshots

@arjxn-py
Copy link
Member

arjxn-py commented Dec 3, 2024

Triggered CI

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Great work on this!

I'll just leave a couple of comments here for now before taking a deep dive in the code.

I see some validation errors when making two Unions one after the other, I wonder if it has to do with the new validation logic?:

Screencast.From.2024-12-03.16-57-53.mp4

ui-tests/tests/ui.spec.ts-snapshots/JCAD-Console-linux.png Outdated Show resolved Hide resolved
@Meriem-BenIsmail
Copy link
Member Author

please update snapshots

@Meriem-BenIsmail Meriem-BenIsmail force-pushed the form-component-rjsf branch 3 times, most recently from 1119b49 to 64be615 Compare December 6, 2024 15:48
@Meriem-BenIsmail
Copy link
Member Author

please update snapshots

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks 🚀 !

@martinRenou
Copy link
Member

please update snapshots

@martinRenou martinRenou merged commit 3b38e52 into jupytercad:main Dec 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants