feat(finance): import/export watchlists as comma-separated tickers - #162
Merged
Conversation
Export downloads the active list as alphabetical, comma-separated tickers (`<list-name>.csv`); Import reads a .csv/.txt file and adds its symbols to the active list through the existing bulk-add endpoint, so validation/normalization stay in one place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ThreatCrush Security Scan224 finding(s) HIGH/CRITICAL: 137 | MEDIUM: 87
…and 174 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
ralyodio
marked this pull request as ready for review
August 3, 2026 18:26
This was referenced Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Import / Export to the watchlist section on the finance page.
<list-name>.csv, e.g.AAPL,NVDA,SPY,TSLA). Disabled when the list is empty..csv/.txtfile, reads it, and adds its symbols to the active list via the existingPOST /api/finance/watchlistbulk-add endpoint, so parsing/normalization/dedupe and the "skipped N invalid" feedback all stay in one place. Re-selecting the same file works (input is reset).Two pure helpers in
src/lib/finance/watchlist.ts:formatSymbolsCsv(normalize → dedupe → sort → join) andwatchlistExportFilename(slugify the list name). Both covered by unit tests, including a round-trip throughparseSymbolList.No schema or API changes.
Checks:
pnpm typecheckclean,pnpm buildsucceeds, full suite 2523 passed / 7 skipped. Lint shows only the 5 pre-existingreact-hooks/set-state-in-effectwarnings in this file.🤖 Generated with Claude Code