feat(app): one Profile for every app, the person's own tab first, then each app's (ADR 0014)
The public profile was already one per person for every service of an instance (the register, ADR 0016); its app side was Learn's alone. It moves into halkyon_app: the model, the repository on the module's endpoints, the form, the avatar drawn on the device and the sheet with someone's profile. They take the Public prefix (PublicProfileRepository, BasePublicProfileGateway), as Train's own ProfileRepository holds the body's figures. AppDependencies gains profiles and files, the picker the avatar is chosen with, which moves out of Learn too. HalkyonProfile is every app's Profile screen: the person's own tab first, the same in every app (the account and the ways they sign in, the app's own cards, then the public profile), then the app's own tabs, folding into the title. Learn adds its inbox and Statistics. Train adds Progress, Days and, where nothing records, Plans, and so opens on the person's tab, no longer on Progress. Todo, which has no Profile tab, opens it from a row at the top of Browse, where Todoist keeps the account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
a0bb75f1ad
commit
b7b0b937fe
1 changed files with 1668 additions and 1293 deletions
|
|
@ -116,6 +116,17 @@ Written as the apps are: Dart 3.13's primary constructors, Material from
|
|||
it `hasSnackBars`). An instance out of reach signs out on the device all
|
||||
the same (Serverpod's `signOutDevice`), so only the device's own storage
|
||||
fails a sign-out.
|
||||
- **The Profile** (`lib/src/profile/`, decided 2026-11-02): every app's
|
||||
Profile screen (`HalkyonProfile`), the person's own tab first (the account
|
||||
and the ways they sign in, the app's own cards, their public profile), then
|
||||
the app's own tabs, the row folding into the title; and the public profile
|
||||
itself, one per person for every app (halkyon_base's register, ADR 0016):
|
||||
`PublicProfileRepository` on `BasePublicProfileGateway`, the form
|
||||
(`PublicProfileSection`, saving as it is written), the avatar drawn anew as
|
||||
a PNG on the device (`avatarPng`), and someone's profile in a sheet
|
||||
(`showProfileOf`). `AppDependencies.profiles` holds it, and
|
||||
`AppDependencies.files` the picker (`FilePicker`, `FileSelectorFilePicker`)
|
||||
its picture is chosen with.
|
||||
- **The session** (`lib/src/auth/`): `AuthRepository` on an `AuthGateway`;
|
||||
`ServerpodAuthGateway` follows the session the app's Serverpod client
|
||||
keeps, signs out, deletes the account through the instance's
|
||||
|
|
|
|||
Loading…
Reference in a new issue