widianto

widianto

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.

Showing Posts 1 to 5

jswanner

jswanner

From CONTRIBUTING.md:

Feature requests

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.

The generated code is tested by generating apps and running the generated tests, that said none of those test core components it seems

widianto

widianto OP

Thanks for your answer. It gave me some clues about where to look for more information.

rhcarvalho

rhcarvalho

Describing the intention here would be a good next step :slight_smile:

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.

widianto

widianto OP

Thanks for your answer! I understand now why it should stay lean and minimal. :slightly_smiling_face:

I originally thought supporting a class attribute by default would better showcase Phoenix’s flexibility.

Thanks for sharing your experience, it was really helpful.

LostKobrakai

LostKobrakai

It’s also not some arbitrary minimal set, but meant to support just the markup used, generated or encountered by the phoenix generators.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews