Background
We want to have a way for users of IP Info to be able to submit feedback about the tool from the IP Info accordion on Special:Contributions. This makes it easy for the end user to provide feedback and gives us structured feedback to work with.
We want to:
- Add a link to start editing a new section, with the feedback form in the most appropriate language preloaded in the editor
- Do this via the WikimediaMessages extension. We may need to run a hook from IPInfo's InfoboxHandler::onSpecialContributionsBeforeMainOutput for this, or look into JavaScript hooks.
Related spike: T296272: Investigate adding a feedback link to IP Info which links to a templated input box [8H]
Acceptance criteria
- IP Info accordion will contain a link "Submit feedback"
- Clicking the link will take the user to this talk page on Metawiki. It automatically creates a new section for the user and pre-populates the text field with some prompts.
- You can find an example for this here. When you enter your username in the text field and hit "New section" it takes you to a page, creates a section and populates the field with some prompts. There are more examples in the links under Notes below.
- The prompts will be included via [TODO: link to translateable template containing prompts].
- This should work globally. This includes:
- The feedback links appear on every wiki where the feature is enabled.
- The feedback links back to meta wiki with the same template. Where the translation exists, the user has the question form preloaded; where it doesn't, it goes to the fallback language (and up the fallback chain).
- This was previously discussed in the comments on T296272.
- The user can submit feedback in any language.
- Once the user submits feedback, it creates a new section on the meta page.
Mock
Figma
Notes
Before this can be done, we need:
- T299544: Use Special:MyLanguage redirect for preload param in EditPage and ApiVisualEditorEdit (technical work)
- A feedback form with translations (product/community work)
- The link can be hardcoded since we'll be linking everyone to the same place and it's temporary
- We're using WikimediaMessages because this is wmf specific

