Skip to content

Color the remaining result notices by what they mean - #273

Merged
drudge merged 4 commits into
mainfrom
claude/notice-colors
Sep 29, 2026
Merged

drudge merged 4 commits into
mainfrom
claude/notice-colors

Conversation

@drudge

@drudge drudge commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Follows #271, which made the SSO card's test result green.

A few on-page notices didn't follow green for success, amber for a warning, and red for a failure:

  • Single sign-on wizard: the provider's answer was a plain gray box. It's green now, like the card's.
  • MCP setup, creating the group: success was plain gray text, while failure got a red box. It's a green box now.
  • MCP security warnings: Sign-in is off on this server and This address is not HTTPS were red boxes on the MCP card but blue notes in the setup wizard. Nothing has failed, so both places show them as the same amber warning.
  • Rolling updates: a failed rollout showed its reason in plain gray text. It's a red box now, and one an operator stopped is an amber one.

The notice box (.unifi-status) gains an amber warning variant beside its success and error ones, in the amber (#d97706) the console's other warnings use. Tests cover each notice, and fail against the old markup.

Screenshots

These states need a live identity provider, an MCP group being created, or a rollout that fails, which the Vandelay demo can't produce on its own. So each shot renders the real component, from main or from this branch, and places it on that demo's page, which supplies the real styles and fonts. Dark and light.

Single sign-on wizard: the provider answered

Before After

MCP setup: the group was created

Before After

MCP setup: the address isn't HTTPS

Before After

MCP card: the same warning

Before After

Rolling update failed

Before After

Rolling update stopped by an operator

Before After

Checks

  • go tool mage verify and gofmt -l .
  • TestBrowser with Chrome

Testing the single sign-on provider showed "The provider answered" in
the same plain gray box as any note, while "Could not reach the
provider" was already red. A good answer now gets the matching green:
a green-tinted box and a green shield, from the same color the
dashboard uses for queries without errors.
A few on-page notices didn't follow green for success, amber for a
warning, and red for a failure:

- The single sign-on wizard showed the provider's answer in a plain
  gray box. It is green now, like the card's since the last change.
- Creating the MCP Server group said it worked in plain gray text,
  while failing to said so in a red box. It is a green box now.
- "Sign-in is off on this server" and "This address is not HTTPS" were
  red boxes on the MCP card but blue notes in its setup wizard. Nothing
  has failed, so both places show them as the same amber warning.
- A failed rolling update showed its reason in plain gray text. It is
  a red box now, and one an operator stopped is an amber one.

The notice box gains an amber variant beside its green and red ones,
in the amber the console's other warnings use.
drudge added a commit that referenced this pull request Sep 29, 2026
@drudge
drudge enabled auto-merge (squash) September 29, 2026 16:47
# Conflicts:
#	internal/web/assets/app.css
#	internal/web/pages/integrations_test.go
@drudge
drudge merged commit 9676ea8 into main Sep 29, 2026
4 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.

1 participant