Remove unused market features and clean up dead code#7
Conversation
Drops orphaned routes (/api/market/dossier, /api/market/screener), the unused next-themes dep, a catch-all lib/shared/markets barrel, a *.svg type declaration with no importers, and several unused exports/helpers across the stock-detail, markets service, popover, and agent modules. Also retires the yurie_threads → finance_threads localStorage migration shim since it no longer has a consumer, and refreshes the README product routes to match the actual App Router layout. Verified with pnpm typecheck, lint, test, and build.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (21)
💤 Files with no reviewable changes (14)
📝 WalkthroughWalkthroughThis PR removes deprecated market features and APIs ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…9INLI Remove unused market features and clean up dead code
Summary
This PR removes several unused market features and cleans up dead code across the codebase. The changes focus on eliminating API routes, UI components, and utility functions that are no longer actively used or referenced.
Key Changes
Removed Features
/api/market/screenerand/api/market/dossier/[symbol]endpoints that were not being utilizedStockPeersSection,StockCatalystsSection, andStockPlanLimitsSectioncomponents from stock detail pagesStockHeadlinecomponent from market primitivesStockSectionNavandSectionLoadingStatefrom stock detail common utilitiesService Layer Cleanup
getStarterDatasetExplorerPageDatafunction and related dataset query/result processing utilities fromservice-data.tsbuildSelectedQuery,coerceQueryFieldValue,normalizeDatasetRows,getDatasetColumns,fetchStarterDatasetResult, and related query string utilitiesThread Storage Cleanup
loadMigratedLocalThreads,selectThreadsToPersist) fromthreads-storage.tsthreads-persistence.tsthreads.tsUI Component Cleanup
PopoverAnchor,PopoverHeader,PopoverTitle,PopoverDescription) frompopover.tsxStockHeadlineexport from market primitivesDocumentation & Configuration
/markets,/calendar,/screeners)next-themesdependency from package.jsonCORE_INDEX_SYMBOLSconstantTest Updates
Implementation Details
https://claude.ai/code/session_01XFyaSgEtG2Wwxb1B5ZCgjC
Summary by CodeRabbit
New Features
/history,/portfolio, and/settings.Removed Features
/markets,/calendar, and/screeners.Chores