Closed Bug 605582 Opened 14 years ago Closed 14 years ago

[Edit page] Character counter missing for add-on summary

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
5.12.6

People

(Reporter: krupa.mozbugs, Assigned: cvan)

References

()

Details

(Whiteboard: [z])

Attachments

(4 files)

Attached image screenshot
steps to reproduce:
1. Load https://preview.addons.mozilla.org/z/en-US/developers/addon/228507/edit
2. Click on edit button for 'Basic Information'
3. Compare the add-on summary section to http://people.mozilla.com/~chowse/drop/amo/devtools/v3/manage_addon/03_edit_listing_expanded.png

observed behavior:
Character counter is missing in the implementation. See screenshot.
This should be a generic counter so we can use it all over
Target Milestone: --- → 5.12.3
Assignee: nobody → cwiemeersch
Priority: -- → P3
Blocks: 611214
Is the maximum length for the add-on Summary to be 500 characters?
Summary is 250 chars, description has no limit.  Sorry, the mockup is just a placeholder.
Summary: Character counter missing for add-on summary/description → Character counter missing for add-on summary
Target Milestone: 5.12.3 → 5.12.4
Target Milestone: 5.12.4 → 5.12.5
Summary: Character counter missing for add-on summary → [Edit page] Character counter missing for add-on summary
gkoberger just did this for the submit flow.
cvan- I didn't go with the jQuery plugin used for input (NobleCount or something like that), since it was a huge file.  However, since this is going to be in more than one place, it might be worth it.

Alternatively, you could work with this:
https://github.com/jbalogh/zamboni/commit/b5565b0b72ac0c43c6c6121eca4336f23786fcbd
Target Milestone: 5.12.5 → 5.12.6
Priority: P3 → P1
Committed: https://github.com/jbalogh/zamboni/commit/cb6e685
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I still don't see the character counter @ https://addons.allizom.org/z/en-US/developers/addon/255411/edit

Am I missing something?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It appears once you focus the box.  I agree it should appear by default.
Yep, I had it appear on focus. On step 3 of the add-on submission process, there are multiple textareas displayed for each localized language. Should these textareas be toggled via the L10n switcher (like on the Add-on Edit page)? If not, then we can add a separate character count below each textarea.

Regardless, I'll show the character count by default and, where applicable, update the count when the locale is changed and a new textarea is made visible.
(In reply to comment #10)
> Yep, I had it appear on focus. On step 3 of the add-on submission process,
> there are multiple textareas displayed for each localized language. Should
> these textareas be toggled via the L10n switcher (like on the Add-on Edit
> page)? If not, then we can add a separate character count below each textarea.
> 
> Regardless, I'll show the character count by default and, where applicable,
> update the count when the locale is changed and a new textarea is made visible.

Makes no difference to me as long as the number reflects what is in the box
Fixed in commit https://github.com/jbalogh/zamboni/commit/88dfcfd
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Attached image screenshot 12/30
In the mocks, character counter is:

* left-aligned.
* count is not in bold.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
http://people.mozilla.com/~chowse/drop/amo/devtools/v3/addon_submission/03_description.png

For the same 'Summary' field on Submission Step 3, the '255 characters left' is right aligned, and the character count is set in a darker gray.

In the mockup for the Basic Info add-on edit page (http://people.mozilla.com/~chowse/drop/amo/devtools/v3/manage_addon/03_edit_listing_expanded.png), the character counter is left aligned and the character count is in the same style.

The mockups are inconsistent. Which style should we adopt?
Status: REOPENED → NEW
(In reply to comment #14)
> The mockups are inconsistent. Which style should we adopt?

For colors and fonts, use the style and wording of addon_submission/03_description.png (darker grey count, lighter gray words).

For positioning, how difficult would it be to support both variations? If the count is the only subtext present (i.e. when editing), it makes sense to have it on the left (in reading order, easier to notice when scanning). When the input hint is there (i.e. when submitting), having it on the right seems more sensible than on a separate line (less vertical space, hint draws your eyes to the right).
Character counter styles have been updated accordingly: https://github.com/jbalogh/zamboni/commit/26b3d17
Status: NEW → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Attached image post-fix screenshot
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: