Commit Graph

61 Commits

Author SHA1 Message Date
4f0190f301 Remove FAQ management and the Settings initial assessment tab.
Drop FAQ routes, sidebar entry, and related admin UI; keep assessment thresholds under Content only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 14:54:48 +03:00
2b880f0386 Improve admin content search, role filters, and profile demographics display.
Harden list/search paths that white-screened, tighten role management to team vs user roles, and show profile analytics/labels with field defaults instead of Other.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 13:59:32 +03:00
d16cb84006 Refine analytics KPIs and charts, and relabel exam prep as Duolingo/IELTS.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 14:02:59 +03:00
ef170e7fbd Map gender analytics from API and show gender and education breakdowns.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 13:09:09 +03:00
feea83a588 Fix admin white screen from circular imports and route guards.
Break teamRoles/adminAccess cycle and restrict reduced navigation to Content Manager only so legacy team roles no longer redirect-loop on dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 12:14:42 +03:00
cd490c3dd9 Restrict admin panel access to three staff team roles.
Content managers see content routes only; Super Admin alone can send team invites. Align team role pickers and analytics layout with staff role model.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 12:05:10 +03:00
13217ae6b5 Remove issue reports and refine users list and detail UX.
Drop the issues feature from admin, simplify user status/region filters, and tighten user detail field layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 16:52:05 +03:00
992ca85690 Align admin dates with EAT and refine analytics, payments, and toasts.
Use Africa/Addis_Ababa for display and filters, add payment method and date range controls, and restyle Sonner notifications to match the admin UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 15:23:15 +03:00
e1d262cdf5 Render missing-value unassigned labels in italic.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 00:31:16 -07:00
ab8d487016 Show unassigned instead of dashes for missing admin values.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 00:20:40 -07:00
524e891e73 Fix team invite role keys and block already-registered emails.
Send SUPER_ADMIN-style keys instead of display labels, and validate invite emails against existing team members before send.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 00:41:35 -07:00
fb1c3a849f analytics page fix 2026-07-29 08:47:36 -07:00
c323df9f47 Make one-time lifetime access a per-plan option in admin.
Add an is_lifetime toggle for all subscription categories and stop hardcoding IELTS/Duolingo as lifetime-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-22 07:42:49 -07:00
31b1ea5a81 Preserve question-level stimulus alongside shared IELTS blocks.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 11:35:54 -07:00
2180d64b06 Treat IELTS and Duolingo subscription plans as one-time lifetime access.
Hide duration editing for those categories, show never-expires in user subscriptions, and disable extend for lifetime plans.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 02:23:31 -07:00
827e20b4f1 Preserve dynamic question slot kinds when rebuilding practice questions on edit.
Carry the original API payload through the form so slot kinds and timer values are resolved correctly when saving edited dynamic questions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 01:36:19 -07:00
4eac111a7b Fix multi-slot pairing for matching, cloze, and MCQ correct answers.
Pair answer slots with inputs by schema position and give each MCQ slot its own radio group name.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-13 09:25:12 -07:00
3c64cffe58 edit practice issue fix 2026-07-13 08:16:35 -07:00
e3e7919a7f Normalize dynamic question slot payloads for timers, text, and tables.
Keep seconds as plain digits in the form and emit { seconds: N } on save, while leaving text/media slots as strings and structuring TABLE values.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-13 07:06:00 -07:00
a880f06b14 Verify team reset links before showing the password form.
Call GET /team/verifyResetCode on load and surface used, expired, or invalid link states with a path to request a new link.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 06:38:50 -07:00
7563d89bc1 feat: wire team forgot/reset password to API
Add /reset-password page, connect forgot-password to sendResetCode, and treat team reset endpoints as public auth routes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 06:18:18 -07:00
f34aa809d9 Show all subscription statuses in analytics pies, including zeros.
Also trim payment status filters to Pending, Success, and Expired.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 05:55:29 -07:00
042df899e1 Add admin grant/extend/cancel for learner subscriptions.
Wire user-detail subscription actions with searchable plan picker and type-to-confirm modals, and mask sensitive revenue values on the dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 04:59:00 -07:00
d77d46b549 Improve subscription plan management and admin branding.
Fetch inactive packages with active_only=false, add in-table status toggles, and replace the default favicon with the Yimaru mascot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 03:26:20 -07:00
0945d85838 Add video analytics section to the analytics dashboard.
Surface watch sessions, completion/replay rates, and checkpoint drop-off charts from the dashboard API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 00:00:29 -07:00
4acde7ffc9 Add real-time Vimeo TUS video upload progress across content forms.
Upload local videos directly to Vimeo with phase progress, cancel support, PascalCase API normalization, and privacy-hash player URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 08:24:13 -07:00
31cc7baa32 Improve admin UX for practices, personas, navigation, and team management.
Add edit-practice dirty-state save gating, back navigation helpers, realistic persona avatars with circular cropping, global API error toasts, team invite role fixes, user/team block-unblock on detail pages, and related content-management polish.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 07:56:43 -07:00
2e59a446e5 Improve bulk email compose with full template list and free-form HTML modes.
Load all active email templates for the send composer, fix API parsing/pagination, and add template preview with scheduled-job template labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 05:31:17 -07:00
5df5a7f742 Integrate practice stimulus blocks, parent unlink, and question-type practice listing.
Add IELTS shared stimulus authoring, per-parent unlink APIs and UI, and fix question-type practice modal to show LMS/exam-prep locations and edit routes correctly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 04:59:28 -07:00
8294b3fcf4 Fix export button visibility by normalizing team role for RBAC checks.
Sync team_role from the API into session storage and resolve export permissions using canonical role keys so production sessions match localhost behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 09:32:41 -07:00
f06d35632f Integrate server-side CSV export across admin list pages.
Add blob download helpers, permission-gated export buttons that mirror list filters, role-based export access, and client-side filenames using resource name plus timestamp.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 09:11:56 -07:00
a8243e3ae4 Support nullable-parent practice shells for LMS and exam prep.
Add exam-prep create/list/parents APIs, unlinked attach flow, optional placement on create, and exam-prep location editing with catalog course, unit, and lesson parent kinds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 08:14:43 -07:00
35452f3a97 Add exam-prep catalog course and unit practice management.
Wire dedicated create/list APIs, Units/Practices tabs, attach flows, and routes so practices attach at catalog course and unit levels instead of program or module.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 01:39:29 -07:00
076edee45d Improve notifications delivery and admin UX with realtime inbox, platform-wide browsing, and mobile-responsive layouts.
Restore WebSocket in-app delivery, fix inbox preview/detail handling, add Gmail-style delete undo, an all-notifications admin page with filters, notification composer audience split, shared table pagination, and responsive table/grid fixes across admin pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 01:42:29 -07:00
53cdb5060a Integrate activity logs and polish user profile audit UX.
Add global and profile-scoped activity log views with server-side actor enrichment, admin sidebar access for ADMIN/Super Admin roles, collapsible user detail sections, and horizontally scrollable account activity tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 03:59:24 -07:00
5e7765d6e3 Fix payments page summary cards to aggregate across all filtered results.
Fetch the full payment dataset for analytics so successful count and revenue reflect every matching transaction, not just the current table page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 02:41:32 -07:00
f833275b75 Add question type definition groups and streamline definition editing.
Support many-to-many group_ids in the API client and admin UI, and let admins save definition edits from the header with unsaved-change detection and redirect back to the library.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 07:14:07 -07:00
c587ea90d8 Add NO_INPUT question types and fix cross-page client search.
Support No input stimulus/response slots in dynamic question type definitions, allow saving unmappable types on review, and load full datasets before client-side search so filters work across paginated lists.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 04:27:03 -07:00
ad75a06284 Add attach-practice flow, nullable parents, and practice UX improvements.
Support linking existing practices from course/module/lesson pages with client-side search, a full-page attach wizard, and titled parent summaries on review. Extend practice creation for question-type shells, multi-parent APIs, and layout fixes across admin flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 02:40:37 -07:00
1915d89bc3 Align subscription plan categories with backend allowed values.
Replace EXAM_PREP and SKILLS with IELTS and DUOLINGO, and centralize category labels across payments and user subscriptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 08:12:43 -07:00
8e0ebe077a template for email notifications 2026-06-15 06:24:42 -07:00
2966bdb180 feat(admin): connect admin pages to live APIs and expand content tooling
Wire team, user, persona, FAQ, and ratings flows to backend endpoints; rebuild profile and user detail views with learning activity and subscriptions; fetch Vimeo lesson duration on module cards; add shared filters, permissions helpers, and notification UX improvements.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 05:49:36 -07:00
035d73889e feat(admin): practice edit flow, bulk notifications, and composer UX
Add full practice edit via GET/PUT .../full endpoints with question reorder and collapsible cards. Integrate bulk and scheduled SMS, email, push, and in-app notifications with a scheduled jobs page and improved recipient picker search.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-12 05:26:35 -07:00
39312bf509 feat(admin): content management publish/access controls, reorder, and team invites
Wire publish status and access tier toggles, list search/filtering, and hierarchy reorder APIs across content pages; switch team member adds to email invites and collapse long page descriptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 05:34:33 -07:00
f06bbbee47 feat(admin): exam prep practice APIs and coordinated creation flow
Wire exam prep lesson practice list and delete endpoints, refactor practice creation into a five-step orchestrator, and add per-question difficulty and points in the add-practice form.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 02:39:57 -07:00
b21c679e56 question creation UI fixes 2026-06-06 03:47:00 -07:00
095e690a68 practice creation UI fix 2026-06-05 10:31:53 -07:00
1014f4a72f feat(admin): notification details, question type library, and schema UX
Wire GET /notifications/:id for topbar and notifications page detail views, harden notification WebSocket lifecycle, paginate question type and app version lists from API, and expand dynamic question type schema labels and slot editing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 05:44:09 -07:00
92a2fab833 feat(admin): dynamic content flows, cleaner UI copy, and table pagination
Add Learn English practice and question-type builder integrations with dynamic schema slots and HTML table editor. Remove API path labels from admin pages and standardize table page-size options to 5, 10, 30, 50, and 100.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 12:34:39 -07:00
2c3f0da6f7 feat(admin): payments, settings tabs, theme, and navigation refresh
Add admin payments with status, provider, and plan category filters. Introduce app versions and subscription plan management in settings, change-password security flow, and dark theme support. Reorganize sidebar, improve activity log actor details, analytics, and related UI polish.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 06:54:58 -07:00