Commit Graph

147 Commits

Author SHA1 Message Date
Ola Gasidlo
46b7824f47 Bug 1565212 Create sidebar component, r=ladybenko,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43593

--HG--
extra : moz-landing-system : lando
2019-09-09 11:55:00 +00:00
Brindusan Cristian
020e9de6e6 Backed out 2 changesets (bug 1565212) for linting failure on application.ftl:116:2. CLOSED TREE
Backed out changeset dc67f09ede45 (bug 1565212)
Backed out changeset f21e8b5c98f0 (bug 1565212)
2019-09-09 13:38:04 +03:00
Ola Gasidlo
182e11e2ae Bug 1565212 Create sidebar component, r=ladybenko,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43593

--HG--
extra : moz-landing-system : lando
2019-09-09 09:49:28 +00:00
Belén Albeza
c0e809a1a7 Bug 1572482 - Refetch manifest when reloading or navigating to a new page r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D45003

--HG--
extra : moz-landing-system : lando
2019-09-09 09:26:17 +00:00
Belén Albeza
be69e3d5eb Bug 1577484 - Part 2: Hide ManifestLoader when not needed, add a link to ManifestEmpty r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D44669

--HG--
extra : moz-landing-system : lando
2019-09-06 11:16:13 +00:00
Belén Albeza
bcd927a4ce Bug 1577484 - Part 1: Use async actions with thunk middleware for loading a manifest r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D44668

--HG--
extra : moz-landing-system : lando
2019-09-06 10:34:36 +00:00
Belén Albeza
208ec08c09 Bug 1566013 - Part 3: Add mochitests r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43956

--HG--
extra : moz-landing-system : lando
2019-09-02 07:44:40 +00:00
Belén Albeza
b9053896d0 Bug 1566013 - Part 2: Add unit tests for the manifest reducer r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43955

--HG--
extra : moz-landing-system : lando
2019-09-02 08:26:32 +00:00
Belén Albeza
22cb75164e Bug 1566013 - Part 1: Process canonical manifest and hook it with the Manifest component r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43954

--HG--
extra : moz-landing-system : lando
2019-09-02 06:44:14 +00:00
Florens Verschelde
ac9c3d58a3 Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast
Differential Revision: https://phabricator.services.mozilla.com/D43217

--HG--
extra : moz-landing-system : lando
2019-08-29 10:12:25 +00:00
Belén Albeza
8e89cc0eb6 Bug 1575872 - Part 2: Add Jest tests r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43638

--HG--
extra : moz-landing-system : lando
2019-08-28 10:49:57 +00:00
Belén Albeza
ef64830e0c Bug 1575872 - Part 1: Render a list of issues (errors and warnings) in the Manifest r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43637

--HG--
rename : devtools/client/application/src/components/manifest/ManifestItemWarning.css => devtools/client/application/src/components/manifest/ManifestIssue.css
rename : devtools/client/application/src/components/manifest/ManifestItemWarning.js => devtools/client/application/src/components/manifest/ManifestIssue.js
extra : moz-landing-system : lando
2019-08-28 12:20:43 +00:00
Belén Albeza
e2874c0b8b Bug 1575499 - Part 4: Add Jest tests r=Ola
> IMPORTANT: this depends on https://phabricator.services.mozilla.com/D43050 to be on central. If it has not been merged already, run `arc patch D43050` before downloading this stack.

This adds some Jest tests for the components.

NOTE: tests for warnings will be handled in this other bug https://bugzilla.mozilla.org/show_bug.cgi?id=1575872

Differential Revision: https://phabricator.services.mozilla.com/D43232

--HG--
extra : moz-landing-system : lando
2019-08-26 12:30:38 +00:00
Belén Albeza
62d81c33b2 Bug 1575499 - Part 3: UI fixes and CSS refactor r=Ola
> IMPORTANT: this depends on https://phabricator.services.mozilla.com/D43050 to be on central. If it has not been merged already, run `arc patch D43050` before downloading this stack.

- Put style rules into their own components stylesheet.
- Used theme-related colors instead of the same ones for both dark and light themes.
- Made selectors to be class-specific (so they have low specificity)
- Removed some unused CSS in `base.css`
- Fix extra blank space when a section of the manifest is empty (made the hardcoded icons array empty so this can be seen)

NOTE: The CSS/markup for the warnings will be handled in https://bugzilla.mozilla.org/show_bug.cgi?id=1575872

Differential Revision: https://phabricator.services.mozilla.com/D43231

--HG--
rename : devtools/client/application/src/components/manifest/Manifest.css => devtools/client/application/src/components/manifest/ManifestSection.css
extra : moz-landing-system : lando
2019-08-26 14:42:38 +00:00
Belén Albeza
1033de808b Bug 1575499 - Part 2: Avoid duplicated code r=Ola
> IMPORTANT: this depends on https://phabricator.services.mozilla.com/D43050 to be on central. If it has not been merged already, run `arc patch D43050` before downloading this stack.

- Made each "chunk"/category of the Manifest a single component (`ManifestSection`)
- Removed the `ManifestItemIcon`, etc. to favor a single component that can used later on to provide the common layout for the different value types (strings, colors, images…) we might add in the future.
- Decoupled a bit more the props from the raw manifest object we get from platform, so it's more flexible and we don't do array transformations every time the component needs to render.

NOTE: `ManifestItemWarning` still presents some duplication. This will be handled in this other bug https://bugzilla.mozilla.org/show_bug.cgi?id=1575872

Differential Revision: https://phabricator.services.mozilla.com/D43230

--HG--
extra : moz-landing-system : lando
2019-08-26 10:15:18 +00:00
Belén Albeza
20f700885f Bug 1575499 - Part 1: Rename ManifestView to Manifest r=Ola
> IMPORTANT: this depends on https://phabricator.services.mozilla.com/D43050 to be on central. If it has not been merged already, run `arc patch D43050` before downloading this stack.

`*View` suffixes are sometimes used in JS frameworks context in the same sense we use our `*Page` suffix in here. To avoid confusion –and to have a shorter name– I renamed components to just `Manifest*`

Differential Revision: https://phabricator.services.mozilla.com/D43229

--HG--
rename : devtools/client/application/src/components/manifest/ManifestView.css => devtools/client/application/src/components/manifest/Manifest.css
rename : devtools/client/application/src/components/manifest/ManifestView.js => devtools/client/application/src/components/manifest/Manifest.js
rename : devtools/client/application/src/components/manifest/ManifestViewEmpty.js => devtools/client/application/src/components/manifest/ManifestEmpty.js
rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestView.test.js.snap => devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap
rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestViewEmpty.test.js.snap => devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap
rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestView.test.js => devtools/client/application/test/components/manifest/components_application_panel-Manifest.test.js
rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestViewEmpty.test.js => devtools/client/application/test/components/manifest/components_application_panel-ManifestEmpty.test.js
extra : moz-landing-system : lando
2019-08-26 12:31:10 +00:00
Belén Albeza
bb1e089f66 Bug 1575823 - Enable support for l10n.getString in tests r=Ola
- This creates a mock for fluent-l10n module, so we can use `l10n.getString()` in our code and test for it.
- This patch also removes unused files `test/fixtures/l10n.js` and `test/fixtures/PluralForm.js`

In order to double check the mock works, these two lines can be added to any test:

```
const { l10n } = require("devtools/client/application/src/modules/l10n");
expect(l10n.getString("foo")).toBe("foo");
```

Differential Revision: https://phabricator.services.mozilla.com/D43050

--HG--
rename : devtools/client/application/test/components/fixtures/l10n.js => devtools/client/application/test/components/fixtures/fluent-l10n.js
extra : moz-landing-system : lando
2019-08-23 09:53:19 +00:00
Julian Descottes
766d248915 Bug 1559591 - Skip application panel service worker tests on debug platforms r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D43031

--HG--
extra : moz-landing-system : lando
2019-08-22 09:11:46 +00:00
Ola Gasidlo
f6914e3574 Bug 1566011 - Fix duplicated locales, r=flod,ladybenko,fluent-reviewers
fixed duplicated locales caused by rebase

Differential Revision: https://phabricator.services.mozilla.com/D43010

--HG--
extra : moz-landing-system : lando
2019-08-22 09:05:09 +00:00
Noemi Erli
2c57c4ba45 Backed out changeset faa8347d3c18 (bug 1566011) for devtools failures
--HG--
extra : rebase_source : 9dcb2a61c413bc7ec6a5ace6d5a0c5af90aa2b31
2019-08-22 11:02:10 +03:00
Ola Gasidlo
d84fe15669 Bug 1566011 - Fix duplicated locales, r=flod,ladybenko,fluent-reviewers
fixed duplicated locales caused by rebase

Differential Revision: https://phabricator.services.mozilla.com/D43010

--HG--
extra : moz-landing-system : lando
2019-08-22 07:40:41 +00:00
Ola Gasidlo
e13681e2c3 Bug 1566011 Create sub component for manifestItem (part 2), r=ladybenko,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D41909

--HG--
extra : moz-landing-system : lando
2019-08-21 13:17:54 +00:00
Coroiu Cristina
9de4de8113 Backed out changeset 82634a1a2374 (bug 1566011) for devtools failures at browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE 2019-08-21 15:18:49 +03:00
Ola Gasidlo
df494998bb Bug 1566011 Create sub component for manifestItem (part 2), r=ladybenko,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D41909

--HG--
extra : moz-landing-system : lando
2019-08-21 08:39:11 +00:00
Belén Albeza
e3e7c0ffca Bug 1573408 - Restore mock in jest tests r=Ola,sole
Differential Revision: https://phabricator.services.mozilla.com/D41982

--HG--
extra : moz-landing-system : lando
2019-08-19 08:52:41 +00:00
Belén Albeza
421c27f643 Bug 1566007 - Part 3: Add tests (jest + mochitest) r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D41975

--HG--
extra : moz-landing-system : lando
2019-08-19 08:16:57 +00:00
Belén Albeza
06f7b4f124 Bug 1566007 - Part 2 : Add ManifestLoader component r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D41974

--HG--
extra : moz-landing-system : lando
2019-08-19 08:27:20 +00:00
Belén Albeza
fa01c1cf25 Bug 1566007 - Part 1: Create Redux state/reducers/actions to hold manifest data r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D41973

--HG--
extra : moz-landing-system : lando
2019-08-15 08:32:25 +00:00
Ola Gasidlo
c3cdf78603 Bug 1566011 renaming the layout folder to routing + PageContainer component to PageSwitcher, Part 1, r=ladybenko
First part is renaming the layout folder to routing as discussed as well as the PageContainer component to PageSwitcher.

Differential Revision: https://phabricator.services.mozilla.com/D40976

--HG--
rename : devtools/client/application/src/components/layout/PageContainer.js => devtools/client/application/src/components/routing/PageSwitcher.js
rename : devtools/client/application/src/components/layout/moz.build => devtools/client/application/src/components/routing/moz.build
rename : devtools/client/application/test/components/layout/__snapshots__/components_application_panel-PageContainer.test.js.snap => devtools/client/application/test/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap
rename : devtools/client/application/test/components/layout/components_application_panel-PageContainer.test.js => devtools/client/application/test/components/routing/components_application_panel-PageSwitcher.test.js
extra : moz-landing-system : lando
2019-08-13 17:43:45 +00:00
Ola Gasidlo
6d236dc311 Bug 1565172 Add routing support for Manifest page, r=ladybenko,fluent-reviewers,flod
Add routing support for Manifest page with simple CSS and fluent string for `no manifest found`

Differential Revision: https://phabricator.services.mozilla.com/D40808

--HG--
extra : moz-landing-system : lando
2019-08-13 13:18:23 +00:00
Alexandre Poirot
00643d0c50 Bug 1569676 - Make DOM and application panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39709

--HG--
extra : moz-landing-system : lando
2019-08-12 13:47:07 +00:00
Kris Maglione
c01ad83372 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

Differential Revision: https://phabricator.services.mozilla.com/D40669

--HG--
extra : source : 03acb28ab60fb77fa06064385a62cc46cf4ad1bd
extra : amend_source : 0a71625d99951bebe45ee6f62570de491a714e97
2019-08-02 18:19:53 -07:00
Bogdan Tara
80a144be91 Backed out 8 changesets (bug 1569676) for failures on browser_toolbox_tool_ready.js CLOSED TREE
Backed out changeset 997ad11003a3 (bug 1569676)
Backed out changeset 2dab5e2243d0 (bug 1569676)
Backed out changeset 59660e3e2e53 (bug 1569676)
Backed out changeset c0b0e0410a66 (bug 1569676)
Backed out changeset 1bc927ef181a (bug 1569676)
Backed out changeset 5227c89295f4 (bug 1569676)
Backed out changeset 8365fc01396b (bug 1569676)
Backed out changeset 996c40dbc9e2 (bug 1569676)
2019-08-05 22:00:23 +03:00
Alexandre Poirot
7bb440be2a Bug 1569676 - Make DOM and application panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39709

--HG--
extra : moz-landing-system : lando
2019-08-05 10:46:52 +00:00
Belén Albeza
2b561d0edd Bug 1565171 - Add routing support part 2: Implement a page switcher component r=nchevobbe
This patch implements a page switcher component (`PageContainer`) and a new Redux substate (`UiState`) to handle which page is shown. At the moment, only service workers page is supported. The aim of this patch is to enable support to add new pages later on and be able to switch between them easily.

Differential Revision: https://phabricator.services.mozilla.com/D39897

--HG--
extra : moz-landing-system : lando
2019-07-31 11:15:55 +00:00
Staś Małolepszy
157da38e6c Bug 1568914 - Update Fluent to @fluent/bundle 0.14.0 r=zbraniecki,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39400

--HG--
extra : moz-landing-system : lando
2019-07-30 13:21:59 +00:00
Belén Albeza
54ea0f0fd2 Bug 1553799 - Part 3: Move serviceContainer to its own module r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39374

--HG--
extra : moz-landing-system : lando
2019-07-29 12:53:18 +00:00
Belén Albeza
7286fc89e3 Bug 1553799 - Part 2: Move rendering of workers to their own root component r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39373

--HG--
rename : devtools/client/application/test/components/components_application_panel-WorkerList.test.js => devtools/client/application/test/components/service-workers/components_application_panel-WorkerList.test.js
rename : devtools/client/application/test/components/components_application_panel-WorkerListEmpty.test.js => devtools/client/application/test/components/service-workers/components_application_panel-WorkerListEmpty.test.js
rename : devtools/client/application/test/components/components_application_panel-App.test.js => devtools/client/application/test/components/service-workers/components_application_panel-WorkersPage.test.js
extra : moz-landing-system : lando
2019-07-29 12:52:02 +00:00
Belén Albeza
244f7f3e3b Bug 1553799 - Part 1: Move worker-related components to their own folder r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39372

--HG--
rename : devtools/client/application/src/components/Worker.css => devtools/client/application/src/components/service-workers/Worker.css
rename : devtools/client/application/src/components/Worker.js => devtools/client/application/src/components/service-workers/Worker.js
rename : devtools/client/application/src/components/WorkerList.css => devtools/client/application/src/components/service-workers/WorkerList.css
rename : devtools/client/application/src/components/WorkerList.js => devtools/client/application/src/components/service-workers/WorkerList.js
rename : devtools/client/application/src/components/WorkerListEmpty.css => devtools/client/application/src/components/service-workers/WorkerListEmpty.css
rename : devtools/client/application/src/components/WorkerListEmpty.js => devtools/client/application/src/components/service-workers/WorkerListEmpty.js
extra : moz-landing-system : lando
2019-07-29 12:50:17 +00:00
Julian Descottes
c9aba0f00c Bug 1531349 - Rename multi-e10s-helper to service-workers-debug-helper r=ladybenko,yulia
Differential Revision: https://phabricator.services.mozilla.com/D38850

--HG--
rename : devtools/shared/multi-e10s-helper.js => devtools/shared/service-workers-debug-helper.js
extra : moz-landing-system : lando
2019-07-29 12:59:25 +00:00
Kris Maglione
ef02b3cbd8 Bug 1568035: Part 1 - Skip tests which cause shutdown leaks under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39459

--HG--
extra : rebase_source : 594e7c17a8aa81f9b212ff1fa492a8ab8f40d5ee
2019-07-19 15:31:16 -07:00
Ola Gasidlo
078e09a48b Bug 1558756 - Adding jest tests for components, r=ladybenko,jdescottes
added more jest test for components including snapshots + fixtures

Differential Revision: https://phabricator.services.mozilla.com/D38089

--HG--
extra : moz-landing-system : lando
2019-07-24 09:27:08 +00:00
Belén Albeza
4dbbe95828 Bug 1565571 - Switch components to PureComponent r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39003

--HG--
extra : moz-landing-system : lando
2019-07-23 13:46:57 +00:00
Mihai Alexandru Michis
bae6d95085 Backed out changeset 266931d06efb (bug 1558756) for causing devtools failures CLOSED TREE 2019-07-23 17:49:45 +03:00
Ola Gasidlo
b7588f8d35 Bug 1558756 - Adding jest tests for components, r=ladybenko,jdescottes
added more jest test for components including snapshots + fixtures

Differential Revision: https://phabricator.services.mozilla.com/D38089

--HG--
extra : moz-landing-system : lando
2019-07-23 14:35:42 +00:00
Belén Albeza
7b23051c6e Bug 1557694 - Use <button> instead of <a> for Start/Debug workers r=Ola
**NOTE: This depends on D35513, so if it has not landed yet, please `arc patch D35513` before patching this one on top.**

- `.devtools-button` styles in `common.css` are kinda broken , so I decided to roll out our own button component (`UIButton`) after consulting with Victoria colors, sizes, etc. The other downside to selectors in `common.css` is that they can have a high specificity :(
- Victoria said to use the "micro" style from Photon as the default style for buttons in the panels. So I created an even smaller "micro" styles (very similar to `.devtools-togglebutton`) for when we need smaller buttons.
- I created some light/dark variables in our stylesheets instead of on `variables.css` because `--theme-button-background` was already taken (only used in a single panel, but still…). Maybe after the buttons are fixed globally in the common folder, we could use the variables there. In the meantime, to avoid losing more time, I rolled out our own vars here.

Differential Revision: https://phabricator.services.mozilla.com/D37883

--HG--
extra : moz-landing-system : lando
2019-07-22 15:40:12 +00:00
Mihai Alexandru Michis
a4db5efa81 Backed out changeset 4dd499946b35 (bug 1557694) for causing failures in browser_parsable_css.js CLOSED TREE 2019-07-22 17:51:14 +03:00
Belén Albeza
6e6b55ce8f Bug 1564861 - WorkerList should have unique keys r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D38053

--HG--
extra : moz-landing-system : lando
2019-07-16 10:18:17 +00:00
Belén Albeza
9a0fade87d Bug 1557694 - Use <button> instead of <a> for Start/Debug workers r=Ola
**NOTE: This depends on D35513, so if it has not landed yet, please `arc patch D35513` before patching this one on top.**

- `.devtools-button` styles in `common.css` are kinda broken , so I decided to roll out our own button component (`UIButton`) after consulting with Victoria colors, sizes, etc. The other downside to selectors in `common.css` is that they can have a high specificity :(
- Victoria said to use the "micro" style from Photon as the default style for buttons in the panels. So I created an even smaller "micro" styles (very similar to `.devtools-togglebutton`) for when we need smaller buttons.
- I created some light/dark variables in our stylesheets instead of on `variables.css` because `--theme-button-background` was already taken (only used in a single panel, but still…). Maybe after the buttons are fixed globally in the common folder, we could use the variables there. In the meantime, to avoid losing more time, I rolled out our own vars here.

Differential Revision: https://phabricator.services.mozilla.com/D37883

--HG--
extra : moz-landing-system : lando
2019-07-22 12:25:09 +00:00
Gurzau Raul
8a87842307 Bug 1559591 - disabled a few browser_application_panel tests to avoid leaks r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38654

--HG--
extra : moz-landing-system : lando
2019-07-19 13:28:49 +00:00