Commit Graph

267 Commits

Author SHA1 Message Date
990c92c78a Allow granting more plans and picking which active subscription to extend.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 13:46:23 +03:00
9f658f9cf6 Restrict Add Team Member to Super Admins only.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 12:00:48 +03:00
283ef1ee40 Enable admin team invites, hide practice points/difficulty UI, and improve mobile layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 11:50:48 +03:00
72384a5980 Fix IELTS shared-stimulus practice edit and add question-bank attach.
Restore the missing stimulus hydration import so Listening/Reading MC practices load, and allow attaching existing bank questions while surfacing clearer edit-load errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 22:14:48 +03:00
776f7a2872 Move role management into Settings Security with Super Admin edit access.
Embed roles under Settings, remove the sidebar Roles entry, and limit role edits to Super Admins.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 15:06:55 +03:00
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
47893a7838 Add client-side search and filtering on the payments page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:21:37 -07:00
8e7226b370 Manage one initial assessment question set per CEFR level.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:09:51 -07:00
de9766be7b Add optional payment choice for admin grant and extend subscriptions.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 10:34:02 -07:00
d73e928de6 Default payments pagination to 10 rows per page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 01:49:48 -07: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
8df2eae342 Default activity log pagination to 10 rows per page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 00:12:29 -07:00
a3015f992e Add delete confirmation and disable unchanged saves on initial assessment. 2026-07-31 23:44:36 -07:00
9a67d00483 Add initial placement assessment admin UI with thresholds and question management. 2026-07-31 07:17:41 -07:00
ffab87858e Restyle dashboard and subscription analytics to match the revenue mockup.
Add shared revenue/plans/renewal visuals and polish dashboard cards, charts, and section layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 01:58:46 -07:00
f5e0a668a1 Document the admin panel setup, routes, auth, and product areas.
Replace the outdated README with current stack, env, API modules, and operational guidance.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 01:14:51 -07:00
f5ccf64cee Tighten reorder content UI and rename exam prep tab.
Make hierarchy lists denser and label the exam prep tab as Duolingo/IELTS.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 00:47:28 -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
4440f2bf26 Fix admin session bootstrap, exam prep reorder, and issue status values.
Bootstrap browser session before first render to avoid spurious 401 toasts; add exam prep reorder tab and APIs; use rejected instead of closed for issue PATCH.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 00:05:04 -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
7e4c3fd3b9 Merge branch 'el-ui' into main.
Prefer el-ui changes when resolving conflicts.
2026-07-13 08:40:28 -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
99f14a1789 Merge branch 'production' of https://gitea.yaltopia.com/Yimaru/Yimaru-Admin into el-ui 2026-07-12 12:48:43 +03:00
03733b50ed chore: add .opencode to gitignore, remove tracked files 2026-07-12 10:05:22 +03:00
a4e3add799 ui fixes 2026-07-12 09:51:09 +03: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
f6ad0d3cb5 Move subscriptions into the user detail sidebar column.
Tighten subscription action button layout so the card fits the narrower column.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 05:06:43 -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
4f3a49da35 Merge branch 'production' of https://gitea.yaltopia.com/Yimaru/Yimaru-Admin into el-ui 2026-07-10 12:11:00 +03:00
9d6c2850f0 ui 2026-07-10 12:10:45 +03: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
b451f415db update subscription plan fix 2026-07-09 02:51:45 -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