How baselghanem/dad_sales works
DAD Sales is a static, client-side sales analytics portal. Users sign in with published credentials, then role-specific dashboards read and filter Excel sales data for representatives, supervisors, business units, or the country manager. The principal flow is credential validation and role routing, followed by worker-based workbook parsing and dashboard views. Supporting capabilities include customer profiles, opportunities and follow-up priorities, bonus analysis, target comparisons and administration, and multi-year sales selection. Edges reflect README statements and sampled source; unsampled page wiring is left out where it cannot be verified.
Main entry points: dashboard.js Dashboard analytics · source.js Target data source · app.js Sign-in · parser.worker.js Workbook parser
Components 22
Access and roles
- Sign-in
app.js - Credential validation
credentials.js - Browser storage
Sales analytics
- Representative view
representative.html - Supervisor view
supervisor.html - Business unit views
business-unit-chronic.html - Country manager view
country-manager.html - Sales workbook
data/Up.xlsx - Workbook parser
parser.worker.js - Dashboard analytics
dashboard.js - Year selection
sales-years.js - Bonus analysis
bonus.js - XLSX library
Customer insights
- Customer profiles
customer-profile.js - Opportunities
opportunities.js
Targets
- Target workbook
data/target.xlsx - Target model
targets/model.js - Target data source
targets/source.js - Target comparison
targets/comparison.js - Target administration
targets/admin.js - Approved target areas
targets/areas.json
Other components
- Portal user
Connections 28
- Portal user → Sign-in: signs in
README.md - Sign-in → Credential validation: loads credentials
README.md - Sign-in → Browser storage: stores session
app.js - Sign-in → Representative view: routes representatives
app.js - Sign-in → Supervisor view: routes supervisors
app.js - Sign-in → Business unit views: routes business units
app.js - Sign-in → Country manager view: routes country manager
app.js - Representative view → Dashboard analytics: loads dashboard
README.md - Supervisor view → Dashboard analytics: loads dashboard
README.md - Business unit views → Dashboard analytics: loads dashboard
README.md - Country manager view → Dashboard analytics: loads dashboard
README.md - Dashboard analytics → Workbook parser: starts worker
- Workbook parser → Sales workbook: fetches workbook
parser.worker.js - Workbook parser → XLSX library: parses workbook
parser.worker.js - Workbook parser → Dashboard analytics: returns sales rows
README.md - Dashboard analytics → Year selection: selects years
- Dashboard analytics → Bonus analysis: renders bonus views
dashboard.js - Dashboard analytics → Customer profiles: opens profiles
- Dashboard analytics → Opportunities: opens opportunities
- Target administration → Target data source: checks data
targets/admin.js - Target comparison → Target data source: fetches targets
targets/comparison.js - Target data source → Target workbook: fetches workbook
targets/source.js - Target data source → Approved target areas: loads approved areas
targets/source.js - Target data source → Workbook parser: loads sales history
targets/source.js - Target data source → Target model: validates targets
targets/source.js - Target comparison → Target model: builds comparison
targets/comparison.js - Target comparison → Target data source: loads comparison data
targets/comparison.js - Dashboard analytics → Target data source: loads optional targets