Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flash kind for successful interactions #5969

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 9, 2024

  1. Add flash kind for successful interactions

    Introduce a `:success` kind for flash messages in the generator
    output and update relevant documentation.
    
    Success messages that previously used `:info` now use `:success`,
    ensuring they continue to appear in green with a "Success!" title.
    
    In certain cases (e.g. password reset), `:info` is retained to avoid
    disclosing too much information (such as the existence of an account).
    These messages now appear in blue with a "Please note" title.
    
    Rationale for those changes:
    
    - Differentiate informational messages from successful actions
    
    - Avoid confusion from informational messages styled in green, which
      can imply success
    
    - Ensure `:info` is used for neutral messages, and use `:success` to
      clearly indicate completed actions
    rmoorman committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    6f4838c View commit details
    Browse the repository at this point in the history