Commit Graph
76 Commits
Author SHA1 Message Date
shay 3aebd40279 chore(favicon): replace old SVG with new design for favicon icon
chore(ResultScreen): simplify embed section layout and improve copy button
chore(WorkshopScreen): replace emoji icons with inline SVGs for consistency
chore(index.html): update page
2026-04-18 12:50:23 -04:00
shay eadd074402 chore(App): add PATCH request to sync user settings with backend before render 2026-04-18 12:40:16 -04:00
shay dd45d49c22 chore(ResultScreen): add copy functionality for embed snippet button 2026-04-18 12:35:27 -04:00
shay 8ac657b874 chore(ResultScreen): update props to reflect SVG generation process changes 2026-04-18 12:17:25 -04:00
shay 7b2301cec0 chore(api): rename test function for clarity on enrollment behavior 2026-04-18 11:58:02 -04:00
shay f9c59d934d chore(api): add asynchronous build kickoff for improved responsiveness 2026-04-18 11:26:25 -04:00
shay 3ffb2cfb6f chore(frontend): add demo data 2026-04-18 11:15:16 -04:00
shay 79b9c31197 feat(api): implement precomputed widget data storage and retrieval. 2026-04-18 11:13:43 -04:00
shay f0c6edacf6 feat(api): add endpoint for fetching computed widget data by username. 2026-04-18 10:54:41 -04:00
shay 181668a3b3 fix(generator): fix import paths + add service config constants 2026-04-17 18:37:44 -04:00
shay a2e7a52169 docs(frontend): update README for new location + API contract 2026-04-17 17:17:36 -04:00
shay 2ff5d21b1c feat(generator): add multi-stage Dockerfile (node build -> python runtime) 2026-04-17 17:16:45 -04:00
shay 3e0b69cacd fix(gitignore): scope Python lib/ to project root so frontend src/lib is tracked 2026-04-17 17:15:59 -04:00
shay 917ad098f7 feat(generator): move frontend into generator + namespace API calls under /api/ 2026-04-17 17:14:32 -04:00
shay a3c17a15da test(generator): add end-to-end integration test + README 2026-04-17 17:06:03 -04:00
shay c0401a8a28 feat(generator): add poll cron that enqueues on payload-hash change 2026-04-17 17:03:11 -04:00
shay c50393467e fix(generator): harden SPA path handler and cache patch_settings read
- Drop the os.path.isfile pre-check in the SPA catch-all; let
  send_from_directory be the only gatekeeper so raw user-supplied
  path segments never reach os.path.isfile on a joined path.
- Reuse the first db.get_settings result in patch_settings so a
  race-induced None doesn't raise an unhandled AttributeError.
2026-04-17 17:01:56 -04:00
shay d448825bed feat(generator): add Flask API with SPA static, auth stub, rate limit 2026-04-17 16:59:25 -04:00
shay 961a3330e1 fix(generator): invalidate composite cache on not_found + drop unused import
Cache entry for widget:composite:{username} was not invalidated when a
user's fetcher payload transitioned to not_found, serving stale SVGs.
2026-04-17 16:56:45 -04:00
shayandClaude Opus 4.7 07221a1329 feat(generator): add build worker with retries and placeholder fallback
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-17 16:53:17 -04:00
shayandClaude Opus 4.7 97ad1c2b39 feat(generator): add typed HTTP client to the fetcher service
Implements thin wrapper over fetcher's two main endpoints: GET /data/<user>
and POST /fetch. Used by worker.py (rebuilds), api.py (user lookups), and
cron.py (bulk refresh). Includes authentication via X-Internal-Token header.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-17 16:47:38 -04:00
shayandClaude Sonnet 4.6 540d172011 feat(generator): add three placeholder SVG variants
Adds placeholder.py with building/rate_limited/not_found variants that use the same card_wrapper + theme system as real widgets, plus pytest coverage for all three variants and the unknown-variant error path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:46:12 -04:00
shay a0c5e8a86e feat(generator): add no-op cache wrapper (enables Redis later via env) 2026-04-17 16:44:38 -04:00
shayandClaude Sonnet 4.6 361c938985 feat(generator): add settings+widgets db with jobs, enrollment, LRU
Implements generator/src/db.py with two WAL-mode SQLite databases (settings.db for
users/jobs/enrollments, widgets.db for SVG cache with current_widget pointer) and
generator/tests/test_db.py covering all 10 TDD scenarios.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:42:43 -04:00
shayandClaude Sonnet 4.6 3525144aeb feat(generator): scaffold + move widgets/themes/models/utils/processor/config
- Add generator/requirements.txt and generator/pytest.ini
- git mv src/widgets, themes, models, utils, data/processor.py, config.py into generator/src/
- Fix relative imports in processor.py (moved up one level: .. → .)
- Append service-specific env vars (PORT, DB paths, FETCHER_URL, etc.) to generator/src/config.py
- git rm retired src/db, src/data/__init__.py, src/__init__.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:39:29 -04:00
shay 9feae9ff35 chore(scaffold): create fetcher/generator/edge service folders 2026-04-17 16:21:26 -04:00