Collecting phoenix tips I might need
Articles I ran across for features I can imagine needing in things I’m building, but have not yet used. No comment on usefulness/correctness, just collecting ideas for now.
- Nested model forms for when you need to add a bunch of related items to an item as you create/edit that item.
- Fuzzy search, assuming you are using Postgres as your DBMS
- A sortable table, including stuff about how to make dynamic filter/sort queries in Ecto
- Bulk actions on data in a table
- Recurring jobs with oban (might be a bit outdated? maybe Oban’s docs are just better now)
- Teams via phx.gen.auth
- HTML emails with premailex , or with phoenix components
- CSV import with preview
- A hamburger menu
- ICAL files
- inspecting incoming webhooks (mostly for debugging purposes). Remember Stripe works largely by sending you webhooks.
- In-place edit with contenteditable
- Soft deletes
- Dynamic key-value inputs in a form
- GenServers for making an interval timer
- multitenancy - I’m gonna need this pretty soon!
- Hooking into JS libraries that don’t really want to
- Send a toast after async work
- Work with map tiles
- That pattern where you see everyone’s cursor on the screen
- A markdown-based static site
- A different icon set, or a different approach
- Anti-patterns to watch out for, which is essentially use sobelow security static analysis tool
- Tags
- Audit logs of deletions
- Infinite scroll
- Show what page you’re currently on in your navigation