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

feat: form methods #160

Merged
merged 5 commits into from
Nov 8, 2023
Merged

feat: form methods #160

merged 5 commits into from
Nov 8, 2023

Conversation

anuragxxd
Copy link
Member

@anuragxxd anuragxxd commented Nov 8, 2023

Description

Fixes #157

Checklist

  • My code follows the contributing guidelines of this project.
  • I am aware that all my commits will be squashed into a single commit, using the PR title as the commit message.
  • I have performed a self-review of my own code.
  • I have commented my code in hard-to-understand areas.
  • I have updated the user-facing documentation to describe any new or changed behavior.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have not reduced the existing code coverage.

Comments

Copy link

changeset-bot bot commented Nov 8, 2023

⚠️ No Changeset found

Latest commit: 3b7eb68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cloud-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 0:19am

@anuragxxd
Copy link
Member Author

anuragxxd commented Nov 8, 2023

Hey @JaeAeich, will this suffice your use case? Please have a look! Check out this example https://cloud-components-qx37k2073-elixir-cloud-aai.vercel.app/design/components/form.html#methods-1

@JaeAeich
Copy link
Contributor

JaeAeich commented Nov 8, 2023

@git-anurag-hub This looks perfect for the current implementation of packages. As far as I can see we shouldn't get stuck with atleast TES and WES.

To be noted though
For TES, its a large form and chances of error are high. error() method can help the user in filling the form and with success we can show the run ID of th run created.

Since the form is quite large, on success() it will cause alot of DOM manipulation and page change, maybe we shouldn't reset the form and give package-author an an option to not remove form on success and also not reset form on success.
Do you agree? I believe we can think about this stuff later as getting the package out for v1 should be out first priority.

@anuragxxd
Copy link
Member Author

@git-anurag-hub This looks perfect for the current implementation of packages. As far as I can see we shouldn't get stuck with atleast TES and WES.

To be noted though For TES, its a large form and chances of error are high. error() method can help the user in filling the form and with success we can show the run ID of th run created.

Since the form is quite large, on success() it will cause alot of DOM manipulation and page change, maybe we shouldn't reset the form and give package-author an an option to not remove form on success and also not reset form on success. Do you agree? I believe we can think about this stuff later as getting the package out for v1 should be out first priority.

Make sense @JaeAeich, yes some future works here I can think are:

  • Make error() pinpoint the fields. Right now they can pass it as the message prop.
  • Better success() UX flow.

Also for the run id you can shoe it as the message prop.

@anuragxxd anuragxxd mentioned this pull request Nov 8, 2023
2 tasks
@anuragxxd anuragxxd merged commit 1ac5567 into main Nov 8, 2023
7 checks passed
@anuragxxd anuragxxd deleted the form/methods branch November 8, 2023 15:58
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.

feat: form methods
2 participants