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:
@@ -113,7 +113,7 @@ export function ColumnPicker({
|
||||
</span>
|
||||
<span className="flex-1">{col.label}</span>
|
||||
{col.alwaysVisible && (
|
||||
<span className="text-[10px] uppercase tracking-wide text-muted-foreground">
|
||||
<span className="text-xs uppercase tracking-wide text-muted-foreground">
|
||||
always
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from '@/components/ui/select';
|
||||
import { SUPPORTED_CURRENCIES } from '@/lib/utils/currency';
|
||||
import { SUPPORTED_CURRENCIES, currencyLabel } from '@/lib/utils/currency';
|
||||
|
||||
interface CurrencySelectProps {
|
||||
value: string | undefined;
|
||||
@@ -37,9 +37,9 @@ export function CurrencySelect({
|
||||
<SelectContent>
|
||||
{SUPPORTED_CURRENCIES.map((c) => (
|
||||
<SelectItem key={c.code} value={c.code}>
|
||||
<span className="tabular-nums mr-2">{c.symbol}</span>
|
||||
<span className="tabular-nums me-2">{c.symbol}</span>
|
||||
<span className="font-medium">{c.code}</span>
|
||||
<span className="text-muted-foreground ml-2 text-xs">{c.label}</span>
|
||||
<span className="text-muted-foreground ms-2 text-xs">{currencyLabel(c.code)}</span>
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
|
||||
@@ -127,7 +127,7 @@ export function FieldHistoryIcon({ fieldPath, className }: IconProps) {
|
||||
<PopoverContent align="start" className="w-80 p-0">
|
||||
<div className="border-b px-3 py-2">
|
||||
<div className="text-xs font-medium">{label}</div>
|
||||
<div className="text-[10px] text-muted-foreground">
|
||||
<div className="text-xs text-muted-foreground">
|
||||
{rows.length} override{rows.length === 1 ? '' : 's'}
|
||||
</div>
|
||||
</div>
|
||||
@@ -137,7 +137,7 @@ export function FieldHistoryIcon({ fieldPath, className }: IconProps) {
|
||||
<li key={r.id} className="px-3 py-2 space-y-1">
|
||||
<div className="flex items-baseline justify-between gap-2">
|
||||
<span className="font-medium">{formatSource(r.source)}</span>
|
||||
<span className="text-[10px] text-muted-foreground">
|
||||
<span className="text-xs text-muted-foreground">
|
||||
{formatDistanceToNow(new Date(r.createdAt), { addSuffix: true })}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -298,7 +298,7 @@ export function NotesList({
|
||||
note.source !== SELF_SOURCE[entityType] &&
|
||||
note.sourceLabel && (
|
||||
<span
|
||||
className={`inline-flex items-center rounded-full px-1.5 py-0.5 text-[10px] font-medium ${SOURCE_BADGE_CLASS[note.source]}`}
|
||||
className={`inline-flex items-center rounded-full px-1.5 py-0.5 text-xs font-medium ${SOURCE_BADGE_CLASS[note.source]}`}
|
||||
title={`From ${note.source}`}
|
||||
>
|
||||
{SOURCE_LABEL[note.source]} · {note.sourceLabel}
|
||||
@@ -311,7 +311,7 @@ export function NotesList({
|
||||
populated for interest notes from 2026-05-15+. */}
|
||||
{note.pipelineStageAtCreation && (
|
||||
<span
|
||||
className="inline-flex items-center rounded-full bg-indigo-50 px-1.5 py-0.5 text-[10px] font-medium text-indigo-900"
|
||||
className="inline-flex items-center rounded-full bg-indigo-50 px-1.5 py-0.5 text-xs font-medium text-indigo-900"
|
||||
title="Pipeline stage when note was authored"
|
||||
>
|
||||
@ {stageLabel(note.pipelineStageAtCreation)}
|
||||
|
||||
@@ -123,7 +123,7 @@ export function OwnerPicker({
|
||||
{value.type === 'client' ? 'Client:' : 'Company:'}
|
||||
</span>
|
||||
) : (
|
||||
<span className="rounded-sm border border-border bg-muted px-1.5 py-px text-[10px] uppercase tracking-wide text-muted-foreground">
|
||||
<span className="rounded-sm border border-border bg-muted px-1.5 py-px text-xs uppercase tracking-wide text-muted-foreground">
|
||||
Client / Company
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user