Commit Graph
27 Commits
Author SHA1 Message Date
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Julian Descottes be339e5a68 Bug 1967461 -[devtools] Fix propType warnings in shared/components/object-inspector r=frontend-codestyle-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D265939
2025-09-24 13:18:55 +00:00
Alexandre Poirot 609068b489 Bug 1983654 - [devtools] Fix scroll issues when navigating into scope. r=devtools-reviewers,jdescottes
Tree was duplicating code from the shared scroll module.
Both codes were also mis-computing the scroll parent element.
We may have intermediate elements with scrollHeight>clientHeight
which aren't the parent element with the overflow:auto.
Like "div.accordion" in the case of debugger scope panel.

Differential Revision: https://phabricator.services.mozilla.com/D262968
2025-09-01 12:27:39 +00:00
Holger Benl 3ef1d1093c Bug 1967248 - [devtools] Rerender tree nodes when their depth changes. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D250056
2025-05-22 13:47:35 +00:00
Alexandre Poirot e1f9301f4e Bug 1953578 - [devtools] Migrate all usage of react-prop-types CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D241594
2025-03-19 13:30:51 +00:00
Alexandre Poirot 26260731f1 Bug 1953578 - [devtools] Migrate all usage of react CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D241593
2025-03-19 13:30:51 +00:00
Alexandre Poirot 27ee6fdd0f Bug 1906125 - [devtools] Unify VirtualizedTree and Tree CSS and move SourcesTree specifics to Tree. r=devtools-reviewers,nchevobbe
- make them both use .theme-twisty to show an arrow icon.
- move some specifics stylings of SourcesTree to the base class.
- make SourcesTree use the arrow React component provided by Tree class.
- use .theme-twisty instead of .arrow (which already implements rotation and colors on expand). But it uses "open" instead of "expanded" classname.
  (VirtualizedTree was already using theme-twisty)

This impacts the Source Tree, ObjectInspector (console, debugger), Watch Expressions, memory panel (dominator view).

Differential Revision: https://phabricator.services.mozilla.com/D215637
2024-07-10 21:25:46 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 7ad78b458f Bug 1844088 - [devtools] Add title on Tree toggle button. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D194771
2023-11-27 18:38:23 +00:00
Alexandre Poirot 5f38dd0029 Bug 1822303 - [devtools] Remove unused Tree.itemHeight attribute. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D190077
2023-10-12 10:07:30 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot a85b82697f Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/shared. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158379
2022-09-30 15:17:39 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Alexandre Poirot 71391f8516 Bug 1777203 - [devtools] Generate SourceTree data directly from the selectors. r=bomsy
This introduces a new reducer in order to maintain a Source Tree data structure.

A Source Tree is composed of:

* Thread Items
  To designate targets/threads. These are the roots of the Tree if no project directory is selected.

* Group Items
  To designates the different domains used in the website.
  These are direct children of threads and may contain directory or source items.

* Directory Items
  To designate all the folders. Note that each every folder has an items.
  The Source Tree React component is doing the magic to coallesce folders made
  of only one sub folder.

* Source Items
  To designate sources. They are the leaves of the Tree.
  (we should not have empty directories.)

See the creation methods in the reducer to see the various attributes available on each Item type.

Project root implementation has been simplified, but there is still subtantial complexity around it.
Also, there is a behavior change. Now the project root is thread specific,
whereas before it could be per domain/URL across threads.
The complexity of it is around preserving the `uniquePath` across reloads.
Because uniquePath starts with the thread actor ID, it can't be preserved across reload.
Instead, we replace the thread actor ID with "top-level" string.
This means that project root isn't preserved across reload for non-top-level targets.

About `uniquePath` attribute available on all items,
this will be the Path in ManagedTree and Key in Tree components.
i.e. a unique identifier for any item in the Tree.

The isWebExtension check is simplified to fetch it from the thread object,
instead of having to involve the "CONNECT" action.

Depends on D151467

Differential Revision: https://phabricator.services.mozilla.com/D150548
2022-07-26 08:53:07 +00:00
Tetsuharu Ohzeki 7c92bd768e Bug 1508688 - Add UNSAFE_ prefix to React deprecated lifecycle methods in devtools/client/shared/. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149483
2022-06-16 10:03:11 +00:00
Michael Ratcliffe b96384465a Bug 1770257 - Fix DevTools eslint react/prop-types errors batch 1 r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D147017
2022-05-25 11:53:29 +00:00
Nicolas Chevobbe bedebf8d1a Bug 1668219 - [devtools] Remove devtools/client/performance. r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D145461
2022-05-06 17:16:27 +00:00
Kartik Gautam 98f23747dc Bug 1679452 - Replace :not(X):not(Y) with :not(X, Y) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D100147
2020-12-19 11:24:13 +00:00
Nicolas Chevobbe 7f067931e5 Bug 1669956 - [devtools] Move Tree component to devtools/client/shared and remove devtools-components. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93372
2020-10-14 11:32:58 +00:00
Leo Huang db9e3f19d5 Bug 1426634 - Rename devtools/client/shared/components/Tree.js to VirtualizedTree.js; r=nchevobbe
MozReview-Commit-ID: 80ebj9CJODR
2017-12-22 12:10:00 +08:00
Michael Ratcliffe c02377079d Bug 1419487 - Remaing DevTools components to ES6 Classes, prop-types and react-dom-factories r=gl
MozReview-Commit-ID: HjglFjui6XJ
2017-11-22 12:15:43 +00:00
Michael Ratcliffe fdb9244b1b Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Narcis Beleuzu 6f6d04c41c Backed out changeset 9029ee56b1ad (bug 1413860) for mochitest clipboard failures on browser_jsterm_selfxss.js. r=backout on a CLOSED TREE 2017-11-13 14:16:40 +02:00
Michael Ratcliffe 658587160e Bug 1413860 - Shared components to use prop-types and react-dom-factories r=nchevobbe
@nchevobbe: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 9SLEHAq0IQQ
2017-11-03 13:34:41 +00:00
Michael Ratcliffe 7b67c821d8 Bug 1412311 - DevTools Shared Components to ES6 classes r=nchevobbe
In devtools/client/shared/components/tree/TreeView.js I have had to leave defaultProps outside the getter as a temporary workaround for bug 1413167.

MozReview-Commit-ID: 1yaxqFnC92p
2017-10-27 15:33:10 +01:00
Dan Epstein c958bdf812 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK
2017-09-27 01:12:13 -04:00