Skip to content

Feature/required inputs#673

Merged
christian-bromann merged 16 commits intostenciljs:mainfrom
mklemarczyk:feature/required-inputs
Jun 27, 2025
Merged

Feature/required inputs#673
christian-bromann merged 16 commits intostenciljs:mainfrom
mklemarczyk:feature/required-inputs

Conversation

@mklemarczyk
Copy link
Copy Markdown
Contributor

@mklemarczyk mklemarczyk commented Jun 25, 2025

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally for affected output targets
  • Tests (npm test) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue URL: #656

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

Adapt the component arguments to pass information on required inputs.
Processing of required inputs. Keep the order, but instead of specify only name, define it as object with required property set to true.
@gratzl-dev
Copy link
Copy Markdown
Contributor

Hello!
I would like to propose some changes:

Instead of passing two separate input parameters, please modify the existing input param type from string[], to a newly created interface called InputProperty (or something like that) having a name: string and required: boolean as fields.

This change would make it easier to read and understand, while also adding the ability for future input property extensions

@mklemarczyk
Copy link
Copy Markdown
Contributor Author

@gratzl-dev I adapted a little code. Can you tell me if the types.ts is a good place for this new interface ?
Other question, some files were modified by build, should I commit those as well ?

@gratzl-dev
Copy link
Copy Markdown
Contributor

some files were modified by build, should I commit those as well ?

Yes, these are the built files in the example project. This is required for the tests.
Please make sure to check in those aswell

@mklemarczyk
Copy link
Copy Markdown
Contributor Author

Tests should pass in CI now. Can you review code quality ?

@mklemarczyk mklemarczyk marked this pull request as ready for review June 26, 2025 16:01
@mklemarczyk mklemarczyk requested a review from a team as a code owner June 26, 2025 16:01
Copy link
Copy Markdown
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@christian-bromann
Copy link
Copy Markdown
Member

@mklemarczyk mind running pnpm prettier?

@christian-bromann
Copy link
Copy Markdown
Member

@gratzl-dev mind taking another look? Would love to get your 👍 as well!

@mklemarczyk
Copy link
Copy Markdown
Contributor Author

mklemarczyk commented Jun 27, 2025

@christian-bromann I do not get it. I run it and it pass locally. I do not have any modification I could commit.
image

@gratzl-dev
Copy link
Copy Markdown
Contributor

Looks good 👍

@christian-bromann christian-bromann merged commit 11f028d into stenciljs:main Jun 27, 2025
3 checks passed
NoelLH added a commit to thebiggive/components that referenced this pull request Jul 9, 2025
* Upgrade to get Angular [required inputs](stenciljs/output-targets#673)
* Remove a dubiously-required, actually dead input on `<biggive-text-input/>`
* `npm update` generally
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.

3 participants