Be guided to create an identity before commenting
A reader with no identity wants to be told plainly why they cannot comment yet and be taken straight to creating one.

As a reader, I want to be told why I cannot comment yet and be taken straight to creating an identity, so that I can join the conversation without hunting through settings.

Situation

I have been reading without an identity on this phone, which is fine for reading. Now I want to say something: either a new comment on a document or a reply in a thread.

What I do

    Tap "Add a comment" under a document, or open a thread and look at the bottom.

    Read the explanation.

    Tap "Create an identity" in the sheet, or "Create" in the thread.

    Finish creating my identity.

    Write my comment.

What I should see

    I can read documents, discussions and threads in full without an identity.

    "Add a comment" is shown even when I have no identity.

    The "New comment" sheet shows a person symbol, "Create an identity to reply.", the sentence "Comments are signed with an identity kept on this device." and one filled button, "Create an identity". See the Compose sheet.

    In that state the sheet has "Cancel" but no "Post" button and no writing area.

    At the bottom of a thread, in place of the reply field, a line reads "Create an identity to reply." with a "Create" button.

    No "Reply" buttons appear under the replies while I have no identity.

    Either button opens the Create identity sheet right where I am, with a new recovery phrase already shown.

    When I finish, that sheet closes and I am back at the comment I wanted to write.

    The compose sheet now shows "Commenting as Name", the writing area and "Post"; the thread now shows the reply field and the "Reply" buttons.

    The same prompts appear when the identity selected in Me has no key on this phone.

When something goes wrong

    If I back out of creating an identity, nothing is lost: I return to the prompt and can tap the button again.

    If creating the identity fails, the Create identity sheet shows the reason and stays open; see Create an identity.

Not included

    The prompts only offer to create an identity. To bring in one I already have, I go to the Me tab and import it or connect my vault, then come back (Moving between tabs).

    The sheet for a new comment says "to reply", because the sentence is shared with the thread (Compose sheet).

    The original design called for a disabled field with a link; the app replaces the field with the prompt (Thread).

Trace

Story US-DISC-05, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Compose comment sheet

The no-identity variant of the compose sheet

Thread

The no-identity composer and hidden Reply buttons

Create identity sheet

The Create identity sheet both prompts open

DiscussComposer

The "Create an identity to reply." line and "Create" button

DiscussSection

The always-present "Add a comment" pill

Recovery phrase grid

The phrase already generated when the sheet opens

button

The filled and bordered Create buttons

image and symbols

The person symbol

Moving between tabs and into the app

Why the create sheet opens in place, and the table of missing-identity prompts

Stacks, pushes and sheets

A sheet over a sheet, closing back to where the person was

Loading, failure and empty states

A missing-identity state names the next step

States for every screen

The no-identity rows for thread and compose

Composers

The composer when there is no identity

Buttons and actions

One filled button for the single next step

Honest state: loading, failure and empty

The gap is explained, not hidden

Reading first

Reading never requires an identity

Representative strings

The shared prompt wording

Implementation

Page

Part it plays

Discuss: screens and components

The signedIn branches of DiscussComposer, DiscussThreadScreen and DiscussComposeScreen

Discuss: root contract wiring

discussSignedIn and discussOpenCreate

Discuss: posting a comment

The same refusals repeated in postComment as a safety net

Me: screens and components

MeCreateScreen

Me: sources and import logic

meNewWords and creating the identity

Identity: key storage

What "an identity on this device" means: a key in the Keychain

Navigation and routes

go("/me/create") pushes the sheet on the current tab; meAfterAdd closes it

Root declarations: Read and Discuss

discussSignedIn derives from currentAccount and meIds

Root declarations: Me, Profile, Crypto and Vault

meIds, meWords, meCreated and meAfterAdd

Contract UI tests

The no-identity discuss tests

Code

File

What

discuss.contract L168-172

the no-identity branch of DiscussComposer

discuss.contract L265-275

the no-identity branch of DiscussComposeScreen (no Post, the prompt)

discuss.contract L234-236

"Reply" buttons shown only when signed in

app.contract L114-115

discussSignedIn and discussAccountName

app.contract L360-364

discussOpenCreate

app.contract L566-577

meAfterAdd: select the new identity and close the create sheet

me.contract L235-284

MeCreateScreen

src/discuss/load.ts L170-178

postComment refusals without an account or a key

Tests

File

What it checks

discuss.test.contract

discuss: composing without an identity prompts to create one

discuss.test.contract

discuss: a thread shows its root and replies

Delivery

Delivered by #1470.

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

Unsubscribe anytime