WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111621
Dashboard cleanup: Move all dashboard ui related code into ui.js.
https://bugs.webkit.org/show_bug.cgi?id=111621
Summary
Dashboard cleanup: Move all dashboard ui related code into ui.js.
Julie Parent
Reported
2013-03-06 13:44:03 PST
Dashboard cleanup: Move all dashboard ui related code into ui.js.
Attachments
Patch
(26.07 KB, patch)
2013-03-06 13:48 PST
,
Julie Parent
no flags
Details
Formatted Diff
Diff
Patch
(26.32 KB, patch)
2013-03-06 17:00 PST
,
Julie Parent
no flags
Details
Formatted Diff
Diff
Patch for landing
(26.23 KB, patch)
2013-03-06 19:01 PST
,
Julie Parent
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Julie Parent
Comment 1
2013-03-06 13:48:37 PST
Created
attachment 191824
[details]
Patch
Ojan Vafai
Comment 2
2013-03-06 13:55:09 PST
View in context:
https://bugs.webkit.org/attachment.cgi?id=191824&action=review
A few random thoughts. I don't feel strongly about any of these, so feel free to ignore them and/or do them in a followup patch.
> Tools/TestResultServer/static-dashboards/ui.js:35 > +ui.hidePopup = function()
How about ui.popup.hide/ui.popup.show?
> Tools/TestResultServer/static-dashboards/ui.js:67 > +ui.checkboxHTML = function(queryParameter, label, isChecked, opt_extraJavaScript)
How about we move all these HTML returning things into their own namespace as well: ui.html.checkbox ui.html.testTypeSwitcher ui.html._topLink etc.
> Tools/TestResultServer/static-dashboards/ui.js:193 > +document.addEventListener('mousedown', function(e) { > + // Clear the open popup, unless the click was inside the popup. > + var popup = $('popup'); > + if (popup && e.target != popup && !(popup.compareDocumentPosition(e.target) & 16)) > + ui.hidePopup(); > +}, false);
Can we add this event listener in showPopup and remove it in hidePopup?
Julie Parent
Comment 3
2013-03-06 17:00:08 PST
Created
attachment 191869
[details]
Patch
Julie Parent
Comment 4
2013-03-06 17:00:40 PST
Addressed all of Ojan's comments. Much prettier now, and no longer have mousedown handlers laying around.
Ojan Vafai
Comment 5
2013-03-06 18:47:32 PST
Comment on
attachment 191869
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191869&action=review
Please remove the comment before committing.
> Tools/TestResultServer/static-dashboards/ui.js:30 > +// @fileoverview Common utilities for generating ui for use in the > +// dashboards.
This isn't google style....we don't need what comments that state the obvious. :)
Julie Parent
Comment 6
2013-03-06 19:01:17 PST
Created
attachment 191889
[details]
Patch for landing
WebKit Review Bot
Comment 7
2013-03-06 19:50:21 PST
Comment on
attachment 191889
[details]
Patch for landing Clearing flags on attachment: 191889 Committed
r145028
: <
http://trac.webkit.org/changeset/145028
>
WebKit Review Bot
Comment 8
2013-03-06 19:50:25 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug