How harikrishna1-ds/powerbi_sync works
TV Search Production Sync is a local workspace for capturing DataTrace queue data, preserving numbered previews, and maintaining two authoritative Google Sheets production trackers. The main workflow runs from portal capture through local snapshot storage and tracker synchronization to dashboard reporting. The React workspace also exposes comparisons, SLA views, and exports; a legacy Streamlit analytics view remains in the repository. The README documents scheduling and recovery behavior, while some implementation details—especially browser capture wiring and unsampled report features—are not visible in the excerpts.
Main entry points: server.py Sync orchestration · tracker_sync.py Tracker merge · main.jsx React workspace · datatrace_sync.py Capture processing
Components 16
Capture
- Portal capture
gsheet_dashboard/scrape_datatrace.js - Capture processing
gsheet_dashboard/datatrace_sync.py - Preview history
gsheet_dashboard/preview_store.py
Tracker sync
- Sync orchestration
gsheet_dashboard/server.py - Tracker merge
gsheet_dashboard/tracker_sync.py - Status formatting
gsheet_dashboard/tracker_formatting.py
Reporting
- Order reporting
gsheet_dashboard/order_reporting.py - SLA comments
gsheet_dashboard/sla_comments.py - Reporting dates
gsheet_dashboard/reporting_dates.py
Workspace interfaces
- React workspace
gsheet_dashboard/frontend/src/main.jsx - Streamlit analytics
gsheet_dashboard/streamlit_app.py
Runtime support
- IST clock
gsheet_dashboard/indian_clock.py - Sync configuration
gsheet_dashboard/sync_config.py
Other components
- Operator
- DataTrace portal
- Google Sheets
Connections 20
- Operator → React workspace: uses
README.md - React workspace → Sync orchestration: requests API
README.md - DataTrace portal → Portal capture: provides queue
- Portal capture → Capture processing: captures data
- Sync orchestration → Capture processing: starts sync
gsheet_dashboard/server.py - Capture processing → Preview history: saves previews
gsheet_dashboard/datatrace_sync.py - Sync orchestration → Preview history: reads previews
gsheet_dashboard/server.py - Sync orchestration → Tracker merge: runs tracker sync
gsheet_dashboard/server.py - Tracker merge → Google Sheets: writes trackers
README.md - Sync orchestration → Google Sheets: reads tracker data
gsheet_dashboard/server.py - Tracker merge → Status formatting: uses formatting
gsheet_dashboard/tracker_sync.py - Sync orchestration → Order reporting: builds reports
gsheet_dashboard/server.py - Order reporting → Tracker merge: uses tracker reports
gsheet_dashboard/order_reporting.py - Sync orchestration → SLA comments: handles SLA edits
gsheet_dashboard/server.py - Sync orchestration → Reporting dates: uses date ranges
gsheet_dashboard/server.py - React workspace → Sync orchestration: shows results
README.md - Operator → Streamlit analytics: uses analytics
gsheet_dashboard/streamlit_app.py - Streamlit analytics → Google Sheets: reads trackers
gsheet_dashboard/streamlit_app.py - Sync orchestration → IST clock: uses IST time
gsheet_dashboard/server.py - Sync orchestration → Sync configuration: loads settings
gsheet_dashboard/server.py