Skip to content

feat: distinguish login portals visually#7331

Open
SahilGawade07 wants to merge 1 commit into
mailcow:stagingfrom
SahilGawade07:feat/login-portal-distinction
Open

feat: distinguish login portals visually#7331
SahilGawade07 wants to merge 1 commit into
mailcow:stagingfrom
SahilGawade07:feat/login-portal-distinction

Conversation

@SahilGawade07

Copy link
Copy Markdown

Contribution Guidelines

What does this PR include?

Short Description

This PR addresses #7327 by making the user, domain administrator, and system administrator login portals more visually distinct.

Each login portal now has its own visual identity:

  • Green for the user portal
  • Blue for the domain administrator portal
  • Red for the system administrator portal

The links under "Other logins" are also displayed as more prominent, color-coded buttons based on the destination portal.

Portal-specific styling is provided for both light and dark mode.

Affected Containers

  • php-fpm-mailcow
  • nginx-mailcow

Did you run tests?

What did you tested?

Tested all three login portals on a local mailcow instance:

  • User login portal
  • Domain administrator login portal
  • System administrator login portal
  • Portal switching through the "Other logins" buttons
  • Light mode
  • Dark mode

What were the final results? (Awaited, got)

Expected the three login portals to be visually distinguishable and the portal-switch links to be more prominent while preserving the existing navigation and visibility conditions.

The result matched the expected behavior. Each portal has a distinct visual identity, the "Other logins" actions are displayed as color-coded buttons, and navigation between the login portals works as expected in both light and dark mode.

Screenshots

User portal

User login portal with green visual identity

Domain administrator portal

Domain administrator login portal with blue visual identity

System administrator portal

System administrator login portal with red visual identity

Closes #7327

@apio-sys

Copy link
Copy Markdown

I don't think this is a good idea. If someone have personalized logo's there you might have a very strange/noisy color mix. I personally would not want to implement this so maybe make it a toggle switch in admin for those who really want to (maybe with fields to specify each bg color). Thanks for the work and sorry to be negative, but I don't feel you can impose this on all (that use the product across multiple servers) without giving a choice.

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