b310-digital / mindwendel

Create a challenge. Ready? Brainstorm. mindwendel helps you to easily brainstorm and upvote ideas and thoughts within your team.
https://www.mindwendel.com
GNU Affero General Public License v3.0
79 stars 13 forks source link

chore: refactor to use function components #357

Closed JannikStreek closed 1 month ago

JannikStreek commented 1 month ago

Further Notes

With phoenix 1.7 release, the new standard is to use functional components instead of views. Using functional components in live views was apparently already pretty standard before, but now it's possible to use functional components across the whole app. As this is the new default, we should refactor mindwendel to use this. However, the old views are not deprecated and can still be used. But all generators etc now use the new functional components as default.

A good idea would be to break this up in at least 2 steps: Refactoring the controllers/views and second step, refactor live views.