chore(audit-drain): rip out next-intl, RTL lint, sweeps, polish
Drain the long-tail audit queue captured in alpha-uat-master.md.
- next-intl ripped out (zero useTranslations callers ever existed):
package.json, next.config.ts plugin wrap, src/i18n/, messages/, and
the layout NextIntlClientProvider all gone; <html lang="en"> hardcoded.
- RTL lint nudge added: warn-only no-restricted-syntax on physical
Tailwind utilities (ml-/mr-/pl-/pr-/text-left/text-right/border-l/
border-r/rounded-l-/rounded-r-) inside JSX className literals.
Existing ~1,000 sites grandfathered; new code trends toward logical.
- Icon-only button accessibility lint: jsx-a11y/control-has-associated-
label enabled at warn; 4 empty <th>/<td> action placeholders gain
sr-only labels.
- Currency: SUPPORTED_CURRENCIES drops the hardcoded English labels;
new currencyLabel(code, locale?) helper resolves via Intl.DisplayNames.
CurrencySelect + settings-manager migrated.
- Date locale sweep: 7 surfaces flip from toLocaleString('en-GB'|'en-US')
to toLocaleString(undefined, ...) so dates honour runtime locale.
- Dialog/Sheet width: 10 document/EOI/entity-form dialogs gain a
lg:max-w-4xl or lg:max-w-5xl step so wide desktops get breathing room.
- PaymentsSection collapsed-bar: slim one-line bar showing
"Payments - Not received yet" or "Payments - \$X received - N payments
- Expand"; per-interest collapse state persists in localStorage; the
RecordPayment flow auto-expands.
- muted-foreground opacity sweep: 10 text-bearing
text-muted-foreground/{60,70,80} hits dropped to plain
text-muted-foreground for AA contrast on muted bg. Icon-only
(aria-hidden) opacity hits left as-is.
- Micro-type bump: text-[10px] and text-[11px] -> text-xs (12px)
across 87 files in src/components + src/app. Pure mechanical sweep.
- Audit-doc cleanup: alpha-uat-master.md stale 2026-05-25 summary
rewritten with cumulative state through today. Items genuinely still
open are now a short long-tail list.
- New docs/marketing-site-followups.md: Umami Phase 4a/3/5, email
pixel E2E verification, and website-cutover work parked here so
they don't get lost in the CRM audit doc.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -630,7 +630,7 @@ function ResultsRegion({
|
||||
isFocused && 'bg-accent text-foreground',
|
||||
)}
|
||||
>
|
||||
<span className="text-[10px] uppercase tracking-wide text-muted-foreground/70">
|
||||
<span className="text-xs uppercase tracking-wide text-muted-foreground">
|
||||
{row.portName}
|
||||
</span>
|
||||
<span className="truncate text-foreground">
|
||||
@@ -659,7 +659,7 @@ function ZeroState({ query, portSlug }: { query: string; portSlug: string | null
|
||||
<p className="text-sm text-muted-foreground mb-3">
|
||||
No results for <span className="font-medium text-foreground">“{query}”</span>
|
||||
</p>
|
||||
<p className="text-xs uppercase tracking-wide text-muted-foreground/70 mb-2">Quick create</p>
|
||||
<p className="text-xs uppercase tracking-wide text-muted-foreground mb-2">Quick create</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{/* Land on the list page with `?create=1&prefill_name=…`; the list
|
||||
page's `useCreateFromUrl` hook pops the create sheet with the
|
||||
@@ -754,7 +754,7 @@ function ResultRow({
|
||||
</div>
|
||||
)}
|
||||
{row.relatedVia && (
|
||||
<div className="text-[11px] italic text-muted-foreground/80 truncate mt-0.5">
|
||||
<div className="text-xs italic text-muted-foreground truncate mt-0.5">
|
||||
via {row.relatedVia.label}
|
||||
</div>
|
||||
)}
|
||||
@@ -779,7 +779,7 @@ function Badge({
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
'inline-flex items-center rounded px-1.5 py-0 text-[10px] font-semibold uppercase tracking-wide',
|
||||
'inline-flex items-center rounded px-1.5 py-0 text-xs font-semibold uppercase tracking-wide',
|
||||
cls,
|
||||
)}
|
||||
>
|
||||
@@ -790,7 +790,7 @@ function Badge({
|
||||
|
||||
function SectionHeading({ icon: Icon, children }: { icon: typeof User; children: ReactNode }) {
|
||||
return (
|
||||
<div className="flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
<div className="flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
<Icon className="h-3 w-3" />
|
||||
<span>{children}</span>
|
||||
</div>
|
||||
|
||||
@@ -483,7 +483,7 @@ function renderResultRows(
|
||||
nodes.push(
|
||||
<div
|
||||
key={`__bucket_${row.bucket}_${i}`}
|
||||
className="px-3 pt-3 pb-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"
|
||||
className="px-3 pt-3 pb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground"
|
||||
>
|
||||
{BUCKET_LABELS[row.bucket] ?? row.bucket}
|
||||
</div>,
|
||||
@@ -500,7 +500,7 @@ function renderResultRows(
|
||||
<>
|
||||
{row.sub ? <HighlightMatch text={row.sub} query={query} /> : null}
|
||||
{row.relatedVia ? (
|
||||
<span className="block text-[11px] italic text-muted-foreground/80">
|
||||
<span className="block text-xs italic text-muted-foreground">
|
||||
via {row.relatedVia.label}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -562,7 +562,7 @@ function Section({
|
||||
}) {
|
||||
return (
|
||||
<section>
|
||||
<div className="flex items-center gap-1.5 px-3 pt-2 pb-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
<div className="flex items-center gap-1.5 px-3 pt-2 pb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
{icon}
|
||||
{label}
|
||||
</div>
|
||||
@@ -604,7 +604,7 @@ function Row({
|
||||
<span
|
||||
key={b.label}
|
||||
className={cn(
|
||||
'rounded-full px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide',
|
||||
'rounded-full px-1.5 py-0.5 text-xs font-medium uppercase tracking-wide',
|
||||
BADGE_TONE[b.tone],
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user