I think I’ve found a small improvement I could contribute to <%= web_namespace %>.CoreComponents (installer/templates/phx_web/components). I need a feature that isn’t available yet.
A noob question about contributing to Phoenix:
I’ve contributed to other open source projects before (translations and a few code changes), but this would be my first contribution to Phoenix.
Should I discuss the idea first before opening a pull request, or is it okay to submit one directly?
I searched the test suite but couldn’t find tests for core_components.ex template. Should I and where to include tests with the PR?
Thanks! Any advice or contribution guidelines would be greatly appreciated.
Feature requests are welcome and should be discussed on the Phoenix subforum. But take a moment to find out whether your idea fits with the scope and aims of the project. It’s up to you to make a strong case to convince the community of the merits of this feature. Please provide as much detail and context as possible.
Describing the intention here would be a good next step
In general, the generated CoreComponents are meant as a starting point and only implement a minimal set of functionality.
The intention is that people do change that file in their own projects as the need arises. It demonstrates a pattern and how to work with HEEx, forms, etc.
I’m saying that because my experience has been that the Phoenix team would be willing to accept bug fixes, but less likely to adopt say a completely custom new component.