Skip to content

feat: add localized random greetings after sign-in#146

Open
JOORVIS wants to merge 5 commits intomainfrom
feature/issue-145-funny-sign-in-greeting
Open

feat: add localized random greetings after sign-in#146
JOORVIS wants to merge 5 commits intomainfrom
feature/issue-145-funny-sign-in-greeting

Conversation

@JOORVIS
Copy link
Collaborator

@JOORVIS JOORVIS commented Feb 23, 2026

Summary

  • Add a LoginSuccessEvent listener that flashes one random auth.greeting.* key for successful logins on the main firewall.
  • Add localized nerd-humor greeting messages in English and German, and render the new auth_greeting flash type through trans on first-page flash output.
  • Add unit tests for greeting key selection and login-success listener behavior, plus functional sign-in tests for one-time display and German localization.

Test plan

  • mise run tests
  • mise run tests:frontend
  • mise run frontend
  • mise run quality (fails in this workspace due existing lint issues in .productbuilder-runtime artifacts unrelated to this change)

Closes #145

Add a login-success listener that flashes a random greeting translation key so users see a one-time localized nerd-humor greeting on the first page after authentication. Include provider, listener, and functional/unit tests to verify key selection, event handling, and flash consumption behavior.
@manuelkiessling
Copy link
Member

The quality checks do not pass.

Tighten session and greeting key typing so the login greeting listener and tests satisfy PHPStan and project standards, restoring a passing quality pipeline for the feature branch.
@manuelkiessling
Copy link
Member

Please make another round of code improvements. See where you can improve overall implementation quality.

Centralize greeting metadata and skip non-redirect login responses so flashes stay scoped to browser navigation flows. Derive functional greeting assertions from provider keys and translations to keep tests aligned with localized content changes.
@manuelkiessling
Copy link
Member

Please add feature documentation!

Guard greeting flashes to HTML login contexts only, make greeting assertions more robust via typed flash metadata, and document the full post-sign-in greeting flow for maintainability.
@manuelkiessling
Copy link
Member

Please add more technical details to the documentation.

Prevent duplicate sign-in greeting flashes during multi-handler login paths and document the feature with event-level guard details for maintainability. Also refactor edit-session chunk handling to satisfy PHPStan so quality checks pass reliably.
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.

2 participants