Skip to content

[Node] smart CSV import/export with templates#3364

Draft
Herklos wants to merge 1 commit intodevfrom
feature/add-csv-import-export-view
Draft

[Node] smart CSV import/export with templates#3364
Herklos wants to merge 1 commit intodevfrom
feature/add-csv-import-export-view

Conversation

@Herklos
Copy link
Copy Markdown
Member

@Herklos Herklos commented Apr 2, 2026

No description provided.

@Herklos Herklos self-assigned this Apr 2, 2026
@Herklos Herklos requested a review from GuillaumeDSM as a code owner April 2, 2026 06:13
Import flow:
- Add parseCSVRaw() to csv.ts for relaxed CSV parsing (no required columns)
- Add action templates (trade, cancel, withdraw, deposit, transfer, wait)
  mirroring ActionsDAGParserParams from actions_dag_parser.py
- Add smart column detector with regex value patterns (crypto addresses,
  trading pairs, amounts) and fuzzy header matching
- Rewrite ImportTask as 3-step flow: Upload -> Column Mapping -> Review
- Auto-detect best action template per row, allow user to change
- Color-coded confidence badges on auto-matched parameters

Export flow:
- Add ExportResultsDialog with template-based table view
- Pre-defined templates (General, Trade, Transfer, Full Details)
- User can add custom columns by selecting discovered JSON paths
- Sort/filter on any column via @tanstack/react-table
- Column visibility toggles
- Export filtered/sorted data as CSV

Tests:
- Add vitest with 71 tests covering action templates, column detector,
  CSV parsing, JSON path utilities, and export templates
@Herklos Herklos force-pushed the feature/add-csv-import-export-view branch from ab7aa5a to 88d88a0 Compare April 2, 2026 06:13
@Herklos Herklos marked this pull request as draft April 2, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant