Closed Bug 276560 Opened 20 years ago Closed 11 years ago

We should use webbadge icons for alternate format links on buglist and reports

Categories

(Bugzilla :: Query/Bug List, enhancement, P1)

2.19.1
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: justdave, Assigned: ishitva.goel)

References

Details

Attachments

(6 files, 10 obsolete files)

What prompted me to file this is the pile of links at the bottom of the buglist page are starting to get a little cluttered. I was trying to think of a way to clean them up, and realized that several of the links are now providing alternate means of viewing the buglist (CSV, iCal, etc). Many websites have little orange buttons with the format name on them or similar. Wouldn't necessarily need to be orange, and I can think of better-looking ways to do it, but making all of the alternate format links be icons that all match each other and describe the content would be a cool way to distinguish the alternate format links from the action links.
Reassigning bugs that I'm not actively working on to the default component owner in order to try to make some sanity out of my personal buglist. This doesn't mean the bug isn't being dealt with, just that I'm not the one doing it. If you are dealing with this bug, please assign it to yourself.
Assignee: justdave → query-and-buglist
QA Contact: mattyt-bugzilla → default-qa
This is becoming really critical. The UI is becoming totally ugly (screenshot coming).
Priority: -- → P1
Target Milestone: --- → Bugzilla 4.4
Attached image screenshot
See how ugly things now are. We must really improve this for 4.4.
We are going to branch for Bugzilla 4.4 next week and this bug is too invasive or too risky to be accepted for 4.4 at this point. The target milestone is set to 5.0 which is our next major release. I ask the assignee to reassign the bug to the default assignee if you don't plan to work on this bug in the near future, to make it clearer which bugs should be fixed by someone else on time for 5.0.
Target Milestone: Bugzilla 4.4 → Bugzilla 5.0
Ishitva said he wanted to work on it.
Assignee: query-and-buglist → ishitva.goel
Status: NEW → ASSIGNED
Attached patch patch.diff (obsolete) — Splinter Review
The patch replaces the button XML and the links CSV ,FEED and ICAL with images , and the Change Columns , and edit search link with a button . Alignment is also corrected .
Attachment #8382018 - Flags: review?(justdave)
Attached image RSS_icon.png
This is an image for the FEED link . This needs to be named as RSS_icon.png and put inside the bugzilla/images folder .
Attachment #8382022 - Flags: review?(justdave)
Attached image ICAL_icon.png
This is an image for the ICAL link . This needs to be named as ICAL_icon.png and put inside the bugzilla/images folder . This image has been taken from https://www.iconfinder.com/icons/48653/calendar_icon#size=32
Attached image XML_icon.png
This image replaces the XML button . It should be named as XML_icon.png and put inside the bugzilla/images folder .
Attachment #8382029 - Flags: review?(justdave)
Attached image CSV_icon.png
This image replaces CSV link . It should be named as CSV_icon.png and put inside the bugzilla/images folder .
Attachment #8382031 - Flags: review?(justdave)
Attached patch patch2.diff (obsolete) — Splinter Review
This patch adds Title and Alt attributes to the images .
Attachment #8382018 - Attachment is obsolete: true
Attachment #8382018 - Flags: review?(justdave)
Comment on attachment 8382022 [details] RSS_icon.png We already have this icon in images/rss.png. No need to duplicate it.
Attachment #8382022 - Flags: review?(justdave) → review-
(In reply to Frédéric Buclin from comment #12) > We already have this icon in images/rss.png. No need to duplicate it. but that image is only 16x16, and it looks funny upscaled. Needs a 24x24 icon to fit in with the other buttons here.
Attachment #8382022 - Flags: review- → review?(justdave)
Attached patch patch6.diff (obsolete) — Splinter Review
Updated Patch : Removed whitespaces and put minor fixes .
Attachment #8382037 - Attachment is obsolete: true
Attachment #8382132 - Flags: review?(justdave)
Attached patch patch8.diff (obsolete) — Splinter Review
Attachment #8382132 - Attachment is obsolete: true
Attachment #8382132 - Flags: review?(justdave)
Attachment #8382204 - Flags: review?(justdave)
Attached patch patch9.diff (obsolete) — Splinter Review
Removed the unrelated changes from the patch .
Attachment #8382204 - Attachment is obsolete: true
Attachment #8382204 - Flags: review?(justdave)
Attachment #8382327 - Flags: review?(justdave)
Comment on attachment 8382022 [details] RSS_icon.png Should name this rss.png and replace the existing one in images named that (which is smaller). You'll need to double-check the one on the front page to make sure it either looks good at 24p or scales down correctly. For citation purposes, this image was generated at 24p from the svg file provided by feedicons.com
Attachment #8382022 - Flags: review?(justdave) → review+
Comment on attachment 8382024 [details] ICAL_icon.png for citation purposes, this icon came from http://www.easyicon.net/language.en/504792-calendar_icon.html which lists it licensed as "free for commercial use"
Attachment #8382024 - Flags: review+
Comment on attachment 8382029 [details] XML_icon.png This icon was created by me, attempting to reproduce the shape and gradient from the RSS icon, using Futura Ultra-Bold Condensed at 11pt for the font. Retargetting review to Gerv for license verification purposes. That font is apparently a commercial font, but it ships with OS X. Is it a problem to have graphics created with it, or does that only matter if we're actually embedding the font?
Attachment #8382029 - Flags: review?(justdave) → review?(gerv)
Comment on attachment 8382031 [details] CSV_icon.png This icon was created by me, attempting to reproduce the shape and gradient from the RSS icon, using Futura Ultra-Bold Condensed at 11pt for the font. Retargetting review to Gerv for license verification purposes. That font is apparently a commercial font, but it ships with OS X. Is it a problem to have graphics created with it, or does that only matter if we're actually embedding the font?
Attachment #8382031 - Flags: review?(justdave) → review?(gerv)
In the latest patch , all the images have been renamed and used inside the list.html.tmpl file as : 1)RSS_icon.png -> rss.png 2)CSV_icon.png -> csv.png 3)XML_icon.png -> xml.png 4)ICAL_icon.png -> ical.png
Comment on attachment 8382029 [details] XML_icon.png There is no problem making graphics using a rasterization of a commercial font. Gerv
Attachment #8382029 - Flags: review?(gerv) → review+
Comment on attachment 8382031 [details] CSV_icon.png There is no problem making graphics using a rasterization of a commercial font. Gerv
Attachment #8382031 - Flags: review?(gerv) → review+
Comment on attachment 8382327 [details] [diff] [review] patch9.diff >=== modified file 'template/en/default/list/list.html.tmpl' >+ <img src="/images/xml.png" width="24" height="24" alt="XML" title="XML Format" > The URL pointing to icons are incorrect. The leading / must go away, or the web server is unable to find them. > <div class="bz_query_edit"> >- <a href="[% PROCESS edit_search_url %]">Edit&nbsp;Search</a> "Edit search" and other related actions should be on their own line instead of wrapping as they do currently. Also, for consistency, the "Change several bugs at once" and "send mail to bug assignees" should also be buttons, else the UI is very inconsistent. Another problem with this patch is that you replaced the small rss.png icon with a bigger one, breaking the UI on index.cgi. Maybe the old icon should be rename to rss_small.png and be used there. I didn't read your code nor tested it further, so maybe more comments will come later. :)
Attachment #8382327 - Flags: review?(justdave) → review-
Can we put <div class="bz_query_edit"> and <div class="bz_query_remember"> inside a <p>..</p> to make the "Edit Search" button and "Remember Search as " button to get displayed on the next line ? It gives the effect as in this image http://imagebin.org/297315. Also I have noticed that a small connecting line is coming between the buttons and images inside the <div class="bz_query_links"> which wasn't coming earlier , how can we remove that ?
Attached patch patch15.diff (obsolete) — Splinter Review
According to the previous review , I have 1) Corrected the image URLs 2) Placed "Edit Search " and "Remember Search as" options in a <p> tag to place them on seperate line . 3)"Change several bugs at once" and "send mail to bug assignees" are now buttons 4)the original rss icon which was being used is renamed as rss_small.png and the standard/global.css file has been updated with this name .
Attachment #8382327 - Attachment is obsolete: true
Attachment #8386069 - Flags: review?(gerv)
Edit in above Comment 26 2nd point : <br> is used in place of <p> tag .
Comment on attachment 8386069 [details] [diff] [review] patch15.diff For me, at least, some of the buttons have a different font size to other ones - although I can't immediately see why in Inspector. Also, is it possible to produce a patch which includes the PNG files? (Particularly now we've switched to git?) Gerv
Attachment #8386069 - Flags: review?(gerv) → review-
Attached patch patch15a.diff (obsolete) — Splinter Review
According to the previous review , in this patch 1)Font sizes have been made similar . 2)The lines which were coming between the icons and buttons of the div bz_query_links have been removed . They were coming because of whitespaces between the <a> tags .
Attachment #8386069 - Attachment is obsolete: true
Attachment #8390633 - Flags: review?(gerv)
Attachment #8390633 - Flags: feedback?
Comment on attachment 8390633 [details] [diff] [review] patch15a.diff Dont write: <foo ><bar></foo> That's ugly and doesn't make sense. Write. <foo> <bar> </foo> instead.
Attachment #8390633 - Flags: review?(gerv)
Attachment #8390633 - Flags: review-
Attachment #8390633 - Flags: feedback?
LpSolit: I believe he did that to eliminate the whitespace between <a> and <button>, which caused random bits of blue underlining to appear. Gerv
Attached image screenshot for patch15 (obsolete) —
(In reply to Gervase Markham [:gerv] from comment #31) > LpSolit: I believe he did that to eliminate the whitespace between <a> and > <button>, which caused random bits of blue underlining to appear. A simple .bz_query_links a { text-decoration: none; } would fix this problem. Note that patch15.diff causes this broken UI, see the screenshot.
Lpsolit : The broken UI can be been fixed by adding the rule (in buglist.css) :- .buglist_menu .bz_query_buttons { display: inline; } I need further instructions on how to fix the problem of the tiny lines coming between the buttons and the icons of the div .bz_query_links . As you suggest we can use the rule { text-decoration: none; } and it works fine , but glob prefers the HTML to be fixed . So can we decide together which approach should be implemented . Ishitva
Flags: needinfo?(glob)
(In reply to Ishitva Goel from comment #33) > I need further instructions on how to fix the problem of the tiny lines > coming between the buttons and the icons of the div .bz_query_links . As you > suggest we can use the rule { text-decoration: none; } can you please do both. we need text-decoration:none to remove underlining of images, and the anchors should not encapsulate extraneous whitespace.
Flags: needinfo?(glob)
Attached patch patch17a.diff (obsolete) — Splinter Review
This patch : 1)Fixes the broken UI by adding the rule .buglist_menu .bz_query_buttons { display: inline;} 2)Adds the rule .bz_query_links a { text-decoration: none; } to buglist.css , to solve the problem of tiny lines coming up. 3)Removes the extraneous white spaces from in between the anchor tags .
Attachment #8390633 - Attachment is obsolete: true
Attachment #8392070 - Flags: review?(gerv)
Comment on attachment 8392070 [details] [diff] [review] patch17a.diff >+ ><img title="CSV Format" alt="CSV" src="images/csv.png" height="24" width="24" >+ ></a> There is no reason to move ></a> on its own line. Simply move it on the previous line. I still think this way of writing code is ugly and totally useless.
Attached patch patch17b.diff (obsolete) — Splinter Review
This patch does formatting changes to the code in list.html.tmpl .
Attachment #8392070 - Attachment is obsolete: true
Attachment #8392070 - Flags: review?(gerv)
Attachment #8392189 - Flags: review?(gerv)
Attached patch patch17d.diffSplinter Review
Fixed the image truncation on Chrome and IE11.
Attachment #8392189 - Attachment is obsolete: true
Attachment #8392189 - Flags: review?(gerv)
Attachment #8395259 - Flags: review?(LpSolit)
Attachment #8395259 - Flags: feedback?
Comment on attachment 8395259 [details] [diff] [review] patch17d.diff >=== modified file 'template/en/default/list/list.html.tmpl' >+ <form method="post" action="show_bug.cgi"> >+ <input type="hidden" name="ctype" value="xml"> The indentation in templates is 2 characters, not 4 (the bad indentation was already there). >+ [% END %] >+ <input type="hidden" name="excludefield" value="attachmentdata"> No reason to ident after a [% END %]. >+ ><img title="ICAL Format" alt="ICAL" src="images/ical.png" height="24" width="24"></a> ICAL should be iCal. >+ ><button>Change&nbsp;Columns</button></a> There is no need to keep &nbsp;. The text in buttons won't wrap unless the screen is less wide than the button itself. Else the whole button will wrap. So they can be removed (which will also make the code easier to read). Otherwise looks good and works fine. r=LpSolit with these changes on checkin.
Attachment #8395259 - Flags: review?(LpSolit)
Attachment #8395259 - Flags: review+
Attachment #8395259 - Flags: feedback?
Flags: approval?
Flags: approval? → approval+
Attachment #8390656 - Attachment is obsolete: true
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git d6370f0..d9cd470 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 1121788
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: