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: migrate phone-input component to glimmer #745

Merged
merged 1 commit into from Sep 28, 2023
Merged

Conversation

m-jovan
Copy link
Contributor

@m-jovan m-jovan commented Sep 27, 2023

We're migrating phone-input component from classic Ember component to glimmer component as a prerequisite for introducing Typescript to this addon.

Unfortunately we could not avoid using render modifiers since there are conflicts between using native glimmer lifecycle methods and the intl-tel-input lib that we are wrapping due to its manual dom manipulation of our input.

Component files have been collocated to components folder in order for glimmer to be able to render properly.

@m-jovan m-jovan self-assigned this Sep 27, 2023
@m-jovan m-jovan marked this pull request as draft September 27, 2023 12:39
@m-jovan m-jovan marked this pull request as ready for review September 27, 2023 12:39
Copy link
Collaborator

@dannycalleri dannycalleri left a comment

Choose a reason for hiding this comment

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

Hey @m-jovan thanks for this, nice job 🙏

Question: is this change breaking?

ember-phone-input/src/components/phone-input.hbs Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
ember-phone-input/src/components/phone-input.js Outdated Show resolved Hide resolved
test-app/tests/integration/components/phone-input-test.js Outdated Show resolved Hide resolved
@vscav
Copy link
Member

vscav commented Sep 27, 2023

Thanks for this @m-jovan, really nice! I did build and import the addon in one of our apps, and it's working like a charm 💯

@m-jovan
Copy link
Contributor Author

m-jovan commented Sep 28, 2023

@dannycalleri No breaking changes were introduced with this migration. Thanks for the review!

@vscav Thanks for the review as well!

@vscav
Copy link
Member

vscav commented Sep 28, 2023

@m-jovan Since it's not a breaking change, could you add the tag enhancement to this PR, please?

@m-jovan m-jovan added the enhancement New feature or request label Sep 28, 2023
@m-jovan m-jovan merged commit e5913a4 into master Sep 28, 2023
11 checks passed
@m-jovan m-jovan deleted the glimmer-migration branch September 28, 2023 10:27
@vscav vscav changed the title Migrate phone-input component to glimmer feat: migrate phone-input component to glimmer Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants