Replace React props to show/hide the box model highlighter with Redux thunks
Categories
(DevTools :: Inspector, task, P3)
Tracking
(Fission Milestone:M7, firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: rcaliman, Assigned: rcaliman)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(5 files)
There's a lot of React prop-drilling for passing onShowBoxModelHighlighterForNode()
from the inspector client down to components in the Layout panel (GridItem/FlexItem), AnimationPanel and the CompatibilityPanel.
https://searchfox.org/mozilla-central/search?path=&q=onShowBoxModelHighlighterForNode
Perhaps it would be better for the highlighter to be accessible by dispatching a Redux action (ex: "SHOW_HIGHLIGTER" / "HIDE_HIGHLIGHTER") against to the shared store between the inspector client and these panels.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:rcaliman, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 3•4 years ago
|
||
The work for this bug is incomplete.
There is another patch in the works. It depends somewhat on bug 1646028 (not a real blocker, but would require duplicate work after it lands).
I will pick up work on this again after bug 1646028 lands.
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D79556
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D95033
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D95034
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D95035
Assignee | ||
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Tracking dt-fission-m2-mvp bugs for Fission Beta milestone (M7).
Pushed by rcaliman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/78d0de3437ab [devtools] Dispatch thunks from Flexbox panel React components to highlight nodes r=gl,jdescottes,nchevobbe https://hg.mozilla.org/integration/autoland/rev/362bad2b7311 [devtools] Dispatch thunks from Box Model panel React components to show/hide the Box Model Highlighter r=gl https://hg.mozilla.org/integration/autoland/rev/bc7e021e8d98 [devtools] Dispatch thunks from Compatibility panel React components to show/hide the Box Model Highlighter r=daisuke https://hg.mozilla.org/integration/autoland/rev/2af3b0ee91ac [devtools] Dispatch thunks from Animation panel React components to show/hide the Box Model Highlighter r=daisuke https://hg.mozilla.org/integration/autoland/rev/92d23f0ea155 [devtools] Dispatch thunks from Grid panel React components to show/hide the Box Model Highlighter r=gl
Comment 10•4 years ago
|
||
Backed out for node failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/046b394f54c39cf6b09233c26ae48d1746bceeb5
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=320135864&repo=autoland&lineNumber=636
Assignee | ||
Comment 11•4 years ago
|
||
Fixed test snapshot, queuing for landing again
Comment 12•4 years ago
|
||
Pushed by rcaliman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3fda2292a5f3 [devtools] Dispatch thunks from Flexbox panel React components to highlight nodes r=gl,jdescottes,nchevobbe https://hg.mozilla.org/integration/autoland/rev/f14a419b4c60 [devtools] Dispatch thunks from Box Model panel React components to show/hide the Box Model Highlighter r=gl https://hg.mozilla.org/integration/autoland/rev/7ff5a03e37d0 [devtools] Dispatch thunks from Compatibility panel React components to show/hide the Box Model Highlighter r=daisuke https://hg.mozilla.org/integration/autoland/rev/492a90355e0d [devtools] Dispatch thunks from Animation panel React components to show/hide the Box Model Highlighter r=daisuke https://hg.mozilla.org/integration/autoland/rev/dabd16270a48 [devtools] Dispatch thunks from Grid panel React components to show/hide the Box Model Highlighter r=gl
Comment 13•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3fda2292a5f3
https://hg.mozilla.org/mozilla-central/rev/f14a419b4c60
https://hg.mozilla.org/mozilla-central/rev/7ff5a03e37d0
https://hg.mozilla.org/mozilla-central/rev/492a90355e0d
https://hg.mozilla.org/mozilla-central/rev/dabd16270a48
Description
•