Edit profile is where a person sets how an identity appears to everyone else: its display name and a short summary. Saving publishes the profile to the current server. It is separate from the local key name, which is changed on Identity detail.
At a glance
Tab | Me |
Route |
|
Screen component |
|
Presentation | sheet ( |
Title | "Edit profile" |
How you get here | "Edit profile" on Identity detail |
Where it leads | Closing it returns to Me, not to Identity detail. From its failure state: Import identity sheet and Server |
Anatomy
Navigation bar. Leading "Cancel", which reads "Done" once a save has succeeded. Title "Edit profile". There is no trailing action: Save is in the form.
The form, drawn by ProfileForm, a list listStyle="inset-grouped":
Section "Public profile". "Display name" in -exact-subheadline over a text field with the placeholder "Your name". Then "Summary" over a text area at least 100 points tall with the placeholder "A little about you". Footer: "Published on hyper.media. Visible to everyone.", with the host of the current server.
A second section with the messages and the "Save" row.
States
State | What is shown |
|---|---|
Loading | "Loading profile…" in secondary colour with 20 points of padding, in place of the form |
Key missing | "This identity is no longer on this device.", then "Import identity" and "Change server" |
Load failed | The error sentence, then "Retry" and "Change server" |
Fresh profile | Empty fields with placeholders. "Save" is disabled until there is a name |
Unchanged | The published name and summary are filled in. "Save" is disabled |
Name emptied | "Enter a display name." in |
Saving | Fields are disabled, the row reads "Saving…", "Cancel" is disabled |
Save failed | The error in red above "Save". The typed text stays |
Saved | "Profile updated" in secondary colour above the disabled "Save", and the bar button reads "Done" |
Actions
Gesture | Result |
|---|---|
Edit the name or the summary | Enables "Save" when something differs from what is published |
Tap "Save" | Publishes the profile. On success there is a |
Tap "Cancel" or "Done", or swipe the sheet down | Closes the sheet and returns to the Me root |
Tap "Retry" | Loads the profile again |
Tap "Import identity" | Opens the Import identity sheet |
Tap "Change server" | Pushes Server. The link is given a 44 point minimum height so it is a full tap target |
Components used
Component | Kind | What it does here |
|---|---|---|
named component | The whole form: fields, footer, messages, Save | |
primitive | The sheet's bar; inside the form, the section header and footer | |
primitive | "Cancel" or "Done", "Retry", "Import identity"; inside the form, "Save" | |
primitive | Title, "Loading profile…", the load error; inside the form, labels and messages | |
primitive | "Change server" | |
primitive | The screen root and the failure state's column | |
primitive | Inside the form: the grouped list and its two sections | |
primitive | Inside the form: the name field and the summary text area |
The loading and failure states are written inline as plain text and buttons. They do not use StatusLine or EmptyState.
Why it is designed this way
Public and local are different things. The section is headed "Public profile" and the footer says "Visible to everyone." and names the server. A person should not publish by surprise. The contract's first line states the split: "Profile editing is separate from the local key name". See Names, not identifiers.
Save is in the form, not the bar. Unlike Create identity and Import identity, the action is a row under the fields, next to the messages about it ("Profile updated", the errors). Inferred: the result of publishing needs room for a sentence, which a bar button does not have. See Buttons and actions.
The sheet stays open after saving. It confirms in words, changes "Cancel" to "Done", and lets the person keep editing. Nothing closes on its own. See Honest state.
Errors wait for the person. "Enter a display name." appears only after the name field has been edited, so a new profile does not open with a red line. The contract marks this as fix B2.
Failure offers the way out. A missing key leads to Import, a server problem leads to Retry or Server. See Loading, failure and empty states.
Difference from DESIGN.md. DESIGN.md has no profile editing screen. Its route map stops at identity, described as "profile, export/backup, delete".
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-ID-02 Import an identity I already have: Third entry point when the key for a profile is missing
US-ID-07 Edit my public profile: The sheet: loading, error, form, saved
Related
Parent: Me tab screens. Neighbours: Identity detail, Author profile, where the published name and summary are read.
Components: Profile components. Patterns: Forms and inputs, Refresh, haptics and progress.
Structure: Stacks, pushes and sheets.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime