Given I am editing Termbox content
When I click the Publish button
I will to be informed what license will my contributions be under
so that I can participate in the open data movement with confidence
Mock:
Acceptance Criteria
- When a user clicks the save button when being in editing mode, they are confronted with an overlay as seen in the mock (exception: "Remember decision for future edits" - checkbox is not part of this ticket)
- The text above the checkbox should reflect the first part of the text shown in the current License Popup in the V1 Desktop Termbox: By clicking "publish", you agree to the <a href="/w/index.php?title=Wikidata:Copyrights&action=edit&redlink=1" class="new" title="Wikidata:Copyrights (page does not exist)">terms of use</a>, and you irrevocably agree to release your contribution under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>.
- The terms of use and CC0 licence links open in new tabs. They should direct to the same pages the desktop version links to.
- have a layer effect on the editable page (i.e. transparent white overlay --> 50% white)
- When clicking cancel, the user goes back to edit mode. this allows e.g. to review or at least copy all edits already made
- when clicking save the user agrees to the licensing for once --> the pop up will be shown again next time editing as long as the user avoids clicking the checkbox mentioned in T221836
Remarks:
- license pop up cannot be "clicked away" without making a decision
- this story only concerns the mobile termbox. For the desktop behaviour refer to T221779.
Notes from Task Breakdown
There is a similar message key wikibase-shortcopyrightwarning which could be reused or we could create a new one
There is a global in php which links to the license link $wgRightsUrl
We are happy to only inject the message etc into the client. It doesn't also need to make it to the SSR.
There exists window.mw.config.get('wbCopyright') which includes the totally assembled message using the message form wikibase not the new text/copy from the mock-up
We could use this with the config mixin: https://gerrit.wikimedia.org/r/plugins/gitiles/wikibase/termbox/+/master/src/client-entry.ts#22
We could also "improve" the MessageRepo to build something similar and add it as an additional message