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(button): make standalone #15464

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

alexciesielski
Copy link
Contributor

@alexciesielski alexciesielski commented May 6, 2024

Tracked in #15465

Introduces the standalone API starting with the button component and directive.

Once given the green light by @cetincakiroglu I will go ahead and open subsequent PRs making more components and directives standalone.

Copy link

vercel bot commented May 6, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 6:30am

@alexciesielski
Copy link
Contributor Author

alexciesielski commented May 6, 2024

An fdescribe was added 4 days ago, and after removing it a huge amount of unit tests is failing 🧐 unrelated to the change...

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented May 8, 2024

Hi,

Thanks a lot for the effort and support, we'll review and test if it breaks anything during the build/deployment etc. It'll be merged in this or next week's milestone.

@cetincakiroglu cetincakiroglu added the Status: Pending Review Issue or pull request is being reviewed by Core Team label May 8, 2024
@kyjus25
Copy link
Contributor

kyjus25 commented May 8, 2024

Super awesome you're even taking the time to break out CommonModule's import into importing the separate directives for smaller bundles. 🙏 Excited for this, thanks!

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented May 14, 2024

Hi @alexciesielski ,

I've reviewed the button, ripple, shared & autofocus. I guess other files are unrelated. Thanks a lot for the effort and support. Could you please remove unrelated files, rebase the master and update the PR so I can merge it safely? You can continue to make the rest of the components standalone.

By doing so:
1-) If you'll send this in pieces as separate PRs, open an issue as RelatedComponentName | Standalone. If you'll send in a pack you can just create a checklist in the issue #15465
2-) Link the issue with a PR.
3-) Be sure you pull the latest updates from the master branch. In your PR there are updates in autofocus but not the recent one which leads to conflicts.

Again, thanks a lot for the effort and support! We're waiting for the rest.

@alexciesielski
Copy link
Contributor Author

alexciesielski commented May 14, 2024

Hey, I rebased the branch and removed the changes to the contextmenu.spec.ts. Or do you mean anything else with "unrelated"? I tried to fix the usage in the tests as well but unfortunately running npm t still throws a lot of errors so I'm not sure what to do here

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented May 15, 2024

Hey, I rebased the branch and removed the changes to the contextmenu.spec.ts. Or do you mean anything else with "unrelated"? I tried to fix the usage in the tests as well but unfortunately running npm t still throws a lot of errors so I'm not sure what to do here

Hi,

Yes, only the standalone related code. A contributor is currently working on tests. You can ignore them.

@alexciesielski
Copy link
Contributor Author

alexciesielski commented May 15, 2024

The tests can't declare the Button component themselves because that will throw errors. Or do you expect the contributor to adjust that as well?

Edit: ok, will ignore them and remove the changes

@cetincakiroglu
Copy link
Contributor

cetincakiroglu commented May 15, 2024

The tests can't declare the Button component themselves because that will throw errors. Or do you expect the contributor to adjust that as well?

Edit: ok, will ignore them and remove the changes

You can fix import/export/declaration errors related to your update to make it work. It would great to add only standalone component transition + broken test cases related to this process

@alexciesielski
Copy link
Contributor Author

Ok, that's what I've done ✅ all changes are related to standalone transition

@alexciesielski
Copy link
Contributor Author

Shall we get this merged this week? I would like to start refactoring other components to standalone but obviously need these changes first, as the pTemplate directive is used in lots of places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants