feat(web): Core Refactor Phase A — extract sampling and cache modules; add adaptive TTL + eviction heuristics, Redis PoC, and metrics wiring. Tests added for TTL, eviction, exports, splash-adaptive, card index, and service worker. Docs+roadmap updated.

This commit is contained in:
matt 2025-09-24 13:57:23 -07:00
parent c4a7fc48ea
commit a029d430c5
49 changed files with 3889 additions and 701 deletions

5
_tmp_check_metrics.py Normal file
View file

@ -0,0 +1,5 @@
import urllib.request, json
raw = urllib.request.urlopen("http://localhost:8000/themes/metrics").read().decode()
js=json.loads(raw)
print('example_enforcement_active=', js.get('preview',{}).get('example_enforcement_active'))
print('example_enforce_threshold_pct=', js.get('preview',{}).get('example_enforce_threshold_pct'))