Simpl-Resultat/tasks/todo.md
Le-King-Fu 29a1a15120
Some checks failed
Release / build (windows-latest) (push) Has been cancelled
feat: add chart patterns, context menu, and import preview popup (v0.2.3)
- Add SVG fill patterns to differentiate chart categories beyond color
- Add right-click context menu on charts to hide categories or view transactions
- Add transaction detail modal showing all transactions for a category
- Change import preview from wizard step to popup modal
- Add direct "Check Duplicates" button skipping preview step
- Bump version to 0.2.3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 23:55:19 +00:00

1.1 KiB

Task: Import preview as popup + direct skip to duplicate check

Plan

  • Create FilePreviewModal.tsx — portal modal wrapping FilePreviewTable
  • Update useImportWizard.ts — extract parseFilesInternal helper, make parsePreview not change step, add parseAndCheckDuplicates combined function
  • Update ImportPage.tsx — source-config step has Preview button (opens modal) + Check Duplicates button (main action); remove file-preview step; duplicate-check back goes to source-config
  • Verify TypeScript compiles

Progress Notes

  • Extracted parsing logic into parseFilesInternal helper to avoid state closure issues when combining parse + duplicate check
  • checkDuplicatesInternal takes parsed rows as parameter so parseAndCheckDuplicates can pass them directly
  • No new i18n keys needed — reused existing ones

Review

4 files changed/created. Preview is now a popup modal, file-preview wizard step is removed, "Check Duplicates" goes directly from source-config to duplicate-check (parsing files on the fly). Back navigation from duplicate-check returns to source-config.