Closed Bug 1559039 Opened 5 years ago Closed 5 years ago

Suggest that a user uses an attachment when a comment is very long

Categories

(bugzilla.mozilla.org :: Bug Creation/Editing, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: MattN, Assigned: kohei)

References

Details

(Keywords: bmo-ux, ux-efficiency)

Attachments

(1 file)

I often ask users for Browser Console logs in bug reports and since aren't written to files the have to be copied and pasted. Despite me often suggesting that users use an attachment, they often paste their long logs into a comment which is harder for me to read (due to wrapping) and makes scrolling through bug comments painful. I think it would be good to push users toward attachments if their comment is very long (even ignoring the parsing of markdown) by using some warning text, similar to what GitHub issues have on their title field.

Instead of asking the user to use the separate Create New Attachment page, we can offer an option to attach the pasted text directly, because we have the REST API :-)

  • Watch the paste event on the comment box
  • Count the # of lines when text data is pasted
  • Ask if they want to attach it if it’s more than, say, 20 lines
  • Upload the text as an attachment via API
  • Reload the page
Assignee: nobody → kohei.yoshino
Status: NEW → ASSIGNED
Attached file GitHub Pull Request

Merged to master.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
See Also: → 1608109
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: