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 |
|---|---|
The no-identity variant of the compose sheet | |
The no-identity composer and hidden Reply buttons | |
The Create identity sheet both prompts open | |
The "Create an identity to reply." line and "Create" button | |
The always-present "Add a comment" pill | |
The phrase already generated when the sheet opens | |
The filled and bordered Create buttons | |
The person symbol | |
Why the create sheet opens in place, and the table of missing-identity prompts | |
A sheet over a sheet, closing back to where the person was | |
A missing-identity state names the next step | |
The no-identity rows for thread and compose | |
The composer when there is no identity | |
One filled button for the single next step | |
The gap is explained, not hidden | |
Reading never requires an identity | |
The shared prompt wording |
Implementation
Page | Part it plays |
|---|---|
The signedIn branches of DiscussComposer, DiscussThreadScreen and DiscussComposeScreen | |
discussSignedIn and discussOpenCreate | |
The same refusals repeated in postComment as a safety net | |
MeCreateScreen | |
meNewWords and creating the identity | |
What "an identity on this device" means: a key in the Keychain | |
go("/me/create") pushes the sheet on the current tab; meAfterAdd closes it | |
discussSignedIn derives from currentAccount and meIds | |
meIds, meWords, meCreated and meAfterAdd | |
The no-identity discuss tests |
Code
File | What |
|---|---|
the no-identity branch of DiscussComposer | |
the no-identity branch of DiscussComposeScreen (no Post, the prompt) | |
"Reply" buttons shown only when signed in | |
discussSignedIn and discussAccountName | |
discussOpenCreate | |
meAfterAdd: select the new identity and close the create sheet | |
MeCreateScreen | |
postComment refusals without an account or a key |
Tests
File | What it checks |
|---|---|
discuss: composing without an identity prompts to create one | |
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