Replace pre-computed per-driver node/edge arrays with sparse correlation
matrix embedded in HTML. Networks are now built client-side in JS,
enabling a connections dropdown (2-6, default 5) in the sidebar.
HTML output shrinks from ~1,450 KB to ~55-70 KB.
Project detail fields (client, brand, country, category) are now
optional. When empty, falls back to uploaded filename for title.
fix: harden HTML output and interaction edge cases
- Escape user inputs and attribute names in HTML (XSS prevention)
- Secure JSON in script blocks against </script> injection
- Add JS esc() helper for all innerHTML insertions
- Hoist focus state to module scope so profile close clears it
- Fix driver code extraction to break on non-string values
- Remove dead numpy import from parse_excel
- Clarify auto-detected classification counts in UI
feat: detect reward territories from Excel instead of hardcoding
Reads "per reward field" header in row 4 to find territory columns,
then extracts territory names from row 5. Falls back to default list
if detection fails. Removes REWARDS_FACTORS from config.py.
feat: add 'Show Category Index' toggle — on by default