Skip to content

User avatar in sidebar with sign-out#10

Open
ndemarco wants to merge 3 commits intomainfrom
fix/org-provisioning-fk
Open

User avatar in sidebar with sign-out#10
ndemarco wants to merge 3 commits intomainfrom
fix/org-provisioning-fk

Conversation

@ndemarco
Copy link
Copy Markdown
Owner

Summary

  • Avatar at the bottom of the sidebar: profile picture from Authentik (or initials fallback)
  • Collapsed sidebar: avatar only; expanded: avatar + name + email
  • Click opens a popover showing name, email, and a Sign out button
  • Sign out uses a server action → redirects to /login
  • Added auth.demar.co to next.config image remote patterns for Authentik profile pictures

Test plan

  • Sign in via Authentik — avatar appears at sidebar bottom with correct name/email
  • Profile picture loads (if Authentik sends one); initials shown otherwise
  • Click avatar → popover opens with sign-out button
  • Sign out → redirects to /login
  • Collapse sidebar → avatar visible, no text overflow

🤖 Generated with Claude Code

NickyDoes added 3 commits April 20, 2026 15:03
signIn fires before DrizzleAdapter creates the user row for OIDC
providers, causing FK violation on user_orgs. jwt fires after the
adapter, so the user row exists by the time we insert the org.
Bottom of sidebar: profile picture (or initials fallback) + name/email.
Click opens a popover with sign-out. Collapsed sidebar shows avatar only.
Allows auth.demar.co image URLs for Authentik profile pictures.
- Replace docker-compose.dev.yml with LXC-based dev environment contract in deployment.md
- Document wheretf-dev LXC provisioning: systemd service, Postgres peer auth, Caddy proxy, Authentik OIDC, acceptance tests
- Add scripts/deploy-prod.sh fast-deploy path (build on LXC, ship to prod over LAN)
- Refactor monolithic web/db/seed.ts into modular web/db/seeds/ slices (taxonomy, interface_types, templates, items, modules)
- Add per-slice npm scripts; each slice is idempotent and dependency-gated
- Remove Docker check hook (.claude/hooks/check-docker.sh) — tests now run on LXC with local Postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant