Page MenuHomePhabricator

Enable editing Talk page as wikitext
Closed, ResolvedPublic

Description

Background
Currently there isn't an easy way to edit your comment or the comment of others on talk pages in Android. The behavior on desktop allows a user to switch to wikitext if they are using VE in order to edit a talk page. This is especially important for user talk pages since we don't have an easy archiving mechanism.

The Task

  • Add a button to our current Talk page screen that allows users to edit the Talk page as plain wikitext. The editing experience for the talk page should mirror the behavior of editing regular articles in Android.
  • Include the disclaimer: This is a talk page. Please respect the talk page guidelines, and remember to sign your posts by typing four tildes: ~~~~ when posting using wikitext.
  • The button should read "Edit source", which takes the user to our standard Editing activity for that page.
  • The edit source option should only be available to logged in users with at least one edit (edits in talk namespace count)

APK:
https://github.com/wikimedia/apps-android-wikipedia/pull/3020/checks

Event Timeline

cooltey added a subscriber: JTannerWMF.

Hi @JTannerWMF,

The screenshots below are the implementation, please let me know if you want any changes to them.

The "Edit source" button will only appear in each section of the talk page instead of the main talk page screen since it is not available to edit the entire source in the app.

And the dialog of the disclaimer will pop up every time when editing the talk page source, not sure if you want to add an option to hide it.

Screenshot_20211201-160620_Wikipedia Dev.jpg (2×1 px, 390 KB)
Screenshot_20211201-160625_Wikipedia Dev.jpg (2×1 px, 437 KB)

Hi @JTannerWMF and @schoenbaechler

In the preview screen, looks like the API will not convert the ~~~~ to username correctly, should we add a tooltip or a dialog to mention it?

Screenshot_20211203-125912_Wikipedia Dev.jpg (2×1 px, 273 KB)

For the disclaimer dialog, looks like it has a good match with the current edit notices dialog, not sure if it looks good to you?

Screenshot_20211203-134056_Wikipedia Dev.jpg (2×1 px, 412 KB)

@cooltey

In the preview screen, looks like the API will not convert the ~~~~ to username correctly, should we add a tooltip or a dialog to mention it?

Screenshot_20211203-125912_Wikipedia Dev.jpg (2×1 px, 273 KB)

Not exactly sure what you mean here. Is there no way to display the username?

For the disclaimer dialog, looks like it has a good match with the current edit notices dialog, not sure if it looks good to you?

Screenshot_20211203-134056_Wikipedia Dev.jpg (2×1 px, 412 KB)

I think the disclaimer dialog before (F348045822) was better (less alarming).

Thanks!

In T295809#7549660, @schoenbaechler wrote:

@cooltey

In the preview screen, looks like the API will not convert the ~~~~ to username correctly, should we add a tooltip or a dialog to mention it?

Screenshot_20211203-125912_Wikipedia Dev.jpg (2×1 px, 273 KB)

Not exactly sure what you mean here. Is there no way to display the username?

You are correct. We cannot display the username in the preview screen. This may confuse the user a bit.

For the disclaimer dialog, looks like it has a good match with the current edit notices dialog, not sure if it looks good to you?

Screenshot_20211203-134056_Wikipedia Dev.jpg (2×1 px, 412 KB)

I think the disclaimer dialog before (F348045822) was better (less alarming).

Thanks!

Done! Please check the APK again.

Hi @schoenbaechler and @JTannerWMF, I have created a ticket for the tildes issue in the preview endpoint. T297306.

But we can still do the design check before the API update is done.

Thanks for creating a separate ticket @cooltey, this should also be considered when we tackle this: T297118.

great work @cooltey, per our slack conversatin

  • please add a “Don't show this message again' checkbox to the dialog
  • remove the blue border-bottom (for input fields) in edit mode (articles and talk pages)

thanks

In T295809#7567121, @schoenbaechler wrote:

great work @cooltey, per our slack conversatin

  • please add a “Don't show this message again' checkbox to the dialog
  • remove the blue border-bottom (for input fields) in edit mode (articles and talk pages)

thanks

Done. Please download the APK and check the changes, thanks!

Looks good to me @cooltey — quick question re: checkbox text 👇

Did you deliberately update it to “Don’t show me this again" ? My initial suggestion was “Don't show this message again”. If your suggestion is already in use (somewhere else in the app), we can go with it but otherwise “Don't show this message again” is preferable.

Thanks! Feel free to move it to QA signoff afterwards

Hi @schoenbaechler

The "Don't show me this again" is the default checkbox text for dialogs that have a checkbox and here are the places where we are currently using: Enable reading list sync, Login to enable syncing reading list.

Screenshot_20220110-172421_Wikipedia Dev.jpg (2×1 px, 244 KB)

If you like to update the text, I can create a PR for it.

@cooltey all I needed to hear, let’s keep it as is / consistent 👍

Hey so there is a bug or some conflict that is happening here.

Go to Arabic Wikipedia in dark mode hit reply to a talk page thread on Beta using the modern reply function, you'll see there is no edit notice, then attempt to reply to that same thread using wikitext, there is an edit notice but it is blank.

Screenshot_20220131-142556.png (2×1 px, 232 KB)

Hey so there is a bug or some conflict that is happening here.

Go to Arabic Wikipedia in dark mode hit reply to a talk page thread on Beta using the modern reply function, you'll see there is no edit notice, then attempt to reply to that same thread using wikitext, there is an edit notice but it is blank.

@JTannerWMF You've found a case where an edit notice doesn't get parsed properly, so there's no way for us to display it the same way it's displayed in a full browser.

Since this is not directly related to this new feature, can we break this into a new task, to be fixed in our next update?

Sure @Dbrant would you mind making the ticket about edit notices not being properly parsed and reference this ticket? Will be back online after the dentist