Skip to content

fix/feature: site/client maintenance mode now requires every agent to be in maintenance mode - #2526

Open
BuddiesD wants to merge 1 commit into
amidaware:developfrom
BuddiesD:fix/maintenance-mode-display
Open

fix/feature: site/client maintenance mode now requires every agent to be in maintenance mode#2526
BuddiesD wants to merge 1 commit into
amidaware:developfrom
BuddiesD:fix/maintenance-mode-display

Conversation

@BuddiesD

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the maintenance mode indicator to only display when a client or site is indeed fully in maintenance mode.
Previously, the indicator was shown whenever any agent was in maintenance mode, which could be misleading. (it really bugs me, maybe its a feature request?)

Changes

  • changes the maintenance_mode annotation from Exists to Case/When
  • updates the logic so a client/site is only marked as being in maintenance mode when all of its agents are in maintenance mode

Notes

Current (this PR):

image image image

I also experimented with a few alternative designs:

Only display the maintenance icon when all agents within a site/client are in maintenance mode:
image
Display a maintenance icon in the corner when one or more agents in a site/client are in maintenance mode:
image
image

please ignore the different sizes and styles caused by different browsers 😅

I'm not sure which approach is preferred. If desired, we could include multiple display options and make the behavior configurable through the settings.

a ❤️ for the TRMM Dev's

…aintenance.

Changed maintenance_mode annotation from Exists() to Case/When
so that a site/client only shows as in maintenance when all agents
are in maintenance mode.
@BuddiesD

Copy link
Copy Markdown
Contributor Author

oh and found this
#1221
#1844

@BuddiesD BuddiesD changed the title fix: site/client maintenance mode now requires every agent to be in maintenance mode fix/feature: site/client maintenance mode now requires every agent to be in maintenance mode Aug 3, 2026
@datawolk

datawolk commented Aug 5, 2026

Copy link
Copy Markdown

+1, I'd love to see this merged. The current behavior of flagging a whole client/site as "in maintenance" when only one agent is in maintenance mode has been confusing for us too. This fix makes the indicator actually meaningful. Thanks for the work! 🙏

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