feat(student-portal): student account belongs to the adult in charge

- Inviting a kid with an adult in charge links the account to the adult
  (a legacy account linked to the kid moves to the adult and is renamed).
- `linkedPersonWhere` lets the account reach the kids of a linked adult, so
  the adult sees and manages all their kids, including ones added later.
- /me, link info and access status follow the adult; siblings share state.
- Web: greeting uses the account holder, profile lists each kid's group, and
  the invitation sheet/message address the adult.
- DB tests for the adult account flow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-11 14:04:25 -03:00
parent 9383841513
commit 5b3a035dcf
17 changed files with 336 additions and 66 deletions

View File

@@ -58,6 +58,7 @@
"title": "Invite to the app",
"descriptionReinvite": "Send {{name}} a new link. The previous access stops working.",
"description": "{{name}} will be able to report absences, report payments and see their upcoming classes. No passwords or new details.",
"descriptionGuardian": "{{guardian}} will be able to report absences, report payments and see the classes of {{name}} and their other kids. No passwords or new details.",
"preview": "Message preview",
"linkPlaceholder": "🔗 personal link",
"security": "The link is personal, works only once and expires in 72 hours. The first phone that opens it stays connected.",
@@ -65,7 +66,8 @@
"sendWhatsapp": "Send on WhatsApp",
"copied": "Link copied",
"copy": "Copy link",
"message": "Hi {{name}}! I'm inviting you to gruperly to report absences and payments for {{group}}. {{url}}"
"message": "Hi {{name}}! I'm inviting you to gruperly to report absences and payments for {{group}}. {{url}}",
"messageGuardian": "Hi {{guardian}}! I'm inviting you to gruperly to report absences and payments for {{name}} in {{group}}. {{url}}"
},
"payments": {
"title": "Payments",