Commit Graph

810 Commits

Author SHA1 Message Date
Luke De Feo
4fdfbdc8df Open in IDE for bloks derived components
Summary:
* Added line number as an attribute to node, in theory we could get it from the device in the case of compose
* dont need to use miles as have the file already
* cleaned up naming in ide file resolver so its clear its the qualified name we are talking about

Reviewed By: lblasa

Differential Revision: D45079135

fbshipit-source-id: 24f2d5814800a4a404b680599d307cc750758fcd
2023-04-27 07:28:41 -07:00
Luke De Feo
7cc1a1246e Process Bloks derived components
Reviewed By: lblasa

Differential Revision: D45079131

fbshipit-source-id: 363f5ed2fedc6183130ef0185f8ff5bf58579c10
2023-04-27 07:28:41 -07:00
Luke De Feo
e34f3f4883 Process Bloks Bound tree
Summary:
1. Need to unminify the names from something call the minification map
2. Bloks attributes themselves are already minified. However the uidebugger also has a similar concept in its own metadata so the data we get off the device has been minified twice. To fix this we remap the metadata off the device using the minification map. In order to find the correct entry we need to get the style id of the bloks model parent. this is sent as a metadata custom attribute

Reviewed By: lblasa

Differential Revision: D45079136

fbshipit-source-id: bb448d81918c0b8c9e8ac87c4390b46a8a374d78
2023-04-27 07:28:41 -07:00
Luke De Feo
c96535e15f Infrastructure for stream inteceptor transform metadata
Summary:
Hooked up metadata to the stream inteceptor, enhanced error handling to deal with:
1. Recording subsequent metadata messaages that came in while in error state such that all of them are processed
2. Recording any frames that came in while in error state such that after recovering from error we have the latest state
3. Splitting out recoverable and non recoverable errors more explicitly

Reviewed By: lblasa

Differential Revision: D45079137

fbshipit-source-id: 67a2ffef72d94d2b1492f201a2228659720e306b
2023-04-27 07:28:41 -07:00
Luke De Feo
fd673d0535 Infrastructure for stream interceptor transform nodes
Summary:
Added stream interecptor which gets a chance to augment the messages off the wire. Stream interceptor transformations are async and can fail  due to network errors so added error state with a retry button. The retry button will just call the function again.

I am also handling errors better generally when this method fails unexpectedly, logging more clearly what went wrong and communicating it to the user

Did some refactoring of subtree update event to support this

Reviewed By: lblasa

Differential Revision: D44415260

fbshipit-source-id: a5a5542b318775b641d53941808399a8fa4634d3
2023-04-27 07:28:41 -07:00
Luke De Feo
6b7c5297a5 Added Hidden attributes to node
Summary: Type is any as it can be litterally anything, using json is a bit of pain as we have to do a lot of type checks to access anything

Reviewed By: lblasa

Differential Revision: D45079133

fbshipit-source-id: bcce93a1fce48d2779a648576f12df6392a0938e
2023-04-27 07:28:41 -07:00
Luke De Feo
9d34d12111 Added custom attributes to metadata typing
Summary: These replace tags, and are KV instead. They allow us to send framework specific data that arent common enough to be promoted to the top level, similar to hidden attributes. They will be needed for bloks

Reviewed By: lblasa

Differential Revision: D45079134

fbshipit-source-id: e4962bd56f0c24608504367f50cd796fd3d79fcd
2023-04-27 07:28:41 -07:00
Luke De Feo
1777cbf697 Remove coordinate update
Summary: This is no longer needed or sent by the client given our new approach to frames

Reviewed By: antonk52

Differential Revision: D44872566

fbshipit-source-id: 9ec340a5cc68605f730cf6677fb89778bf77a3a1
2023-04-27 07:28:41 -07:00
generatedunixname89002005306973
f8ca1551d7 Flipper Release: v0.190.0
Summary: Releasing version 0.190.0

Reviewed By: mweststrate

Differential Revision: D45308248

fbshipit-source-id: 3b03945474d644fec9a686f0f908864dbbca2322
2023-04-26 05:30:21 -07:00
Lorenzo Blasa
8cd2bb97bf Add payload size to performance stats event
Summary: Payload size is useful to understand how much data is going down the wire for frame updates.

Reviewed By: LukeDefeo

Differential Revision: D45114582

fbshipit-source-id: d0c2a01deb84a67017db88bd396b4859e08d0037
2023-04-20 09:11:55 -07:00
Michel Weststrate
f63ea1f9bd fixed unhandled errors in React DevTools bridge
Summary:
Unhandled errors from this plugin where showing up in our monitoring, made sure the error is handled now. Lowered to warning as this is probably a transient / connection issue.

See https://www.internalfb.com/logview/details/flipper_javascript/e7180deffd12e5900be754026780edbe/?trace_key=6abbef91dc1324bab958ca420ca70356&selected-logview-tab=All+Traces

Reviewed By: lblasa

Differential Revision: D44729212

fbshipit-source-id: 4c83eeab13bd2eb5c6f8ec563a35092eaf15fe30
2023-04-06 03:20:42 -07:00
generatedunixname89002005306973
8b33b25eda Flipper Release: v0.189.0
Summary: Releasing version 0.189.0

Reviewed By: ivanmisuno

Differential Revision: D44703759

fbshipit-source-id: 447ecacea6f9ae59ddedb405e5fa3915193bc50c
2023-04-06 03:15:40 -07:00
Lorenzo Blasa
985a9eda33 Fix Visualiser cropping issue
Summary:
An issue was reported for the visualiser whereas there seemed to be some cropping taking place on the right hand side.

https://pxl.cl/2BhPT

The issue was the resizable panel and visualiser both were set with the same width.

The resizable panel was set as to have a gutter which was not taken into consideration, add this width to the panel width and that fixes the issue.

Also change box sizing model as to not affect the dimensions of the wireframe.

Reviewed By: LukeDefeo

Differential Revision: D44664377

fbshipit-source-id: e640af2090f7c3378e624626fe3ea5df631caa11
2023-04-04 22:10:39 -07:00
Lorenzo Blasa
a419aaaf1b Outer Border removal
Summary: Not in use, remove.

Reviewed By: LukeDefeo

Differential Revision: D44664459

fbshipit-source-id: 226fa7b36eea6696057f46ae482c16ca1959e099
2023-04-04 22:10:39 -07:00
Lorenzo Blasa
8f5fcf9444 FrameworkEventsInspector
Summary:
As events get bigger, this change includes the following:
- Dedicated event inspector
- Stacktrace viewer for events with stacktrace attribution
- Stacktrace viewer is displayed within a new BottomPanel. BottomPanel can display any React component and can be reused in the future in different use cases.

Reviewed By: LukeDefeo

Differential Revision: D44628768

fbshipit-source-id: 71a9ef87e71c9a17f58c2544a1aa356eed14ed27
2023-04-04 05:54:42 -07:00
Lorenzo Blasa
d127ac76ac Remove console logs for events
Summary:
May be a debugging left-over, remove.

https://pxl.cl/2B9bg

Reviewed By: LukeDefeo

Differential Revision: D44630930

fbshipit-source-id: a585a54f807259d50b38fc62df21c30cefcb6510
2023-04-04 03:55:44 -07:00
Lorenzo Blasa
e4eecc53c4 EventAttribution -> FrameworkEventAttribution
Summary:
Make it more specific as to keep it consistent with the other types.
Do not export JSON.

Reviewed By: antonk52

Differential Revision: D44625218

fbshipit-source-id: 9cab52ee7e7be21d13f85102597a60c9be967fd0
2023-04-03 10:35:15 -07:00
Lorenzo Blasa
0c4ec03e69 Add event payload as event properties for the timeline view
Summary: Leverage the properties prop of `TimelineDataDescription`. Whenever an event is selected, the event payload is shown as the event properties.

Reviewed By: antonk52

Differential Revision: D44497058

fbshipit-source-id: 09782d583957a0df8c3efd3f5a62af6b321a26e3
2023-04-03 10:35:15 -07:00
Lorenzo Blasa
ce2bfe320b Payload and attribution for framework events
Summary: ^

Reviewed By: LukeDefeo

Differential Revision: D44496975

fbshipit-source-id: 4f633d0f00239cac16ee332d35755b343d46b124
2023-04-03 10:35:15 -07:00
generatedunixname89002005306973
af1842a027 Flipper Release: v0.188.0
Summary: Releasing version 0.188.0

Reviewed By: LukeDefeo

Differential Revision: D44628090

fbshipit-source-id: a6f22b743331e3e18f2a2787e2fb6471b32cd430
2023-04-03 08:52:01 -07:00
Lorenzo Blasa
04911d9d85 Tabs need key now
Summary: Because Tabs now depend on the selected node (i.e. some nodes have events, some don't) they need to use a key.

Reviewed By: antonk52

Differential Revision: D44624658

fbshipit-source-id: 693983f6a82c090adae3a2e009873d903626ab75
2023-04-03 04:39:25 -07:00
Andrey Goncharov
5b0ae2a4f8 Fix NPE when activeChildIdx points to the non-existent entry
Summary:
Based on the stack trace in T145744183, `activeChildIdx` could point to a non-existent array element.
Previously, we used to:
1) Find the index of the activeChild in the non-filtered array of children
2) Filter the array

As a result, it could lead to some of the elements in the child array to be filtered and shifting activeChildIdx, making it invalid.

Now, we search activeChild in the already filtered array.

Reviewed By: LukeDefeo

Differential Revision: D44575170

fbshipit-source-id: 2cb9a0b24badc8509a859011694f77b048d93316
2023-03-31 07:21:28 -07:00
Andrey Goncharov
13275f77be Use Buffer polyfill
Summary: Buffer is not available in the browser

Reviewed By: lblasa

Differential Revision: D44416645

fbshipit-source-id: 9cca069b8b0111f96bb47628e5f2196a22c9812d
2023-03-28 04:45:06 -07:00
Lorenzo Blasa
7f2a0c94f9 Deprecate Layout plugin
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D44417781

fbshipit-source-id: 7ffb369d88771901c9ffca2bbe8ecbd571373a77
2023-03-27 07:32:23 -07:00
generatedunixname89002005306973
bc9d53660a Flipper Release: v0.187.1
Summary: Releasing version 0.187.1

Reviewed By: aigoncharov

Differential Revision: D44416758

fbshipit-source-id: 2c390e1124c63d873fc442dcdfba7a9ac272530e
2023-03-27 06:51:43 -07:00
Andrey Goncharov
ccdc6735c6 Log mock errors only for connected devices
Reviewed By: antonk52

Differential Revision: D44367935

fbshipit-source-id: e6de3bf08d9daef9e607b9d24200892f4d04ecd2
2023-03-24 06:34:38 -07:00
Luke De Feo
77905f30c8 Add context to AbstractClient rawCall errors
Summary: Attempting to fix T146503217. There is no context to the error so this should make it easier in the future. In the MID it says that the layout plugin was selected i made sure to handle any promise rejections in that plugin

Reviewed By: passy

Differential Revision: D44302939

fbshipit-source-id: 987e2c4efd2dc47d2e032d1b21f90458ec5a2df5
2023-03-24 04:28:58 -07:00
Michael Judd
0115ab3113 feat(network-plugin): add support for optional "gql operation name" in data table (#4625)
Summary:
Using this network tab explorer at a company that works in graphql is very difficult because everything comes from the same HTTP route. I've added support for an optional (not visible by default) "GraphQL operation name" field for people who want to use that.

## Changelog
Adds a new optional column in the desktop network plugin called "GraphQL operation name" which will display the operation name if its available.

Pull Request resolved: https://github.com/facebook/flipper/pull/4625

Test Plan:
I didn't see much in the way of component testing for this behaviour. Looking for some guidance here. I'm happy to add some if we think that makes sense

https://user-images.githubusercontent.com/17029928/227016610-b6da1ff3-4a7e-45c6-88da-ceaa6fad53ad.mp4

Reviewed By: ivanmisuno

Differential Revision: D44331605

Pulled By: aigoncharov

fbshipit-source-id: fe7a7812541c235871ae8a71e5461ea2adbd2560
2023-03-23 05:38:15 -07:00
Lorenzo Blasa
174c04accf Open in IDE diagnostics
Summary: Copy in IDE and BigGreep search usage

Reviewed By: LukeDefeo

Differential Revision: D44297978

fbshipit-source-id: deb3288c7afbea7fc7aa13937db1478f300d6307
2023-03-22 11:53:54 -07:00
Lorenzo Blasa
c2e41cd095 Copy diagnostics
Summary: Track copy events, both names and inline attributes.

Reviewed By: LukeDefeo

Differential Revision: D44297218

fbshipit-source-id: 5d2b1f2f4fa59d4a86e9e2ae1aa883712ceccb8c
2023-03-22 11:53:54 -07:00
Lorenzo Blasa
583eabdd79 UI actions diagnostics
Summary:
Track:
- Element selected. Include name and tags. Useful to understand what type of elements engineers are selecting in a hierarchy i.e. ui framework, element type, etc.
- Element focused. Same as above.
- Context menu usage

Reviewed By: LukeDefeo

Differential Revision: D44294618

fbshipit-source-id: f2b9642e70818e8a382bbbddc28115a40734dfe8
2023-03-22 11:53:54 -07:00
Lorenzo Blasa
8d83fa2185 Control use diagnostics
Summary:
Current control diagnostics:
- Play/Pause
- Search
- Framework Event Monitoring
- Toggle more options

Reviewed By: LukeDefeo

Differential Revision: D44292835

fbshipit-source-id: c1ef6181141ef47262de8e75abeeb88ffebd4bd6
2023-03-22 11:53:54 -07:00
generatedunixname89002005306973
469d6080ee Flipper Release: v0.187.0
Summary: Releasing version 0.187.0

Reviewed By: aigoncharov

Differential Revision: D44290210

fbshipit-source-id: 3d483de9d3419b03b82bba4c7e08849ad6614334
2023-03-22 06:33:21 -07:00
Lorenzo Blasa
9b9674be2d Track play-pause usage
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D44169950

fbshipit-source-id: 7a10c6849382680723687a63fd987b9766076af9
2023-03-17 10:37:02 -07:00
Lorenzo Blasa
723bc52c38 Update overview to include iOS
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D44169429

fbshipit-source-id: 4e1b35f753e5cd390d6533f7b31d55f87a64b061
2023-03-17 10:23:54 -07:00
Lorenzo Blasa
bd9bc79cc7 No longer beta
Summary:
^

Time to remove the beta tag.

Reviewed By: aigoncharov

Differential Revision: D44168533

fbshipit-source-id: 5009170328269577aa01e68298753ec0738394d7
2023-03-17 10:23:54 -07:00
generatedunixname89002005306973
5961a5dade Flipper Release: v0.186.0
Summary: Releasing version 0.186.0

Reviewed By: lblasa

Differential Revision: D44141066

fbshipit-source-id: ca3a8e5edd2201c098aec52bf61d38367b970bdf
2023-03-17 04:08:33 -07:00
Lorenzo Blasa
5d0e0137d5 Better performance metrics
Summary:
Current metrics are deltas from an initial set timestamp. This works but is limiting or affecting the overall accuracy of them.

The aim of this task is to replace the deltas with actual measurements for the operations.

This way we can add/remove operations in between which will not create any impact of them.

Reviewed By: LukeDefeo

Differential Revision: D44026823

fbshipit-source-id: fd7d62c4eab86bab8239b44beecd5c133f6d11c7
2023-03-16 07:35:44 -07:00
generatedunixname89002005306973
71108897d0 Flipper Release: v0.185.0
Summary: Releasing version 0.185.0

Reviewed By: mweststrate

Differential Revision: D44086339

fbshipit-source-id: 55164829df59c44643741472c85c8971bfc6f556
2023-03-15 06:51:47 -07:00
Luke De Feo
fa2ea39405 Fix bad types and npe
Summary: Framework events was added recently so no garentueed to always be on all clients. Should fix T145084769

Reviewed By: mweststrate

Differential Revision: D44064430

fbshipit-source-id: 5dab14a7de5815a25cf8fe7bfa485a6a57d60071
2023-03-15 04:01:44 -07:00
generatedunixname89002005306973
998998ab19 Flipper Release: v0.184.0
Summary: Releasing version 0.184.0

Reviewed By: aigoncharov

Differential Revision: D44020314

fbshipit-source-id: e23e1c5df101b4f19db65c97024f4e95f6f3eb19
2023-03-13 04:38:57 -07:00
Lorenzo Blasa
c192af7fa0 Event name declutter
Summary:
The current event label used the event type. The type in itself can have this shape:

`ck:willMountComponent`

The event name is just 'willMountComponent'.

So, extract that piece of data instead.

Reviewed By: aigoncharov

Differential Revision: D43983728

fbshipit-source-id: e232b59cfe3eb0710e56fc9ba7f94b644b07ee74
2023-03-13 03:55:03 -07:00
Andrey Goncharov
14795f203b Stop using device API to clear device logs on disconnected devices
Reviewed By: lblasa

Differential Revision: D43979493

fbshipit-source-id: d05450ad4f5e9e1a1336f6a825875d4670725252
2023-03-10 10:00:46 -08:00
Andrey Goncharov
ccba2fb73e Prevent stack overflow in cyclical graphs
Summary: Logview reported "Error: Maximum call stack size exceeded" for "getElementLeaves". Apparently, there was a cycle in the graph that caused it. The new implementation should ignore cycles.

Reviewed By: lblasa

Differential Revision: D43976359

fbshipit-source-id: bb5218a3b29706146501241492ee079773d5abc3
2023-03-10 08:33:19 -08:00
Lorenzo Blasa
2dde672045 Events tab
Summary:
Add a frameworks events tab. This is currently using the `TimelineDataDescription` component which may ultimately be replaced by something more sophisticated.

In the meanwhile, this does the job of chronologically displaying events with a label.

Reviewed By: mweststrate

Differential Revision: D43948891

fbshipit-source-id: 31ebf8a1d0e126856c3aa5291a1a06d7f2547233
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
d349135683 Badge for events instead of inline approach
Summary:
Instead of showing events as inline attributes, just show a badge with the number of it. Event details will be displayed with other means:

- Hover
- Dedicated tab
- Other

Reviewed By: mweststrate

Differential Revision: D43946575

fbshipit-source-id: 762a241040d7fc6afb2c86d129a620ff2bb15feb
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
ed4903576a Better guidelines
Summary: Removes dotted/dashed lines for the hierarchy guidelines.

Reviewed By: ivanmisuno

Differential Revision: D43912904

fbshipit-source-id: c65de8258c7efc997ae739022e6af5919d6453f6
2023-03-10 03:14:32 -08:00
Vova-SH
a46b7c2e78 Fix example code on setup leakCanary plugin (#4566)
Summary:
Fix sample for install leak canary plugin

## Changelog

add brackets on sample code

Pull Request resolved: https://github.com/facebook/flipper/pull/4566

Test Plan: -

Reviewed By: antonk52

Differential Revision: D43766946

Pulled By: passy

fbshipit-source-id: 4bded0122330ab4186745a9f5b2dcbd511318ee3
2023-03-03 10:38:42 -08:00
Lorenzo Blasa
4d5bf8084b Remove feedback request
Summary: It has served its purpose, remove.

Reviewed By: LukeDefeo

Differential Revision: D43769239

fbshipit-source-id: 36fb575b15fe9d092c7728a56b735ff98ff78608
2023-03-03 07:33:24 -08:00
generatedunixname89002005306973
80edf44dc5 Flipper Release: v0.183.0
Summary: Releasing version 0.183.0

Reviewed By: passy

Differential Revision: D43692458

fbshipit-source-id: 7a879ae59de489643cf2195b89bf5232e0eecdf7
2023-03-01 10:06:37 -08:00