How mandavavasanth/trading-journal works
Discipline Trading Journal is a browser-only trading journal: users enter and tag trades, then review them through dashboard, calendar, history, psychology, and analytics views. The main UI controller routes between those views and opens trade entry from quick-add actions; the store persists trades and capital in localStorage and supports backup export. CSV export is implemented in analytics; the PDF control produces a mocked PDF download. The map follows the shown imports, calls, and README; unsampled view and modal behavior is not inferred beyond documented capabilities.
Main entry points: main.js UI Router · store.js Trade and Capital Store · analytics.js Performance Analytics · tradeModal.js Trade Entry
Components 11
Trade Workflow
- UI Router
src/main.js - Trade Entry
src/components/tradeModal.js
Review Views
- Dashboard
src/views/dashboard.js - Trade Calendar
src/views/calendar.js - Trade History
src/views/history.js - Psychology Review
src/views/psychology.js - Performance Analytics
src/views/analytics.js
Data and Exports
- Trade and Capital Store
src/store.js - Browser localStorage
- JSON Backup Export
src/store.js
Other components
- Journal User
Connections 18
- Journal User → UI Router: uses journal
README.md - UI Router → Dashboard: routes view
src/main.js - UI Router → Trade Calendar: routes view
src/main.js - UI Router → Psychology Review: routes view
src/main.js - UI Router → Trade History: routes view
src/main.js - UI Router → Performance Analytics: routes view
src/main.js - UI Router → Trade Entry: opens modal
src/main.js - UI Router → Trade and Capital Store: requests backup
src/main.js - Trade Entry → Trade and Capital Store: saves trades
src/components/tradeModal.js - Dashboard → Trade and Capital Store: reads stats
src/views/dashboard.js - Trade Calendar → Trade and Capital Store: reads trades
src/views/calendar.js - Trade History → Trade and Capital Store: reads trades
src/views/history.js - Psychology Review → Trade and Capital Store: reads trades
src/views/psychology.js - Performance Analytics → Trade and Capital Store: reads trades
src/views/analytics.js - Trade and Capital Store → Browser localStorage: reads and writes
src/store.js - Trade and Capital Store → JSON Backup Export: provides data
src/store.js - Performance Analytics → Journal User: downloads CSV
src/views/analytics.js - Performance Analytics → Journal User: downloads mock PDF
src/views/analytics.js