chore(copy): em-dash sweep across user-facing JSX text + bump lint to error
Replaced 174 em-dashes (—) with " - " (space-hyphen-space) across 49 files in src/components + src/app. The em-dash reads as a tell-tale "AI-generated" marker per the user's design feedback; hyphens with spaces preserve the connector semantics without the AI tint. Touched only lines outside pure-comment context (// /* * */). Code comments, JSDoc, audit-log strings, structured logging strings, and templates outside the lint scope retain their em-dashes for now — they're not user-visible. Also captured two remaining cases that used the `—` HTML entity instead of the literal character (system-monitoring-dashboard, interest-stage-picker) — replaced with a plain hyphen. Bumped the existing `no-restricted-syntax` rule from `warn` → `error` in eslint.config.mjs scoped to src/components/**/*.tsx + src/app/**/*.tsx. New code reintroducing em-dashes in JSX text now fails the lint gate. Verified: tsc clean, vitest 1448/1448, eslint 0 em-dash warnings. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ export function ActiveInterestsPopover({ berthId, portSlug, count }: Props) {
|
||||
// inside the conditionally-rendered PopoverContent.
|
||||
});
|
||||
|
||||
if (count === 0) return <span className="text-muted-foreground">—</span>;
|
||||
if (count === 0) return <span className="text-muted-foreground"> - </span>;
|
||||
|
||||
return (
|
||||
<Popover>
|
||||
|
||||
@@ -43,7 +43,7 @@ export function BerthDealDocumentsTab({ berthId }: { berthId: string }) {
|
||||
<div className="space-y-4">
|
||||
<p className="text-sm text-muted-foreground">
|
||||
EOIs, contracts, and other deal documents attached to interests currently linked to this
|
||||
berth. Read-only — to send, sign, or edit, open the document on the linked interest's
|
||||
berth. Read-only - to send, sign, or edit, open the document on the linked interest's
|
||||
page.
|
||||
</p>
|
||||
<Card>
|
||||
|
||||
@@ -263,7 +263,7 @@ export function BerthDetailHeader({ berth }: BerthDetailHeaderProps) {
|
||||
title/area block sits side-by-side with the action buttons. */}
|
||||
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4">
|
||||
<div className="flex-1 min-w-0 flex items-center gap-3 flex-wrap">
|
||||
{/* Compact mooring chip — the mooring number sits inside a
|
||||
{/* Compact mooring chip - the mooring number sits inside a
|
||||
rounded plate tinted by the mooring-letter palette (same
|
||||
colour used for the row-accent in the berth list). The
|
||||
redundant "B Dock" tag from the previous design is replaced
|
||||
@@ -367,7 +367,7 @@ function InterestLinkPicker({
|
||||
</span>
|
||||
</span>
|
||||
) : (
|
||||
'— No interest —'
|
||||
' - No interest - '
|
||||
)}
|
||||
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" aria-hidden />
|
||||
</Button>
|
||||
@@ -386,7 +386,7 @@ function InterestLinkPicker({
|
||||
}}
|
||||
className="text-muted-foreground"
|
||||
>
|
||||
— No interest —
|
||||
- No interest -
|
||||
</CommandItem>
|
||||
</CommandGroup>
|
||||
<CommandGroup heading="Most recent first">
|
||||
|
||||
Reference in New Issue
Block a user