Skip to content

Changes

Started by Mandvi
Started 16 hr ago
Took 11 min

Summary

  1. Switch from `XapiGroup` to `Clazz` for student group selection and update related logic. (details)
  2. Refactor `AssignmentEditViewModel` to use `XapiGroup` for class selection and remove debug logs in `ClazzDetailViewModel`. (details)
  3. testing. (details)
Commit 1e4eba602c2c3c935191592751f4b4a9099255d3 by mandvi.verma
Switch from `XapiGroup` to `Clazz` for student group selection and update related logic.

- Refactor `AssignmentEditScreen` and `AssignmentEditViewModel` to use `Clazz` options instead of `XapiGroup` for the assignee field.
- Update `UpdateClazzStudentXapiGroupUseCase` to resolve class names via xAPI activity statements rather than direct class lookup.
- Add debug logging to `ClazzDetailViewModel` and `UpdateClazzStudentXapiGroupUseCase` to track group member synchronization.
- Map `Clazz` objects to xAPI groups using `studentsXapiGroup` extension when selecting an assignee.
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/domain/enrollments/UpdateClazzStudentXapiGroupUseCase.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/assignment/edit/AssignmentEditViewModel.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/detail/ClazzDetailViewModel.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/assignment/edit/AssignmentEditScreen.kt (diff)
Commit 65809dc28bb29b959c5ded3a9cb82ebde1313bca by mandvi.verma
Refactor `AssignmentEditViewModel` to use `XapiGroup` for class selection and remove debug logs in `ClazzDetailViewModel`.
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/detail/ClazzDetailViewModel.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/assignment/edit/AssignmentEditScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/assignment/edit/AssignmentEditViewModel.kt (diff)
The file was added.maestro/test/001_001_invite_users_using_qr_code_or_link_test.yaml
The file was removed.maestro/flows/002_browse_lessons_test.yaml
The file was removed.maestro/flows/001_003_login_using_school_link_test.yaml
The file was removed.maestro/flows/001_002_add_user_direct_test.yaml
The file was added.maestro/test/001_003_login_using_school_link_test.yaml
The file was added.maestro/test/001_002_add_user_direct_test.yaml
The file was removed.maestro/flows/001_001_invite_users_using_qr_code_or_link_test.yaml
The file was added.maestro/test/002_browse_lessons_test.yaml