Page MenuHomePhabricator

Edit story text manually
Closed, ResolvedPublic

Assigned To
Authored By
AMuigai
Nov 4 2021, 2:54 PM
Referenced Files
F34963281: Empty text box.png
Feb 23 2022, 5:34 PM
F34963284: editing complete.png
Feb 23 2022, 5:34 PM
F34963286: Removed text in editing mode.png
Feb 23 2022, 5:34 PM
F34963287: Story page with text.png
Feb 23 2022, 5:34 PM
F34963289: modified text after edit.png
Feb 23 2022, 5:34 PM
F34963285: Editing mode.png
Feb 23 2022, 5:34 PM
F34854777: 01 Info. banner.png
Dec 7 2021, 12:43 PM
F34854662: Add text 14.png
Dec 7 2021, 12:36 PM

Description

User story

As a story creator, I want to edit the text I have selected from a Wikipedia article so it fits my story better.

Design details

Empty text box.png (780×360 px, 295 KB)
  • Show an empty text box after user selects images for story.

Story page with text.png (780×360 px, 267 KB)
Editing mode.png (780×360 px, 127 KB)
editing complete.png (780×360 px, 120 KB)
Removed text in editing mode.png (780×360 px, 142 KB)
  • After text selection, enter in text editing mode by tapping on the text box.
  • Placeholder text becomes available when a user removes the entire text from the text box.

modified text after edit.png (780×360 px, 256 KB)
  • Confirm edits when tap outside the text box or tap on done button on top.

Design file

Note
We are going to decide the what action to assign device back key during the development phase.

Event Timeline

SBisson added subscribers: SGautam_WMF, SBisson.

Dropping this in the design column for @SGautam_WMF to add design details.

AMuigai renamed this task from Introduce edit button on Wikistories prototype to Support text editing on Wikistories prototype.Nov 30 2021, 11:28 AM
AMuigai updated the task description. (Show Details)
AMuigai renamed this task from Support text editing on Wikistories prototype to Support text editing on Wikistories prototype after text selection.Nov 30 2021, 9:23 PM
AMuigai updated the task description. (Show Details)
SGautam_WMF updated the task description. (Show Details)
SGautam_WMF updated the task description. (Show Details)
SBisson renamed this task from Support text editing on Wikistories prototype after text selection to Edit story text manually.Feb 2 2022, 8:23 PM
SBisson edited projects, added Wikistories (MVP); removed Wikistories.
SBisson updated the task description. (Show Details)
SBisson triaged this task as Medium priority.Feb 4 2022, 7:35 PM
SBisson raised the priority of this task from Medium to High.Feb 10 2022, 7:15 PM

Some idea for an implementation plan

  1. Make sure the text from search results in plain text (it's own patch)
  2. Replace <p> with <textarea>
  3. Save new text to the store when/after edit
  4. Dark overlay with "Done" button when textarea is focused, clicking them will blur the textarea
  5. Text and position of the "edit" button, and only visible when the textarea is empty
  6. Make sure the store keeps track of original text from article or Commons and actual text (after edit)

Change 770574 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/Wikistories@master] Make sure the text from image search is in plain text. This is a pre-first step for T295048

https://gerrit.wikimedia.org/r/770574

Change 770574 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Make sure the text from image search is in plain text. This is a pre-first step for T295048

https://gerrit.wikimedia.org/r/770574

Change 770612 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/Wikistories@master] Edit story text

https://gerrit.wikimedia.org/r/770612

Change 770612 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Edit story text

https://gerrit.wikimedia.org/r/770612

Testing:

  • After text selection, user can tap in the text area and edit text.
  • Placeholder text is available when the user deletes all text and taps outside the text box.
  • When user taps outside the text area, user can navigate to another story page and upon returning, the text entered in the previous story page in still present the text area.

All passed.