Panly API docsstaging

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.dart
lib/screens/staff_setup/staff_setup_controller.dart
lib/screens/staff_setup/staff_link_controller.dart
lib/screens/staff_setup/widgets/setup_password_form.dart
lib/screens/staff_setup/widgets/setup_link_problem.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (2)

CallWhy the screen makes itWhere in the app code
POST /v1/auth/employee/setup/preview
Who is this setup link for?
Read the setup link lib/screens/staff_setup/staff_link_controller.dart:87
lib/screens/staff_setup/staff_setup_controller.dart:16
lib/domain/usecases/auth/auth_usecase.dart:33
lib/data/repositories/auth_repository.dart:74
POST /v1/auth/employee/setup
Choose a password with a setup link
Set the password and sign in lib/screens/staff_setup/staff_link_controller.dart:131
lib/screens/staff_setup/staff_setup_controller.dart:20
lib/domain/usecases/auth/auth_usecase.dart:41
lib/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.