Closed Bug 843280 Opened 11 years ago Closed 7 years ago

Add a way to collapse the sidebar

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: msucan, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [console-papercuts][polish-backlog][difficulty=easy])

In bug 808370 we add the variables view in a sidebar. Once the sidebar opens there's no way to collapse it.

There's a bug about adding a close button to the sidebar tabs, we should consider that. (I can't find the bug number.)

CC'ing Paul: what do you suggest we should do? We need something that can be used by the web console, debugger and other tools (like the inspector and style editor in the future).

(also, should we move this bug to the framework side of things?)
(In reply to Mihai Sucan [:msucan] from comment #0)
> In bug 808370 we add the variables view in a sidebar. Once the sidebar opens
> there's no way to collapse it.
> 
> There's a bug about adding a close button to the sidebar tabs, we should
> consider that. (I can't find the bug number.)

bug 816947.

If we use the close button, we can't re-open the sidebar with the same button.
Is that what we want? Or do we want to collapse/uncollapse the sidebar?

If we want the latter, the button needs to be outside of the sidebar (or at least when collapsed, it needs to be outside).

What about the other tools?
- inspector: I don't think we even need to be be able to close/collapse the sidebar
- jsterm: we want to close, not really collapse

Because the wanted behavior is different depending on the tool, I'd suggest that it's up to the tool to implement the button. The sidebar can always expose an API to close/hide/unhide the panel.
I believe we need both: collapse and close. "Close" should be an option for each new tab added to the sidebar, and "collapse" should be an option for the sidebar, when created. Also, I'm not sure we want these to be implemented by each dev tool. The toolbox will become capable of being moved to the sidebar of the browser window - it would be ideal if the sidebar implementation itself would handle the layout readjustments, the collapsing, close buttons, etc. If we let each dev tool implement this, we'll have differences in how they behave. I'd suggest that the debugger also starts using the toolbox sidebar functionality.

Also, I'd like an option to hide the tab bar or show it only when multiple tabs are added. I had to add a CSS hack for this in the web console.
Priority: -- → P3
My current workaround is to hit "Escape", but if I'm the Debugger with a split console, both the sidebar and the console close.
Whiteboard: [console-papercuts]
Whiteboard: [console-papercuts] → [console-papercuts][devedition-40]
Whiteboard: [console-papercuts][devedition-40] → [console-papercuts][polish-backlog]
Marking as easy because the inspector, netmonitor and debugger all have it already. There's a function in ViewHelpers that can do this pretty easily.
Whiteboard: [console-papercuts][polish-backlog] → [console-papercuts][polish-backlog][difficulty=easy]
note that bug 1243802 is moving to expand variables inline.
won't be fixed in old frontend. Would be handled in the new one by Bug 1419078
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.