Closed Bug 1623906 Opened 5 years ago Closed 5 years ago

Replace React props to show/hide the box model highlighter with Redux thunks

Categories

(DevTools :: Inspector, task, P3)

task

Tracking

(Fission Milestone:M7, firefox84 fixed)

RESOLVED FIXED
84 Branch
Fission Milestone M7
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.

Priority: -- → P3
Type: task → enhancement
Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
No longer depends on: 1598307
Type: enhancement → task

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.

Flags: needinfo?(rcaliman)

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.

Flags: needinfo?(rcaliman)
Attachment #9156411 - Attachment description: Bug 1623906 - Dispatch thunks from React components to highlight nodes → Bug 1623906 - [devtools] Dispatch thunks from React components to highlight nodes. r=nchevobbe,gl,jdescottes
Attachment #9156411 - Attachment description: Bug 1623906 - [devtools] Dispatch thunks from React components to highlight nodes. r=nchevobbe,gl,jdescottes → Bug 1623906 - [devtools] Dispatch thunks from Flexbox panel React components to highlight nodes r=nchevobbe,gl,jdescottes
Summary: Replace onShowBoxModelHighlighterForNode React prop with a Redux action → Replace React props to show/hide the box model highlighter with Redux thunks
Whiteboard: dt-fission-m2-mvp

Tracking dt-fission-m2-mvp bugs for Fission Beta milestone (M7).

Fission 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

Fixed test snapshot, queuing for landing again

Flags: needinfo?(rcaliman)
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: