Skip to content
Success

Changes

Summary

  1. moving pending invites to clazz detail screen (commit: 1ab6ff6) (details)
  2. Refactor: Rename Student route to AddPersonToClazz (commit: 24b546c) (details)
  3. Populate Class Detail screen with fake roster data (commit: 90b3a2b) (details)
  4. Integrate pending invite list into class detail screen (commit: 7ea89d7) (details)
  5. Remove AcceptInvite feature (commit: 898149d) (details)
  6. Remove AcceptInvite feature (commit: 6d2b783) (details)
  7. Add fields for class description, start date, and end date to AddClazzScreen (commit: 0b8949e) (details)
  8. Enable adding new classes and saving them (commit: 5ccdbf9) (details)
  9. Refactor: Remove RespectAppLauncher from AppNavHost (commit: 48fb2c0) (details)
  10. Add localized sort options (commit: 0377053) (details)
  11. Rename Sort and Filter Chip components to Header (commit: 80a497f) (details)
  12. unused (commit: dc70349) (details)
  13. unused (commit: b2b73a3) (details)
  14. unused (commit: 6358ce9) (details)
  15. unused (commit: ab981b5) (details)
Commit 1ab6ff6d3848749798c303f7991288b283af875a by mandvi.verma
moving pending invites to clazz detail screen
(commit: 1ab6ff6)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
Commit 24b546c5c3c17c06859829cd6f2dd993690e3913 by mandvi.verma
Refactor: Rename Student route to AddPersonToClazz

The `Student` route in `AppRoutes.kt` has been renamed to `AddPersonToClazz`.

This change is reflected in:
- `ClazzDetailViewModel.kt`: The navigation command for adding a person to a class now uses `AddPersonToClazz`.
- `AppNavHost.kt`: The composable for the add person screen is now associated with the `AddPersonToClazz` route.
- `AddPersonToClazzScreen.kt`: The "share with link or QR code" and "share QR code" options have been removed from this screen.
- `ClazzDetailScreen.kt`: The "Invite Student" list item now navigates to `AddPersonToClazz`. The "Pending Invite", "Teachers", and "Students" list items now have a trailing arrow icon. The `onClickInviteStudent` parameter has been renamed to `onClickAddPersonToClazz`.
(commit: 24b546c)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/addperson/AddPersonToClazzScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/navigation/AppRoutes.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/app/AppNavHost.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
Commit 90b3a2b22155daf7b8fadd3c3a2e603905ec7efb by mandvi.verma
Populate Class Detail screen with fake roster data

The `ClazzDetailScreen` now displays teachers and students fetched from `FakeRosterDataSource`. The `FakeRosterDataSource` has been updated to provide a list of fake users with teacher and student roles.
(commit: 90b3a2b)
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/clazz/detail/ClazzDetailScreen.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/oneroster/rostering/FakeRosterDataSource.kt (diff)
Commit 7ea89d760ab63f7aded518d8fdd15293a95a5683 by mandvi.verma
Integrate pending invite list into class detail screen

This commit introduces a "Pending Invites" section to the class detail screen.

Key changes:
- Added `enabledUser` field to `OneRosterUser` in `FakeRosterDataSource.kt` to differentiate between active and pending users.
- Updated `ClazzDetailViewModel.kt` to fetch and store pending users in `listOfPending` within `ClazzDetailUiState`.
- Modified `ClazzDetailScreen.kt` to display the list of pending invites, showing the user's name, role, and an avatar.
(commit: 7ea89d7)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/oneroster/rostering/FakeRosterDataSource.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/detail/ClazzDetailViewModel.kt (diff)
Commit 898149da5c740d21399e05f10c8619fb6ea1cd6e by mandvi.verma
Remove AcceptInvite feature

The `AcceptInviteScreen` and its associated `AcceptInviteViewModel` have been removed. Correspondingly, the `AcceptInvite` route and its usage within `ClazzDetailScreen`, `ClazzDetailViewModel`, `AppNavHost`, and `AppKoinModule` have been eliminated.
(commit: 898149d)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was removedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/acceptinvite/AcceptInviteScreen.kt
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/app/AppNavHost.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/navigation/AppRoutes.kt (diff)
The file was removedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/acceptinvite/AcceptInviteViewModel.kt
The file was modifiedrespect-app-compose/src/androidMain/kotlin/world/respect/AppKoinModule.kt (diff)
Commit 6d2b783e9b841b5201f7637087a90fc6ff7fbc8e by mandvi.verma
Remove AcceptInvite feature

The `AcceptInviteScreen` and its associated `AcceptInviteViewModel` have been removed. Correspondingly, the `AcceptInvite` route and its usage within `ClazzDetailScreen`, `ClazzDetailViewModel`, `AppNavHost`, and `AppKoinModule` have been eliminated.
(commit: 6d2b783)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/list/ClazzListViewModel.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/clazz/detail/ClazzDetailScreen.kt (diff)
Commit 0b8949e9469f3ba0be549b6a9a555f0ea4f7169c by mandvi.verma
Add fields for class description, start date, and end date to AddClazzScreen

The `AddClazzScreen` now includes `OutlinedTextField` components for capturing the class description, start date, and end date.

Corresponding updates have been made to:
- `AddClazzUiState` to include fields for `description`, `startDate`, and `endDate`.
- `AddClazzViewModel` to handle changes to these new fields with dedicated `onClassDescriptionChange`, `onStartDateChange`, and `onEndDateChange` functions.
- `strings.xml` to add string resources for the new labels.

The layout has been changed from `Column` to `LazyColumn` and a `Row` has been added to arrange the start and end date fields side-by-side.
(commit: 0b8949e)
The file was modifiedrespect-lib-shared/src/commonMain/composeResources/values/strings.xml (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/addclazz/AddClazzScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/addclazz/AddClazzViewModel.kt (diff)
Commit 5ccdbf9301eedf2d19c606d251abbffb056bba1e by mandvi.verma
Enable adding new classes and saving them

The `AddClazzViewModel` now allows users to input class details (name, description, start and end dates) and save the new class.

The `FakeRosterDataSource` has been updated to support adding new classes to its internal list.
(commit: 5ccdbf9)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/addclazz/AddClazzViewModel.kt (diff)
The file was modifiedrespect-datalayer/src/commonMain/kotlin/world/respect/datalayer/oneroster/rostering/FakeRosterDataSource.kt (diff)
Commit 48fb2c0b1966222abdebb691854472d8aaf5fb07 by mandvi.verma
Refactor: Remove RespectAppLauncher from AppNavHost

The `RespectAppLauncher` screen has been removed from the `AppNavHost`.
Additionally, minor code formatting adjustments have been made in `AddClazzScreen.kt`.
(commit: 48fb2c0)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/addclazz/AddClazzScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/addclazz/AddClazzViewModel.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/app/AppNavHost.kt (diff)
Commit 0377053cfdcb75a1539cc752b80024bb58f97b34 by mandvi.verma
Add localized sort options

This commit introduces localized sort options for "First name" and "Last name" in the class list and class detail screens.

- Added new string resources for "First name" and "Last name".
- Created a `SortOrderOption` data class to represent sort options.
- Updated `ClazzDetailViewModel` and `ClazzListViewModel` to use `SortOrderOption` and initialize sort options with localized strings.
- Modified `ClazzDetailScreen` and `ClazzListScreen` to use the new `SortOrderOption` for displaying sort options.
- The default sort option is set to "First name".
(commit: 0377053)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/list/ClazzListViewModel.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/clazz/detail/ClazzDetailViewModel.kt (diff)
The file was modifiedrespect-lib-shared/src/commonMain/composeResources/values/strings.xml (diff)
The file was addedrespect-lib-shared/src/commonMain/kotlin/world/respect/shared/util/SortOrderOption.kt
Commit 80a497fa9d97cc1c3f25ae35802446f2a7a555b2 by mandvi.verma
Rename Sort and Filter Chip components to Header

The composable functions `RespectFilterChip` and `RespectSortOption` have been renamed to `RespectFilterChipsHeader` and `RespectSortHeader` respectively.

Their usages in `LearningUnitListScreen`, `ClazzDetailScreen`, and `ClazzListScreen` have been updated to reflect these changes.
(commit: 80a497f)
The file was addedrespect-app-compose/src/commonMain/kotlin/world/respect/app/components/RespectFilterChipsHeader.kt
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/learningunit/list/LearningUnitListScreen.kt (diff)
The file was removedrespect-app-compose/src/commonMain/kotlin/world/respect/app/components/RespectSortOption.kt
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was removedrespect-app-compose/src/commonMain/kotlin/world/respect/app/components/RespectFilterChip.kt
The file was addedrespect-app-compose/src/commonMain/kotlin/world/respect/app/components/RespectSortHeader.kt
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/app/AppNavHost.kt (diff)
The file was modifiedrespect-app-compose/src/androidMain/kotlin/world/respect/AppKoinModule.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/list/ClazzListScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/app/AppNavHost.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/addclazz/AddClazzScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)
The file was modifiedrespect-app-compose/src/commonMain/kotlin/world/respect/app/view/clazz/detail/ClazzDetailScreen.kt (diff)