Authenticated /app live_session with current_scope and app shell #62
Labels
No labels
area
auth
area
data
area
domain
area
infra
area
stats
area
study
area
tooling
area
ui
duplicate
future
kind
bug
kind
chore
kind
decision
kind
docs
kind
feature
kind
spike
kind
test
prio
blocker
risk
high
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nickkeers/first-thousand-words#62
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective: The protected shell every study screen lives inside.
Files:
lib/first_thousand_words_web/router.ex(newlive_session)lib/first_thousand_words_web/components/layouts.ex(app nav, user menu)lib/first_thousand_words_web/live/dashboard_live.ex(placeholder landing)Steps:
live_session :authenticated, on_mount: [...AshAuthentication.Phoenix.LiveSession]andput
/app/...routes inside it.<Layouts.app flash={@flash} current_scope={@current_scope}>as the first template element, per AGENTS.md.
Verify: signed out,
/appredirects to sign-in; signed in, the shell renders with theuser's email in the menu.
Pitfalls (from AGENTS.md): never call
<.flash_group>outsidelayouts.ex; never access achangeset directly in a template — drive forms from a
to_form/2assign.Duplicate of #10 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.