Commit Graph
49 Commits
Author SHA1 Message Date
Belén Albeza 63ba8dbdc5 Bug 1505126: Part 2 - Render the ADB status into a new component, with an icon r=jdescottes,daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D28664
2019-04-25 16:07:41 +00:00
Bogdan Tara a79605e2bd Backed out 2 changesets (bug 1505126) for browser_parsable_css.js failures CLOSED TREE
Backed out changeset cfca5a733e48 (bug 1505126)
Backed out changeset 0ff53dd72b6b (bug 1505126)
2019-04-25 18:14:33 +03:00
Belén Albeza 5a6b8c80f2 Bug 1505126: Part 2 - Render the ADB status into a new component, with an icon r=jdescottes,daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D28664
2019-04-25 10:15:34 +00:00
Daisuke Akatsuka 7d9ea3b7a6 Bug 1529518: Move worker status to top. r=ladybenko
According to this mock, the status locates at top of item.
https://mozilla.invisionapp.com/share/M2PUG8ISVKJ#/screens/339158284
Thus, although make that to move in this patch, we may ignore.

Depends on D21895

Differential Revision: https://phabricator.services.mozilla.com/D21896
2019-03-19 11:23:22 +00:00
Daisuke Akatsuka 6bef653f1b Bug 1529518: Move temporary extension installer button to temporary extensions pane. r=ladybenko
Depends on D21893

Differential Revision: https://phabricator.services.mozilla.com/D21894
2019-03-19 11:21:18 +00:00
Daisuke Akatsuka 332b712595 Bug 1529518: Apply new style to worker item. r=ladybenko,Ola
Depends on D21889

Differential Revision: https://phabricator.services.mozilla.com/D21890
2019-03-19 11:18:02 +00:00
Daisuke Akatsuka eb02a69f56 Bug 1529518: Apply new style to temporary extension item. r=ladybenko,Ola
Depends on D21888

Differential Revision: https://phabricator.services.mozilla.com/D21889
2019-03-19 11:17:06 +00:00
Daisuke Akatsuka c6b6f92f08 Bug 1529518: Polish extension item. r=ladybenko,Ola
Depends on D21887

Differential Revision: https://phabricator.services.mozilla.com/D21888
2019-03-19 11:17:04 +00:00
Belén Albeza 36882c8ac6 Bug 1505124 - UX implementation for the Connect Page. r=daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D21542
2019-03-18 14:52:15 +00:00
arthur.iakab 80247c452e Backed out changeset 6af97458ab5d (bug 1505124) for causing Eslint failure on connect/ConnectPage.js CLOSED TREE 2019-03-15 11:10:38 +02:00
Belén Albeza 37c067b6dc Bug 1505124 - UX implementation for the Connect Page. r=daisuke,Ola
Differential Revision: https://phabricator.services.mozilla.com/D21542
2019-03-15 08:50:03 +00:00
Julian Descottes 4db7f91ba6 Bug 1525619 - Update layout for RuntimeInfo to display device name on separate line;r=ladybenko,daisuke
Depends on D20464

For this change I moved all the layout logic for the RuntimeInfo h1 to RuntimeInfo.css
I don't know if we prefer to have layout info in base.css or in specialized components, but the RuntimeInfo header has a very specific structure.
I can't see how this would be worth having in base.css. And it is the only consumer for main-heading, so I removed all layout rules from base.css for main-heading.

Differential Revision: https://phabricator.services.mozilla.com/D20471
2019-02-26 20:38:44 +00:00
Julian Descottes 57c5c162b7 Bug 1525619 - Move RuntimeActions to dedicated component;r=daisuke
@daisuke I would like to share this preliminary work with you.
I want to move this to a dedicated component anyway, but most importantly this will reduce merge conflicts between our 2 bugs.
I can land that and leave-open while I continue to work on the actual UX implementation?

Depends on  D20398

Differential Revision: https://phabricator.services.mozilla.com/D20399
2019-02-20 07:37:48 +00:00
Julian Descottes 9372527aae Bug 1495665 - Add performance panel as modal dialog in about:debugging;r=ladybenko
Depends on D18697

Differential Revision: https://phabricator.services.mozilla.com/D18698
2019-02-12 10:16:20 +00:00
Julian Descottes 1b3e58abae Bug 1500374 - Display temporary ID message for tmp webextensions in new aboutdebugging;r=daisuke
Depends on D16571

Differential Revision: https://phabricator.services.mozilla.com/D16572
2019-01-18 13:50:05 +00:00
Julian Descottes e19aa1ef4a Bug 1520412 - Refactor ErrorMessage to generic Message;r=ladybenko,Ola
Differential Revision: https://phabricator.services.mozilla.com/D16677
2019-01-17 16:56:25 +00:00
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