How zahid0162/pitchlab-psl-analytics works
PitchLab PSL is a browser-based cricket data workbench. Users start with a generated PSL sample or upload a CSV; the app profiles the dataset, then presents schema and memory diagnostics, statistical summaries, and configurable Python analysis scripts for download. The graph includes the app’s stateful orchestration and the shared profile/schema contract. Source excerpts establish the sample and profiling flow; several component connections are supported by the source index, while unsampled implementation details are not inferred.
Main entry points: App.tsx Workspace app · PythonScriptLabView.tsx Script lab · TopHeader.tsx Upload header · CsvProfilerView.tsx Profile view
Components 13
Workspace orchestration
- Workspace app
src/App.tsx - Upload header
src/components/TopHeader.tsx - Workspace navigation
src/components/Sidebar.tsx - React entry
src/main.tsx
Dataset profiling
- CSV profiler
src/utils/csvProfiler.ts - Sample generator
src/data/samplePslData.ts - Profile view
src/components/CsvProfilerView.tsx - Profile data types
src/types/psl.ts
Statistical analysis
- Statistics view
src/components/StatisticalLabView.tsx
Python script lab
- Script lab
src/components/PythonScriptLabView.tsx - Script catalog
src/data/pythonScripts.ts - Code display
src/components/PythonCodeBlock.tsx
Other components
- Analyst
Connections 13
- Analyst → Upload header: uploads CSV
src/components/TopHeader.tsx - React entry → Workspace app: renders
src/main.tsx - Workspace app → Sample generator: builds sample
src/App.tsx - Workspace app → CSV profiler: profiles CSV
src/App.tsx - Workspace app → Upload header: renders
src/App.tsx - Workspace app → Workspace navigation: renders
src/App.tsx - Workspace app → Profile view: renders
src/App.tsx - Workspace app → Statistics view: renders
src/App.tsx - Workspace app → Script lab: renders
src/App.tsx - Workspace app → Script catalog: loads scripts
src/App.tsx - Script lab → Code display: renders
src/components/PythonScriptLabView.tsx - Workspace app → Profile view: passes profile
src/App.tsx - Workspace app → Statistics view: passes profile
src/App.tsx