Ivan Babak
d35cf80921
Remove Fiber type properties we don't use in DevTools
2019-04-28 12:57:28 -07:00
Ivan Babak
9f06bc345f
Add Flow types for Fiber
...
Fixes https://github.com/bvaughn/react-devtools-experimental/issues/165
2019-04-28 04:18:27 -07:00
Dan Abramov and GitHub
2118b1fe1b
Merge pull request #230 from gaearon/assert-maps
...
Assert empty maps when there are no roots
2019-04-26 18:15:04 +01:00
Dan Abramov
b6a55989f5
Assert empty maps when there are no roots
2019-04-26 17:47:00 +01:00
Brian Vaughn
c28acc5d47
Changed owners back button label to say 'Up to <...>'
2019-04-26 09:38:25 -07:00
Brian Vaughn and GitHub
707b44834f
Merge pull request #213 from wldcordeiro/fix-firefox-perms
...
fix: correct permissions for Firefox
2019-04-25 19:11:39 -07:00
Brian Vaughn and GitHub
043b73e0a8
Merge pull request #223 from bvaughn/owners-list-intermediate-components
...
Owners list view should drill through intermediate components
2019-04-25 15:10:08 -07:00
Brian Vaughn
09029acf00
Refactored owners list to use cached metadata (and added more tests)
2019-04-25 15:06:24 -07:00
Brian Vaughn
15eacae02c
Moved owners list calculations into the store and added tests
...
This is being done to fix a drill-through bug, although the initial fix is perhaps not the most performant one. At least we have test coverage now and a temporary fix.
2019-04-25 15:06:24 -07:00
Brian Vaughn
b6d617ac7f
Added 'back to owner' button when owners stack is collapsed
2019-04-25 15:05:39 -07:00
Brian Vaughn
e88819a22e
Reverse direction of menu items within drop-down owners list
2019-04-25 14:10:51 -07:00
Dan Abramov and GitHub
a0b1fb37fb
Merge pull request #227 from gaearon/string-table
...
Transfer strings in a string table
2019-04-25 17:54:11 +01:00
Dan Abramov
1bea469db0
Remove unneeded variable
2019-04-25 17:46:48 +01:00
Dan Abramov
af2d1374c4
Let -> const
2019-04-25 17:39:13 +01:00
Dan Abramov and GitHub
3920ebd0a1
Clarify encoding in overview
2019-04-25 17:32:46 +01:00
Dan Abramov
c8f8943c9a
Transfer strings in a string table
2019-04-25 17:11:24 +01:00
Dan Abramov and GitHub
c1363b7e17
Merge pull request #226 from gaearon/mutate-children
...
Improve performance by mutating the children array
2019-04-25 15:27:36 +01:00
Dan Abramov and GitHub
2e423c21b0
Merge pull request #221 from gaearon/heuristic
...
Use a heuristic for locating roots
2019-04-25 15:22:34 +01:00
Dan Abramov
e1383c666d
Allow to set tracked path multiple times
...
Fixes #225 . This happens when you close and reopen DevTools while on the same page.
2019-04-25 14:57:39 +01:00
Dan Abramov
2993b168e5
Mutate the children array
2019-04-25 14:47:05 +01:00
Dan Abramov
d5319566a1
Fix broken start:prod command
2019-04-25 14:21:58 +01:00
Dan Abramov
80597a2377
Use a heuristic for locating roots
2019-04-24 23:02:41 +01:00
Dan Abramov and GitHub
942f67c936
Merge pull request #220 from gaearon/removed-ids
...
Select parent node if selection is removed
2019-04-24 19:25:05 +01:00
Brian Vaughn
7bae48f00c
Fixed minor CSS overflow issue
2019-04-24 09:07:53 -07:00
Brian Vaughn and GitHub
c855a862c3
Merge pull request #218 from gaearon/bump-react
...
Bump React versions
2019-04-24 08:45:16 -07:00
Dan Abramov
949384f4ca
Select parent node if selection is removed
2019-04-24 16:29:23 +01:00
Dan Abramov
52deada495
Bump React versions
2019-04-24 15:57:43 +01:00
Dan Abramov and GitHub
54aecf487e
Merge pull request #215 from bvaughn/persist-selection
...
Try to restore selection between reloads
2019-04-24 15:50:29 +01:00
Dan Abramov
f123763fe1
Read index off the Fiber
2019-04-24 15:05:33 +01:00
Dan Abramov
5d2d4213ec
Delete stale paths
2019-04-24 15:05:21 +01:00
Dan Abramov
e050529c7d
Read renderer ID from operations
2019-04-24 15:00:46 +01:00
Dan Abramov
26162988aa
Fix tests
2019-04-24 14:37:46 +01:00
Dan Abramov
7eb7c5a350
Match Fibers to saved selection as they mount
...
This implements matching Fibers against the tracked selection path.
The algorithm is optimized to do as little checks as possible:
* When not trying to restore selection, we don't do anything
* When restoring selection, we only check .return pointers of new mounts
* Only when .return pointers match our current deepest match, we compare the frames
2019-04-24 14:37:46 +01:00
Dan Abramov
3bb837b683
Implement getPathForElement to serialize the selected path
...
Note this doesn't restore the selection yet.
2019-04-24 14:37:46 +01:00
Dan Abramov
b1a7007cc5
Keep track of root insertion order in the renderer
...
Normally, Fibers have key or index which we'll use to match things up between reloads. However, roots don't have such a concept. We'll use their insertion order as an approximation. If it's consistent, we'll be able to restore the selection.
2019-04-24 14:37:46 +01:00
Dan Abramov
d8abecdcf9
Persist and restore selection in agent
...
This implements the infrastructure for saving and restoring renderer-specific selection state in the session storage.
Note this doesn't actually implement the calculation and tracking of paths in the renderer. It only simulates that the renderer can do it. The actual implementation will come in a later commit.
2019-04-24 14:37:46 +01:00
Brian Vaughn and GitHub
085d00e877
Merge pull request #196 from bvaughn/selected-element-suspense
...
Convert inspected element (right panel) to use Suspense
2019-04-23 18:33:05 -07:00
Brian Vaughn
7262a30cf3
Reverted optimization to avoid re-sending inspected fiber unless it committed
2019-04-23 18:04:25 -07:00
Brian Vaughn
0aa7d2f800
Reverted optimization to avoid re-sending inspected fiber unless it committed
2019-04-23 14:03:58 -07:00
Brian Vaughn
1e5c0b7856
Re-added the selection message
2019-04-23 13:43:38 -07:00
Brian Vaughn
4dcb34ea32
Fixed Flow error
2019-04-23 11:32:07 -07:00
Brian Vaughn
53c7338420
Updated flow-bin to attempt to fix the error
2019-04-23 09:00:25 -07:00
Brian Vaughn
d85f566d66
Merged master (tooltip changes)
2019-04-23 08:49:40 -07:00
Brian Vaughn
8b33dd673d
Added @reach/tooltip
2019-04-23 08:41:52 -07:00
Brian Vaughn
ec7536704d
Locked down canary versions
2019-04-22 19:32:16 -07:00
Brian Vaughn
7f1531044b
Differentiate between no-change and no-element-found when inspecting element
2019-04-22 15:37:55 -07:00
Brian Vaughn
00872e2e51
Fixed suspense fallback issue by moving inspection message side effect before suspending render
2019-04-22 15:25:55 -07:00
Brian Vaughn
64bb2d31f9
Fixed bug with cache invalidation
2019-04-22 15:18:32 -07:00
Brian Vaughn
64bc49d523
Run first setState with explicit priority in case of non-React event handlers
2019-04-22 15:11:04 -07:00
Wellington Cordeiro
2d8c28733d
fix: correct permissions for Firefox
...
remove the `background` permissions as it's not used by Firefox, but `activeTab` is and we needed
it.
fix #136
2019-04-22 15:12:33 -06:00