Bug 200977

Summary: results.webkit.org: Move drawer to the right, open by default
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, commit-queue, repstein, ryanhaddad, tsavell, webkit-bug-importer, zhifei_fang
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
new-closed-drawer
none
new-open-drawer
none
old-closed-drawer
none
old-open-drawer
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Jonathan Bedard
Reported 2019-08-21 07:24:32 PDT
After discussing the drawer with bot watchers, we need to make some changes so that the drawer is more discoverable.
Attachments
Patch (19.42 KB, patch)
2019-08-21 07:49 PDT, Jonathan Bedard
no flags
new-closed-drawer (86.80 KB, image/png)
2019-08-21 08:02 PDT, Jonathan Bedard
no flags
new-open-drawer (131.17 KB, image/png)
2019-08-21 08:03 PDT, Jonathan Bedard
no flags
old-closed-drawer (234.79 KB, image/png)
2019-08-21 08:03 PDT, Jonathan Bedard
no flags
old-open-drawer (86.01 KB, image/png)
2019-08-21 08:04 PDT, Jonathan Bedard
no flags
Patch (19.32 KB, patch)
2019-08-22 07:50 PDT, Jonathan Bedard
no flags
Patch (19.61 KB, patch)
2019-08-23 16:02 PDT, Jonathan Bedard
no flags
Patch (24.54 KB, patch)
2019-08-26 16:28 PDT, Jonathan Bedard
no flags
Patch (25.02 KB, patch)
2019-08-27 17:12 PDT, Jonathan Bedard
no flags
Patch (24.00 KB, patch)
2019-08-27 17:36 PDT, Jonathan Bedard
no flags
Patch (24.73 KB, patch)
2019-08-28 11:05 PDT, Jonathan Bedard
no flags
Jonathan Bedard
Comment 1 2019-08-21 07:49:21 PDT
Jonathan Bedard
Comment 2 2019-08-21 08:02:50 PDT
Created attachment 376880 [details] new-closed-drawer
Jonathan Bedard
Comment 3 2019-08-21 08:03:08 PDT
Created attachment 376881 [details] new-open-drawer
Jonathan Bedard
Comment 4 2019-08-21 08:03:27 PDT
Created attachment 376882 [details] old-closed-drawer
Jonathan Bedard
Comment 5 2019-08-21 08:04:38 PDT
Created attachment 376883 [details] old-open-drawer
Jonathan Bedard
Comment 6 2019-08-22 07:50:32 PDT
Jonathan Bedard
Comment 7 2019-08-23 15:36:17 PDT
As it turns out, this is horribly broken on mobile...working on a fix for that.
Jonathan Bedard
Comment 8 2019-08-23 16:02:59 PDT
Jonathan Bedard
Comment 9 2019-08-26 16:28:51 PDT
Zhifei Fang
Comment 10 2019-08-26 17:27:30 PDT
Comment on attachment 377286 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377286&action=review > Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js:127 > + const zIndex = parseInt(document.defaultView.getComputedStyle(drawerRef.element, null).getPropertyValue('z-index'), 10); Use media query in the css is better than hacking into the resize event > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:-959 > - display: block; A better solution here is we keep it’s off. Use same media query to let the menu button show when on mobile. Then you will have an always true assumption that the initial state for the sidebar is off when the menu button displays. > Tools/resultsdbpy/resultsdbpy/view/templates/base.html:37 > + <button class="button" style="display: none; float: right" id="drawer-button">â°</button> i think we better to put this at the beginning of the tittle, add a media query to control it is showing or not. You may also need to let the title no-wrap and overflow hidden > Tools/resultsdbpy/resultsdbpy/view/templates/documentation.html:509 > + const zIndex = parseInt(document.defaultView.getComputedStyle(element, null).getPropertyValue('z-index'), 10); Seems we are using z-index to determine the initial status. You can always use media query to do so. Besides, i think we will always show the sidebar until we on the mobile, we can do the same for the menu button just like my comment above
Jonathan Bedard
Comment 11 2019-08-27 17:12:41 PDT
Zhifei Fang
Comment 12 2019-08-27 17:23:56 PDT
Comment on attachment 377404 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377404&action=review > Tools/resultsdbpy/resultsdbpy/view/templates/base.html:41 > + <button style="width: 10%" class="button mobile-sidebar-control">â°</button> I think the button can have a fix width, like use var(--smallSize), then the title width can be calc(100% - var(--smalSize)); This will keep the button is a good looking.
Jonathan Bedard
Comment 13 2019-08-27 17:36:30 PDT
Zhifei Fang
Comment 14 2019-08-28 10:29:35 PDT
Comment on attachment 377407 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377407&action=review > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:890 > +:root { Could you move this to top :root definition ?
Zhifei Fang
Comment 15 2019-08-28 10:30:03 PDT
(In reply to Zhifei Fang from comment #14) > Comment on attachment 377407 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=377407&action=review > > > Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:890 > > +:root { > > Could you move this to top :root definition ? unofficially r=me
Aakash Jain
Comment 16 2019-08-28 10:37:37 PDT
Comment on attachment 377407 [details] Patch rs=me
Jonathan Bedard
Comment 17 2019-08-28 11:05:01 PDT
WebKit Commit Bot
Comment 18 2019-08-28 12:36:30 PDT
Comment on attachment 377463 [details] Patch Clearing flags on attachment: 377463 Committed r249213: <https://trac.webkit.org/changeset/249213>
WebKit Commit Bot
Comment 19 2019-08-28 12:36:31 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 20 2019-08-28 12:37:17 PDT
Note You need to log in before you can comment on or make changes to this bug.