====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 caption on my stories are duplicated,
so that I can prevent potential editorial burden for stories.
====Design
- On the story builder,|Duplicate text icon|Message on first story page|Message on second story page|
|{F36989719 width=260}|{F36989720 width=260}|{F36989721 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, review? 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 text, helping users find suitable replacements for the duplicate text more efficiently.
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 story.
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 text.
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" message.
08. 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. showing a message to the editor that they have repeated captions on some framIf 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 ]]
====Acceptance Criteria
- Visible notice during publishing step indicating repeated captions in some/all frames for the editor to consider.
====Test Scenarios
====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