This adds a "column" icon into crumbs, like in workboards, for expanding or hiding the "Widget Pane". This is per user sticky and defaults to off.
Details
- Reviewers
epriestley - Maniphest Tasks
- T10364: Conpherence v4 (UI/UX)
- Commits
- rPff64c4e02b20: Add a toggle, sticky pref, for Conpherence Widget Pane
View a Conpherence Room, see no widgets by default. Toggle it on, see widget. Reload page, see widget stick. Verify mobile, tablets ignore hiding.
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I don't know how to javascript, since this doesn't work, but I think the ideas are right?
Defaulting to off seems a little weird to me, but we can give it a shot.
Slight simplification/bugfix inline but this is basically fine.
webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js | ||
---|---|---|
15โ18 | Instead of doing this classname test, just do: config.show = !config.show; JX.DOM.alterClass(node, 'hide-widgets', config.show); | |
21 | As written, this does the wrong thing if you click twice (or any other even number of times), since we never change config.show. That is:
|
webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js | ||
---|---|---|
15โ18 | having trouble with it taking two clicks to toggle the first load. I think thats why I did the check, to read it right off the node. |
webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js | ||
---|---|---|
21 | Does this need to be flipped, since you're flipping config.show before getting here? |
webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js | ||
---|---|---|
21 | If I flip it, still takes two clicks to show or hide the column, however we send two setting requests so then it seems broken. |
webroot/rsrc/js/application/conpherence/behavior-toggle-widget.js | ||
---|---|---|
17 | Oh, sorry -- this one needs to be flipped. Seems to work correctly to me with this change to add an !: - JX.DOM.alterClass(node, 'hide-widgets', config.show); + JX.DOM.alterClass(node, 'hide-widgets', !config.show); |
seems to be a lag issue for me. if I wait 5 seconds, works fine, otherwise seems to take two clicks
The side-panel is sticky, but the main pane isn't resizing when ticking it on or off...
(If starting off and then enabling it, it hides some of the text).
On the plus side, the native scrollbar is back!
(Chrome 52/Windows)
I can fire up windows later tonight and see. Can't reproduce on Mac. It's just adding and removing a css class.
I saw this one time in Safari/Mac, but it went away after a reload and I can't reproduce it any more. I feel like this is bad cache, but no idea why with celerity. Can't repro Chrome/FF/Safari Mac or Windows.
Still happening to me, even after a "clear cache and hard reload".
I can also see it on MSIE when logged out - turning the side-panel on hides some of the text: