Skip to content

Various UX improvements#44

Merged
arktronic-sep merged 9 commits into
mainfrom
ux-tweaks
Feb 27, 2026
Merged

Various UX improvements#44
arktronic-sep merged 9 commits into
mainfrom
ux-tweaks

Conversation

@arktronic-sep
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR delivers several UX improvements to the SAMA monitoring application: active navigation highlighting in the top navbar, a live "blip" indicator on pages with auto-refresh, and a consistent loading spinner that stays visible during server-side redirects triggered by HTMX forms. It also extends the existing auto-refresh polling to the Checks/Details page and unifies the "Created" timestamp display across delete confirmation pages to use client-side locale formatting.

Changes:

  • Active nav state: Adds an IsActiveNav helper to _Layout.cshtml to highlight the correct navbar link based on the current URL, and removes the now-redundant "Home" nav link.
  • Live refresh indicator: Adds a CSS-animated "blip" dot to the header of pages with auto-refresh (Dashboard, Checks/Index, Checks/Details) that pulses on each polling cycle via HTMX OOB swaps.
  • UX polish: Renames the "Dashboard" settings section to "Display", redirects after successful settings save, converts delete-form buttons to HTMX with a spinner, and uses locale-formatted <time> elements on delete confirmation pages.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SAMA.Web/wwwroot/js/site.js Adds htmx:afterRequest listener to keep the spinner class active during HX-Redirect navigations
SAMA.Web/wwwroot/css/site.css Adds .live-indicator dot style and @keyframes live-blip animation
SAMA.Web/Pages/Shared/_Layout.cshtml Adds IsActiveNav helper, applies active class to nav links, removes "Home" link
SAMA.Web/Pages/Dashboard/Index.cshtml Adds live-indicator span to heading
SAMA.Web/Pages/Checks/Index.cshtml Adds live-indicator span to heading
SAMA.Web/Pages/Checks/Details.cshtml Adds polling placeholder, wraps live sections in OOB divs, adds live-indicator span
SAMA.Web/Pages/Checks/Details.cshtml.cs Injects GlobalSettingsService to expose RefreshIntervalSeconds
SAMA.Web/Pages/Alerts/Delete.cshtml Adds HTMX form with spinner, locale timestamps, updated warning copy
SAMA.Web/Pages/Admin/Settings/Index.cshtml Renames section to "Display", updates icon to icon-monitor, updates help text
SAMA.Web/Pages/Admin/Settings/Index.cshtml.cs Post handler now redirects instead of re-rendering; renames setting label
SAMA.Web/Pages/Workspaces/Delete.cshtml Uses <time> element for locale "Created" date
SAMA.Web/Pages/NotificationChannels/Delete.cshtml Uses <time> element for locale "Created" date
SAMA.Web/Pages/Checks/Delete.cshtml Uses <time> element for locale "Created" date
SAMA.Web/Pages/Admin/Users/Index.cshtml Switches table from table-striped to table-hover
SAMA.Web/Pages/Admin/Users/Delete.cshtml Uses <time> element for locale "Created" date
SAMA.Tests.Unit/Web/Pages/Checks/DetailsModelTests.cs Updates test setup to mock GlobalSettingsService
SAMA.Tests.Unit/Web/Pages/Admin/Settings/IndexModelTests.cs Updates assertions from PageResult to RedirectToPageResult

Comment thread SAMA.Web/Pages/Shared/_Layout.cshtml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@arktronic-sep arktronic-sep merged commit dd1d125 into main Feb 27, 2026
4 checks passed
@arktronic-sep arktronic-sep deleted the ux-tweaks branch February 27, 2026 21:19
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