Commit Graph
33 Commits
Author SHA1 Message Date
Julian Descottes aaffdaf9e4 Bug 1488500 - Show install error message for temporary addons;r=daisuke,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D12571
2018-12-07 15:56:30 +00:00
Daisuke Akatsuka d50d573b82 Bug 1494893: Refactoring RuntimeInfo component. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D10032
2018-10-29 16:50:37 +00:00
Daisuke Akatsuka 79159452c1 Bug 1497447: Show a button which reflects the state of "devtools.debugger.prompt-connection" preference of selected runtime. r=jdescottes,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D9066
2018-10-23 13:18:03 +00:00
Belén Albeza 254b0d1cd3 Bug 1496400 - Remove common.css r=jdescottes,daisuke
- Removed common.css
- Re-ordered the loading of stylesheets, so components sheets are loaded _after_ the more generic rules
- Refactored some of our components into more generic ones.

Note that a few styles do not match exactly `common.css` (for instance, buttons' `min-height` and `min-width`), in favor of Photon. This might change later depending on the UX guidance we'll get eventually.

Differential Revision: https://phabricator.services.mozilla.com/D8970
2018-10-22 13:53:31 +00:00
Sebastian Hengst 8c006ab019 Backed out changeset 5ba65c3ad1ff (Bug 1496400) for failing devtools' browser_parsable_css.js: revert aboutdebugging.css which didn't get reverted during the backout 2018-10-19 19:45:29 +03:00
Belén Albeza 7ac0e8cfe6 Bug 1496400 - Remove common.css r=jdescottes,daisuke
- Removed common.css
- Re-ordered the loading of stylesheets, so components sheets are loaded _after_ the more generic rules
- Refactored some of our components into more generic ones.

Note that a few styles do not match exactly `common.css` (for instance, buttons' `min-height` and `min-width`), in favor of Photon. This might change later depending on the UX guidance we'll get eventually.

Differential Revision: https://phabricator.services.mozilla.com/D8970
2018-10-19 09:23:22 +00:00
Julian Descottes 757a96b02b Bug 1488506 - Add button to enable/disable USB debugging in Connect page;r=ladybenko,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D8556
2018-10-17 08:47:30 +00:00
Belén Albeza 9aebaf5c1f Bug 1494543 - Part 1: Refactor sidebar items into different components. r=jdescottes,daisuke
This is a refactor of the components used in the sidebar. TL;DR: sidebar items now use the composition approach outlined here https://reactjs.org/docs/composition-vs-inheritance.html

Before we had a container `Sidebar` component, which in turn had `SidebarItem` components inside. The issue was that depending on what item is inside, the information and UX displayed is different. Before this patch, we had an optional commponent, `DeviceSidebarItemAction` –which was featuring a "Connect" button, and was only rendered in the runtime sidebar items. However, we now need to display even more info, so continue to pass optional components to `SidebarItem` was tricky.

What this patch does is to preserve `SidebarItem` and treat is a generic container of more specific content. This is passed via the `children` prop, which React automatically maps to the DOM content that we pass to that component (this is the same concept as slots in Web Components / Vue). `SidebarItem` now only contains the logic to select items in the sidebar and render them in `<li>` elements. Two new components, `SidebarFixedItem` (for our "static" pages) and `SidebarDeviceItem` are now the ones instancing `SidebarItem` with their specific contents.

Differential Revision: https://phabricator.services.mozilla.com/D7704
2018-10-16 09:35:25 +00:00
Dorel Luca 65062a54b4 Backed out 2 changesets (bug 1494543) for causing Devtools failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE
Backed out changeset 744747bb295c (bug 1494543)
Backed out changeset 5a54f333b855 (bug 1494543)
2018-10-15 12:14:17 +03:00
Belén Albeza 1213229d0c Bug 1494543 - Part 1: Refactor sidebar items into different components. r=jdescottes,daisuke
This is a refactor of the components used in the sidebar. TL;DR: sidebar items now use the composition approach outlined here https://reactjs.org/docs/composition-vs-inheritance.html

Before we had a container `Sidebar` component, which in turn had `SidebarItem` components inside. The issue was that depending on what item is inside, the information and UX displayed is different. Before this patch, we had an optional commponent, `DeviceSidebarItemAction` –which was featuring a "Connect" button, and was only rendered in the runtime sidebar items. However, we now need to display even more info, so continue to pass optional components to `SidebarItem` was tricky.

What this patch does is to preserve `SidebarItem` and treat is a generic container of more specific content. This is passed via the `children` prop, which React automatically maps to the DOM content that we pass to that component (this is the same concept as slots in Web Components / Vue). `SidebarItem` now only contains the logic to select items in the sidebar and render them in `<li>` elements. Two new components, `SidebarFixedItem` (for our "static" pages) and `SidebarDeviceItem` are now the ones instancing `SidebarItem` with their specific contents.

Differential Revision: https://phabricator.services.mozilla.com/D7704
2018-10-11 11:59:26 +00:00
Belén Albeza 6f54231f93 Bug 1490954 - Review Connect page CSS. r=jdescottes,daisuke
- Fixed some values so they match what it's being used in about:preferences (font sizes, margins, etc.)
- Fixed page width in Connect page
- Refactored some rules to be more generic and not tied up to this specific component
- Now a default message appears instead of an empty <ul> when there are no network locations in the list
- Adjusted icon & alignment in the Connect sections' headings

Differential Revision: https://phabricator.services.mozilla.com/D7103
2018-10-03 13:53:46 +00:00
Julian Descottes 06fd22a17f Bug 1483497 - Add connect button for devices in aboutdebugging sidebar;r=daisuke,ladybenko 2018-08-30 17:38:37 +02:00
Julian Descottes 2d16d7305b Bug 1489872 - Extract network locations list and form to dedicated components;r=daisuke,ladybenko
Summary:
Depends on D5384. Straightforward extraction of networks list and form as
dedicated components. Related CSS extracted as well.

Reviewers: daisuke, ladybenko

Reviewed By: daisuke, ladybenko

Bug #: 1489872

Differential Revision: https://phabricator.services.mozilla.com/D5385
2018-09-13 09:51:21 +01:00
Julian Descottes 5ef0e9ba5c Bug 1489872 - Extract Steps and Section as components from ConnectPage;r=daisuke,ladybenko
Summary:
Depends on D5383. Section markup was duplicated for USB, WiFi and Network sections.
Steps markup was duplicated for USB and WiFi sections. Extracted both as components,
using props.children to pass their content. Extracted associated CSS.

Reviewers: daisuke, ladybenko!

Reviewed By: daisuke

Bug #: 1489872

Differential Revision: https://phabricator.services.mozilla.com/D5384
2018-09-13 09:51:17 +01:00
Julian Descottes 31d41836c3 Bug 1489872 - Move ConnectPage component to dedicated folder;r=daisuke
Summary:
Upcoming patches will split the ConnectPage component in
several subcomponents, isolate it in a dedicated folder to prevent
cluttering the root component folder.

Reviewers: daisuke

Reviewed By: daisuke

Bug #: 1489872

Differential Revision: https://phabricator.services.mozilla.com/D5383
2018-09-13 09:51:11 +01:00
Daisuke Akatsuka 9facccef9f Bug 1477603 - Part 1: Add an expanding sign. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D4043
2018-08-23 11:14:15 +09:00
Julian Descottes 050f5a69a3 Bug 1482868 - Show no devices... message when devices list empty;r=daisuke,ladybenko
Depends on D3227

Differential Revision: https://phabricator.services.mozilla.com/D3229
2018-08-28 14:00:39 +00:00
Julian Descottes c15de19e9a Bug 1482868 - Move aboutdebugging sidebar components to dedicated folder;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D3222
2018-08-28 13:41:49 +00:00
Daisuke Akatsuka 6389c943e3 Bug 1477602 - Part 3: Implement UI for workers. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D3754

Depends on D3571
2018-08-17 09:58:52 +09:00
Daisuke Akatsuka 5f32bb6baf Bug 1477602 - Part 1: Move debug target related components to dedicated folder. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D3570
2018-08-17 09:58:51 +09:00
Julian Descottes d6a2c51914 Bug 1482054 - Move .button and .ellipsis-text to aboutdebugging.css;r=daisuke
In order to reuse the button and ellipsis styles in the Connect page,
I would like to move the corresponding styles to a common stylesheet.

Differential Revision: https://phabricator.services.mozilla.com/D3095
2018-08-10 09:29:57 +02:00
Daisuke Akatsuka 789a935207 Bug 1477598 - Part 5: Remove extra css loading. r=me 2018-08-13 16:26:15 +09:00
Daisuke Akatsuka 264a61ebd8 Bug 1477598 - Part 2: Implement UI for extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3084
2018-08-10 16:04:47 +09:00
Daisuke Akatsuka d4f54bf07f Bug 1477597 - Part 2: Show tabs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2763
2018-08-06 13:00:56 +09:00
Julian Descottes 8e2d8f3e68 Bug 1480789 - Add Connect page to new aboutdebugging;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D2724
2018-08-07 04:56:56 +00:00
Julian Descottes 69a25abbe0 Bug 1480743 - Update styles in aboutdebugging-new to match other about:pages;r=daisuke
This duplicates some of the styles from other about:pages, reusing existing
variables when possible.

Differential Revision: https://phabricator.services.mozilla.com/D2717
2018-08-07 04:47:56 +00:00
Daisuke Akatsuka 931804a228 Bug 1477596: Show runtime information. r=jdescottes
MozReview-Commit-ID: 5j7HTlGW9x9
2018-08-02 17:44:52 +09:00
Julian Descottes eac3d58232 Bug 1479411 - Move SidebarItem CSS variables to SidebarItem.css;r=daisuke,ladybenko
MozReview-Commit-ID: FMjy6EkYjx3
2018-07-30 13:55:23 +02:00
Julian Descottes 17df29a175 Bug 1479411 - Rename RuntimeItem to SidebarItem;r=daisuke
MozReview-Commit-ID: AWo7uiZFSQT
2018-07-30 13:54:49 +02:00
Julian Descottes 0aa2207284 Bug 1479411 - Rename RuntimesPane to Sidebar;r=daisuke
MozReview-Commit-ID: 6MHBdiAmZXd
2018-07-30 13:39:47 +02:00
Daisuke Akatsuka 1738654a57 Bug 1471795 - Part 4: Implement an action of when runtime was selected. r=jdescottes,ladybenko
MozReview-Commit-ID: JtYkAgjr3oT
2018-07-26 17:56:38 +09:00
Daisuke Akatsuka 9fc7d30a46 Bug 1471795 - Part 3: Implement runtimes pane. r=jdescottes,ladybenko
MozReview-Commit-ID: 1X14YIYL27x
2018-07-26 17:53:11 +09:00
Daisuke Akatsuka 20dcb866d6 Bug 1471795 - Part 1: Implement basis of 'This Firefox' page. r=jdescottes,ladybenko
In this patch, implement following basic things of 'ThisFirefox' page for new
about:debugging.

* Add a pref devtools.aboutdebbugging.enabled-new to enable new about:debbugging.
* Add a function which switches new/old about:debugging page by the pref.
* Add devtools/client/aboutdebugging-new directory for new about:debugging.
* Add basic html, css, JavaScript and React component.

MozReview-Commit-ID: 5DtV7rRcS0S
2018-07-26 17:52:10 +09:00