Commit Graph
21 Commits
Author SHA1 Message Date
Itiel f6e0472863 Bug 1590212 - More RTL fixes to the console editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49986
2019-10-29 12:40:13 +00:00
Narcis Beleuzu d77346d4db Backed out changeset 3534c1bfbd8e (bug 1590212) as per Itiel`s request. CLOSED TREE 2019-10-29 14:11:43 +02:00
Itiel f7f1e63e87 Bug 1590212 - More RTL fixes to the console editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49986
2019-10-29 07:59:04 +00:00
Florens Verschelde 80e4b9a839 Bug 1589233 - Align CodeMirror line-height with Debugger in Inspector, Style Editor and Console editor; r=gl,nchevobbe
We have a few CodeMirror instances where we're using the default line height (`line-height: normal`), resulting in a line-height in the 13-14.5px range (depending on the font, OS, resolution). By contrast, the Debugger uses 15px explictly, and that's a style we're trying to generalize.

This patch sets a 15px line-height for:
- Inspector: the CodeMirror instance used in the markup view for "Edit as HTML" and in event tooltips
- Style Editor: the main editor instance
- Console: the jsterm but only in editor mode (since the output uses a 14px line-height on purpose, the jsterm in standard mode keeps this 14px line-height to minimize visual jumps when sending a command)

Differential Revision: https://phabricator.services.mozilla.com/D49593
2019-10-21 14:18:07 +00:00
Nicolas Chevobbe a8f2e6f266 Bug 1589867 - Fix browser_parsable_css.js failure on beta. r=Honza.
The rotate property is only enabled on Nightly.
For beta, we need to use transform: rotate instead.

Differential Revision: https://phabricator.services.mozilla.com/D49847
2019-10-21 08:31:52 +00:00
Nicolas Chevobbe 753b08a5f7 Bug 1589592 - Fix console editor Run button icon in RTL. r=Honza.
Since we want the button to be placed on the right side
in RTL languages and we don't have logical properties
on background-position yet, we display the icon in
a :before pseudo element which will adapt for both LTR
and RTL languages. The icon is then mirrored in RTL.

Differential Revision: https://phabricator.services.mozilla.com/D49718
2019-10-18 12:46:46 +00:00
Nicolas Chevobbe 7a54cdfae8 Bug 1577896 - Fix GridElementResizer on overflowing container. r=fvsch.
We remove the pseudo elements we were using to draw the borders and
put them on the grid elements instead.
We make the GridElementResizer 6px and translate it so there's
handle on "both sides" of the splitter.

Differential Revision: https://phabricator.services.mozilla.com/D45302
2019-10-18 10:17:48 +00:00
Armando Ferreira ab0447079c Bug 1523868 - Add a doorhanger options menu in console toolbar - Part 1.
Differential Revision: https://phabricator.services.mozilla.com/D47979
2019-10-15 17:04:30 +00:00
Dorel Luca b9570dcb8c Backed out changeset 03643a08fe82 (bug 1523868) for Node failure in Unexpected token y in JSON at position 0. CLOSED TREE 2019-10-15 18:42:20 +03:00
Armando Ferreira 736a79a179 Bug 1523868 - Add a doorhanger options menu in console toolbar - Part 1.
Differential Revision: https://phabricator.services.mozilla.com/D47979
2019-10-15 15:31:32 +00:00
Armando Ferreira 2df3915410 Bug 1567372 - Add a reverse search button to the Editor Toolbar. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D45095
2019-09-17 21:58:17 +00:00
Nicolas Chevobbe 307d41d644 Bug 1578326 - Make history navigation icons same color as other icons in webconsole. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D44428
2019-09-03 07:43:35 +00:00
Florens Verschelde 4f52f17fa8 Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast
Differential Revision: https://phabricator.services.mozilla.com/D43217
2019-08-29 10:12:25 +00:00
Nicolas Chevobbe f0ef51ac2a Bug 1558417 - Add onboarding UI for Editor. r=Honza.
The onboarding UI is displayed on top of the Editor.
A dismiss button hides it forever (this is handled via
a pref that is set to false when clicking the button).

We take this as an opportunity to polish the Editor UI/wording
a bit.

Differential Revision: https://phabricator.services.mozilla.com/D43621
2019-08-28 15:42:36 +00:00
Gurzau Raul 3e14510bdc Backed out changeset 9aa911cc3fcf (bug 1558417) for failing at browser_jsterm_editor_toolbar.js on a CLOSED TREE. 2019-08-28 17:12:00 +03:00
Nicolas Chevobbe d34a3453e6 Bug 1558417 - Add onboarding UI for Editor. r=Honza.
The onboarding UI is displayed on top of the Editor.
A dismiss button hides it forever (this is handled via
a pref that is set to false when clicking the button).

We take this as an opportunity to polish the Editor UI/wording
a bit.

Differential Revision: https://phabricator.services.mozilla.com/D43621
2019-08-28 11:47:49 +00:00
Nicolas Chevobbe ba939ca6ed Bug 1465149 - Remove old jsterm code. r=jdescottes.
Since we modified the Editor to be accessible, we got
the green light to remove the old JsTerm code.
This means we can remove the preference for the codeMirror
input, and clean the WebConsole react app a bit.
This also mean we can avoid running a lot of our tests
twice.
Finally, some test helpers had to take argument with
specific shape to work against old jsterm (e.g. checkInputCompletionValue),
that we can now remove to make tests easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D40172
2019-08-04 09:38:25 +00:00
Nicolas Chevobbe ea8be2c775 Bug 1554857 - Add editor mode button in input. r=ladybenko.
The button is then hidden when in editor mode.
A test is added to ensure the button is displayed
when it's expected, and that clicking on it does
open the editor.

Differential Revision: https://phabricator.services.mozilla.com/D39203
2019-08-03 08:30:16 +00:00
Armando Ferreira b06f32a5f3 Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

Differential Revision: https://phabricator.services.mozilla.com/D38951
2019-07-23 18:36:01 +00:00
Nicolas Chevobbe c489070ddb Bug 1567370 - Add a close button to the Editor Toolbar. r=Honza.
The button display the same icon that will be used
in the console input when in inline-mode to toggle
the editor mode, active.
A test is added to ensure the button works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D38622
2019-07-19 14:10:06 +00:00
Nicolas Chevobbe a1ef07d3e3 Bug 1565962 - Refactor webconsole layout. r=Honza.
Since we now have a GridElementWidthResizer element, we can
get rid of the SplitBox wrapping the SideBar, and have all
major elements as child of the App element, controlled by
a CSS Grid.

This makes it easy to change the console layout when toggling
the editor mode (re-ordering element in JS, changing the CSS
grid templates, and placing the element in different areas).
This also means we can take advantage of subgrid to align
the sidebar toolbar with the filter bar for example.

As the part of the stylesheet dedicated to layout grew, it
made sense to have it all in a separate stylesheet, App.css,
that lives next to the App component.

Differential Revision: https://phabricator.services.mozilla.com/D38038
2019-07-18 09:02:46 +00:00