T261178 introduces a design that allows arbitrarily long reasons to be shown in the mobile block message drawer.
This task is for showing the full reason, which will involve an API call to transform the wikitext reason to HTML.
Tchanders | |
Sep 3 2020, 10:57 AM |
F32368856: mobile_template_before.png | |
Sep 30 2020, 1:39 PM |
F32368858: mobile_template_after.png | |
Sep 30 2020, 1:39 PM |
F32358923: mobile_article_mbox_template.png | |
Sep 22 2020, 12:33 PM |
F32358920: mobile_drawer_mbox_template.png | |
Sep 22 2020, 12:33 PM |
T261178 introduces a design that allows arbitrarily long reasons to be shown in the mobile block message drawer.
This task is for showing the full reason, which will involve an API call to transform the wikitext reason to HTML.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Display the block reason HTML in the block message drawer | mediawiki/extensions/MobileFrontend | master | +31 -9 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T190946 Epic: Improve the mobile block experiences | |||
Resolved | None | T189717 Better handle block reasons on mobile (specifically templates and HTML comments) | |||
Resolved | Tchanders | T261944 Show full reason in mobile block message drawer |
Change 625899 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/extensions/MobileFrontend@master] Display the block reason HTML in the block message drawer
Change 625899 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Display the block reason HTML in the block message drawer
@Tchanders @Niharika Further to what I mentioned in yesterday's standup, just some differences found so far. They don't seem too bad, apart from the first one:
@dom_walden I agree they don't seem too bad. the first one seems okay in that it at least gives you a partial reason for the block. The problem would be worse if all of the message was cut off/obscured. I guess there will be other templates for which this happens. We can't chase down everyone one of those. Let's file a bug for it and leave it in the backlog for now.
OK, thanks. I've raised T264187.
Otherwise, templates seem to be rendered as HTML in block reasons.
So, what before might have looked like:
Now looks like:
There does not seem to be a limit to how long the reason is. For example, I have used block reasons which use 10+ templates in a row and they all appear when you scroll down.
Test devices:
Thanks!
@Tchanders: Hi, the Due Date set for this open task was two months ago. Can you please either update or reset the Due Date (by clicking ), or set the status of this task to resolved via the Add Action... → Change Status dropdown in case that this task is done (as the patch is merged)? Thanks.