Open Bug 1247165 Opened 8 years ago Updated 5 years ago

comment preview should display "no comment to preview" or similar when the comment text is blank

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: timeless, Unassigned)

References

(Depends on 1 open bug)

Details

0. have a bugzilla with allow_attachment_display off 
1. have an account (and be logged into it) on a bugzilla, e.g. mercurial's
2. load an attachment, e.g. https://bz.mercurial-scm.org/attachment.cgi?id=1901&action=edit
3. click the preview button

actual results:
see blank pane, and get confused.

expected results:

instead of showing me a blank thing that makes me think i'm seeing nothing previewed of the attachment,


show me "(no comment text to preview)" or something similar (probably italicized)
Assignee: attach-and-request → ui
Component: Attachments & Requests → User Interface
Summary: preview pane of attachment viewer with an empty comment and disabled attachment previews is confusing → comment preview should display "no comment to preview" or similar when the comment text is blank
Step 0 is useless. This is independent of the preview box.
Severity: normal → enhancement

The Preview tab should be disabled when there’s nothing to preview, just like the new inline comment editor I’ve implemented.

Depends on: 1476107
You need to log in before you can comment on or make changes to this bug.