Commit Graph
78 Commits
Author SHA1 Message Date
shay 4ee71e0b86 feat(api): PATCH /settings uses OAuth session + same-origin 2026-04-19 18:59:46 -04:00
shayandClaude Opus 4.7 eb4b68bf0d feat(api): OAuth callback — verify state, fetch profile, implicit enroll
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 18:57:20 -04:00
shayandClaude Opus 4.7 98c40ff993 feat(api): add /api/auth/github/login with CSRF state + local-only next
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 18:54:44 -04:00
shay a6356d4d1d feat(api): add /api/auth/me and /api/auth/logout 2026-04-19 18:53:12 -04:00
shay 232812b3a0 feat(api): configure Flask session + init OAuth client 2026-04-19 18:51:22 -04:00
shay 4602bb9494 test(auth): unit tests for require_github_owner and require_same_origin 2026-04-19 18:49:39 -04:00
shay ccd0f63fa8 feat(auth): add OAuth client + require_github_owner/require_same_origin decorators 2026-04-19 18:48:14 -04:00
shay ec9d4c3672 db: remove dead _hash_edit_token; convert verify_edit_token to stub
_hash_edit_token was only called by verify_edit_token and has no remaining
callers in db.py (enroll no longer hashes tokens). Remove it along with the
unused 'secrets' and 'hmac' imports.

Keep verify_edit_token as a NotImplementedError stub since api.py's
require_edit_token decorator still references it. Task 12 will remove both
the decorator and this function together when switching to session-based auth.
2026-04-19 18:47:11 -04:00
shay 22483aea19 db: enroll() accepts github profile; no longer returns edit_token 2026-04-19 18:45:26 -04:00
shay 57b782ceaf db: add github_id and github_avatar_url columns + set_github_profile 2026-04-19 18:44:01 -04:00
shay 4822272b49 config: add GitHub OAuth + session env vars 2026-04-19 18:40:28 -04:00
shayandClaude Opus 4.7 1501139143 deps: add authlib for GitHub OAuth
Pins authlib>=1.3,<2 so the generator can register a GitHub OAuth
client for the upcoming login flow.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 18:39:45 -04:00
shay 58e794fd57 feat(tags): add auto-awarded profile tags and validation utilities. 2026-04-19 09:37:32 -04:00
shay ca74e91e3e feat(readme): update README to describe new SVG widget features. 2026-04-19 09:34:40 -04:00
shay 016583c9f3 feat(api): implement per-user edit token for settings mutations 2026-04-19 09:34:26 -04:00
shay 3ecb6ad67b feat(tags): implement custom tag color merging and label support 2026-04-18 14:52:32 -04:00
shay 3e70e4b4ef feat(languages): add hidden languages picker and enrich language data 2026-04-18 13:39:44 -04:00
shay 5198eab86a feat(icons): replace inline SVGs with consistent JSX properties for icons 2026-04-18 13:17:00 -04:00
shay 12fb6c331b feat(worker): add achievements parameter to widget settings processing 2026-04-18 13:05:49 -04:00
shay 89a05f2a59 chore(WorkshopScreen): update ICONS type from JSX.Element to ReactNode 2026-04-18 12:51:48 -04:00
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 a63c1891a0 feat(deploy): change deployment runner from minipc to self-hosted. 2026-04-18 01:06:59 -04:00
shay 873ca512bd feat(readme): update Docker badge to reflect new deployment workflow. 2026-04-18 00:52:46 -04:00
shay 19a357d92b feat(readme): remove references to deleted production pipeline design. 2026-04-18 00:02:34 -04:00
shay 181668a3b3 fix(generator): fix import paths + add service config constants 2026-04-17 18:37:44 -04:00
shay 83c4227d5f ci: add tests + docker build workflows with status badges
- tests.yml: matrix-run pytest for fetcher/generator/edge on push + PR
- docker.yml: matrix-build each service's Dockerfile with buildx cache
- README badges reflect both workflow statuses
2026-04-17 18:13:18 -04:00
shay 814bbf7d8d chore: final cleanup — gitignore editor caches, track plan + spec docs 2026-04-17 17:21:36 -04:00
shay 74047b28fc docs: top-level README + CLAUDE.md reflect three-service layout 2026-04-17 17:19:23 -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 f93c39d022 docs(edge): add README 2026-04-17 17:09:00 -04:00
shay 4edc66d1bb feat(edge): add cache-first SVG proxy with Flask-Caching + Flask-Compress 2026-04-17 17:08:37 -04:00
shay 5ba5ec4f4b feat(edge): scaffold config, requirements, Dockerfile 2026-04-17 17:07:12 -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
shayandClaude Sonnet 4.6 cb3ace8dcd feat(fetcher): add cron refresh + GC and service README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:34:52 -04:00
shayandClaude Sonnet 4.6 d77dea20bc feat(fetcher): add Flask API with auth, auto-fetch, avatar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:32:59 -04:00
shayandClaude Sonnet 4.6 1a3caff269 feat(fetcher): move GitHub client into fetcher service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:30:52 -04:00
shay 15ad9c81aa chore(cleanup): remove stale widget_shaymanor.svg build artifact 2026-04-17 16:26:19 -04:00
shayandClaude Sonnet 4.6 832f94c1b9 feat(fetcher): add SQLite db module with WAL, payload hashing, GC
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 16:25:05 -04:00
shay f0e6d9439e feat(fetcher): scaffold config, requirements, pytest, Dockerfile 2026-04-17 16:22:46 -04:00
shay 7aa5f9d5a0 chore(cleanup): remove retired entry points and build artifacts 2026-04-17 16:22:04 -04:00
shay 9feae9ff35 chore(scaffold): create fetcher/generator/edge service folders 2026-04-17 16:21:26 -04:00
shay 7943d5aa89 feat(readme): add detailed usage instructions and widget descriptions 2026-04-17 16:16:24 -04:00
shay e8e06137a5 feat(widgets): add settings parameter to multiple widget render functions 2026-04-17 13:52:22 -04:00
shay 7c48e599dc feat(themes): add new themes 'onyx', 'nord', and 'paper' to palette 2026-04-16 12:18:26 -04:00
shay 5d9dd9aba8 chore(data): add db 2026-04-15 19:50:08 -04:00
shay 2eee22024a chore(architecture): split into generator and fetcher 2026-04-15 19:49:49 -04:00
shay 87c802b20a feat(fetcher): add method to fetch user commit repositories via GraphQL 2026-04-15 19:25:25 -04:00
shay 7a33e39744 feat(config, generate, processor): enhance widget customization and tag inference 2026-02-20 15:19:59 -05:00
shay 9dc728e441 feat(composite): fix tags 2026-02-20 15:07:13 -05:00
shay 292f161a94 feat(processor): fix contributions classification + removed unnecessary tag 2026-02-20 15:03:45 -05:00
shay a336577c55 feat(fetcher): enhance commit and contribution fetching using GitHub GraphQL API 2026-02-20 14:50:52 -05:00
shay e4c9f91190 feat(collaborators, fetcher, languages): update collaborator display limit and enhance language widget rendering 2026-02-18 13:56:42 -05:00
shay dc6de9c2a9 feat(fetcher): add fetcher to get and process the github data 2026-02-18 13:56:34 -05:00
shay 7ab9eff501 feat(package): add init 2026-02-18 12:30:47 -05:00
shay 27c297c0fb feat(main): add main entry point and restructure widget generation logic 2026-02-18 12:30:30 -05:00
shay 88d0003e72 feat(widget): implement modular widget rendering and data processing for GitHub profiles 2026-02-18 12:28:51 -05:00
shay 1f427f10b7 feat(generate): added initial generate script 2026-02-18 12:18:47 -05:00