Design consistency audit fixes: alerts, cards, dark mode, utilities

Alert sweep (113 alerts, 79 files):
  All persistent static banners now carry alert-permanent so the
  layout's 5-second auto-dismiss cannot swallow guidance, warnings,
  or validation errors. Transient dismissible toasts left untouched.

CSS fixes (site.css):
  .card.shadow-sm      — strips rogue border from ~40 drifted cards
  .card-header.bg-white — rebinds to var(--bs-body-bg) so card
                          headers follow dark/light theme correctly
  Typography utilities  — .text-2xs (.68rem), .text-xs (.73rem)
  Token color classes   — .text-ember, .text-ok, .text-bad,
                          .text-warn, .text-cool, .bg-paper-2
  Layout utilities      — .mw-xs/sm/md/lg replace inline max-width
  Comment              — documents text-ember vs text-primary intent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 18:05:29 -04:00
parent f6d457fe0e
commit 328b195127
80 changed files with 603 additions and 561 deletions
@@ -1,4 +1,4 @@
@model PowderCoating.Application.DTOs.Maintenance.CreateMaintenanceDto
@model PowderCoating.Application.DTOs.Maintenance.CreateMaintenanceDto
@{
ViewData["Title"] = "Schedule Maintenance";
@@ -30,7 +30,7 @@
<a tabindex="0" class="help-icon" role="button"
data-bs-toggle="popover" data-bs-placement="right" data-bs-trigger="focus"
data-bs-title="Basic Information"
data-bs-content="Select the equipment this service applies to. Maintenance Type is a free-text label like Preventive, Repair, or Inspection. Status: Scheduled = planned, In Progress = underway, Completed = finished. Priority: Low / Normal / High / Critical Critical and High priorities are highlighted in the list view and on the equipment status banner.">
data-bs-content="Select the equipment this service applies to. Maintenance Type is a free-text label like Preventive, Repair, or Inspection. Status: Scheduled = planned, In Progress = underway, Completed = finished. Priority: Low / Normal / High / Critical — Critical and High priorities are highlighted in the list view and on the equipment status banner.">
<i class="bi bi-question-circle"></i>
</a>
</div>
@@ -211,7 +211,7 @@
<span asp-validation-for="RecurrenceEndDate" class="text-danger"></span>
</div>
</div>
<div class="alert alert-info mt-3 small mb-0">
<div class="alert alert-info alert-permanent mt-3 small mb-0">
<i class="bi bi-info-circle me-1"></i>
If no end date is set, occurrences will be generated for:
Daily = 90 days &bull; Weekly / Bi-Weekly = 1 year &bull; Monthly = 2 years &bull; Quarterly / Annually = 3 years &bull; Bi-Annually = 18 months.
@@ -1,4 +1,4 @@
@model PowderCoating.Application.DTOs.Maintenance.MaintenanceRecordDto
@model PowderCoating.Application.DTOs.Maintenance.MaintenanceRecordDto
@{
ViewData["Title"] = "Delete Maintenance Record";
@@ -14,7 +14,7 @@
</a>
</div>
<div class="alert alert-danger" role="alert">
<div class="alert alert-danger alert-permanent" role="alert">
<i class="bi bi-exclamation-triangle me-2"></i>
<strong>Warning:</strong> This action cannot be undone.
</div>
@@ -22,7 +22,7 @@
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-danger bg-opacity-10 border-0 py-3">
<h5 class="mb-0 text-danger">
<i class="bi bi-wrench me-2"></i>@Model.MaintenanceType @Model.EquipmentName
<i class="bi bi-wrench me-2"></i>@Model.MaintenanceType — @Model.EquipmentName
</h5>
</div>
<div class="card-body">
@@ -1,4 +1,4 @@
@model PowderCoating.Application.DTOs.Maintenance.UpdateMaintenanceDto
@model PowderCoating.Application.DTOs.Maintenance.UpdateMaintenanceDto
@{
ViewData["Title"] = "Edit Maintenance";
@@ -31,7 +31,7 @@
<a tabindex="0" class="help-icon" role="button"
data-bs-toggle="popover" data-bs-placement="right" data-bs-trigger="focus"
data-bs-title="Basic Information"
data-bs-content="Select the equipment this service applies to. Maintenance Type is a free-text label like Preventive, Repair, or Inspection. Status: Scheduled = planned, In Progress = underway, Completed = finished. Priority: Low / Normal / High / Critical Critical and High priorities are highlighted in the list view and on the equipment status banner.">
data-bs-content="Select the equipment this service applies to. Maintenance Type is a free-text label like Preventive, Repair, or Inspection. Status: Scheduled = planned, In Progress = underway, Completed = finished. Priority: Low / Normal / High / Critical — Critical and High priorities are highlighted in the list view and on the equipment status banner.">
<i class="bi bi-question-circle"></i>
</a>
</div>
@@ -188,7 +188,7 @@
</div>
@if (ViewBag.IsRecurringSeries as bool? == true)
{
<div class="alert alert-warning mb-3 small">
<div class="alert alert-warning alert-permanent mb-3 small">
<i class="bi bi-exclamation-triangle me-1"></i>
<strong>This is part of a recurring series.</strong>
Changing recurrence settings will delete all future scheduled/overdue occurrences and regenerate them from this record's date.
@@ -221,7 +221,7 @@
<span asp-validation-for="RecurrenceEndDate" class="text-danger"></span>
</div>
</div>
<div class="alert alert-info mt-3 small mb-0">
<div class="alert alert-info alert-permanent mt-3 small mb-0">
<i class="bi bi-info-circle me-1"></i>
If no end date is set, occurrences will be generated for:
Daily = 90 days &bull; Weekly / Bi-Weekly = 1 year &bull; Monthly = 2 years &bull; Quarterly / Annually = 3 years &bull; Bi-Annually = 18 months.