Commit Graph
177 Commits
Author SHA1 Message Date
shay 7f1e53cfad feat(db): normalize usernames in enrollment_rank for case insensitivity 2026-04-22 12:50:14 -04:00
shay 5102a36238 feat(workshop): refine login banner to display only for signed-in users. 2026-04-21 15:40:46 -04:00
shay 9cc9de2147 feat(api): add shortcut for rendering grade widget with username query. 2026-04-21 15:09:17 -04:00
shay a4ca81eab9 feat(workshop): simplify button visibility and update user message. 2026-04-21 14:46:46 -04:00
shay 118c8b7cc4 feat(workshop): add drag-and-drop functionality for achievements list 2026-04-21 14:10:37 -04:00
shay 113e4747cf feat(readme): replace hero widget image with composite widget example 2026-04-21 14:09:13 -04:00
shay a06bd2a20c feat(readme): replace hero widget image with composite widget example 2026-04-21 14:07:26 -04:00
shay 8941ed2f15 feat(readme): replace hero widget image with composite widget example 2026-04-21 14:07:15 -04:00
shay 048756c787 feat(workshop-screen): add generate button for editable users 2026-04-21 11:43:00 -04:00
shay fc4e8e4da5 feat(readme): update instructions and add table of contents section 2026-04-20 16:13:28 -04:00
shay b5bba19d46 feat(readme): update instructions and add table of contents section 2026-04-20 16:05:42 -04:00
shay 795f49d0a8 feat(api): update ResultScreen to use fallback URL for embed snippet 2026-04-20 16:05:33 -04:00
shay 451cb45788 feat(api): add sanitize_settings_query function for URL params handling 2026-04-20 15:04:15 -04:00
shay 96dc98142f feat(composite): add show_name parameter to control header visibility. 2026-04-20 15:04:09 -04:00
shay b66f966adb feat(workshop): refactor achievements section for improved layout. 2026-04-20 14:38:29 -04:00
shay 599c1ed672 feat(processor): refactor byte tally logic for authored repositories only. 2026-04-20 14:19:26 -04:00
shay fdd6b61172 feat(rendering): adjust text position in SVG for better visibility. 2026-04-20 14:19:18 -04:00
shay 13cc2b4eed feat(build-system): introduce BUILD_VERSION for widget invalidation logic. 2026-04-20 14:09:04 -04:00
shay a88561073a feat(result-screen): add onRegenerate prop to ResultScreen component. 2026-04-20 13:56:43 -04:00
shay 58fd6fbe67 feat(streaks): replace show_dates with customizable color setting. 2026-04-20 13:49:21 -04:00
shay 39d07fb7e0 feat(processor): add consistency scoring based on active commit weeks. 2026-04-20 13:43:08 -04:00
shay bd59910e54 feat(workshop): fetch and set user-specific widget settings on load. 2026-04-20 13:33:10 -04:00
shay e60acaca74 feat(workshop): implement drag-and-drop reordering for widgets. 2026-04-20 13:28:33 -04:00
shay ca795f7e71 feat(api): add 'streaks' to allowed widgets and settings structure. 2026-04-20 13:05:40 -04:00
shay 4febce9fca feat(api): add 'streaks' to allowed widgets and settings structure. 2026-04-20 13:05:34 -04:00
shay f43beb2ef6 feat(workflows): add health check workflow for automated monitoring. 2026-04-20 12:57:58 -04:00
Shay ManorandGitHub b98b32f030 Merge pull request #3 from ShayManor/feat/streaks-widget
Feat/streaks widget
2026-04-20 12:45:38 -04:00
shay 1d0fd3013e feat(streaks): persist streaks on refresh and pass to renderer
Phase 1 worker now reads the stored streak, computes an updated one via
processor.compute_streaks, persists it to the DB (preserving the all-time
max across settings changes), and includes it in widget_data. Phase 2
_render_widgets pre-reads the stored streak and passes it to the processor.
2026-04-20 11:52:22 -04:00
shay 788470cae0 feat(streaks): enable streaks widget by default 2026-04-20 11:49:43 -04:00
shayandClaude Opus 4.7 f23449a17e feat(streaks): render streaks widget in generate_widgets_from_github
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 11:48:09 -04:00
shay cb7a00d7c4 feat(streaks): add streaks widget renderer
Add render_streaks_widget() to generator/src/widgets/streaks.py with
flame/trophy icons, two-column layout, optional date display, and
export it from the widgets package; append 3 smoke tests (all 11 pass).
2026-04-20 11:45:51 -04:00
shayandClaude Sonnet 4.6 3b00a0aeac feat(streaks): compute current and max streak with grace day
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 11:42:59 -04:00
shayandClaude Sonnet 4.6 7fb1ba3e01 feat(streaks): add user_streaks table and get/put helpers
Adds the user_streaks table to settings.db schema and implements
get_user_streak / put_user_streak helpers with upsert semantics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 11:40:13 -04:00
shay dd4a3d50d8 feat(streaks): add StreakData model 2026-04-20 11:36:45 -04:00
shay 5a2bc11840 feat(ui): enhance AuthButton styling and position for better UX. 2026-04-19 21:51:30 -04:00
shay fa96adb5d1 feat(docs): update instance URL and enhance README formatting. 2026-04-19 21:51:23 -04:00
Shay ManorandGitHub 728f3f038d Merge pull request #2 from ShayManor/oauth
Oauth
2026-04-19 21:02:25 -04:00
shayandClaude Opus 4.7 f9caa61c77 fix(frontend): send cookies on /generate POST
Without credentials: 'include', the session cookie isn't attached and
the OAuth-guarded endpoint returns 401.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 20:10:14 -04:00
shayandClaude Opus 4.7 9e837519cc feat(deploy): wire OAuth secrets; rename env vars off GITHUB_ prefix
GitHub Actions rejects secret names starting with GITHUB_. Rename the
OAuth env vars to GH_OAUTH_* in config.py, compose.yml, and the deploy
workflow so the values can flow through Actions secrets into the
generator container.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 20:02:52 -04:00
shayandClaude Opus 4.7 be8823c4cf chore(frontend): delete lib/editToken.ts (replaced by OAuth)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 19:18:32 -04:00
shay ccdd8231ce feat(frontend): gate WorkshopScreen edit UI on OAuth login match 2026-04-19 19:16:59 -04:00
shay cd927e686f feat(frontend): AuthButton — GitHub sign-in / avatar chip 2026-04-19 19:14:06 -04:00
shayandClaude Sonnet 4.6 8ccc0af1cf feat(frontend): App fetches /me, removes editToken plumbing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 19:12:36 -04:00
shay b2baded94a feat(frontend): add lib/auth.ts with fetchMe, signInUrl, signOut 2026-04-19 19:10:05 -04:00
shay 8b7f999adc feat(api): per-login mutate rate limit layered on per-IP 2026-04-19 19:09:04 -04:00
shay 0cd7bf339d feat(api): remove public /enroll endpoint and auto-enroll on /data 2026-04-19 19:06:38 -04:00
shay 91f6328efd feat(api): /generate and /refresh use OAuth session; remove edit_token helpers 2026-04-19 19:03:16 -04:00
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