Screens / Staff setup link
Staff setup link
Opened from the one-hour setup link an owner shares after Add employee. Reads the link (business, name, employee ID), then the employee sets a password and is signed in. An expired or used link shows a problem card with the way back.
- App routes
/staff-setup- Access
- guest (token in the link)
- Screen code
lib/screens/staff_setup/staff_setup_page.dartlib/screens/staff_setup/staff_setup_controller.dartlib/screens/staff_setup/staff_link_controller.dartlib/screens/staff_setup/widgets/setup_password_form.dartlib/screens/staff_setup/widgets/setup_link_problem.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (2)
| Call | Why the screen makes it | Where in the app code |
|---|---|---|
POST /v1/auth/employee/setup/previewWho is this setup link for? |
Read the setup link | lib/screens/staff_setup/staff_link_controller.dart:87lib/screens/staff_setup/staff_setup_controller.dart:16lib/domain/usecases/auth/auth_usecase.dart:33lib/data/repositories/auth_repository.dart:74 |
POST /v1/auth/employee/setupChoose a password with a setup link |
Set the password and sign in | lib/screens/staff_setup/staff_link_controller.dart:131lib/screens/staff_setup/staff_setup_controller.dart:20lib/domain/usecases/auth/auth_usecase.dart:41lib/data/repositories/auth_repository.dart:83 |
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.