====Background
Cases of captions being repeated across multiple frames can be seen in the examples below:
- https://id.wikipedia.org/wiki/Story:Serat_Damar_Wulan_(bagian_1)
- https://id.wikipedia.org/wiki/Story:Serat_Damar_Wulan_(bagian_2)
- https://id.wikipedia.org/wiki/Story:Tentang_Museum_MACAN
- https://id.wikipedia.org/wiki/Story:Tempayan
- https://id.wikipedia.org/wiki/Story:Taman_Monumen_Proklamator_Bung_Hatta
- https://id.wikipedia.org/wiki/Story:Taman_Budaya,_Koleksi_dan_Pertunjukan_Karya
====Description/User story
As a Wikistory editor,
I want to be shown if the text on my stories are duplicated,
so that I can prevent potential editorial burden for stories.
====Design
|Duplicate text icon|Message on first story page|Message on second story page|
|{F36989719 width=260}|{F3698972090754 width=260}|{F3698972190756 width=260}|
01. Identify Duplicate Text: Detect duplicate text across story pages in real-time.
02. Thumbnail Warning Icon: Display a warning icon on the story page thumbnail when duplicate text is present. Place the icon in the bottom right corner to make it noticeable without obstructing the content.
03. Textbox Warning Message: When the user taps on the thumbnail and navigates to the story page, display a concise warning message "Duplicate text detected, reviewreplace? below the textbox, indicating that the text is duplicate to other story pages.
04. Warning Message Link: Make the "review" in the warning message a clickable link that opens article textTap on "Replace": If the user taps on the word "Replace" (the hyperlink in the warning message), they will be taken to the article text selection screen. Here, they can select a different part of the article to replace the duplicate text in the story page. Once they select the new text, it will replace the duplicate text in the story page, helping users find suitable replacements for the duplicate text more efficientlyand the warning message and icon will be removed.
05. Address or Ignore: Allow the user to either address the duplicate text issue by modifying the text or ignore the warning and continue editing other parts of the storyTap on Textbox: If the user taps on the textbox itself (outside of the "Replace" hyperlink), the textbox will open in editing mode. This allows the user to manually edit the text within the textbox, giving them the flexibility to make minor changes without having to replace the entire text. Once they finish editing and the text is no longer a duplicate, the warning message and icon will be removed.
06. Warning Persistence: Keep the warning icon on the thumbnail and the warning message below the textbox until the user addresses the issue or saves the story with the duplicate textAddress or Ignore: Allow the user to either address the duplicate text issue by modifying the text or ignore the warning and continue editing other parts of the story.
07. Prioritize Warnings: If there are multiple warnings (e.g., when the story is opened again for editing), prioritize the "Outdated story text" message over the "Duplicate text" message. If the "Outdated story text" condition is not met, continue showing the "Duplicate text" messageWarning Persistence: Keep the warning icon on the thumbnail and the warning message below the textbox until the user addresses the issue or saves the story with the duplicate text.
08. Prioritize Warnings: If there are multiple warnings (e.g., when the story is opened again for editing), prioritize the "Outdated story text" message over the "Duplicate text" message. If the "Outdated story text" condition is not met, continue showing the "Duplicate text" message.
09. Acknowledge Resolution:
a. If duplicate text exists on only 2 pages:
- When the user modifies the duplicate text on one page, automatically update the other page as well, removing the
duplicate text warning.
- Remove the warning icon and message from both thumbnails and text boxes.
b. If duplicate text exists on more than 2 pages:
- Remove the warning icon from the corrected story page thumbnail.
- Keep the warning icon and message on other pages until user resolves the duplicate text issue on each of the remaining
pages.
[[ https://www.figma.com/file/avIipi6lhEr1SqriMkVaKr/Treating-repeated-text-on-wikistories?type=design&node-id=102%3A11954&t=zRxfNlsOIAKhJErC-1 | Design file ]]
{F36989735}
====Acceptance Criteria
- Visible notice during publishing step indicating repeated captions in some/all frames for the editor to consider.
====Test Scenarios
- repeated text that are not part of the article
- repeated text that are copied from the article
- repeated text on subsequent frames
- repeated text on alternate frames
- repeated text but with additional symbols (.,/?)
====Open questions
- Detecting and handling repeated texts across frames in the story builder:
> repeated captions that are not part of the article
> repeated captions that are copied from the article
- Editorial interventions after publishing:
> adding abuse filters for stories with repeated captions