chore(onboarding): delete the dead first-run components and their orphaned strings (#1488)

The activation analysis (2026-08-07) verified these have zero importers or
triggers; the new stepped checklist and its PostHog funnel replaced their
roles:

- SuccessAnimation (confetti variant): never mounted, and the completion
  moment is now the quiet check-morph signature, so it will stay unused
- AgentSetupBanner, ConsultantEmptyState: never mounted
- EmptyReceipts + its Camera import: only consumer of the preset_receipts_*
  strings and of a /receipts/scan route that does not exist
- new_user_checklist i18n namespace (24 keys x 2 locales): the old wizard
  copy; the live checklist reads initial_setup

The onboarding.empty agent intent stays: it is registered in the intent
table and reachable via /api/agent/invoke, so removing it is a product
decision, not dead-code removal.

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-10 09:51:40 +02:00
committed by GitHub
co-authored by Jakob Wennberg Claude Fable 5
parent 51bf1b77bf
commit d1b938d869
6 changed files with 0 additions and 231 deletions
-38
View File
@@ -1,38 +0,0 @@
import Link from 'next/link'
import { MessageCircle, ArrowRight } from 'lucide-react'
import { Badge } from '@/components/ui/badge'
interface Props {
companyName: string
}
// Renders above the dashboard when the active company has no verified
// agent_profile yet. Mounted from the dashboard server component which
// already does the existence check, so this component itself doesn't fetch.
//
// Single CTA, no dismiss: building the agent is part of onboarding and
// once verified it disappears on its own.
export default function AgentSetupBanner({ companyName }: Props) {
return (
<Link
href="/onboarding/agent"
className="group block rounded-lg border border-border bg-card hover:bg-secondary/60 transition-colors duration-150 mb-8"
>
<div className="flex items-center gap-4 p-6">
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-foreground text-background shrink-0">
<MessageCircle className="h-4 w-4" />
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2">
<p className="font-display text-lg tracking-tight">Bygg din bokföringsassistent</p>
<Badge variant="secondary" className="uppercase tracking-wider">Beta</Badge>
</div>
<p className="text-sm text-muted-foreground mt-1">
Skräddarsy en hjälp som kan ditt företag: laddas på under en halv minut för {companyName}.
</p>
</div>
<ArrowRight className="h-4 w-4 text-muted-foreground group-hover:text-foreground transition-colors shrink-0" />
</div>
</Link>
)
}
@@ -1,44 +0,0 @@
'use client'
import Link from 'next/link'
import { Building2, Plus } from 'lucide-react'
interface ConsultantEmptyStateProps {
firstName?: string | null
}
export default function ConsultantEmptyState({ firstName }: ConsultantEmptyStateProps) {
const hour = new Date().getHours()
const greeting = hour < 5 ? 'God natt' : hour < 10 ? 'Godmorgon' : hour < 14 ? 'Hej' : hour < 18 ? 'God eftermiddag' : 'God kväll'
return (
<div className="stagger-enter">
<header className="mb-16">
<h1 className="font-display text-2xl leading-8 tracking-tight">
{greeting}{firstName ? `, ${firstName}` : ''}
</h1>
</header>
<div className="flex flex-col items-center text-center max-w-md mx-auto">
<div className="w-12 h-12 rounded-xl bg-muted/60 flex items-center justify-center mb-5">
<Building2 className="h-5 w-5 text-muted-foreground" />
</div>
<h2 className="font-display text-lg mb-2">
Inga företag ännu
</h2>
<p className="text-sm text-muted-foreground mb-8">
Lägg till ditt första kundföretag för att komma igång med bokföringen.
</p>
<Link
href="/onboarding"
className="inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-primary text-primary-foreground text-sm font-medium hover:bg-primary/90 transition-colors"
>
<Plus className="h-4 w-4" />
Lägg till företag
</Link>
</div>
</div>
)
}