Page MenuHomePhabricator

VE template dialog: Update description margins and help text
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

  • After increasing the dialog size, adjusting the description to match parameter width to feel more balanced.
  • Small adjustments to the help text to hopefully help users understand why they are seeing what they are seeing and understand where to go for additional info.

Requirements

  • Match title/description/help and other component margins to the parameter field margins
  • Update help text: "Templates are user-generated and may lack complete descriptions. There might be additional information on this [template’s page]."
  • For templates without TemplateData remove the help text completely. A new warning message is implemented in T276574: Add reactive notices and warnings in VE template dialog
  • Note comment from this ticket T272487#7314425 about margins is covered here

General specs:

  • 48px around all elements (outer margins)
  • 48px between 'chunks' (each chunk being a template and all it's messages, components, parameters, etc or wikitext)
  • 16px between individual elements within a chunk (between description, messages, parameters, etc)

Mocks

Screen Shot 2021-08-09 at 17.30.26.png (760×802 px, 73 KB)

Screen Shot 2021-08-09 at 17.30.43.png (740×780 px, 73 KB)

Specs - vertical spacing.png (1×657 px, 119 KB)

Specs - vertical spacing2.png (1×657 px, 128 KB)

Event Timeline

ECohen_WMDE set the point value for this task to 3.Aug 11 2021, 1:57 PM

Noting that the "add unknown" input should probably get the same margins:

image.png (325×675 px, 22 KB)

@ECohen_WMDE How should the info box appear? With the original padding, like this?

image.png (580×724 px, 52 KB)

Change 715226 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] [WIP] Adjust template dialog margins

https://gerrit.wikimedia.org/r/715226

awight moved this task from Doing to Sprint Backlog on the WMDE-TechWish-Sprint-2021-08-18 board.
awight subscribed.

Confirmed offline: all elements will have the same padding.

Noting that the "add unknown" input should probably get the same margins:

Also confirming this. I had put a comment about this in the related ticket here: https://phabricator.wikimedia.org/T272487#7314425

awight moved this task from Doing to Review on the WMDE-TechWish-Sprint-2021-08-18 board.

Change 715491 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] Update template dialog help text

https://gerrit.wikimedia.org/r/715491

Just surfacing some nuance around this,

For templates without TemplateData remove the help text completely.

There are currently (before T276574) three cases, I'll explain and describe what I understand should be done in this task:

  • TemplateData exists and includes a description: show the new help text given here, and the description from templatedata.
  • Template page is missing: show no help text (currently shows "absent template" help text)
  • Otherwise: show no help text (currently shows "no template description" help text)

Change 715542 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Try to use margin/padding instead of flex for template dialog

https://gerrit.wikimedia.org/r/715542

TemplateData exists and includes a description: show the new help text given here, and the description from templatedata.

Yes. And if TemplateData exists but is missing a description, the description field will be empty but the help text will still show.

Template page is missing: show no help text (currently shows "absent template" help text)

Not sure I understand - how can a template exist but not have a page? And what is the "absent template" text? Do you mean the "This template is missing a description..."?

Otherwise: show no help text (currently shows "no template description" help text)

Otherwise don't show help text because in those cases, the template will get a message with more specific help text from T276574: Add reactive notices and warnings in VE template dialog

Template page is missing: show no help text (currently shows "absent template" help text)

Not sure I understand - how can a template exist but not have a page? And what is the "absent template" text? Do you mean the "This template is missing a description..."?

This is the case where a template doesn't exist. Current help text is:

The \"$1\" template doesn't yet exist

Ah right, forgot about this case when writing the ticket. In this case I would leave the existing help text as is. Don't remove it.

~On a side note: I actually discovered the reason for the button that allows this the other day! It's so you can SUBST: a template from VE.

Change 715226 abandoned by Awight:

[mediawiki/extensions/VisualEditor@master] Adjust template dialog margins

Reason:

https://gerrit.wikimedia.org/r/715226

Change 715542 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Try to use margin/padding instead of flex for template dialog

https://gerrit.wikimedia.org/r/715542

awight changed the point value for this task from 3 to 1.

@Lena_WMDE Should the help text changes stay behind our feature flag? Seems like it, since we're depending on other warnings to appear which are also behind the flag.

Change 716290 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] Tighten vertical gap between parameters

https://gerrit.wikimedia.org/r/716290

awight moved this task from Doing to Review on the WMDE-TechWish-Sprint-2021-09-01 board.
awight updated the task description. (Show Details)

Change 715491 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update template dialog help messages

https://gerrit.wikimedia.org/r/715491

Change 716290 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Tighten vertical gap between parameters

https://gerrit.wikimedia.org/r/716290

@Lena_WMDE Should the help text changes stay behind our feature flag? Seems like it, since we're depending on other warnings to appear which are also behind the flag.

Yes I think that would make sense. Thanks! It could potentially go behind the increased dialog size feature flag.

@Lena_WMDE Should the help text changes stay behind our feature flag? Seems like it, since we're depending on other warnings to appear which are also behind the flag.

Yes I think that would make sense. Thanks! It could potentially go behind the increased dialog size feature flag.

Thanks for the note, I've put behind a flag. But I used the "new sidebar" flag because I wanted to align with other recent messages that were added in T276574.

Change 720022 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Fix missing and flipped template dialog help messages

https://gerrit.wikimedia.org/r/720022

Change 720022 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Fix missing and flipped template dialog help messages

https://gerrit.wikimedia.org/r/720022

Lena_WMDE claimed this task.