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

STATFLO-1093 #16

Merged
merged 2 commits into from
Sep 27, 2023
Merged

STATFLO-1093 #16

merged 2 commits into from
Sep 27, 2023

Conversation

Emgem
Copy link
Contributor

@Emgem Emgem commented Sep 26, 2023

No description provided.

@Emgem Emgem requested review from sicsol and jcroll September 26, 2023 20:13
Copy link
Contributor

@jcroll jcroll left a comment

Choose a reason for hiding this comment

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

Looks awesome 👏 Can't wait to see this live!

"private": true,
"dependencies": {
"@faker-js/faker": "^8.0.2",
"@statflo/ui": "^0.0.14",
Copy link
Contributor

Choose a reason for hiding this comment

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

cool


import { useWidgetContext } from "../providers/WidgetProvider";

const WidgetSchema = Yup.object().shape({
Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't heard of yup. Is it a form builder?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a schema builder, which I am using for validating the form. It's what is recommended by Formik which is the form package that I am using.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool. I'm a fan of form builders, I was wondering if there was any motivation to use on our react projects.

widget?: Widget;
};

const WidgetForm = ({ isEdit, widget }: WidgetFormProps) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you simulate the widget admin? I know you said you were attempting this, very nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! It's basically a dumbed down version of widget admin so that it simulates what would actually be going on in the application.

@Emgem Emgem merged commit 5118f7b into main Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants