Edit profile
The sheet for an identity's public profile: display name and summary, published to the current server.

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

profile-edit, path /me/id/:uid/edit

Screen component

ProfileScreen in profile.contract, which draws ProfileForm

Presentation

sheet (navigationPresentation="modal")

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

The form for an identity with no profile yet. The screenshot is older than the code: "Enter a display name." now appears only after the person has edited the name field.
After saving and closing, Me shows the new public name in place of the short id.

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 -exact-system-red above "Save", which is disabled

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 success haptic, the form reloads with the published values, and names update on Me, on author pages and in documents

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

ProfileForm

named component

The whole form: fields, footer, messages, Save

header, footer and nav

primitive

The sheet's bar; inside the form, the section header and footer

button

primitive

"Cancel" or "Done", "Retry", "Import identity"; inside the form, "Save"

text

primitive

Title, "Loading profile…", the load error; inside the form, labels and messages

link

primitive

"Change server"

row, column and view

primitive

The screen root and the failure state's column

list and section

primitive

Inside the form: the grouped list and its two sections

input, textarea, select and label

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).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments