💡V1.2.0 Overview
This version has been a major upgrade, almost worthy of being v2! As we add more features, we've realised there is the potential for Petal Pro to become too big, so we've also focused on ensuring that we still get out of your way to give you enough of a blank slate to feel creative. Our goal is to get you up and running, but let you create your masterpiece.
What's new?
Added
Login with Google & Github - easy to add more auth providers
Passwordless auth - register/sign in via a code sent to your email
Orgs - create an org, invite & manage members, and more
User lifecycle actions - run code after actions like register, sign_in, sign_out, password_reset, etc
New generator: mix petal.gen.html (same args as phx.gen.html)
New component: <.markdown content=""> & <.pretty_markdown content=""> (uses Tailwind Typography plugin)
Added License and Privacy pages (with some content from a template to get you started)
New layout: <.layout type="public">, for public marketing related pages like landing, about us, privacy, etc
Changed
Simpler config access (
PetalPro.config(:app_name)
instead ofApplication.get_env(:petal_pro, :app_name)
)Refactor <.layout> to take less props
Refactor dark/light mode system. Much simpler now and no longer needs cookies
Put Petal Pro Components in their own folder for easier future upgrades (can duplicate if you want to modify them)
Sidebar and stacked layout have a new slot for the top right corner (if you want to add something like a notifications bell)
Fixed
Log metadata wasn't being cast
More user actions are logged
Fixed petal.live generator tests
Added tests for user settings live views
We've included Google & Github to get you started and make it super easy for you to enable login with any other OAuth provider you might want add to your app.
We've also included our very first Petal Pro component <.social_button> that produces beautiful social login buttons in two variants ("solid" and "outline").
Social button currently supports:
Google
Github
Facebook
Twitter
Apple
Linkedin
Users of your app can now register/sign in via a pin code sent to their email. It's simple to enable or disable at any time.
Just head over to your config.exs
file and change paswordless_enabled
to true
Organizations/Multi-tenancy
You can now optionally create an organization, invite & manage members, and more.
Last updated