Commit Graph

299 Commits

Author SHA1 Message Date
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
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
c53e95ff1e UAT fix 2026-06-29 09:18:19 -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
63fb170a8f Align exam-prep practice lists with Learn English card grid.
Reuse ModulePracticeCard across catalog course, unit, and lesson practice views with optional delete in the card menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 03:52:00 -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
15ec068f2f sidebar options fix 2026-06-20 03:02:22 -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