Page MenuHomePhabricator

Hide "options" bar under edit summary input when hidden
Closed, ResolvedPublic

Assigned To
Authored By
Esanders
Jul 16 2019, 1:32 PM
Referenced Files
F30001076: image.png
Aug 8 2019, 8:02 PM
F30001069: image.png
Aug 8 2019, 8:02 PM
F30001071: image.png
Aug 8 2019, 8:02 PM
F30001078: image.png
Aug 8 2019, 8:02 PM
F29930837: Screen Shot 2019-08-01 at 8.54.18 AM.png
Aug 1 2019, 12:55 PM
F29782136: image.png
Jul 16 2019, 2:11 PM
F29782124: image.png
Jul 16 2019, 2:07 PM
F29782084: summaryfield@2x.png
Jul 16 2019, 1:49 PM

Description

Since T194458 it is now possible for the options bar to be completely empty. We should hide it when this is the case:

image.png (191×517 px, 16 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 523714 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] SaveDialog: Hide options bar when empty

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

+1 thanks for creating this ticket @Esanders

I quickly drafted a few initial thoughts - what do you think? This helps to indicate progress/ edit progression.

summaryfield@2x.png (524×972 px, 214 KB)

I don' think this is for showing "progress" but rather for "warning" the user when they are about to run out of space, as we aren't encouraging very long edit summaries.

I think T194458 was correct in not showing any indicator until you get to the final 100 characters. Getting to 400 characters in an edit summary is very rare (probably <1%) so making counter part of the normal workflow would just add confusion.

In #2 it is not technically feasible to wrap text around the counter, so it would either reduce the width or the height of the area available to type.

An inline counter is used in old wikitext editor:

image.png (64×589 px, 8 KB)

although that editor doesn't use a multi-line input, so they don't have the issue with the summary not wrapping.

In VE it would look like this:

image.png (86×477 px, 16 KB)

Change 523714 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] SaveDialog: Hide options bar when empty

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

In VE it would look like this:

image.png (86×477 px, 16 KB)

@Esanders - would it be possible to have the counter stay with the current (last) line of text in the summary?

Screen Shot 2019-08-01 at 8.54.18 AM.png (226×904 px, 75 KB)

Probably, but it doesn't help with the text wrapping issue.

For QA: the bar is now hidden if there are no checkboxes (eg anon editing) AND the text limit is not close to being reached (<400 chars)

When the text limit is being reached, how does this appear?

The whole bar appears with just the text limit in it.

Can you provide a screenshot of that?

@iamjessklein

Before limit reachedAfter limit reached
Desktop
image.png (716×1 px, 194 KB)
image.png (716×1 px, 194 KB)
Mobile
image.png (568×320 px, 31 KB)
image.png (568×320 px, 31 KB)
ppelberg claimed this task.