Commit Graph

934 Commits

Author SHA1 Message Date
c02ac93760 Retire Audio Conversation from the makeup question catalog 2026-11-03 12:32:19 +03:00
be6ba7c676 Migrate production catalog to makeup curriculum and archive legacy fixtures 2026-11-03 12:17:16 +03:00
fa646a6243 Skip optional demo seeding safely during production deployments 2026-11-02 13:14:57 +03:00
2e7f24e7f7 Merge remote-tracking branch 'origin/main' 2026-11-02 13:10:21 +03:00
39c86600f2 Adapt backend and demo curriculum for makeup artistry and clean up services 2026-11-02 13:09:31 +03:00
d0c48f03c4 Merge remote-tracking branch 'origin/main' 2026-11-01 14:59:11 +03:00
06d818cc61 fix: header normalization fixed in server 2026-11-01 14:58:54 +03:00
c4892d42e8 Clarify public catalog integration for customer apps 2026-11-01 14:09:44 +03:00
aa718ae7d0 Document detailed Swagger response schemas for every API 2026-11-01 14:02:47 +03:00
c87ef35390 Implement chapter-based learning, public catalog, and demo fixtures 2026-11-01 13:38:28 +03:00
3ab841c869 Add offline Swagger documentation export 2026-10-29 12:21:10 +03:00
e9c657e2ed Complete Swagger documentation and validate API contracts 2026-10-28 23:11:18 +03:00
84d908e292 Prefix admin panel APIs and preserve customer API paths 2026-10-28 22:56:34 +03:00
c04440914c Enforce LMS subscriptions and add configurable referral commissions 2026-10-28 17:51:56 +03:00
09dc5917f9 Unify LMS hierarchy and assessment support 2026-10-22 13:47:22 +03:00
d54a2b11d4 Merge remote-tracking branch 'origin/main' into production 2026-10-20 13:41:47 +03:00
a1f012774e Adapt LMS backend for makeup education 2026-10-20 13:41:40 +03:00
2134b953ab Initial commit 2026-10-19 17:59:34 +03:00
38e9f81372 Add archived subscription plan cleanup before unique index migration 2026-09-24 15:27:18 +03:00
1eb03b7e03 Add free subscription plans and enforce unique billing periods.
Introduce is_free plans with gateway-free checkout enrollment, require positive pricing for paid plans, and block duplicate category plus period combinations including free versus paid.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 21:32:33 +03:00
e68814c2c5 Trim baseline seed to one super admin and drop demo student.
Remove admin/content team demo accounts and student@yimaru.com; keep a single superadmin upsert and cleanup on reseed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 13:06:22 +03:00
7571ee4f1c subscription plan creation pricing fix 2026-09-10 14:23:13 +03:00
18c875e89c Fix subscription plan creation for zero-priced packages.
Allow price=0 by replacing required float validation with gte=0 so free plans no longer fail with a misleading required-field error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 14:09:39 +03:00
a3bf8ba5a2 Fix subscription plan creation for zero-priced packages.
Allow price=0 by replacing required float validation with gte=0 so free plans no longer fail with a misleading required-field error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 14:08:33 +03:00
77de56d801 cicd test 2 2026-08-24 18:42:20 +03:00
3a959cd563 cicd test 2026-08-24 17:32:57 +03:00
7d09faf2ee chore: retrigger deployment 2026-08-24 16:59:38 +03:00
1fc7b42533 Improve web checkout auth: phone normalization and Google web OAuth.
Normalize Ethiopian phone inputs for user lookup, accept web Google client IDs for ID token login, and update the checkout integration guide for OTP and social sign-in.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 16:48:53 +03:00
2791894e14 Add web checkout link API for iOS subscription paywall.
Send checkout URLs by email or SMS via POST /subscriptions/request-checkout-link, with LEARNER_WEB_CHECKOUT_BASE_URL config, RBAC permission, rate limiting, and client integration docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 13:09:09 +03:00
b7ed649874 practice completion per parent fix 2026-08-22 15:42:53 +03:00
d8630c15d6 Fix migration 000109 to drop legacy unique key before parent-scope backfill.
The backfill inserts multiple rows per user and question set when a practice has several parent links, so the old (user_id, question_set_id) constraint must be removed first.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 15:37:20 +03:00
fb528e9e77 Scope practice completion to the specific parent link in Learn English and Exam Prep.
Add migration 000109, require parent context on complete, and update progress queries and LMS rollups.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 15:37:20 +03:00
0027b74d83 List module and course practices by direct parent link only.
Aligns GET /modules and /courses practices with documented API so admin unlink matches the listed items.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 18:35:19 +03:00
977e4e73e2 Speed up activity log listing with batch actor lookups and search filter.
Batch-load users and team members per page instead of N+1 lookups, and add server-side search on message, action, and resource fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:13:28 +03:00
d69e6a1d70 Restore one practice per Learn English parent with validation.
Add a unique parent constraint after deduplicating links and reject create/update when a course, module, or lesson already has a practice.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 15:08:11 +03:00
0eef38b9a3 Broaden Unsubscribed user filter to include pending and expired subscriptions.
Users without an active subscription now match Unsubscribed, covering pending payments and lapsed plans alongside never-subscribed learners.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 19:42:54 +03:00
135c2bd5ce Add server-side audience filters to GET /users for notification targeting.
Extend UserFilter and GetAllUsers so admins can segment platform users by profile, subscription, engagement, and device fields when building notification audiences.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 19:27:39 +03:00
426876c02f CICD-Test 2026-08-16 19:08:30 +03:00
d676700a41 reamme file update 2026-08-16 18:55:57 +03:00
880bdfb4b7 Fix scheduled notification creator FK and default app timezone to EAT.
Point scheduled_notifications.created_by at team_members so admin JWT IDs validate, and set TZ=Africa/Addis_Ababa for the Docker app service.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 18:52:09 +03:00
82e895010b Drop leftover Learn English one-practice unique and include nested lesson practices in course and module lists.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 15:07:37 +03:00
3304d8818f Keep draft practices visible to admin staff and allow multiple Learn English practices per parent.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 12:03:05 +03:00
edcdaa5bfb Fix team member seed for allowed roles so Super Admin can be created.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 12:17:15 +03:00
f838299547 Seed a Super Admin team login for local and bootstrap environments.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 12:07:54 +03:00
cdc473df80 Restrict team invite permissions to Super Admin only.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 12:00:48 +03:00
ad3f4410e9 Grant ADMIN team invite and resend permissions by default.
EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 11:49:32 +03:00
9c4636ec83 Improve practice full-load errors and orphan response filtering.
Surface underlying load failures in the API message, accept pointer practice types, and keep question counts aligned when set items are missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 16:45:25 +03:00
291e1837c7 Fall back to response text when building question preview_text.
Some interactive questions only have readable wording in response slots; include that so admin bank lists and search have usable prompts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 16:17:53 +03:00
f2a1d6ccf5 Add question preview_text so admin bank lists show readable prompts.
DYNAMIC and outbound-dynamic questions omit question_text; preview_text exposes the learner-facing wording for search and display.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 15:54:46 +03:00
644a781cbb Map invalid profile analytics values to field defaults instead of Other.
Empty, unknown, and out-of-catalog values fold into per-field defaults so demographics charts no longer surface an Other bucket.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 13:56:28 +03:00