Commit graph

8 commits

Author SHA1 Message Date
ggurdin
2efd61bccd
4450 find course button overflow with german l1 (#4488)
* fix: text overflow in add course page German buttons

* feat: show warning popup when user selects course plan in new course page if user is already in a course with the same ID

* use firstWhereOrNull for room search
2025-10-22 10:20:52 -04:00
ggurdin
34fb8614c1
chore: on no courses found for language, log error (#4434) 2025-10-16 11:34:13 -04:00
Copilot
0b40b1c7ea
Remove L1 (base language) display from course info chips (#4378)
* Initial plan

* Remove L1 display from courses

Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2025-10-14 12:14:33 -04:00
ggurdin
b9e0ac6ee4
fix: on load course topics, also load location media to get topic images (#4376) 2025-10-14 12:01:43 -04:00
ggurdin
512d7f566d
fix: reload space course after updating course state event, wait for … (#4359)
* fix: reload space course after updating course state event, wait for course ID update in sync after returning from add course to space function

* Update lib/pangea/course_settings/course_settings.dart

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 14:00:58 -04:00
ggurdin
096567ecf6
4354 room stuck indefinitely loading (#4357)
* fix: stop loading course if course plan provider if courseId is null

* don't allow padding of null string to loadCoursePlan
2025-10-13 13:30:55 -04:00
ggurdin
d4b5d6d059
fix: filter courses only by short lang code (#4350)
* fix: filter courses only by short lang code

* Update lib/pangea/course_creation/course_search_provider.dart

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update lib/pangea/login/pages/public_trip_page.dart

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: always call setState on update target language filter

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 13:02:29 -04:00
ggurdin
261e28abb7
Organize course repos (#4262)
* integrate CoursePlansRepo.translateActivity, translateTopic, translateCoursePlan

* move translation functions to requisite files

* integrate translation endpoint

* refactor: reorganize course-related repos, add request and response model classes

* remove l2s from translation requests

* update translation request and response models, use translation endpoint to get course info, cache courses with L1s in cache key

* update topics repo to use translation endpoint

* use activity translation endpoint

* refactor: incremental loading of individual course info, account for discrepancy between translated IDs and original IDs

* incremental loading of course batches

* Update lib/pangea/course_plans/courses/course_plan_room_extension.dart

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* cleanup

* cleanup

* fix: some name changes

* formatting

---------

Co-authored-by: WilsonLe <leanhminh2907@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: wcjord <32568597+wcjord@users.noreply.github.com>
2025-10-13 11:36:24 -04:00