Commit Graph

277 Commits

Author SHA1 Message Date
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
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
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
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
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
babbed323c fixed question type definition listing drop down 2026-06-11 03:15:40 -07:00
cc62944f02 feat(admin): send LEARN_ENGLISH category when creating learning programs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 09:04:22 -07:00
c9959cce23 fix(admin): restore description fields on Learn English course and module forms
Re-add description inputs to course create/edit and module create/edit dialogs so descriptions are sent to the API instead of empty strings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 08:51:02 -07:00
a10d7684d5 fix(admin): clickable lesson publish chips and exam-prep status APIs
Wire exam-prep and Learn English publish-status PUT helpers, load real catalog metadata on detail pages, and make lesson card publish chips interactive via ContentPublishStatusChip.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 05:58:19 -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
e0e5577ea8 feat(admin): expand payments list filters to match admin API
Add currency and reference query params plus full status chips on the payments page so filtering aligns with GET /admin/payments.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 05:12:52 -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
e75420e756 feat(admin): analytics user breakdowns, email templates, and team invites
Surface education, occupation, learning goals, and language challenges on the analytics page with normalized dashboard API parsing. Add email template management, accept-invite onboarding, and role-based team invitations.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 10:21:55 -07:00
b8a73c73db feat(content): admin UX for forms, practices, lessons, and content hub
Remove description fields from course, unit, and module create/edit dialogs. Add unit sort order on create, lesson publish status and sort order, video duration on lesson cards, and personas API integration for Learn English practice flows.

Move Manage Question Types to the new content hub, add Reorder Content page with hierarchy drag-and-drop, shared practice review UI, module practice cards, and publish-practice controls on course listings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 08:00:31 -07:00
38550f9519 UAT fixes stage 2 2026-05-19 04:41:43 -07:00
385f58fd22 UAT fixes stage 1 2026-05-18 08:44:51 -07:00
2b556d9d09 feat(content): lesson practices page, dynamic question schema, and practice flow updates
- Add LessonPracticesPage with GET /lessons/:id/practices and polished UI
- Route and module lesson navigation; view practices icon on VideoCard hover
- Question type definitions API, DynamicSchemaSlotField, definition helpers
- AddPracticeFlow and practice steps; AddQuestionPage and PracticeQuestionEditorFields

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 09:30:53 -07:00
f1b6172f91 fix(content): uniform lesson card heights and wire descriptions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 05:34:50 -07:00
bb6680acfb feat(module): Add practice button on each lesson card
- VideoCard: optional onAddPractice for lesson-scoped CTA
- ModuleDetailPage: navigate to add-practice with lessonId and lessonTitle
- AddPracticeFlow: show context banner when opened from a lesson

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 05:27:06 -07:00
77b71abfd8 feat(practices): DYNAMIC questions with schema-driven payload
- Add practiceDynamicQuestionPayload helper to build stimulus/response slots
- Extend PracticeQuestionEditorFields with DYNAMIC type, definition picker, and per-slot values (JSON-capable)
- Wire AddNewPracticePage and AddNewLessonPage createQuestion to send question_type_definition_id and dynamic_payload
- Use lesson/practice save status (DRAFT/PUBLISHED) for created questions instead of always PUBLISHED

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 05:11:48 -07:00
9b35a8bf30 qustion type builder integartion fix 2026-05-13 04:38:09 -07:00
457d09f02b dynamic question type builder integration 2026-05-11 07:42:57 -07:00
d1fcfc19b0 added int 2026-05-07 12:29:51 +03:00
aa998e5599 setting 2026-05-07 09:58:52 +03:00
df4820eba9 Merge branch 'production' of https://gitea.yaltopia.com/Yimaru/Yimaru-Admin into el-ui 2026-05-06 09:37:39 +03:00
6181334db7 ui 2026-05-06 09:37:25 +03:00
608d5bb45a module card labeling fix 2026-05-05 08:15:52 -07:00
a6ccfba733 pre-exam courses UI integration 2026-05-05 08:10:20 -07:00
a9216c4f4b Merge branch 'el-ui' into main (prefer el-ui on conflicts) 2026-05-02 01:11:25 -07:00
af4f713395 integartion of refresh URL 2026-04-27 05:58:39 -07:00
472e71d1a2 more static files access 2026-04-27 05:14:36 -07:00
89597dbc87 more static files access fix 2026-04-27 04:54:52 -07:00
599c5dd239 static files access fix 2026-04-27 04:49:40 -07:00
7308d9bbcd ui 2026-04-27 09:52:30 +03:00
b4ab66b4a6 lesson integration 2026-04-25 02:48:52 -07:00
3634d2eb79 program+course+module integrations 2026-04-24 08:27:39 -07:00
e239b28678 Merge branch 'el-ui' of https://gitea.yaltopia.com/Yimaru/Yimaru-Admin into el-ui
Made-with: Cursor

# Conflicts:
#	src/api/courses.api.ts
#	src/app/AppRoutes.tsx
#	src/pages/content-management/AddNewPracticePage.tsx
2026-04-24 06:06:32 -07:00
d4d61bfed2 course 2026-04-24 15:20:51 +03:00
1480eefbe6 yes 2026-04-22 17:10:43 +03:00
73f11ea1a0 Content admin: course hierarchy, sub-categories API, and stability fixes
- Sub-categories: load from GET categories/:id/sub-categories; SubCategoryCoursesPage
- Course structure: levels/modules/sub-modules APIs; SubCoursesPage hierarchy browser
- Sub-module detail: HumanLanguageSubModulePage for category routes; resolveSubModuleForCourse
- Types and courses API: module sub-modules endpoint, hierarchy array guard
- Misc: AppLayout/IssuesPage fixes, CoursesPage refactor, Human Language hierarchy page

Made-with: Cursor
2026-04-20 10:30:28 -07:00
f6344c19f9 Fallback edit lesson detail when missing
If /sub-module-lessons/:id returns not found, load the edit form from the linked question set instead.

Made-with: Cursor
2026-04-16 06:31:27 -07:00
5ee897cfad Add lesson detail fallback for new lessons
Handle environments where sub-module lesson detail is missing by falling back to question-set detail, and keep lesson form/status typing safe.

Made-with: Cursor
2026-04-16 06:25:09 -07:00
3ad0f0a63d Hide Step 3 hints for lesson questions
Made-with: Cursor
2026-04-16 05:21:22 -07:00
5a2c36e276 Refresh lesson card after edit
Made-with: Cursor
2026-04-16 05:07:09 -07:00
beb0e32dde Fix auth header on edit lesson cache bust
Made-with: Cursor
2026-04-16 05:00:04 -07:00
3607e4491b Prevent stale edit lesson form
Made-with: Cursor
2026-04-16 04:54:33 -07:00
b5946b9da3 Fix stale edit-lesson form after save
Made-with: Cursor
2026-04-16 04:44:32 -07:00
7c3f2192ef Fix edit-lesson question editing UI
Embed lesson question editor inside the 'Edit lesson' dialog, remove extra inline lesson question panel, and fix lesson card question counts.

Made-with: Cursor
2026-04-16 04:29:54 -07:00
bebab7ba1e Add lesson question bank editing
For lessons, fetch related questions by lesson question_set_id and render a styled question bank panel (same UX as practice), including add/edit/delete with proper refresh.

Made-with: Cursor
2026-04-16 04:03:12 -07:00
78e1e2e0ef fix stale lesson detail counts in human language page
Fetch selected lesson details from the sub-module lesson endpoint so the inline detail panel shows the latest question count and lesson metadata.

Made-with: Cursor
2026-04-16 03:11:42 -07:00
dc9b7f9d12 use lesson detail endpoint for human language edits
Load human language lesson edit data from the dedicated sub-module lesson detail API so lesson metadata stays aligned with the backend response shape.

Made-with: Cursor
2026-04-16 02:59:45 -07:00
bf76f729aa Fix role list refresh after deletion
Made-with: Cursor
2026-04-16 01:34:04 -07:00