Commit Graph

198 Commits

Author SHA1 Message Date
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
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
7571ee4f1c subscription plan creation pricing fix 2026-09-10 14:23:13 +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
34307d7717 Support progressive placement with one assessment set per CEFR level.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:04:19 -07:00
9f10bc161d Allow optional payment recording on admin grant/extend subscriptions.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 10:31:15 -07:00
b1333eadae Require auth for knowledge-level updates and add mobile placement integration guide. 2026-07-31 23:36:01 -07:00
678cf678f5 Add backend developer documentation and docx generator. 2026-07-31 07:16:02 -07:00
4f6c356b6c feat: create PENDING subscription when payment is initiated
Link checkout payments to a pending subscription row and activate it on success, or cancel it when payment fails, is cancelled, or expires.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 05:44:05 -07:00
0e0203ab37 feat: unify admin grant/extend and record plan-price payments
Use one user-scoped extend endpoint that grants or renews by plan_id, charge admin payments at plan price for revenue, and refresh the admin panel integration guide.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 04:25:11 -07:00
615c5f733f docs: add admin subscription grant/extend/cancel integration guide
Document admin panel APIs, permissions, side effects, and UI patterns for complimentary learner subscription management.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 02:38:26 -07:00
815ac1576e feat: split learner OTP and team password-reset link flows
Learners get email/SMS OTP codes via /user/sendResetCode; team members get reset links via new /team/sendResetCode and /team/resetPassword APIs, with admin panel integration docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 01:52:49 -07:00
3ff43a3a22 docs: add Vimeo video upload progress admin panel guide
Document real-time TUS upload progress, transcode polling, and React integration patterns for the admin panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 23:38:18 -07:00
d5ef5ace51 docs: add team member invitation admin panel integration guide
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 06:37:17 -07:00
085a9a3db4 docs: add question type practices list admin panel integration guide
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 05:49:34 -07:00
218c09c904 feat: add per-parent practice unlink endpoints for LMS and exam-prep
Adds DELETE /practices/:id/parents/:parentKind/:parentId and exam-prep equivalent so admins can remove one location link without replacing the full parents array. Includes admin panel integration guide and parent kind parse tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 04:21:30 -07:00
dd82a1b27f feat: add Chapa Direct Charge for in-app USSD subscription payments
Adds /payments/chapa/direct initiate and authorize endpoints alongside existing hosted checkout. Includes 3DES OTP authorization, verify routing for CHAPA_DIRECT payments, tests, and client app integration guide.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 04:04:29 -07:00
8a73851796 docs: add practice stimulus blocks admin panel integration guide
Documents authoring_profile, stimulus_blocks, stimulus_block_key, effective_dynamic_payload merge rules, and full practice GET/PUT integration for the admin panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 03:23:51 -07:00
713bd95f97 feat: add Tier 1 admin CSV export APIs and integration guide
Add streaming CSV export for payments, users, subscriptions, activity logs, and team members with list-filter parity, RBAC permissions, and admin panel documentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 08:35:42 -07:00
75fb913704 feat: support nullable parents for exam-prep practices
Add POST/GET /exam-prep/practices and PUT .../parents mirroring the LMS shell-then-link flow. Update admin panel integration guide and exam_prep.practices.list permission.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 08:07:01 -07:00
2400f5fcb1 feat: support team members in bulk notifications and add integration guides
Allow bulk in-app and email sends to target team_member_ids and team_role alongside platform users, including scheduled dispatch. Document team refresh token admin integration and select-missing-words sequence order.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 00:35:16 -07:00
eb0c87059f fix: enrich activity log actors and add admin integration guide
Record explicit actor on login/register flows and return actor_name, actor_email, and actor_kind from activity log APIs so admin audit rows no longer show System for authenticated events.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 03:29:20 -07:00
fd4397dcd9 feat: allow question type definitions in multiple groups via group_ids
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 06:40:28 -07:00
527ee238dd feat: add question type definition groups with nullable group_id
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 06:15:16 -07:00
12d4e49cea feat: optional parents on practice create and PUT parents endpoint
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 05:02:13 -07:00
e67f666815 feat: allow LMS practices to link to multiple course/module/lesson parents
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 04:14:34 -07:00
8dd0c2d784 feat: add question associations for practice section sequencing
Add associated_question_id on question set items so authors can group practice questions into ordered sections. Expose prerequisite_question_ids on read APIs for client-side gating, validate associations on save, and document admin panel integration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 03:18:24 -07:00
9b3f494669 fix: resolve role-based bulk notification user targeting
GetAllUsers with unset PageSize was issuing LIMIT 0, so role-only bulk sends returned no recipients. Default to 100k for unpaginated lookups and normalize role/status case.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 06:57:33 -07:00
c73d2880ef fix: improve bulk push token targeting and update notifications docs
Include all active FCM device tokens (including web), return devices_targeted in bulk push responses, and refresh platform on token re-register. Document email template integration and push troubleshooting in the bulk notifications guide.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 06:18:42 -07:00
7836a9f95d feat: wire email templates for outbound, welcome, and password reset flows
Enable template selection on admin single/bulk and scheduled emails, send welcome emails only after email registration OTP verification, and use the password_reset template for email-based reset links.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 05:17:01 -07:00
f3fa551be4 feat: add PUT /team/me self-service profile update and admin docs
Let team members update their own profile without admin routes, seed team.profile.update_mine RBAC, and add FAQ/personas/ratings admin integration guides.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 03:46:22 -07:00
10babe06f6 feat: add in-app notification delete APIs and fix FAQ RBAC access
- Add DELETE /notifications/:id and POST /notifications/delete-in-app for owned in-app rows

- Seed FAQ permissions for ADMIN/INSTRUCTOR, migration 000084, and improve RBAC sync

- Document FAQ admin panel integration

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 02:15:00 -07:00
7e327440fc feat: add scheduled bulk in-app notifications and integration guide
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 04:57:03 -07:00
b780db5307 feat: expire stale pending payments with background worker
Add a configurable cron worker to bulk-mark PENDING payments past expires_at as EXPIRED. Also remove obsolete integration docs and refresh Swagger/go.mod artifacts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 04:10:17 -07:00
bb03ee1668 feat: paginate question type definitions list API
Add limit and offset query params to GET /questions/type-definitions with total_count metadata. Update integration docs, Postman collection, and page clamping tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 04:33:41 -07:00
b5b9ef03b5 refactor: consolidate stimulus audio under AUDIO_PROMPT
Remove AUDIO_CLIP from the stimulus component catalog and use AUDIO_PROMPT for all question-side audio. Update integration, practice, and Postman docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 03:34:01 -07:00
ab986a08f0 feat: expand builder docs, add practice LMS guide, remove CHART stimulus kinds
Document schema slot label assignment and usage in the admin integration guide. Add a step-by-step dynamic practice creation guide for course/module/lesson scopes. Remove CHART and FLOW_CHART from the stimulus component catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 02:54:44 -07:00
33355a4b23 feat: PDF_ATTACHMENT stimulus, dynamic question_text rules, admin builder docs
Add PDF_ATTACHMENT stimulus kind and MinIO pdf upload (media_type=pdf) for question-side PDFs.

Reject top-level question_text on DYNAMIC create/update; omit it from API responses and derive stored text from stimulus only.

Expand DYNAMIC_QUESTION_TYPE_BUILDER_ADMIN_INTEGRATION.md with full API request/response reference and workflows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 11:07:02 -07:00
08a2886654 feat: optional dynamic question_text and OPEN_LEARNER completed access
Derive question_text from QUESTION_TEXT, INSTRUCTION, or TEXT_PASSAGE stimulus for DYNAMIC questions so the top-level field is no longer required on create.

OPEN_LEARNER access responses now set is_accessible and is_completed to true on all LMS and exam-prep content, with full progress when totals exist.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 09:48:33 -07:00
fbad083ca4 Add admin payments list API with filters and fix /admin route conflict.
Expose GET /api/v1/admin/payments for filtered gateway transaction listing, constrain /admin/:id to integers so /admin/payments is not mistaken for an admin id, and grant payments.list_all to ADMIN.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 05:50:46 -07:00