extract setup wizard to dedicated /admin/setup page
Move the setup stepper out of the dashboard into its own LiveView. Dashboard now redirects to setup when site isn't live, and shows stats-only view once live. Also cleans up button component variant handling, fixes alert CSS, and removes stale demo.html. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,11 +26,12 @@ defmodule BerrypodWeb.Auth.Confirmation do
|
||||
name={@form[:remember_me].name}
|
||||
value="true"
|
||||
phx-disable-with="Confirming..."
|
||||
class="admin-btn-primary w-full"
|
||||
variant="primary"
|
||||
class="w-full"
|
||||
>
|
||||
Confirm and stay logged in
|
||||
</.button>
|
||||
<.button phx-disable-with="Confirming..." class="admin-btn-soft w-full mt-2">
|
||||
<.button phx-disable-with="Confirming..." class="w-full mt-2">
|
||||
Confirm and log in only this time
|
||||
</.button>
|
||||
</.form>
|
||||
@@ -46,7 +47,7 @@ defmodule BerrypodWeb.Auth.Confirmation do
|
||||
>
|
||||
<input type="hidden" name={@form[:token].name} value={@form[:token].value} />
|
||||
<%= if @current_scope do %>
|
||||
<.button phx-disable-with="Logging in..." class="admin-btn-primary w-full">
|
||||
<.button phx-disable-with="Logging in..." variant="primary" class="w-full">
|
||||
Log in
|
||||
</.button>
|
||||
<% else %>
|
||||
@@ -54,11 +55,12 @@ defmodule BerrypodWeb.Auth.Confirmation do
|
||||
name={@form[:remember_me].name}
|
||||
value="true"
|
||||
phx-disable-with="Logging in..."
|
||||
class="admin-btn-primary w-full"
|
||||
variant="primary"
|
||||
class="w-full"
|
||||
>
|
||||
Keep me logged in on this device
|
||||
</.button>
|
||||
<.button phx-disable-with="Logging in..." class="admin-btn-soft w-full mt-2">
|
||||
<.button phx-disable-with="Logging in..." class="w-full mt-2">
|
||||
Log me in only this time
|
||||
</.button>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user