Skip to content

invite for existing user#227

Open
Nikunjsharma0 wants to merge 70 commits into
mainfrom
invite-existing-user
Open

invite for existing user#227
Nikunjsharma0 wants to merge 70 commits into
mainfrom
invite-existing-user

Conversation

@Nikunjsharma0

Copy link
Copy Markdown
Collaborator

No description provided.

@divyahariharan2103 divyahariharan2103 linked an issue Apr 22, 2026 that may be closed by this pull request
Nikunjsharma0 and others added 19 commits April 23, 2026 12:41
…ks and introduce new subflows for common person-related actions.

### New Flows
- `001_001b_invite_existing_users_using_invite_code_or_link_test.yaml`: Tests the end-to-end flow of inviting existing teachers, students, and family members using URLs and codes.

### New Subflows
- `add_person_to_app.yaml`: Handles creating a new person profile within the app.
- `create_account_for_person.yaml`: Handles setting up login credentials for an existing person profile.
- `school_user_login_flow.yaml`: Standardizes the login process for school users.

### Refactoring and Improvements
- Rename `001_001_invite_users_using_qr_code_or_link_test.yaml` to `001_001a_invite_new_users_using_qr_code_or_link_test.yaml` for consistency.
- Rename `subflows/admin_add_class.yaml` to `subflows/user_add_class.yaml`.
- Update class naming in existing tests from "New Class" to "TestClass".
- Standardize script naming in `school_init.js` by removing the `.yaml` extension from the `NAME` environment variable.
…ks and introduce new subflows for common person-related actions.

### New Flows
- `001_001b_invite_existing_users_using_invite_code_or_link_test.yaml`: Tests the end-to-end flow of inviting existing teachers, students, and family members using URLs and codes.

### New Subflows
- `add_person_to_app.yaml`: Handles creating a new person profile within the app.
- `create_account_for_person.yaml`: Handles setting up login credentials for an existing person profile.
- `school_user_login_flow.yaml`: Standardizes the login process for school users.

### Refactoring and Improvements
- Rename `001_001_invite_users_using_qr_code_or_link_test.yaml` to `001_001a_invite_new_users_using_qr_code_or_link_test.yaml` for consistency.
- Rename `subflows/admin_add_class.yaml` to `subflows/user_add_class.yaml`.
- Update class naming in existing tests from "New Class" to "TestClass".
- Standardize script naming in `school_init.js` by removing the `.yaml` extension from the `NAME` environment variable.
…e-existing-user

# Conflicts:
#	.maestro/flows/001_001a_invite_new_users_using_qr_code_or_link_test.yaml
#	.maestro/flows/subflows/school_user_login_flow.yaml
…r more comprehensive user interaction paths.
…_or_link_test.yaml` to clear app state before each login subflow to ensure test isolation.
Nikunjsharma0 and others added 21 commits May 13, 2026 23:53
…_or_link_test.yaml` to improve the reliability of toggling the "Approval required" switch and add assertions for the "Waiting for approval" state.
…_or_link_test.yaml` to use the "Paste URL" flow for student invites instead of the manual invite code entry.
…_or_link_test.yaml` to use the "Paste URL" flow for student invites instead of the manual invite code entry.
…_or_link_test.yaml` to copy the invite URL instead of the invite code.
…_or_link_test.yaml` to simplify assertions and remove redundant navigation steps when verifying accepted invites.
…_or_link_test.yaml` to simplify assertions and remove redundant navigation steps when verifying accepted invites.
…_or_link_test.yaml` to handle "Save password" prompts during login instead of after accepting invites, and correct a role assertion from "Student" to "Parent".
…_or_link_test.yaml` to handle "Save password" prompts during login instead of after accepting invites, and correct a role assertion from "Student" to "Parent".
…_or_link_test.yaml` to handle "Save password" prompts and re-enable several assertions for invitation acceptance and account status.
import world.respect.datalayer.http.school.SchoolUrlBasedDataSource
import world.respect.datalayer.schooldirectory.SchoolDirectoryEntryDataSource

class GetClassUseCaseClient (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not make more http requests than needed: please move the name info required by the UI for the person waiting for an invite into metadata instead.

# Conflicts:
#	respect-app-compose/src/androidMain/kotlin/world/respect/AppKoinModule.kt
# Conflicts:
#	.maestro/flows/flows-disabled/003_admin_user_assigns_assignment_to_a_class_test.yaml
#	respect-datalayer/src/commonMain/kotlin/world/respect/datalayer/school/EnrollmentDataSource.kt
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/manageuser/acceptinvite/AcceptInviteViewModel.kt
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/manageuser/accountlist/AccountListViewModel.kt
#	respect-lib-shared/src/commonMain/kotlin/world/respect/shared/viewmodel/person/inviteperson/InvitePersonViewModel.kt
#	respect-lib-shared/src/jvmMain/kotlin/world/respect/shared/domain/account/invite/RedeemInviteUseCaseDb.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class and family member invites work for existing users

3 participants