Send platform operators to the platform console after sign-in #9
Reference in New Issue
Block a user
Delete Branch "fix/operator-landing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sign-in sent the platform operator to the wrong page. The operator account is the owner of a placeholder business ("Digital Chances (Platform)"), and every owner landed on their business dashboard. For the operator that meant an empty dashboard with a "Create your first branch" prompt, which looked like a plain owner account.
What changes
/api/auth/login→redirectTo) and the home address (/) send a platform operator to/platform. Owners and managers still go to the dashboard, and cashiers to the till.Testing
npm test: 92 tests pass. A new test intests/account.test.tschecks where sign-in lands for an owner (dashboard), a cashier (till) and the platform operator (platform console).No migration. Deploy with the usual
/opt/aquaflow/deploy.sh.🤖 Generated with Claude Code