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:
@@ -193,9 +193,7 @@ function BulkHardDeleteDialogBody({ onOpenChange, clientIds, onDeleted }: Props)
|
||||
<tbody>
|
||||
{skipped.map((row) => (
|
||||
<tr key={row.clientId} className="border-t">
|
||||
<td className="px-2 py-1.5 font-mono text-[11px]">
|
||||
{row.clientId.slice(0, 8)}…
|
||||
</td>
|
||||
<td className="px-2 py-1.5 font-mono text-xs">{row.clientId.slice(0, 8)}…</td>
|
||||
<td className="px-2 py-1.5">{row.reason}</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -123,7 +123,7 @@ export function ClientCard({ client, portSlug, onEdit, onArchive }: ClientCardPr
|
||||
<span className="truncate">{interestBerthLabel}</span>
|
||||
<span aria-hidden>·</span>
|
||||
<span
|
||||
className={`shrink-0 rounded-full px-1.5 py-0.5 text-[10px] font-medium ${interestStageBadge}`}
|
||||
className={`shrink-0 rounded-full px-1.5 py-0.5 text-xs font-medium ${interestStageBadge}`}
|
||||
>
|
||||
{interestStageLabel}
|
||||
</span>
|
||||
|
||||
@@ -251,7 +251,7 @@ function ContactRowItem({
|
||||
)}
|
||||
<span className="truncate text-sm">{displayValue}</span>
|
||||
{row.label ? (
|
||||
<span className="shrink-0 rounded-sm bg-muted px-1 text-[10px] text-muted-foreground">
|
||||
<span className="shrink-0 rounded-sm bg-muted px-1 text-xs text-muted-foreground">
|
||||
{row.label}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -265,7 +265,7 @@ function ContactRowItem({
|
||||
onClick={() => promote.mutate()}
|
||||
disabled={promote.isPending}
|
||||
title="Set as primary"
|
||||
className={cn('h-6 px-1.5 text-[11px]')}
|
||||
className={cn('h-6 px-1.5 text-xs')}
|
||||
>
|
||||
Make primary
|
||||
</Button>
|
||||
@@ -341,7 +341,7 @@ function AddContactRow({
|
||||
return (
|
||||
<div className="mt-1 space-y-2 rounded-md border bg-muted/30 p-2">
|
||||
<div className="space-y-1">
|
||||
<Label htmlFor={`new-${channel}`} className="text-[11px] uppercase tracking-wide">
|
||||
<Label htmlFor={`new-${channel}`} className="text-xs uppercase tracking-wide">
|
||||
New {channel}
|
||||
</Label>
|
||||
<Input
|
||||
|
||||
@@ -234,7 +234,7 @@ export function getClientColumns({
|
||||
className="w-64 p-1"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<div className="px-2 py-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
<div className="px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
All linked berths
|
||||
</div>
|
||||
<div className="space-y-0.5">
|
||||
|
||||
@@ -300,7 +300,7 @@ export function ClientForm({
|
||||
|
||||
return (
|
||||
<Sheet open={open} onOpenChange={onOpenChange}>
|
||||
<SheetContent className="w-full sm:max-w-2xl overflow-y-auto">
|
||||
<SheetContent className="w-full sm:max-w-2xl lg:max-w-4xl overflow-y-auto">
|
||||
<SheetHeader>
|
||||
<SheetTitle>{isEdit ? 'Edit Client' : 'New Client'}</SheetTitle>
|
||||
</SheetHeader>
|
||||
|
||||
@@ -67,7 +67,7 @@ function InterestRowItem({
|
||||
</h3>
|
||||
<span
|
||||
className={cn(
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium',
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-xs font-medium',
|
||||
STAGE_BADGE[stage],
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -209,7 +209,7 @@ function HeroVariant({ clientId, portSlug }: { clientId: string; portSlug: strin
|
||||
<span className="truncate text-sm font-semibold text-foreground">{berthLabel}</span>
|
||||
<span
|
||||
className={cn(
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium',
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-xs font-medium',
|
||||
STAGE_BADGE[stage],
|
||||
)}
|
||||
>
|
||||
@@ -282,7 +282,7 @@ function PanelVariant({ clientId, portSlug }: { clientId: string; portSlug: stri
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<span className="text-[10px] font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
<span className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
|
||||
Sales pipeline · {interests.length} active
|
||||
</span>
|
||||
<Link
|
||||
@@ -313,7 +313,7 @@ function PanelVariant({ clientId, portSlug }: { clientId: string; portSlug: stri
|
||||
</span>
|
||||
<span
|
||||
className={cn(
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium',
|
||||
'shrink-0 rounded-full px-2 py-0.5 text-xs font-medium',
|
||||
STAGE_BADGE[stage],
|
||||
)}
|
||||
>
|
||||
@@ -331,7 +331,7 @@ function PanelVariant({ clientId, portSlug }: { clientId: string; portSlug: stri
|
||||
if (dims.length > 0) summary.push(`Wants ${dims.join(' × ')}`);
|
||||
if (i.source) summary.push(i.source);
|
||||
return summary.length > 0 ? (
|
||||
<div className="mt-0.5 truncate text-[11px] text-muted-foreground">
|
||||
<div className="mt-0.5 truncate text-xs text-muted-foreground">
|
||||
{summary.join(' · ')}
|
||||
</div>
|
||||
) : null;
|
||||
|
||||
@@ -273,7 +273,7 @@ function ContactRow({
|
||||
|
||||
{contact.source === 'eoi-custom-input' && !contact.isPrimary ? (
|
||||
<span
|
||||
className="inline-flex items-center rounded bg-amber-100 px-1 text-[10px] font-medium text-amber-800"
|
||||
className="inline-flex items-center rounded bg-amber-100 px-1 text-xs font-medium text-amber-800"
|
||||
title={
|
||||
contact.sourceDocumentId
|
||||
? 'Spawned from an EOI - open the source document for details.'
|
||||
|
||||
@@ -149,13 +149,13 @@ export function DedupSuggestionPanel({
|
||||
<div className="flex items-center gap-2">
|
||||
<p className="truncate text-sm font-medium">{top.fullName}</p>
|
||||
{isArchived && (
|
||||
<span className="shrink-0 rounded-full bg-slate-200 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-slate-800 dark:bg-slate-700 dark:text-slate-200">
|
||||
<span className="shrink-0 rounded-full bg-slate-200 px-1.5 py-0.5 text-xs font-medium uppercase tracking-wide text-slate-800 dark:bg-slate-700 dark:text-slate-200">
|
||||
archived
|
||||
</span>
|
||||
)}
|
||||
<span
|
||||
className={cn(
|
||||
'shrink-0 rounded-full px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide',
|
||||
'shrink-0 rounded-full px-1.5 py-0.5 text-xs font-medium uppercase tracking-wide',
|
||||
isHigh
|
||||
? 'bg-amber-200 text-amber-900 dark:bg-amber-800 dark:text-amber-100'
|
||||
: 'bg-muted text-muted-foreground',
|
||||
@@ -177,7 +177,7 @@ export function DedupSuggestionPanel({
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<p className="mt-1.5 text-[11px] text-muted-foreground">{top.reasons.join(' · ')}</p>
|
||||
<p className="mt-1.5 text-xs text-muted-foreground">{top.reasons.join(' · ')}</p>
|
||||
</div>
|
||||
<div className="mt-3 flex flex-wrap items-center gap-2">
|
||||
{isArchived ? (
|
||||
|
||||
Reference in New Issue
Block a user