# rishabhjain777/sm_dashboard architecture

> Architecture diagram of the GitHub repository rishabhjain777/sm_dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rishabhjain777/sm_dashboard
- Repository: https://github.com/rishabhjain777/sm_dashboard

## Overview

This is a browser-based F&O and stock-analysis dashboard. Users open the dashboard, select a tab, and view or interact with market signals, stock analysis, trade plans, quality scores, quant predictions, retrospectives, and todos. The sampled controller lazy-loads tab HTML and scripts, caches tabs, and restores the selected tab. Evidence is limited to the README (empty), file tree, and supplied excerpts; relationships for unsampled tab logic are therefore omitted.

Main entry points: [`js/dashboard.js`](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/dashboard.js) (Tab controller), [`js/analytics.js`](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/analytics.js) (Quant analytics), [`js/market.js`](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/market.js) (Market filters), [`tabs/market.html`](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/market.html) (Market signals view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Dashboard Shell"]
  node_controller["Tab controller<br/>[dashboard.js]"]
end

subgraph group_market["Market &amp; Analysis"]
  node_market_view["Market signals view<br/>[market.html]"]
  node_market_logic["Market filters<br/>[market.js]"]
  node_analyzer_view["Stock analyzer view<br/>[analyzer.html]"]
  node_analyzer_logic["Stock analyzer<br/>[analyzer.js]"]
end

subgraph group_signals["Scoring &amp; Predictions"]
  node_quality_view["Quality scores view<br/>[quality.html]"]
  node_quality_logic["Score filters<br/>[quality.js]"]
  node_analytics_view["Quant predictions view<br/>[analytics.html]"]
  node_analytics_logic["Quant analytics<br/>[analytics.js]"]
end

subgraph group_review["Review &amp; Planning"]
  node_trade_view["Trade plan view<br/>[trade-plan.html]"]
  node_trade_logic["Trade plan interactions<br/>[trade-plan.js]"]
  node_retro_view["Retrospective view<br/>[retrospective.html]"]
  node_todos_view["Todos view<br/>[todos.html]"]
  node_todo_store[("Saved todo state")]
end

node_user(("Dashboard user"))

node_user -->|"selects tab"| node_controller
node_controller -->|"fetches HTML"| node_market_view
node_controller -->|"loads script"| node_market_logic
node_controller -->|"fetches HTML"| node_analyzer_view
node_controller -->|"loads script"| node_analyzer_logic
node_controller -->|"fetches HTML"| node_quality_view
node_controller -->|"loads script"| node_quality_logic
node_controller -->|"fetches HTML"| node_analytics_view
node_controller -->|"loads script"| node_analytics_logic
node_controller -->|"fetches HTML"| node_trade_view
node_controller -->|"loads script"| node_trade_logic
node_controller -.->|"loads tab"| node_retro_view
node_controller -.->|"loads tab"| node_todos_view
node_controller -->|"invokes filtering"| node_market_logic
node_analytics_logic -->|"reads and writes"| node_todo_store

click node_controller "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/dashboard.js"
click node_market_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/market.html"
click node_market_logic "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/market.js"
click node_analyzer_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/analyzer.html"
click node_analyzer_logic "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/analyzer.js"
click node_quality_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/quality.html"
click node_quality_logic "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/quality.js"
click node_analytics_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/analytics.html"
click node_analytics_logic "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/analytics.js"
click node_trade_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/trade-plan.html"
click node_trade_logic "https://github.com/rishabhjain777/sm_dashboard/blob/main/js/trade-plan.js"
click node_retro_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/retrospective.html"
click node_todos_view "https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/todos.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controller,node_user toneBlue
class node_market_view,node_market_logic,node_analyzer_view,node_analyzer_logic toneAmber
class node_quality_view,node_quality_logic,node_analytics_view,node_analytics_logic toneMint
class node_trade_view,node_trade_logic,node_retro_view,node_todos_view,node_todo_store toneRose
```

## Components

### Dashboard Shell

- [Tab controller](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/dashboard.js): `js/dashboard.js`

### Market & Analysis

- [Market signals view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/market.html): `tabs/market.html`
- [Market filters](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/market.js): `js/market.js`
- [Stock analyzer view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/analyzer.html): `tabs/analyzer.html`
- [Stock analyzer](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/analyzer.js): `js/analyzer.js`

### Scoring & Predictions

- [Quality scores view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/quality.html): `tabs/quality.html`
- [Score filters](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/quality.js): `js/quality.js`
- [Quant predictions view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/analytics.html): `tabs/analytics.html`
- [Quant analytics](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/analytics.js): `js/analytics.js`

### Review & Planning

- [Trade plan view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/trade-plan.html): `tabs/trade-plan.html`
- [Trade plan interactions](https://github.com/rishabhjain777/sm_dashboard/blob/main/js/trade-plan.js): `js/trade-plan.js`
- [Retrospective view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/retrospective.html): `tabs/retrospective.html`
- [Todos view](https://github.com/rishabhjain777/sm_dashboard/blob/main/tabs/todos.html): `tabs/todos.html`
- **Saved todo state**

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Tab controller: selects tab (evidence: `js/dashboard.js`)
- Tab controller → Market signals view: fetches HTML (evidence: `js/dashboard.js`)
- Tab controller → Market filters: loads script (evidence: `js/dashboard.js`)
- Tab controller → Stock analyzer view: fetches HTML (evidence: `js/dashboard.js`)
- Tab controller → Stock analyzer: loads script (evidence: `js/dashboard.js`)
- Tab controller → Quality scores view: fetches HTML (evidence: `js/dashboard.js`)
- Tab controller → Score filters: loads script (evidence: `js/dashboard.js`)
- Tab controller → Quant predictions view: fetches HTML (evidence: `js/dashboard.js`)
- Tab controller → Quant analytics: loads script (evidence: `js/dashboard.js`)
- Tab controller → Trade plan view: fetches HTML (evidence: `js/dashboard.js`)
- Tab controller → Trade plan interactions: loads script (evidence: `js/dashboard.js`)
- Tab controller → Retrospective view: loads tab
- Tab controller → Todos view: loads tab
- Tab controller → Market filters: invokes filtering (evidence: `js/dashboard.js`)
- Quant analytics → Saved todo state: reads and writes (evidence: `js/analytics.js`)
