Skip to content

feat: add auth-aware header action - #107

Merged
doljak merged 1 commit into
mainfrom
feat/auth-header-106-add-auth-aware-header-action
May 19, 2026
Merged

doljak merged 1 commit into
mainfrom
feat/auth-header-106-add-auth-aware-header-action

Conversation

@doljak

@doljak doljak commented May 19, 2026

Copy link
Copy Markdown
Contributor

What changed

  • page.html.twig — renders login/logout action in header based on Drupal auth state (logged_in Twig variable)
  • global.css — styles for the header auth action element

Why

Completes the auth-aware header behavior for Waggy — users see a contextual action (login vs logout) without requiring custom PHP preprocessors.

What to review

  • page.html.twig — conditional logic using logged_in
  • global.css — header action styles, check for regressions in existing header layout

Closes #106

🤖 Generated with Claude Code

- Update page.html.twig to render login/logout header action based on auth state
- Update global.css for header action styling

Closes #106

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@doljak
doljak merged commit 4f74a5b into main May 19, 2026
2 checks passed
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.

[Feature] Add auth-aware header action

1 participant