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.Web.Controllers.DiagnosticsInfo
@model PowderCoating.Web.Controllers.DiagnosticsInfo
@{
ViewData["Title"] = "System Diagnostics";
ViewData["PageIcon"] = "bi-activity";
@@ -47,11 +47,11 @@
<td>
@if (Model.CanWriteToAppPath)
{
<span class="badge bg-success"> YES</span>
<span class="badge bg-success">✓ YES</span>
}
else
{
<span class="badge bg-danger"> NO - PERMISSION ISSUE</span>
<span class="badge bg-danger">✗ NO - PERMISSION ISSUE</span>
}
</td>
</tr>
@@ -60,11 +60,11 @@
<td>
@if (Model.LogsDirectoryExists)
{
<span class="badge bg-success"> YES</span>
<span class="badge bg-success">✓ YES</span>
}
else
{
<span class="badge bg-warning"> NO</span>
<span class="badge bg-warning">✗ NO</span>
}
</td>
</tr>
@@ -73,11 +73,11 @@
<td>
@if (Model.CanWriteToLogsPath)
{
<span class="badge bg-success"> YES</span>
<span class="badge bg-success">✓ YES</span>
}
else
{
<span class="badge bg-danger"> NO - PERMISSION ISSUE</span>
<span class="badge bg-danger">✗ NO - PERMISSION ISSUE</span>
}
</td>
</tr>
@@ -111,7 +111,7 @@
<p><strong>Message:</strong> @Model.LoggingTestMessage</p>
@if (Model.LoggingTestSuccess)
{
<div class="alert alert-info">
<div class="alert alert-info alert-permanent">
<i class="bi bi-info-circle"></i> A test log entry was written. Check the log files below to see if it appears.
</div>
}
@@ -132,7 +132,7 @@
<div class="card-body">
@if (Model.LogFilesError != null)
{
<div class="alert alert-danger">
<div class="alert alert-danger alert-permanent">
<strong>Error reading log files:</strong> @Model.LogFilesError
</div>
}
@@ -162,7 +162,7 @@
}
else
{
<div class="alert alert-warning">
<div class="alert alert-warning alert-permanent">
<i class="bi bi-exclamation-triangle"></i> <strong>No log files found!</strong>
<hr>
<p class="mb-0">This means logs are not being written. Check the permissions above.</p>
@@ -175,7 +175,7 @@
<div class="row mt-4">
<div class="col-12">
<div class="alert alert-info">
<div class="alert alert-info alert-permanent">
<h6><i class="bi bi-lightbulb"></i> Troubleshooting Tips</h6>
<ul class="mb-0">
<li>If "Can Write to Logs" shows NO, the IIS Application Pool doesn't have write permissions</li>
@@ -1,4 +1,4 @@
@model PowderCoating.Web.Controllers.LogViewerModel
@model PowderCoating.Web.Controllers.LogViewerModel
@{
ViewData["Title"] = "Log Viewer";
ViewData["PageIcon"] = "bi-file-text";
@@ -31,7 +31,7 @@
@if (!string.IsNullOrEmpty(Model.Error))
{
<div class="alert alert-danger">
<div class="alert alert-danger alert-permanent">
<i class="bi bi-exclamation-triangle"></i> @Model.Error
</div>
}
@@ -163,7 +163,7 @@
}
else
{
<div class="alert alert-info">
<div class="alert alert-info alert-permanent">
<i class="bi bi-info-circle"></i> No log files found in <code>@Model.LogsPath</code>
</div>
}