chore: groundwork for sites & authors

This commit is contained in:
Florian Sylvain committed 2026-10-14 00:33:52 +02:00
1 parent 0d03a27f31
commit 45fcbd890d
17 files changed
+866 -57

No files matched your search

+18
View File
@@ -46,3 +46,21 @@ Opened from the account menu at the bottom of the sidebar. Username, email and p
| 11 | Reset: too many requests (429) | Rate limited. The button is disabled for 5 minutes. | |
| 12 | Reset: failed | 500 or network failure. The button can be pressed again. | |
| 13 | Display names in the Users list | The Display name column shows the name when one is set and a dash when not. Your own row follows your saved name. | |
## Changed in pass 3: author profile
Every existing Profile frame has the "Author profile" card between Account and Password, in its default state ("Create my author profile"). The card is defined once, in `AppFrame.dc.html`.
### Profile: author profile (group "Profile: author profile", 5 states)
Route: `/profile`. API: POST /v1/author/me · GET /v1/auth/me (author field).
The "Author profile" card sits between Account and Password in every Profile frame, defined once in AppFrame. The existing Profile frames show its default state ("Create my author profile"). All roles can create their own profile and edit their own linked author. Only the states specific to the card are drawn here.
| # | State | Trigger | Copy |
|---|---|---|---|
| 1 | No author profile | The user has no linked author. | Author profile · Your public byline on articles. It's separate from your account. · You don't have an author profile yet. Create one to be credited on your own articles. · Create my author profile · Uses your display name, Marta Alves. You can change it afterwards. |
| 2 | Error | 500 or network failure. | Couldn't create your author profile · Try again in a moment. |
| 3 | Created | 201: the card shows the author. The author is named from the display name and linked to the user. | Author profile created · Marta Alves is now your byline. · Edit author · Linked to your account. New articles start with this author. |
| 4 | Created, slug adjusted | The slug was taken, so the server added a number. No error is shown. | Your slug is marta-alves-2 · marta-alves was already used by another author. You can change it in Edit author. |
| 5 | Edit own author | Edit author on the card, by a role without author rights. The form opens with the linked user locked and no Unlink. There is no delete action in the form or on this screen. | Edit Marta Alves · Linked user · marta@renew.example · This is your author profile. Only an owner or admin can change the link. · Save changes |