# lakshmikanthan07/rr-selector-dashboard architecture

> Architecture diagram of the GitHub repository lakshmikanthan07/rr-selector-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lakshmikanthan07/rr-selector-dashboard
- Repository: https://github.com/lakshmikanthan07/rr-selector-dashboard

## Overview

SupeRR Selector is an IPL 2027 player-reliability and Rajasthan Royals auction-analysis product. Its principal workflow analyzes ball-by-ball data to derive pressure and reliability rankings, then applies player availability and squad-fit constraints to identify targets; the results are presented in an interactive dashboard and reports. The graph preserves documented audit, validation, historical-franchise, coaching, and squad-gap capabilities. Source excerpts are partial, and the private data and intermediate outputs are not in the repository, so some internal pipeline connections are not shown.

Main entry points: [`src/config.py`](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/config.py) (Model config), [`src/feasibility_filter.py`](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/feasibility_filter.py) (Availability filter), [`dashboard/build_data.py`](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/dashboard/build_data.py) (Dashboard data), [`src/ipl2027_lists.py`](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/ipl2027_lists.py) (IPL lists)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Data Analysis"]
  node_audit["Data audit"]
  node_match_analysis["Match analysis"]
  node_reliability["Reliability model"]
  node_profiles["Player profiles"]
  node_validation["Model validation"]
  node_config["Model config<br/>[config.py]"]
end

subgraph group_intelligence["RR Intelligence"]
  node_coach["Coach alignment"]
  node_history["RR history"]
  node_squad["Squad gaps"]
end

subgraph group_selection["Auction Selection"]
  node_lists["IPL lists<br/>[ipl2027_lists.py]"]
  node_feasibility["Availability filter"]
  node_auction["Auction picks"]
end

subgraph group_delivery["Results"]
  node_dashboard_data["Dashboard data<br/>[build_data.py]"]
  node_dashboard["Interactive dashboard<br/>[index.html]"]
  node_report_builder["PDF report builder<br/>[build_report.py]"]
  node_report["Reliability report"]
end

node_analyst(("Analyst"))

node_analyst -->|"explores results"| node_dashboard
node_audit -->|"uses settings"| node_config
node_match_analysis -->|"uses settings"| node_config
node_reliability -->|"uses weights"| node_config
node_profiles -->|"uses settings"| node_config
node_validation -->|"uses settings"| node_config
node_coach -->|"uses settings"| node_config
node_history -->|"uses settings"| node_config
node_squad -->|"uses settings"| node_config
node_squad -->|"reads player lists"| node_lists
node_feasibility -->|"uses settings"| node_config
node_feasibility -->|"reads status data"| node_lists
node_auction -->|"uses settings"| node_config
node_auction -->|"applies filter"| node_feasibility
node_dashboard_data -->|"imports filter"| node_feasibility
node_dashboard_data -->|"imports lists"| node_lists
node_dashboard_data -->|"builds data for"| node_dashboard
node_report_builder -->|"generates PDF"| node_report

click node_audit "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase1_data_audit.py"
click node_match_analysis "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase2_5_analysis.py"
click node_reliability "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase6_7_reliability.py"
click node_profiles "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase8_player_profiles.py"
click node_validation "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/model_validation.py"
click node_config "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/config.py"
click node_coach "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/coach_persona_model.py"
click node_history "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_franchise_history.py"
click node_squad "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_squad_gap_analyser.py"
click node_lists "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/ipl2027_lists.py"
click node_feasibility "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/feasibility_filter.py"
click node_auction "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_coach_auction_picks.py"
click node_dashboard_data "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/dashboard/build_data.py"
click node_dashboard "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/index.html"
click node_report_builder "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/dashboard/build_report.py"
click node_report "https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/RR_IPL2027_Pressure_Reliability_Report.pdf"

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_audit,node_match_analysis,node_reliability,node_profiles,node_validation,node_config toneBlue
class node_coach,node_history,node_squad toneAmber
class node_lists,node_feasibility,node_auction toneMint
class node_dashboard_data,node_dashboard,node_report_builder,node_report toneRose
class node_analyst toneIndigo
```

## Components

### Data Analysis

- [Data audit](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase1_data_audit.py): `src/phase1_data_audit.py`
- [Match analysis](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase2_5_analysis.py): `src/phase2_5_analysis.py`
- [Reliability model](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase6_7_reliability.py): `src/phase6_7_reliability.py`
- [Player profiles](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/phase8_player_profiles.py): `src/phase8_player_profiles.py`
- [Model validation](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/model_validation.py): `src/model_validation.py`
- [Model config](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/config.py): `src/config.py`

### RR Intelligence

- [Coach alignment](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/coach_persona_model.py): `src/coach_persona_model.py`
- [RR history](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_franchise_history.py): `src/rr_franchise_history.py`
- [Squad gaps](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_squad_gap_analyser.py): `src/rr_squad_gap_analyser.py`

### Auction Selection

- [IPL lists](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/ipl2027_lists.py): `src/ipl2027_lists.py`
- [Availability filter](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/feasibility_filter.py): `src/feasibility_filter.py`
- [Auction picks](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/src/rr_coach_auction_picks.py): `src/rr_coach_auction_picks.py`

### Results

- [Dashboard data](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/dashboard/build_data.py): `dashboard/build_data.py`
- [Interactive dashboard](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/index.html): `index.html`
- [PDF report builder](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/dashboard/build_report.py): `dashboard/build_report.py`
- [Reliability report](https://github.com/lakshmikanthan07/rr-selector-dashboard/blob/main/RR_IPL2027_Pressure_Reliability_Report.pdf): `RR_IPL2027_Pressure_Reliability_Report.pdf`

### Other components

- **Analyst**

## Connections

- Analyst → Interactive dashboard: explores results (evidence: `README.md`)
- Data audit → Model config: uses settings (evidence: `src/phase1_data_audit.py`)
- Match analysis → Model config: uses settings (evidence: `src/phase2_5_analysis.py`)
- Reliability model → Model config: uses weights (evidence: `src/phase6_7_reliability.py`)
- Player profiles → Model config: uses settings (evidence: `src/phase8_player_profiles.py`)
- Model validation → Model config: uses settings (evidence: `src/model_validation.py`)
- Coach alignment → Model config: uses settings (evidence: `src/coach_persona_model.py`)
- RR history → Model config: uses settings (evidence: `src/rr_franchise_history.py`)
- Squad gaps → Model config: uses settings (evidence: `src/rr_squad_gap_analyser.py`)
- Squad gaps → IPL lists: reads player lists (evidence: `src/rr_squad_gap_analyser.py`)
- Availability filter → Model config: uses settings (evidence: `src/feasibility_filter.py`)
- Availability filter → IPL lists: reads status data (evidence: `src/feasibility_filter.py`)
- Auction picks → Model config: uses settings (evidence: `src/rr_coach_auction_picks.py`)
- Auction picks → Availability filter: applies filter (evidence: `src/rr_coach_auction_picks.py`)
- Dashboard data → Availability filter: imports filter (evidence: `dashboard/build_data.py`)
- Dashboard data → IPL lists: imports lists (evidence: `dashboard/build_data.py`)
- Dashboard data → Interactive dashboard: builds data for (evidence: `README.md`)
- PDF report builder → Reliability report: generates PDF (evidence: `README.md`)
