Commit Graph

8558 Commits

Author SHA1 Message Date
Lorenzo Blasa
1f63a25027 idb kill
Summary: Introduce a new command to allow killing idb

Reviewed By: lawrencelomax

Differential Revision: D47911709

fbshipit-source-id: 970f1147a177bbcca0bdfa9e9ba970cdc8a914a3
2023-07-31 03:55:58 -07:00
Lorenzo Blasa
bf96cc2f15 Server notifications using connection troubleshoot notification
Summary: Migrate to new server event which allows troubleshoot

Reviewed By: passy

Differential Revision: D47875977

fbshipit-source-id: 2549bef6ebb26660176747d44e3f535ad9f1d213
2023-07-28 13:04:46 -07:00
Lorenzo Blasa
aaa0a01c6b Notification refactor for consistency
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D47873882

fbshipit-source-id: 9bfb17b1ecadc3489645b456d6760fc217af7759
2023-07-28 12:06:11 -07:00
Pranav Yadav
ea50f19655 iOS-dependent-pod-lint - Bump actions/checkout@v3.5.3 (#4876)
Summary:
This diff bumps `actions/checkout@v3.5.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `iOS-dependent-pod-lint` - Bump `actions/checkout@v3.5.3`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: antonk52

Differential Revision: D47868449

Pulled By: passy

fbshipit-source-id: 31eae8adbc0e169e9f154618c20f1b2478483a51
2023-07-28 11:26:34 -07:00
Pranav Yadav
d95b4dc112 iOS-Sample - Bump actions/checkout@v3.5.3 (#4875)
Summary:
This diff bumps `actions/checkout@v3.5.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3

## Changelog:

[GENERAL] [SECURITY] - [Actions] `iOS-Sample` - Bump `actions/checkout@v3.5.3`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: antonk52

Differential Revision: D47868450

Pulled By: passy

fbshipit-source-id: 8d1a12c8ec2344355d0f091606b4db13c5187263
2023-07-28 11:09:00 -07:00
Lorenzo Blasa
df374d4de2 Display connection troubleshoot notification
Summary: Reuse the function that was refactored on previous diff.

Reviewed By: antonk52

Differential Revision: D47873752

fbshipit-source-id: 71e12cd34d1826080487297e308450cb2a2a5c26
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
9dea1266a7 Refactor connection notification
Summary:
Extract notification creation from inside the existing function.

This will be reused to display connection notifications from the server event.

Reviewed By: antonk52

Differential Revision: D47873728

fbshipit-source-id: c01dc93dfef28135ecf7e77e92d4d517af082125
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
1f53c167ab Dedicated connectivity troubleshoot notification
Summary:
There's a generic notification server event.

This change introduces a new notification server event dedicated for connection troubleshoot.

The difference is, this notification will have a button to troubleshoot the issue. Additionally, in the future, we may even be able to add a payload so that we can troubleshoot the exact problem.

Reviewed By: antonk52

Differential Revision: D47873697

fbshipit-source-id: 28843a08836d0054909f6b9ab7a88b14b8a1b868
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
3bef18ff81 Server state error notification key
Summary: ^

Reviewed By: antonk52

Differential Revision: D47869306

fbshipit-source-id: 38a8170a87f1774b8cb421d1ca4145a8e86d4067
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
4dc63261ff EADDRINUSE notification key
Summary: ^

Reviewed By: antonk52

Differential Revision: D47869281

fbshipit-source-id: 35982dbfd674762d2fcd8bd74b99c538307c23b1
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
d64af25eac Server error notification key
Summary: Add key for server error notifications as to prevent duplicates.

Reviewed By: antonk52

Differential Revision: D47869240

fbshipit-source-id: 7c826ab07a8f92bd053200786ed990ad78bbfa67
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
176301979a Open connectivity troubleshoot if unable to find device
Summary: If the notification is shown, allow engineers to switch to the connectivity troubleshooting view as it may highlight where the problem is.

Reviewed By: antonk52

Differential Revision: D47869154

fbshipit-source-id: f4154bb230d891dc4ac108b5acbe7e6541ffed1a
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
7cb91807d3 Set tab active keys and active tab
Summary: ^

Reviewed By: antonk52

Differential Revision: D47868895

fbshipit-source-id: 381e704a7d1d2d1d67c1b4cf2bf482996927b783
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
1b5b4e94f2 Remove GK
Summary:
The intention was to fine tune everything, internally, before making it available.

Because we can immediately benefit from having it, for troubleshooting, then remove the GK

Reviewed By: LukeDefeo, antonk52

Differential Revision: D47868827

fbshipit-source-id: 4d6356081a4abeea8912f20aad065523e7183da8
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
2c310690d1 Remove sidebar title
Summary: ^

Reviewed By: antonk52

Differential Revision: D47868788

fbshipit-source-id: 0e8c4a224140d9c8f1ff91ce282112919ad650bd
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
b1b056485c Top level selection moved to reducer
Summary:
Intention of this change is to simplify and standardise the way top level selection is done.

Top level selection is now part of the state, and thus setting it is done in the reducer instead.

Reviewed By: antonk52

Differential Revision: D47844742

fbshipit-source-id: 8e5aad8975f0046b85098b988cca40228316c249
2023-07-28 04:40:45 -07:00
Lorenzo Blasa
63ed9d7324 Unable to find device notification key
Summary: Add a key such that the same notification does not appear again for the same device/app.

Reviewed By: antonk52

Differential Revision: D47835045

fbshipit-source-id: 78237b4102aa199ebea23b7c5726b567fc4de91e
2023-07-28 04:40:45 -07:00
generatedunixname89002005306973
4d81bc01f0 Flipper Snapshot Bump: v0.209.1-SNAPSHOT
Summary: Releasing snapshot version 0.209.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D47836466

fbshipit-source-id: fd5cc4e5de3f65426182ba2765bf378b3c45c08b
2023-07-28 01:54:03 -07:00
generatedunixname89002005306973
27d98663c5 Flipper Release: v0.209.0
Summary: Releasing version 0.209.0

Reviewed By: lblasa

Differential Revision: D47836467

fbshipit-source-id: 4bf76e428a505a5182bb8d5a8608cae9c12e426e
2023-07-28 01:54:03 -07:00
Lorenzo Blasa
dc0fd0a9e7 Windows server packaging
Summary: ^

Reviewed By: passy

Differential Revision: D47833317

fbshipit-source-id: b500f58b4ef0e201d8a711f3a83774fa82a7199b
2023-07-27 07:58:22 -07:00
Lorenzo Blasa
566125af3f spawn to set shell option
Summary: This is needed on Windows, otherwise it just throws an error when using spawn.

Reviewed By: passy

Differential Revision: D47832379

fbshipit-source-id: c1a5094c2e72683a695949cd99b2a1054f01aced
2023-07-27 07:06:58 -07:00
Lorenzo Blasa
5b2d20e0e0 Scaffolding for windows bundle
Summary: Just adds a function stub that will add the necessary run script for windows.

Reviewed By: passy

Differential Revision: D47627532

fbshipit-source-id: 09b6a203c2a5def20e586b5753d95ca58797852a
2023-07-27 07:06:58 -07:00
Lorenzo Blasa
2fd94048fb Fixes an issue with selection by refactoring
Summary: Refactor was going to happen, but it was required at this stage as to fix a selection problem.

Reviewed By: LukeDefeo

Differential Revision: D47831239

fbshipit-source-id: 87ce6250721f6d3df3e826e779409625ddc85660
2023-07-27 04:36:24 -07:00
Pranav Yadav
4db7401274 publish-pods - Bump actions/checkout@v3.5.3 & peter-evans/create-pull-request@v5.0.2 (#4868)
Summary:
This diff bumps `actions/checkout@v3.5.3` & `peter-evans/create-pull-request@v5.0.2`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `peter-evans/create-pull-request@v5.0.2` changelog: https://github.com/peter-evans/create-pull-request/releases/tag/v5.0.2

## Changelog:

[GENERAL] [SECURITY] - [Actions] `publish-pods` - Bump `actions/checkout@v3.5.3` & `peter-evans/create-pull-request@v5.0.2`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47829484

Pulled By: passy

fbshipit-source-id: b736a02b244b1c0b1588f37e190610b6642a8f7a
2023-07-27 03:44:52 -07:00
Pranav Yadav
c212ff9d63 release - Switch to softprops/action-gh-release@v0.1.15 (#4870)
Summary:
This diff switches to `softprops/action-gh-release@v0.1.15` for creating a release since `actions/create-release` is *archived* and is **NOT maintained**.

### Ref.:
- `actions/create-release` archived and not maintained notice: https://github.com/actions/create-release
- `softprops/action-gh-release@v0.1.15` changelog: https://github.com/softprops/action-gh-release/releases/tag/v0.1.15

## Changelog:

[GENERAL] [SECURITY] - [Actions] `release` - Switch to `softprops/action-gh-release@v0.1.15` to create a release

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47829486

Pulled By: passy

fbshipit-source-id: fea3b9ed7b76736bcc85d6bd1fa43a14d10a8763
2023-07-27 03:42:37 -07:00
github-actions[bot]
530a621e6b Automated: Update Podfile.lock (#4971)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: lblasa

Differential Revision: D47829475

Pulled By: passy

fbshipit-source-id: 6e897ecb76776be3b36de590fe76afa233e2e435
2023-07-27 03:37:48 -07:00
Pranav Yadav
1f982261a5 publish-npm - Bump actions/- setup-node@v3.6.0 & checkout@v3.5.3 (#4867)
Summary:
This diff bumps `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0

## Changelog:

[GENERAL] [SECURITY] - [Actions] `publish-npm` - Bump `actions/`- `setup-node@v3.6.0` & `checkout@v3.5.3`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47829480

Pulled By: passy

fbshipit-source-id: f3ca6d0720f9d0774c65eedde5d3a63630588329
2023-07-27 03:37:17 -07:00
Pranav Yadav
9b70adab7f react-native-example - Bump multiple actions (#4869)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-node@v3.6.0`, `actions/setup-java@v3.11.0`, `actions/cache@v3.3.1`, `maxim-lobanov/setup-cocoapods@v1.3.0`, `NuGet/setup-nuget@v1.2.0` and `microsoft/setup-msbuild@v1.3.1`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0
- `actions/setup-java@v3.11.0` changelog: https://github.com/actions/setup-java/releases/tag/v3.11.0
- `actions/cache@v3.3.1` changelog: https://github.com/actions/cache/releases/tag/v3.3.1
- `NuGet/setup-nuget@v1.2.0` changelog: https://github.com/NuGet/setup-nuget/releases/tag/v1.2.0
- `microsoft/setup-msbuild@v1.3.1` changelog: https://github.com/microsoft/setup-msbuild/releases/tag/v1.3.1

## Changelog:

[GENERAL] [SECURITY] - [Actions] `react-native-example` - Bump `actions/`- `checkout@v3.5.3`, `setup-node@3.6.0`, `setup-java@v3.11.0`, `cache@v3.3.1`, `maxim-lobanov/setup-cocoapods@v1.3.0`, `NuGet/setup-nuget@v1.2.0` and `microsoft/setup-msbuild@v1.3.1`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: lblasa

Differential Revision: D47829485

Pulled By: passy

fbshipit-source-id: 8272357fc64b39a05a3d717d143ad1689dfd65ca
2023-07-27 03:35:25 -07:00
Lorenzo Blasa
9a2ff5d88d Add sidebar to visualise entry details
Summary: Follow-up from previous diff. Details can be visualised.

Reviewed By: antonk52

Differential Revision: D47797513

fbshipit-source-id: 9a560e3c7da1c9ceffd421ac2670559fdb255204
2023-07-26 09:17:28 -07:00
Lorenzo Blasa
8fc56925a9 Make connectivity log entries selectable
Summary: Once an item is selected, more details can be shown to our users.

Reviewed By: antonk52

Differential Revision: D47797390

fbshipit-source-id: 1bf98f81df32d103f7c0fc332f819507dcf84cc2
2023-07-26 09:17:28 -07:00
Lorenzo Blasa
c3a40ab0ab Clear connectivity logs button
Summary: Add the option to clear the connectivity logs.

Reviewed By: antonk52

Differential Revision: D47797301

fbshipit-source-id: ce9414f3057cab367d34524717c83bfbf0703c0c
2023-07-26 08:16:47 -07:00
Lorenzo Blasa
fa1c2db026 Exchange medium always visible
Summary: ^

Reviewed By: antonk52

Differential Revision: D47797219

fbshipit-source-id: ec643abce429157ca54eb1253d658117cc759565
2023-07-26 08:16:47 -07:00
Lorenzo Blasa
0ab1aeee78 ClientQuery optional for commands
Summary:
Some commands are run without a ClientQuery i.e. fetching devices.

Nevertheless, this can be provide insights when problems take place.

Reviewed By: antonk52

Differential Revision: D47795358

fbshipit-source-id: 0b7dc34475ae061f1b72843a087a798d305ed1c8
2023-07-26 08:16:47 -07:00
Lorenzo Blasa
544e49c097 Podspec and sample integration
Summary: Create podspec for UI Debugger and integrate with our iOS sample application.

Reviewed By: aigoncharov

Differential Revision: D47715973

fbshipit-source-id: a64444660ea9fb8a2c29fcafe1a44266e8daf414
2023-07-26 05:01:58 -07:00
Lorenzo Blasa
b5d51a047b Internal/External init
Summary:
UI Debugger initialisation is defined in two places. Internally, done inside:
    fb/FlipperKitUIDebuggerPluginInit.mm
OSS:
    FlipperKitUIDebuggerPluginInit.mm

Contents of `fb/` directory are not synced in OSS. OSS file is excluded internally as it doesn't use the XPlugins.

Reviewed By: aigoncharov

Differential Revision: D47759035

fbshipit-source-id: 3578be076525f05b530a0d129b5c37e48572d58e
2023-07-26 05:01:58 -07:00
Luke De Feo
60016e69f5 Remove Node id default impl
Summary: This is never identity hash code for declarative framework so this default impl is just a source of bugs, including this one.

Reviewed By: lblasa

Differential Revision: D47754625

fbshipit-source-id: 470aab084c82fa847f25116342021a79d52b7c67
2023-07-26 04:58:43 -07:00
generatedunixname89002005306973
6b1da22a26 Flipper Snapshot Bump: v0.208.1-SNAPSHOT
Summary: Releasing snapshot version 0.208.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D47791661

fbshipit-source-id: e3fc95b261e76888226d16780407ba2a6fd4b68e
2023-07-26 04:32:34 -07:00
generatedunixname89002005306973
6962289ad9 Flipper Release: v0.208.0
Summary: Releasing version 0.208.0

Reviewed By: aigoncharov

Differential Revision: D47791662

fbshipit-source-id: 9a93f9d49c0fa9a3e1598e3f00f988a94cc1eea0
2023-07-26 04:32:34 -07:00
Luke De Feo
b47c88f2b5 Analytics for target mode
Reviewed By: antonk52

Differential Revision: D47757367

fbshipit-source-id: f6ce53a1edc3095a488097e304d3774b0702185b
2023-07-26 04:24:54 -07:00
Luke De Feo
c1a99a8a52 ONly show framework event monitoring where there are events
Reviewed By: antonk52

Differential Revision: D47757004

fbshipit-source-id: 44e0e6aff0213d3bf684652906abae28777cfe9e
2023-07-26 04:24:54 -07:00
Lorenzo Blasa
aba50889f2 Snapshot to use key window size if possible
Summary:
Use the application key window bounds if possible.
In the case where the application is not using the entire screen,
like in Split View on an iPad, the running application is
not using the entire screen thus the snapshot stretches to
fill the screen size which is incorrect.

Reviewed By: LukeDefeo

Differential Revision: D47793033

fbshipit-source-id: d6c7932d35bad13752713772d078f94bad530b09
2023-07-26 04:24:07 -07:00
Luke De Feo
f854e9f3f3 rename controls to tree controls and consistent button style
Reviewed By: mweststrate

Differential Revision: D47672437

fbshipit-source-id: 5ce237cfd300a481450411a0242410e01bcc5411
2023-07-26 03:22:38 -07:00
Luke De Feo
ab84bb9bad Add visualiser controls + target mode
Summary:
Now that we have panels for tree visualiser separately we can have visualiser specific controls. There is a dedicated button for focus mode which should make that more discoverable and a better implementation of target mode which uses a slider. This has several benefits:
1. more discoverable
2. more obvious what is going on with the text prompts and a real slider control instead of mouse enter
3. there is no context menu getting in the way of the content

Changelog: UIDebugger Add visualizer target mode feature for selecting views in the z stack easily
Changelog: UIDebugger Add FocusMode button to visualiser toolbar

Reviewed By: mweststrate

Differential Revision: D47671658

fbshipit-source-id: 6f657f9d417280627457624660b934c9898cda58
2023-07-26 03:22:38 -07:00
Luke De Feo
8adf153380 Remove visualizer context menu
Summary: This isnt very discoverable and we can put functionality in the toolbar

Reviewed By: mweststrate

Differential Revision: D47670683

fbshipit-source-id: 8426ba05135f9a56f0a0952e94ac80480cd30a48
2023-07-26 03:22:38 -07:00
Luke De Feo
bf74877ff5 Move visualiser into folder pre split
Reviewed By: mweststrate

Differential Revision: D47664272

fbshipit-source-id: 7cc22b272b9298837d45976996d0197d5e5550f0
2023-07-26 03:22:38 -07:00
Luke De Feo
272d2d2106 Redesign Split Tree and visualiser into panels
Summary: This looks a lot neater and allows us to have separate dedicated visualiser header

Reviewed By: mweststrate

Differential Revision: D47626867

fbshipit-source-id: 843721853e0ff88837afbb9bf3f510a908160d12
2023-07-26 03:22:38 -07:00
Luke De Feo
0e15dce033 New Tree design
Summary:
1. Add indent guidess to all tree depths
2. Monospaced font
3. cleaned up alignment of icons
4. Gave everything a bit more space to breathe

Changelog: UI Debugger Tree UI refresh, added indent guides and fixed alignment

Reviewed By: mweststrate

Differential Revision: D47626869

fbshipit-source-id: e4509621cda6c254f7dd5a7ec9b99c13efb577f4
2023-07-26 03:22:38 -07:00
Luke De Feo
3891a5d61b Introduce selection for elements in z stack aka target mode
Summary:
The old layout plugins target mode would ask you which view you wanted to select when you clicked, the visualiser currently chooses for you based on size of the element.

Sometimes this isnt what you want so I have added a context menu with all the intersecting nodes from which you can select or focus

Reviewed By: lblasa

Differential Revision: D47589789

fbshipit-source-id: 9c9d0d7587b830aa72089267d9bcf2b687142574
2023-07-26 03:22:38 -07:00
Pranav Yadav
dca958cc9e publish-android - Bump actions/- checkout@v3.5.3, setup-java@v3.11.0 & cache@v3.3.1 (#4866)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-java@v3.11.0` & `actions/cache@v3.3.1`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-java@v3.11.0` changelog: https://github.com/actions/setup-java/releases/tag/v3.11.0
- `actions/cache@v3.3.1` changelog: https://github.com/actions/cache/releases/tag/v3.3.1

## Changelog:

[GENERAL] [SECURITY] - [Actions] `publish-android` - Bump `actions/`- `checkout@v3.5.3`, `setup-java@v3.11.0` & `cache@v3.3.1`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: aigoncharov

Differential Revision: D47755940

Pulled By: passy

fbshipit-source-id: 8cbd7c360b48a5948125ef01bf3ca08aca37f745
2023-07-25 09:42:47 -07:00
Pranav Yadav
24df607007 Delete and gitignore unwanted lock files (#4899)
Summary:
This diff deletes unnecessary lock files which were checked out but aren't necessary and `gitignore` those files:
- `yarn.lock`
- `js/yarn.lock`
- `react-native/yarn.lock`

## Changelog

[General] [Removed] - Delete unnecessary lock files.

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

Test Plan: - None

Reviewed By: aigoncharov

Differential Revision: D47755862

Pulled By: passy

fbshipit-source-id: 8e9a03b59df1a2891004de3edbd9c3569d2d6055
2023-07-25 09:41:24 -07:00