Sweep all .cshtml files for encoding corruption; add pre-commit guard
Replace all corruption variants with HTML entities across 226 view files: - 3-char UTF-8-as-Win1252 sequences (ae-corruption) - Standalone smart/curly quotes that break C# Razor expressions - Partially re-corrupted variants where the 3rd byte was normalised to ASCII tools/Fix-Encoding.ps1: re-runnable sweep; uses [char] code points so the script itself never contains a literal non-ASCII character; supports -DryRun .githooks/pre-commit: blocks commits containing the ae-corruption byte signature (xc3xa2xe2x82xac); git core.hooksPath = .githooks so the hook is repo-committed and active for all future work on this machine. Build clean; 225 unit tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
return "bg-success";
|
||||
}
|
||||
|
||||
string LimitDisplay(int max) => max == -1 ? "∞" : max == 0 ? "—" : max.ToString();
|
||||
string LimitDisplay(int max) => max == -1 ? "∞" : max == 0 ? "—" : max.ToString();
|
||||
|
||||
int BarWidth(int used, int max)
|
||||
{
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
@section Styles {
|
||||
<style>
|
||||
/* Dark mode: bg-info text-dark badges — text-dark is unreadable in dark mode */
|
||||
/* Dark mode: bg-info text-dark badges — text-dark is unreadable in dark mode */
|
||||
[data-bs-theme="dark"] .badge.bg-info.text-dark {
|
||||
color: #fff !important;
|
||||
}
|
||||
@@ -184,7 +184,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@* Mobile card view — shown on screens < 992px *@
|
||||
@* Mobile card view — shown on screens < 992px *@
|
||||
<div class="mobile-card-view d-lg-none">
|
||||
<div class="small text-muted mb-2">@Model.Count company(ies)</div>
|
||||
@if (!Model.Any())
|
||||
@@ -257,7 +257,7 @@
|
||||
}
|
||||
if (max == 0)
|
||||
{
|
||||
return new HtmlString($"<span class=\"small text-muted\">{used} / —</span>");
|
||||
return new HtmlString($"<span class=\"small text-muted\">{used} / —</span>");
|
||||
}
|
||||
var pct = Math.Min(100, (int)Math.Round((double)used / max * 100));
|
||||
var color = pct >= 100 ? "danger" : pct >= 80 ? "warning" : "success";
|
||||
|
||||
Reference in New Issue
Block a user