Since T194458 it is now possible for the options bar to be completely empty. We should hide it when this is the case:
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
SaveDialog: Hide options bar when empty | mediawiki/extensions/VisualEditor | master | +21 -2 |
Related Objects
Event Timeline
Change 523714 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] SaveDialog: Hide options bar when empty
+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.
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:
although that editor doesn't use a multi-line input, so they don't have the issue with the summary not wrapping.
Change 523714 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] SaveDialog: Hide options bar when empty
@Esanders - would it be possible to have the counter stay with the current (last) line of text in the summary?
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)