Polish: phone alert cards, quieter badges, footer, small layout fixes #48

Merged
jared merged 1 commits from polish into main 2026-11-18 01:49:35 -05:00
Owner

Small fixes from a page-by-page audit (dark, light and phone) on preview data.

Changes

  • Active alerts on phones: the dashboard table squeezed every column to a few letters ("c r i t i c a l" one letter per line). It now shows one card per alert, using the same card mode as other tables (lt-table-responsive with data-labels), in both the server and JS renderers.
  • Quieter section badges: counts like "History 0", "Active suppressions 0", the cutsheet counts and the rack count were drawn in alarm red. Badges are now neutral, and red is kept (g-section-badge-alert) for active alerts and tickets to follow up.
  • Host cards: the orange "prometheus" tag was on every card. It now appears only when the source is something else (a ping-only host).
  • WAN / Fiber: the BGW320 never reports uptime here, so "Uptime -" was permanent. The panel now shows the last restart instead, or nothing if none is known.
  • Footer: CFG and HELP were grey browser-default buttons in a larger font. They now read like the keyboard hints beside them. The footer also sits at the bottom of the window on short pages instead of halfway up.
  • Fields: the alert filter and the suppression form fields are wide enough for their hints, and the Apply button keeps its size.
  • Times: "just now" instead of a negative age ("-12s ago") when the server clock is a little ahead.

Before and after

Phone, active alerts:

Before After

Short page (footer):
before
after

Suppressions (field widths, neutral badges):
before
after

Host cards:
before
after

Checks

  • 526 tests pass (new: source tag only for non node_exporter hosts; alert table card mode markup).
  • flake8 and bandit are clean; eslint is at the 21-warning baseline.
  • No console errors and no horizontal scroll on any page at 390 px.

🤖 Generated with Claude Code

Small fixes from a page-by-page audit (dark, light and phone) on preview data. ## Changes - **Active alerts on phones**: the dashboard table squeezed every column to a few letters ("c r i t i c a l" one letter per line). It now shows one card per alert, using the same card mode as other tables (`lt-table-responsive` with `data-label`s), in both the server and JS renderers. - **Quieter section badges**: counts like "History 0", "Active suppressions 0", the cutsheet counts and the rack count were drawn in alarm red. Badges are now neutral, and red is kept (`g-section-badge-alert`) for active alerts and tickets to follow up. - **Host cards**: the orange "prometheus" tag was on every card. It now appears only when the source is something else (a ping-only host). - **WAN / Fiber**: the BGW320 never reports uptime here, so "Uptime -" was permanent. The panel now shows the last restart instead, or nothing if none is known. - **Footer**: CFG and HELP were grey browser-default buttons in a larger font. They now read like the keyboard hints beside them. The footer also sits at the bottom of the window on short pages instead of halfway up. - **Fields**: the alert filter and the suppression form fields are wide enough for their hints, and the Apply button keeps its size. - **Times**: "just now" instead of a negative age ("-12s ago") when the server clock is a little ahead. ## Before and after Phone, active alerts: | Before | After | |---|---| | ![](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/before-phone-alerts.png) | ![](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/after-phone-alerts.png) | Short page (footer): ![before](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/before-short-page.png) ![after](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/after-short-page.png) Suppressions (field widths, neutral badges): ![before](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/before-suppressions.png) ![after](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/after-suppressions.png) Host cards: ![before](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/before-hosts.png) ![after](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-47-screenshots/after-hosts.png) ## Checks - 526 tests pass (new: source tag only for non node_exporter hosts; alert table card mode markup). - flake8 and bandit are clean; eslint is at the 21-warning baseline. - No console errors and no horizontal scroll on any page at 390 px. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-18 01:37:16 -05:00
Polish: phone alert cards, quieter badges, footer, small layout fixes
Lint / JS (eslint) (push) Successful in 14s
Lint / Python (flake8) (push) Successful in 1m17s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / Python (flake8) (pull_request) Successful in 57s
Security / Python Security (bandit) (push) Successful in 1m0s
Test / Python Tests (pytest) (push) Successful in 1m56s
Security / Python Security (bandit) (pull_request) Successful in 1m52s
Lint / JS (eslint) (pull_request) Successful in 8s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Test / Python Tests (pytest) (pull_request) Successful in 1m25s
7da4cc26e2
- Active alerts on the dashboard become one card per alert on phones
  instead of a table squeezed to a letter per line.
- Section count badges are neutral; red is kept for active alerts and
  tickets to follow up, so "History 0" no longer looks like a problem.
- Host cards only tag the data source when it isn't node_exporter
  (a ping-only host), instead of "prometheus" on every card.
- WAN / Fiber: the BGW320 doesn't report uptime here, so show the last
  restart instead of a permanent "Uptime -".
- Footer: CFG and HELP read like the hints beside them rather than grey
  browser buttons, and the footer sits at the bottom of short pages.
- Wider alert filter and suppression name fields so their hints fit.
- "just now" instead of a negative age when a clock runs a little ahead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared scheduled this pull request to auto merge when all checks succeed 2026-11-18 01:49:32 -05:00
jared merged commit 4ad331ddfe into main 2026-11-18 01:49:35 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#48