diff --git a/resources/js/components/onboarding/step-category-types.tsx b/resources/js/components/onboarding/step-category-types.tsx index aa781f45..31718078 100644 --- a/resources/js/components/onboarding/step-category-types.tsx +++ b/resources/js/components/onboarding/step-category-types.tsx @@ -11,7 +11,7 @@ const categoryTypes = [ type: 'expense', name: 'Expense', icon: ArrowUpRight, - description: 'Money going out', + description: 'Money going out of an account to pay for something (e.g., groceries, rent, subscriptions). Decreases your balance.', examples: ['Food', 'Rent', 'Entertainment', 'Transport'], color: 'from-red-500 to-rose-500', bgColor: 'bg-red-50 dark:bg-red-900/20', @@ -21,7 +21,7 @@ const categoryTypes = [ type: 'income', name: 'Income', icon: ArrowDownLeft, - description: 'Money coming in', + description: 'Money coming into an account from a source (e.g., salary, refunds, interest). Increases your balance.', examples: ['Salary', 'Freelance', 'Investments', 'Refunds'], color: 'from-emerald-500 to-green-500', bgColor: 'bg-emerald-50 dark:bg-emerald-900/20', @@ -31,7 +31,7 @@ const categoryTypes = [ type: 'transfer', name: 'Transfer', icon: Repeat, - description: 'Moving money between accounts', + description: 'Moving money between accounts. It does not count in expenses or income charts.', examples: ['To savings', 'Credit card payment', 'Between banks'], color: 'from-blue-500 to-cyan-500', bgColor: 'bg-blue-50 dark:bg-blue-900/20', @@ -46,48 +46,33 @@ export function StepCategoryTypes({ onContinue }: StepCategoryTypesProps) { icon={Tag} iconContainerClassName="bg-gradient-to-br from-violet-400 to-purple-500" title="Understanding Categories" - description="Categories help you organize and understand your spending. Every transaction belongs to one of three types:" + description="Every transaction belongs to one of three types:" />
{categoryTypes.map((category) => (
-
- +
+
+ +
+

+ {category.name} +

-

- {category.name} -

-

+ +

{category.description}

-
- {category.examples.map((example) => ( - - {example} - - ))} -
))}
-
-

- Tip: We've already set up 50+ common - categories for you. You can customize them in the next step - or anytime from settings. -

-
-
); diff --git a/resources/js/components/onboarding/step-smart-rules.tsx b/resources/js/components/onboarding/step-smart-rules.tsx index 34537741..1f1ecd69 100644 --- a/resources/js/components/onboarding/step-smart-rules.tsx +++ b/resources/js/components/onboarding/step-smart-rules.tsx @@ -8,7 +8,7 @@ interface StepSmartRulesProps { export function StepSmartRules({ onContinue }: StepSmartRulesProps) { return ( -
+
-
+
-
- +
+
+ +
+

Pattern Matching

-

Pattern Matching

Create rules like "If description contains 'AMAZON', categorize as Shopping" @@ -29,10 +31,12 @@ export function StepSmartRules({ onContinue }: StepSmartRulesProps) {

-
- +
+
+ +
+

Instant Application

-

Instant Application

Rules apply automatically when you import new transactions @@ -40,11 +44,8 @@ export function StepSmartRules({ onContinue }: StepSmartRulesProps) {

-
+
-
- -

Why No AI Auto-Categorization? diff --git a/resources/js/hooks/use-onboarding-state.ts b/resources/js/hooks/use-onboarding-state.ts index 706c5c65..795f49a2 100644 --- a/resources/js/hooks/use-onboarding-state.ts +++ b/resources/js/hooks/use-onboarding-state.ts @@ -24,7 +24,6 @@ const PRIMARY_STEPS: OnboardingStep[] = [ 'account-types', 'create-account', 'category-types', - 'customize-categories', 'smart-rules', 'more-accounts', 'complete', diff --git a/resources/js/pages/onboarding/index.tsx b/resources/js/pages/onboarding/index.tsx index c236a08e..4b06b95f 100644 --- a/resources/js/pages/onboarding/index.tsx +++ b/resources/js/pages/onboarding/index.tsx @@ -105,7 +105,14 @@ export default function Onboarding({ const handleImportComplete = async () => { // Sync after import to ensure data is consistent await sync(); - goToStep('more-accounts'); + + // After first account import, go to category steps + // After subsequent accounts, go back to more-accounts + if (createdAccounts.length === 1) { + goToStep('category-types'); + } else { + goToStep('more-accounts'); + } }; const handleAddMoreAccounts = () => {