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:
@@ -1,8 +1,8 @@
|
||||
@using PowderCoating.Core.Entities
|
||||
@using PowderCoating.Core.Entities
|
||||
@using PowderCoating.Core.Enums
|
||||
@model Company
|
||||
@{
|
||||
ViewData["Title"] = $"Manage – {Model.CompanyName}";
|
||||
ViewData["Title"] = $"Manage – {Model.CompanyName}";
|
||||
var planConfigs = (dynamic)ViewBag.PlanConfigs;
|
||||
|
||||
string PlanName(int plan)
|
||||
@@ -66,9 +66,9 @@
|
||||
<dt class="col-7 text-muted">Users</dt>
|
||||
<dd class="col-5 fw-semibold">@ViewBag.UserCount</dd>
|
||||
<dt class="col-7 text-muted">Stripe Customer</dt>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeCustomerId ?? "—")</code></dd>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeCustomerId ?? "—")</code></dd>
|
||||
<dt class="col-7 text-muted">Stripe Sub</dt>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeSubscriptionId ?? "—")</code></dd>
|
||||
<dd class="col-5"><code class="small">@(Model.StripeSubscriptionId ?? "—")</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
@@ -99,7 +99,7 @@
|
||||
<form method="post" asp-action="UpdateSubscription" asp-route-id="@Model.Id">
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
@* Comped / Internal card — prominent *@
|
||||
@* Comped / Internal card — prominent *@
|
||||
<div class="card border-0 shadow-sm mb-3 @(Model.IsComped ? "border-success border-2" : "")">
|
||||
<div class="card-header border-0 py-3 @(Model.IsComped ? "bg-success bg-opacity-10" : "bg-white")">
|
||||
<h6 class="mb-0 fw-semibold">
|
||||
@@ -345,17 +345,17 @@
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning small mb-3">
|
||||
<div class="alert alert-warning alert-permanent small mb-3">
|
||||
<i class="bi bi-exclamation-triangle me-1"></i>
|
||||
This will immediately issue a refund via Stripe. This action cannot be undone.
|
||||
</div>
|
||||
<dl class="row small mb-3">
|
||||
<dt class="col-5 text-muted">Invoice</dt>
|
||||
<dd class="col-7 font-monospace" id="refund-invoice-number">—</dd>
|
||||
<dd class="col-7 font-monospace" id="refund-invoice-number">—</dd>
|
||||
<dt class="col-5 text-muted">Amount Paid</dt>
|
||||
<dd class="col-7 fw-semibold" id="refund-amount-paid">—</dd>
|
||||
<dd class="col-7 fw-semibold" id="refund-amount-paid">—</dd>
|
||||
<dt class="col-5 text-muted">Max Refundable</dt>
|
||||
<dd class="col-7 fw-semibold text-success" id="refund-max-amount">—</dd>
|
||||
<dd class="col-7 fw-semibold text-success" id="refund-max-amount">—</dd>
|
||||
</dl>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-medium">Refund Amount</label>
|
||||
@@ -402,7 +402,7 @@
|
||||
|
||||
@section Scripts {
|
||||
<script>
|
||||
// ── State for the refund modal ────────────────────────────────────────────────
|
||||
// ââ€â‚¬Ã¢â€â‚¬ State for the refund modal ââ€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬
|
||||
let _refundPaymentIntentId = null;
|
||||
let _refundMaxCents = 0;
|
||||
let _refundAmountPaid = '';
|
||||
@@ -442,7 +442,7 @@ async function loadPaymentHistory() {
|
||||
: '';
|
||||
const refundedCell = ch.amountRefunded
|
||||
? `<span class="text-danger small">${ch.amountRefunded}</span>`
|
||||
: '<span class="text-muted small">—</span>';
|
||||
: '<span class="text-muted small">—</span>';
|
||||
const desc = ch.description ? `<span class="text-muted">${ch.description}</span>` : `<code class="small">${ch.id}</code>`;
|
||||
|
||||
// Show Refund button only for succeeded charges that still have something refundable
|
||||
@@ -469,7 +469,7 @@ async function loadPaymentHistory() {
|
||||
}
|
||||
|
||||
function openRefundModal(chargeId, refundableCents, amountPaid, displayLabel) {
|
||||
_refundPaymentIntentId = chargeId; // reusing variable — now holds charge ID
|
||||
_refundPaymentIntentId = chargeId; // reusing variable — now holds charge ID
|
||||
_refundMaxCents = refundableCents;
|
||||
_refundAmountPaid = amountPaid;
|
||||
_refundInvoiceNumber = displayLabel;
|
||||
@@ -509,7 +509,7 @@ async function submitRefund() {
|
||||
}
|
||||
|
||||
submitBtn.disabled = true;
|
||||
submitBtn.innerHTML = '<span class="spinner-border spinner-border-sm me-1"></span>Processing…';
|
||||
submitBtn.innerHTML = '<span class="spinner-border spinner-border-sm me-1"></span>Processing…';
|
||||
|
||||
try {
|
||||
const formData = new FormData();
|
||||
|
||||
Reference in New Issue
Block a user