diff --git a/components/dashboard/AgentSetupBanner.tsx b/components/dashboard/AgentSetupBanner.tsx deleted file mode 100644 index 4bcc419a..00000000 --- a/components/dashboard/AgentSetupBanner.tsx +++ /dev/null @@ -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 ( - -
-
- -
-
-
-

Bygg din bokföringsassistent

- Beta -
-

- Skräddarsy en hjälp som kan ditt företag: laddas på under en halv minut för {companyName}. -

-
- -
- - ) -} diff --git a/components/dashboard/ConsultantEmptyState.tsx b/components/dashboard/ConsultantEmptyState.tsx deleted file mode 100644 index caeeb619..00000000 --- a/components/dashboard/ConsultantEmptyState.tsx +++ /dev/null @@ -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 ( -
-
-

- {greeting}{firstName ? `, ${firstName}` : ''} -

-
- -
-
- -
- -

- Inga företag ännu -

-

- Lägg till ditt första kundföretag för att komma igång med bokföringen. -

- - - - Lägg till företag - -
-
- ) -} diff --git a/components/ui/empty-state.tsx b/components/ui/empty-state.tsx index da291c63..0b569de1 100644 --- a/components/ui/empty-state.tsx +++ b/components/ui/empty-state.tsx @@ -9,7 +9,6 @@ import { ReceiptText, Users, ArrowLeftRight, - Camera, Building2, FileText, Calendar, @@ -141,19 +140,6 @@ export function EmptyTransactions() { ) } -export function EmptyReceipts() { - const t = useTranslations('empty') - return ( - - ) -} - export function EmptyDeadlines() { const t = useTranslations('empty') return ( diff --git a/components/ui/success-animation.tsx b/components/ui/success-animation.tsx deleted file mode 100644 index b64f03b9..00000000 --- a/components/ui/success-animation.tsx +++ /dev/null @@ -1,81 +0,0 @@ -'use client' - -import { useEffect, useState } from 'react' -import { Check } from 'lucide-react' -import { cn } from '@/lib/utils' - -interface SuccessAnimationProps { - show: boolean - title?: string - description?: string - onComplete?: () => void - variant?: 'default' | 'celebration' -} - -export function SuccessAnimation({ - show, - title = 'Klart!', - description, - onComplete, - variant = 'default', -}: SuccessAnimationProps) { - const [visible, setVisible] = useState(false) - - useEffect(() => { - if (show) { - setVisible(true) - const timer = setTimeout(() => { - setVisible(false) - onComplete?.() - }, 2000) - return () => clearTimeout(timer) - } - }, [show, onComplete]) - - if (!visible) return null - - return ( -
-
- {/* Animated checkmark */} -
-
- -
- {/* Pulse ring */} -
-
- - {/* Text */} -
-

{title}

- {description && ( -

{description}

- )} -
- - {/* Celebration particles */} - {variant === 'celebration' && ( -
- {Array.from({ length: 12 }).map((_, i) => ( -
- ))} -
- )} -
-
- ) -} diff --git a/messages/en.json b/messages/en.json index 5bcc1f65..3c36fbe6 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1335,30 +1335,6 @@ "toast_status_updated_description": "Marked as {status}", "toast_status_update_failed": "Could not update status" }, - "new_user_checklist": { - "welcome": "Welcome to {appName}", - "intro": "Start by importing your bookkeeping, then connect your bank. Nothing changes in your current system.", - "step1_title": "Import your bookkeeping", - "step1_done_title": "Bookkeeping imported", - "step1_done_description": "Done. You can import more periods later from the Import view.", - "migrate_title": "Import from another system", - "migrate_description": "Nothing changes in your existing system.", - "sie_title": "Import SIE file", - "sie_description": "Export a SIE4 file from your current bookkeeping software and upload it here.", - "step2_title": "Connect your bank", - "bank_title": "Connect your bank account", - "bank_description_psd2": "Connect via PSD2: transactions sync automatically every day.", - "bank_description_file": "Import bank statements from your bank: CSV, OFX and most Swedish banks.", - "step3_title": "Connect Skatteverket", - "optional_suffix": ": optional", - "skatteverket_connected_title": "Skatteverket connected", - "skatteverket_connected_description": "You can now submit momsdeklaration and AGI directly, and see the balance on your skattekonto.", - "skatteverket_connect_title": "Connect to Skatteverket with BankID", - "skatteverket_connect_description": "Submit momsdeklaration and arbetsgivardeklaration directly, and fetch the balance on your skattekonto, without leaving {appName}.", - "or_separator": "or", - "fresh_start": "I'm starting a new business with no prior bookkeeping", - "security_note": "Your data is encrypted and stored securely in Sweden" - }, "initial_setup": { "title": "{count} steps and your bookkeeping is running", "step_books_title": "Get your books in", @@ -6647,9 +6623,6 @@ "preset_transactions_title": "No transactions", "preset_transactions_description": "Import bank statements to automatically post entries and stay on top of your finances.", "preset_transactions_action": "Import transactions", - "preset_receipts_title": "No receipts", - "preset_receipts_description": "Snap a photo of a receipt for automatic reading and posting. We handle the rest!", - "preset_receipts_action": "Scan receipt", "preset_deadlines_title": "No upcoming deadlines", "preset_deadlines_description": "Great work! You have no immediate deadlines to handle.", "preset_no_bank_title": "No transactions imported", diff --git a/messages/sv.json b/messages/sv.json index f4a1b459..325d48bd 100644 --- a/messages/sv.json +++ b/messages/sv.json @@ -1335,30 +1335,6 @@ "toast_status_updated_description": "Markerad som {status}", "toast_status_update_failed": "Kunde inte uppdatera status" }, - "new_user_checklist": { - "welcome": "Välkommen till {appName}", - "intro": "Börja med att hämta din bokföring, sedan kopplar du banken. Ingenting ändras i ditt nuvarande system.", - "step1_title": "Hämta din bokföring", - "step1_done_title": "Bokföring importerad", - "step1_done_description": "Klart. Du kan importera fler perioder senare från Importera-vyn.", - "migrate_title": "Hämta från annat system", - "migrate_description": "Inget ändras i ditt befintliga system.", - "sie_title": "Importera SIE-fil", - "sie_description": "Exportera en SIE4-fil från ditt nuvarande bokföringsprogram och ladda upp den här.", - "step2_title": "Koppla din bank", - "bank_title": "Anslut ditt bankkonto", - "bank_description_psd2": "Koppla via PSD2: transaktioner synkas automatiskt varje dag.", - "bank_description_file": "Importera kontoutdrag från din bank: CSV, OFX och de flesta svenska banker.", - "step3_title": "Anslut Skatteverket", - "optional_suffix": ": valfritt", - "skatteverket_connected_title": "Skatteverket anslutet", - "skatteverket_connected_description": "Du kan nu skicka momsdeklaration och AGI direkt, samt se saldot på skattekontot.", - "skatteverket_connect_title": "Anslut till Skatteverket med BankID", - "skatteverket_connect_description": "Skicka momsdeklaration och arbetsgivardeklaration direkt, och hämta saldot på skattekontot, utan att lämna {appName}.", - "or_separator": "eller", - "fresh_start": "Jag startar en ny verksamhet utan tidigare bokföring", - "security_note": "Din data är krypterad och lagras säkert i Sverige" - }, "initial_setup": { "title": "{count} steg så är bokföringen igång", "step_books_title": "Få in din bokföring", @@ -6647,9 +6623,6 @@ "preset_transactions_title": "Inga transaktioner", "preset_transactions_description": "Importera kontoutdrag från din bank för att automatiskt bokföra och få koll på ekonomin.", "preset_transactions_action": "Importera transaktioner", - "preset_receipts_title": "Inga kvitton", - "preset_receipts_description": "Ta en bild på ett kvitto för automatisk avläsning och bokföring. Vi sköter resten!", - "preset_receipts_action": "Skanna kvitto", "preset_deadlines_title": "Inga kommande deadlines", "preset_deadlines_description": "Bra jobbat! Du har inga omedelbara deadlines att ta hand om.", "preset_no_bank_title": "Inga transaktioner importerade",