Skip to content

feat: dropdown in form - #339

Merged
psankhe28 merged 9 commits into
mainfrom
dropdownInput
Aug 7, 2024
Merged

psankhe28 merged 9 commits into
mainfrom
dropdownInput

Conversation

@psankhe28

@psankhe28 psankhe28 commented Jul 25, 2024 •

Copy link
Copy Markdown
Contributor

Description

#338

Fixes #(issue)

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

Summary by Sourcery

This pull request introduces a new dropdown field to the form component, enhancing the form's functionality by allowing users to select from predefined options. The form component's rendering logic has been updated to support this new field type.

  • New Features:
    • Added a dropdown (select) field to the form component, allowing users to select options from a predefined list.
  • Enhancements:
    • Updated the form component to support the new dropdown field type, including rendering logic and field options.

Signed-off-by: Pratiksha Sankhe <[email protected]>
@vercel

vercel Bot commented Jul 25, 2024 •

Copy link
Copy Markdown

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

Name Status Preview Comments Updated (UTC)
elixir-cloud-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2024 7:31pm

@changeset-bot

changeset-bot Bot commented Jul 25, 2024 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2b02523

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

@psankhe28
psankhe28 requested a review from anuragxxd July 25, 2024 19:28
@sourcery-ai

sourcery-ai Bot commented Jul 25, 2024 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide by Sourcery

This pull request introduces a dropdown component to the form, enhancing the form's functionality by allowing users to select from predefined options. The changes include modifications to the HTML demo file to incorporate the new dropdown and updates to the TypeScript form component to support the new 'select' field type.

File-Level Changes

Files Changes
packages/ecc-utils-design/demo/form/index.html
packages/ecc-utils-design/src/components/form/form.ts
Introduced a new dropdown component to the form, including updates to the demo HTML file and the TypeScript form component to support the new 'select' field type.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@psankhe28 psankhe28 changed the title added dropdown feat: dropdown in form Jul 25, 2024

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @psankhe28 - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider refactoring the renderInputTemplate function into smaller, type-specific functions to improve readability and maintainability.
  • Remove commented-out code to keep the file clean and easier to read.
Here's what I looked at during the review
  • 🟡 General issues: 3 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@salihudickson salihudickson left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

great work @psankhe28, just a few minor corrections to take a look at.

Signed-off-by: Pratiksha Sankhe <[email protected]>
Signed-off-by: Pratiksha Sankhe <[email protected]>
@psankhe28
psankhe28 requested a review from salihudickson August 4, 2024 13:46
@salihudickson

Copy link
Copy Markdown
Contributor

@psankhe28, I hope you don't mind, I pushed a commit that fixed the lint issue and made sure it would be much easier to address for future contributors.

Signed-off-by: Pratiksha Sankhe <[email protected]>

@salihudickson salihudickson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

@psankhe28
psankhe28 merged commit a3b6740 into main Aug 7, 2024
@psankhe28
psankhe28 deleted the dropdownInput branch August 7, 2024 04:48
salihudickson added a commit to sivangbagri/cloud-components that referenced this pull request Oct 12, 2024
Signed-off-by: Pratiksha Sankhe <[email protected]>
Co-authored-by: salihuDickson <[email protected]>

This branch was previously deployed

1 inactive deployment
Preview — 2b025237 Deployed Aug 6, 2024 by vercel[bot]
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.

2 participants