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

Removed classic layout and ember-decorators #409

Merged
merged 5 commits into from
Dec 2, 2024
Merged

Conversation

ijlee2
Copy link
Collaborator

@ijlee2 ijlee2 commented Dec 2, 2024

Background

Ember 5.x deprecated the classic layout for components (with an exception for importing a classic component's layout). By moving the template files to addon/components (I went with the default layout in Octane, which is flat), we can allow projects that depend on ember-modal-dialog to update ember-source to 6.0.0 more easily.

Before moving the files, I added default rendering tests for all components. These tests help us move files correctly and ensure that, when components are rendered, there will be no runtime errors.

For commits 4-5, note that, with the classic layout gone, ember-decorators is only used to set a classic component's tagName to be ''. We can achieve the same effect by writing tagName = '' directly in the component class, which then lets us remove ember-decorators as a dependency to ease maintenance.

@ijlee2 ijlee2 marked this pull request as ready for review December 2, 2024 08:09
@ijlee2 ijlee2 requested a review from lukemelia December 2, 2024 08:09
Copy link
Contributor

@lukemelia lukemelia left a comment

Choose a reason for hiding this comment

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

👍

@ijlee2 ijlee2 merged commit f3c8301 into master Dec 2, 2024
9 checks passed
@ijlee2 ijlee2 deleted the remove-classic-layout branch December 2, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants