Commit Graph

7979 Commits

Author SHA1 Message Date
dependabot[bot]
35e0e8e915 Bump serde_yaml from 0.9.17 to 0.9.19 in /packer (#4570)
Summary:
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.17 to 0.9.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p>
<blockquote>
<h2>0.9.19</h2>
<ul>
<li>Fix message duplication between serde_yaml::Error's <code>Display</code> and <code>source()</code> (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/359">https://github.com/facebook/flipper/issues/359</a>, <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/360">https://github.com/facebook/flipper/issues/360</a>)</li>
</ul>
<h2>0.9.18</h2>
<ul>
<li>Add support for emitting Unicode characters over codepoint U+FFFF (<a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/356">https://github.com/facebook/flipper/issues/356</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4e1cbd8d2f"><code>4e1cbd8</code></a> Release 0.9.19</li>
<li><a href="f351fc7a12"><code>f351fc7</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/360">https://github.com/facebook/flipper/issues/360</a> from dtolnay/errorsource</li>
<li><a href="f27e4c5da3"><code>f27e4c5</code></a> Fix message duplication between error Display and source()</li>
<li><a href="fc039c6357"><code>fc039c6</code></a> Refer to std::error::Error trait as StdError</li>
<li><a href="7f1db12843"><code>7f1db12</code></a> Release 0.9.18</li>
<li><a href="248d6de914"><code>248d6de</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/358">https://github.com/facebook/flipper/issues/358</a> from dtolnay/unicode</li>
<li><a href="779f01676b"><code>779f016</code></a> Update U+1F389 test</li>
<li><a href="12b48b5547"><code>12b48b5</code></a> Pull in Unicode high codepoints fix from unsafe-libyaml 0.2.7</li>
<li><a href="b6f69579df"><code>b6f6957</code></a> Add test of Unicode larger than U+FFFF</li>
<li><a href="eac69a2a0b"><code>eac69a2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/serde-yaml/issues/357">https://github.com/facebook/flipper/issues/357</a> from dtolnay/stringescape</li>
<li>Additional commits viewable in <a href="https://github.com/dtolnay/serde-yaml/compare/0.9.17...0.9.19">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde_yaml&package-manager=cargo&previous-version=0.9.17&new-version=0.9.19)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: lblasa

Differential Revision: D43904930

Pulled By: passy

fbshipit-source-id: 8a61cf31f46eccdc4a36c87b701abd1f92f06a62
2023-03-08 10:22:19 -08:00
Pascal Hartig
174e641c1e Use Node 16 for RN example (#4584)
Summary:
Per title.

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

Reviewed By: lblasa

Differential Revision: D43904047

Pulled By: passy

fbshipit-source-id: 763bce56f3e8298e2f91632c99e7dd6ae1465c87
2023-03-08 10:17:54 -08:00
Lorenzo Blasa
11115501a2 fbjni and soloader versions from gradle.properties
Summary: ^

Reviewed By: passy

Differential Revision: D43879496

fbshipit-source-id: 93ee552d11772fcb5ada89c2364536978766fba4
2023-03-08 02:53:49 -08:00
Lorenzo Blasa
d8002de88c NDK version from gradle.properties
Summary:
^

With these changes, we can build the project by overriding these version from a gradle build.

    ./gradlew :assembleDebug -DNDK_VERSION=21.4.7075529 -DFBJNI_VERSION=0.2.2

Reviewed By: passy

Differential Revision: D43879098

fbshipit-source-id: 8790aa12a086373194d45687d70ceb73b07713b9
2023-03-08 02:53:49 -08:00
Pascal Hartig
859653e111 Build Linux executable
Summary: Currently, Flipper server cannot be used with Flipper Launcher on Linux because there is no `flipper` binary in the root of the directory. Adding a quick shell script bridges the call from the checked-in node binary and the server JS file.

Reviewed By: ardavank

Differential Revision: D43837781

fbshipit-source-id: d954ae21d5330aa549d4bc76aefb1d76af8e2c84
2023-03-08 02:35:24 -08:00
Lorenzo Blasa
bdf3dbe332 Export TimelineDataDescription
Summary: It wasn't exported, instead it was consumed by the 'flipper' deprecated module.

Reviewed By: fabiomassimo

Differential Revision: D43872434

fbshipit-source-id: 70a4a525c660f0779f942739311205417cef3834
2023-03-07 11:23:20 -08:00
Lorenzo Blasa
c839949fa4 MarkerTimeline add top margin as to center the 'point'
Summary: Without the margin, the point is displayed at the top-left which is not centrally aligned with both time and label.

Reviewed By: antonk52

Differential Revision: D43872394

fbshipit-source-id: 087c09e44c65ddaef79cfb25a860d7b4893ba072
2023-03-07 11:23:20 -08:00
Lorenzo Blasa
807544db4c MarkerTimeline remove top margin of Time
Summary: The margin was miss-aligning with the label.

Reviewed By: antonk52

Differential Revision: D43872373

fbshipit-source-id: 8a6ff8104c6e532d8139053aad221244c2cd5feb
2023-03-07 11:23:20 -08:00
Lorenzo Blasa
a7e523a77c MarkerTimeline set fixed decimals
Summary:
Set a fixed number of decimals for the 'ms'.
More doesn't give more insights and it messes with the overall layout.

Reviewed By: antonk52

Differential Revision: D43872203

fbshipit-source-id: 343278923ee27dbf884af41c997457bfba337ba8
2023-03-07 11:23:20 -08:00
Lorenzo Blasa
305de28f4e MarkerTimeline remove hover padding
Summary: Remove the bottom padding as this was not really making it any better.

Reviewed By: antonk52

Differential Revision: D43872178

fbshipit-source-id: 8302385d190c65000afda02b5c8aa9d272ccc271
2023-03-07 11:23:20 -08:00
Lorenzo Blasa
94587831d5 MarkerTimeline hover background color
Summary:
The hover background colour had complete disregard on the selected theme, both light and dark.

This change removes the gradient and instead sets a right hover background.

Reviewed By: antonk52

Differential Revision: D43872161

fbshipit-source-id: 4f0bfd97a2cb6bb9ceb7869dd38b37dc68ad6bb7
2023-03-07 11:23:20 -08:00
John Knox
ecab0f5eb8 Run yarn-audit-fix on website (#4578)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4578

```
yarn add -D yarn-audit-fix
yarn run yarn-audit-fix
```

Reviewed By: antonk52

Differential Revision: D43870273

fbshipit-source-id: d6a4a9ed149668f48356956b4bca681153eb1162
2023-03-07 08:14:03 -08:00
Pascal Hartig
51d90e6a40 Dep update
Summary: Same as the previous diff but for js-flipper.

Reviewed By: lblasa

Differential Revision: D43739851

fbshipit-source-id: ea85b132980241381efa4887fb02045ec921159c
2023-03-06 06:11:55 -08:00
Pascal Hartig
cfcad76e74 Demote Xcode select error to warning
Summary: This is firing regularly when people have a broken local setup.

Reviewed By: lawrencelomax

Differential Revision: D43834469

fbshipit-source-id: 1fbc2cf52f93046984e9846f8aed931106542b03
2023-03-06 04:54:36 -08:00
Pascal Hartig
16a91f1bbd Bump deps
Summary:
Hoping that this will fix our docs build.

Note that I also had to fix a syntax error in `extending/loading-custom-plugins.mdx` that
broke the build with:

```
SyntaxError: /Users/realpassy/fbsource/xplat/sonar/docs/extending/loading-custom-plugins.mdx: Expected corresponding JSX closing tag for <admonition>. (10:10)
   8 | <FbInternalOnly>
   9 | <admonition {...{"type":"caution"}}><p parentName="admonition">{`Within Meta, plugins sources are stored and loaded from `}<inlineCode parentName="p">{`~/fbsource/xplat/sonar/desktop/plugins`}</inlineCode>{`, in which case no further configuration is needed.`}</p><p parentName="admonition">{`If your team uses Flipper plugins that are stored outside `}<inlineCode parentName="p">{`fbsource`}</inlineCode>{`, please follow your team specific instructions.
> 10 | ::::`}</p></FbInternalOnly><p parentName="admonition">{`Flipper loads and runs plugins it finds in a configurable location. The paths searched are specified in `}<inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`. These `}<inlineCode parentName="p">{`pluginPaths`}</inlineCode>{` should contain one folder for each of the plugins it stores.`}</p><p parentName="admonition">{`An example config setting and plugin file structure is shown below:`}</p><p parentName="admonition"><inlineCode parentName="p">{`~/.flipper/config.json`}</inlineCode>{`:`}</p><pre parentName="admonition"><code parentName="pre" {...{"className":"language-bash"}}>{`{
     |           ^
  11 |   ...,
  12 |   "pluginPaths": ["~/flipper-plugins"]
  13 | }
client (webpack 5.74.0) compiled with 1 error

```

Reviewed By: ivanmisuno

Differential Revision: D43767006

fbshipit-source-id: 64288d63c305bc9a9c9b797110889a703c7dcfee
2023-03-06 03:31:54 -08:00
Pascal Hartig
13f9fa64ff Fix style guide generation
Summary:
The website generation fails on newer versions of `flipper-plugin` as it contains an import-time side effect. This leads to this error during build time:

```
[ERROR] Docusaurus server-side rendering could not render static page with path /docs/extending/style-guide/.
[INFO] It looks like you are using code that should run on the client-side only.
To get around it, try using `<BrowserOnly>` (https://docusaurus.io/docs/docusaurus-core/#browseronly) or `ExecutionEnvironment` (https://docusaurus.io/doc
s/docusaurus-core/#executionenvironment).
It might also require to wrap your client code in `useEffect` hook and/or import a third-party library dynamically (if any).
```

This ain't pretty but by wrapping the entire file in a single function that conditionally imports the `flipper-plugin` if we are indeed in a browser environment fixes the problem.

Reviewed By: antonk52

Differential Revision: D43773298

fbshipit-source-id: 8e1099249626ca9fe745ce51014491fe9674a5a4
2023-03-03 11:04:13 -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
Mohammed Abdel Raouf
0c442bf4b1 Fix searching for FlipperClient.h headers in productions builds if PRODUCTION=1 passed (#4275)
Summary:
In newer builds of react-native if you passed parameters PRODUCTION=1, flipper pods won't get installed
you can see that in their codebase here [react_native_pods.rb](6a43fafd78/scripts/react_native_pods.rb (L140))

so when building ios `react-native-flipper` set `compiler_flags = '-DFB_SONARKIT_ENABLED=1'` in the podspec file
which initializeFlipper and lead to the following error:
`node_modules/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h:12:9: 'FlipperKit/FlipperClient.h' file not found`

## Changelog
use same condition as react-native to wrap `s.compiler_flags = compiler_flags`
and conditionally pass `compiler_flags = '-DFB_SONARKIT_ENABLED=1'` to compiler_flags to avoid build problems

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

Test Plan:
To reproduce
- create new react-native app
- install react-native-flipper `yarn add react-native-flipper`
- run `env PRODUCTION=1  npx pod-install `
- run `yarn ios`

Before patch:
```sh
node_modules/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h:12:9: 'FlipperKit/FlipperClient.h' file not found
```

After patch:
```sh
▸ Build Succeeded
success Successfully built the app
```

Reviewed By: jknoxville

Differential Revision: D41298345

Pulled By: mweststrate

fbshipit-source-id: fb46772d46b8105fccb1abb673502bca428eea1d
2023-03-02 10:07:52 -08:00
generatedunixname89002005306973
fa987e466c Flipper Snapshot Bump: v0.183.1-SNAPSHOT
Summary: Releasing snapshot version 0.183.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D43692457

fbshipit-source-id: 1b1f21e2bcb495a640143cd1012e36f2382ed959
2023-03-01 10:06:37 -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
Lorenzo Blasa
3a36c269e7 Element name to not overflow
Summary: ^

Reviewed By: LukeDefeo, antonk52

Differential Revision: D43697303

fbshipit-source-id: 4acb6d50c02581688bcfd9ad65bf107412cffa42
2023-03-01 08:51:32 -08:00
Luke De Feo
914b32c383 Add framework event infra
Summary:
Added infra for collecting events from UI frameworks.
1. Framework event metadata captures all the static metadata around the event. This allows to us to not send the same metadata in every event as well as populate the monitoring drop down immediately. This is sent in init since this information is static
2. Framework event itself is quite bare at the moment. It will have thread and more attributes in the future

The UIdebugger litho support ulitity has been simplified now there are 3 extension points.

Context renamed to UIDContext since it is referenced in app initialisers where the android context is also imported and it create a naming collision

Reviewed By: lblasa

Differential Revision: D42606933

fbshipit-source-id: a419f3fd424c533d586813004c40b68feafd9a2e
2023-03-01 08:49:49 -08:00
Andrey Goncharov
39b14fc428 Track socket usage during file download
Summary: Should help to investigate further issues like https://fb.workplace.com/groups/flippersupport/permalink/1577911229356196/

Reviewed By: passy

Differential Revision: D43692927

fbshipit-source-id: 723b051f748946c89ece85fb6c11c40705196fe4
2023-03-01 05:26:00 -08:00
Fabio Carballo
fa74ebba68 Restore TimeMachine in Flipper
Summary:
The goal is to restore the *TimeMachine* functionality in Flipper while the new UI Debugger is working in a revamped version. This version was previously removed in D42573698 (b31f8c8755).

This time machine functionality will only be available for *LithoView* that are backed by a *ComponentTree*.

Below you can find a high-level overview of the current schema:

{F884011465}

Reviewed By: LukeDefeo, adityasharat

Differential Revision: D43574130

fbshipit-source-id: fe9d661e5fcce9655e70be4785652e7048dade54
2023-02-27 12:19:37 -08:00
Sim Sun
7d99913416 Bump SoLoader version to 0.10.5 in readme
Summary: Use system linker by default on Android N and above devices.

Reviewed By: lblasa

Differential Revision: D43575139

fbshipit-source-id: 98ff074967ce431cdda46d02cbfaa2b6130efc39
2023-02-24 11:18:27 -08:00
Lorenzo Blasa
b6f3be01f9 Remove client connection timeout
Summary: Having a timeout of 10 seconds can create a connection loop if Desktop is slow and doesn't provide a client certificate within the timeframe.

Reviewed By: antonk52

Differential Revision: D43405793

fbshipit-source-id: b1eebb4d2d66f02000f15a9889992ed0cc79bde2
2023-02-24 07:20:54 -08:00
Lorenzo Blasa
b062ee0629 Fix feedback prompt on dark mode
Summary:
https://pxl.cl/2tKXq

It was reported the feedback prompt title was unreadable.

Reviewed By: mweststrate

Differential Revision: D43533800

fbshipit-source-id: f756a9822c479105dae890159518c05c99405fb7
2023-02-23 05:53:31 -08:00
Lorenzo Blasa
26a7e17df6 Remove unused import
Summary: ^

Reviewed By: mweststrate

Differential Revision: D43533768

fbshipit-source-id: ffcec138c294ad97bf7879e600894e2615a03f45
2023-02-23 05:53:31 -08:00
Sachin Tewari
2e31247486 Move flipper-fresco-plugin to fresco's repo from flipper's repo (#4546)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4546

Move flipper-fresco-plugin to fresco's repo from flipper's repo

Reviewed By: passy

Differential Revision: D43467895

fbshipit-source-id: efea88563cf931baf4bda0c8bbdfbe41d0f769c5
2023-02-23 04:44:41 -08:00
Sash Zats
11f5330d7c Basic flipper plugin to record intents
Summary:
The plugin is inteded to record intents being dispatched and handled
Current version is pretty simple and just records the intents correctly handled by IG app only (for now, integration is simple enough to add to FB, too)
Plugin prints the data associated with the target

Differential Revision: D43494264

fbshipit-source-id: 3e3cd41ade1d083990d15b3c2eb815db157c7163
2023-02-23 01:27:49 -08:00
dependabot[bot]
0ba2b27a41 Bump js-flipper from 0.146.1 to 0.182.0 in /desktop (#4542)
Summary:
Bumps [js-flipper](https://github.com/facebook/flipper) from 0.146.1 to 0.182.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/flipper/releases">js-flipper's releases</a>.</em></p>
<blockquote>
<h2>v0.182.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.181.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.180.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.179.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.178.1</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.178.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.177.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.176.1</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.176.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.175.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.174.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.173.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.172.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a></p>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5be020479d"><code>5be0204</code></a> Flipper Release: v0.182.0</li>
<li><a href="95ef9bf585"><code>95ef9bf</code></a> Preserve scroll position after exiting focus mode</li>
<li><a href="d28748e69f"><code>d28748e</code></a> Dont allow focusing nodes with zero area</li>
<li><a href="f12d8221d6"><code>f12d822</code></a> Fixed issue where visualiser would crop bottom few pixels of screen</li>
<li><a href="d24343d2ac"><code>d24343d</code></a> Make the visualiser scrollable and remember width</li>
<li><a href="0651bb27df"><code>0651bb2</code></a> Fix automatic scrolling bug</li>
<li><a href="8cae1f0de6"><code>8cae1f0</code></a> On select expand ancestory</li>
<li><a href="1cd916e414"><code>1cd916e</code></a> Increase indent and automatically scroll horiztonally on selection</li>
<li><a href="d1e6b27358"><code>d1e6b27</code></a> Remove gap between tree scroll bar and visualiser resize handle</li>
<li><a href="8581aa1944"><code>8581aa1</code></a> Memoise selection of nodes</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.146.1...v0.182.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=js-flipper&package-manager=npm_and_yarn&previous-version=0.146.1&new-version=0.182.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: ivanmisuno

Differential Revision: D43438544

Pulled By: passy

fbshipit-source-id: 2ea905337dc6394e13e4b0cb2576b0397b8b9f3b
2023-02-22 09:38:04 -08:00
Andrey Goncharov
618f58b390 Verbose logging for iOS cert exchange
Summary: Helps debugging cert exchange problems.

Reviewed By: lawrencelomax

Differential Revision: D43495107

fbshipit-source-id: 499c08ec6ab15a351d74673f0a5edf9abe5af1b1
2023-02-22 04:42:34 -08:00
Andrey Goncharov
8f2ae1cc02 Back out "Remove FBDefines from sonar"
Summary:
Original commit changeset: ff6db8e5e4bb

Original Phabricator Diff: D43408140 (b0a6b0f430)

It breaks the build for our iOS Sample app.- https://github.com/facebook/flipper/actions/runs/4212014740

Reviewed By: lblasa

Differential Revision: D43466846

fbshipit-source-id: e06a6f57b7fff08791d875e20825fbe5e0db0b37
2023-02-21 10:34:20 -08:00
Adam Ernst
b0a6b0f430 Remove FBDefines from sonar
Summary: This appears to be unreferenced and it constantly confuses our header autocomplete. Remove.

Reviewed By: d16r

Differential Revision: D43408140

fbshipit-source-id: ff6db8e5e4bbda394197168680cf8d15b07666c3
2023-02-18 08:16:02 -08:00
generatedunixname89002005306973
3e49fcb6d6 Flipper Snapshot Bump: v0.182.1-SNAPSHOT
Summary: Releasing snapshot version 0.182.1-SNAPSHOT

Reviewed By: ivanmisuno

Differential Revision: D43389079

fbshipit-source-id: 771a6f85fc903e0d22c527023c00e78a1049bb46
2023-02-17 08:04:32 -08:00
generatedunixname89002005306973
5be020479d Flipper Release: v0.182.0
Summary: Releasing version 0.182.0

Reviewed By: ivanmisuno

Differential Revision: D43389080

fbshipit-source-id: 3a59082194d24c138fbd2c9bcc2e984b46c6f54e
2023-02-17 08:04:32 -08:00
Luke De Feo
95ef9bf585 Preserve scroll position after exiting focus mode
Summary: Previously we would scroll back to the top of the list

Reviewed By: passy, ivanmisuno

Differential Revision: D43390481

fbshipit-source-id: ce2d5d57d35b22e87a538720fe2760707a6bc058
2023-02-17 04:10:17 -08:00
Luke De Feo
d28748e69f Dont allow focusing nodes with zero area
Summary: If you focused a node with zero area (e.g a fragment) it would make the visualiser disappear. Simple solution is to prevent this in this case

Reviewed By: mweststrate

Differential Revision: D43363219

fbshipit-source-id: 8035db47486a2872fd86a5336e9fcaabeb0016a6
2023-02-17 02:45:05 -08:00
Luke De Feo
f12d8221d6 Fixed issue where visualiser would crop bottom few pixels of screen
Summary:
Fixes https://fb.workplace.com/groups/443457641253219/permalink/522118536720462/

On android for some reason our display metrics for the application, activity and winow were smaller than the decor view. We were using the root view as the base static view for the visualiser with overflow hidden. Since it will slightly smaller than the decor view we were losing some of the lower pixels of the snapshot

The decor view is the one that is actually snapshot so any bounds for nodes above are meaningless . The fix is to simply have the visualiser start at the snapshot view. We know this bounds is correct.

Tested on ios and android and all looks ok

Reviewed By: lblasa

Differential Revision: D43356523

fbshipit-source-id: 4d6177c8242365f33b1d64fc149a10baff7c85d6
2023-02-17 02:45:05 -08:00
Luke De Feo
d24343d2ac Make the visualiser scrollable and remember width
Summary:
Previously If you set the visualiser too wide, the height adjusts with the aspect ratio and  the bottom was cut off and there was no way to scroll. Have added a scrollbar if it exceeds the available height

Also the width state was promoted to an atom so the users resize amount is preserved when moving between plugins

A better solution might be to prevent the visualiser from getting too wide for the available hieght but it get complex when the window resizes.

Reviewed By: lblasa

Differential Revision: D43351294

fbshipit-source-id: f618a69ed025214593a74b952ce75c5fd98447cd
2023-02-17 02:45:05 -08:00
Luke De Feo
0651bb27df Fix automatic scrolling bug
Summary:
Fixes https://fb.workplace.com/groups/443457641253219/permalink/522121466720169/

For context see changelog.

The issue was because when an update comes in it creates an entirely new treeList. Since we were accessing that treeList in useEffect it was added to the dependency array. Therefore when an update came in we would scroll back to the last selected node. This effect was only meant to run when the selection changed in the visualiser. To fix we have to put the data it depends on in a ref so it can access the latest value without needing this data in the dependency array

changelog: UIDebugger Fix bug where if video playing on android and if element selected it would sometimes jump back to selected element when you scroll away

Reviewed By: mweststrate

Differential Revision: D43347501

fbshipit-source-id: f03bb32ddfa7828a4742d1a57e9be133a455ec30
2023-02-17 02:45:05 -08:00
Luke De Feo
8cae1f0de6 On select expand ancestory
Summary: Previously when selecting from the visualiser nothing would happen in the tree if one of the parents was collapsed

Reviewed By: lblasa

Differential Revision: D43318177

fbshipit-source-id: 7bf9296dec2ca82e3f983b4cf2676ea8741a9d0e
2023-02-17 02:45:05 -08:00
Luke De Feo
1cd916e414 Increase indent and automatically scroll horiztonally on selection
Summary:
Indent is made bigger so the horizontal lines have more space and the whole thing can breath more. To componesate the view scroll horiztontally so that the tree node is always visible. Was also able to clean up the hierachy a bit

changelog: increase tree indent and automatically scroll both horizontally and vertically when selecting an element

Reviewed By: lblasa

Differential Revision: D43311566

fbshipit-source-id: 53bc7bd55027e87fdecadac9aa8bc41612bb684a
2023-02-17 02:45:05 -08:00
Luke De Feo
d1e6b27358 Remove gap between tree scroll bar and visualiser resize handle
Summary:
So much tidier

changelog: UIDebugger remove gap between tree and visualiser

Reviewed By: lblasa

Differential Revision: D43307743

fbshipit-source-id: ceec9b3b164c93ecadfe8c0b7299a978b2915e3b
2023-02-17 02:45:05 -08:00
Luke De Feo
8581aa1944 Memoise selection of nodes
Summary:
For the visualiser we use the same trick as with the hover state. We subscribe to selection changes and only render if the prev or new state concerns us.

For the tree we change from object identity to the node id + and indent guide are added to the memoisation equal check.

Depending on teh change this tree memoisation can vary in effectiveness. If you go from nothing selecting to selecting the top element nothing is memoised since react needs to render every element to draw the indent guide. If you have somethign selected and select a nearby element the memoisation works well.

There are ways to improve this more down the road

changelog: UIDebugger improve performance of selecting nodes

Reviewed By: lblasa

Differential Revision: D43305979

fbshipit-source-id: 5d90e806ed7b6a8401e9968be398d4a67ed0c294
2023-02-17 02:45:05 -08:00
Pascal Hartig
786ae04d21 Back out "Bump androidx.sqlite:sqlite-framework from 2.2.0 to 2.3.0"
Summary:
Original commit changeset: ab279ff968a1

Original Phabricator Diff: D43305296 (f0b7e8a5d2)

 ---

We'd first have to upgrade our SDK to 33 for this to build: https://github.com/facebook/flipper/actions/runs/4195374373/jobs/7274823939

Reviewed By: ivanmisuno

Differential Revision: D43356641

fbshipit-source-id: 8bc4ff2f86052cfa26386288bf584d6f5048526e
2023-02-16 09:21:48 -08:00
Pascal Hartig
383c5c60fe Update react native podfile lock
Summary:
This is to fix the flakiness in our gem installation step: https://github.com/facebook/flipper/actions/runs/4194007653/jobs/7271643029

Those failures all arise from the environment where our lockfile is not on the latest version and the GitHub Action tries (and fails) to downgrade the installation.

I used my previously updated gem release (D43306715) to update the lockfile.

Reviewed By: ivanmisuno

Differential Revision: D43306986

fbshipit-source-id: 7450c2d23ff74f92a850c0989ed62c1d2acf7bdf
2023-02-16 08:28:01 -08:00
generatedunixname89002005306973
0efda5b154 Flipper Snapshot Bump: v0.181.1-SNAPSHOT
Summary: Releasing snapshot version 0.181.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D43351297

fbshipit-source-id: 84b32f4778d0cb651b7a43158f5e5cb9696e1ba2
2023-02-16 07:04:28 -08:00
generatedunixname89002005306973
690a8df436 Flipper Release: v0.181.0
Summary: Releasing version 0.181.0

Reviewed By: lblasa

Differential Revision: D43351298

fbshipit-source-id: ac2196a1780ef58c04c20f56ea46bf9700cababb
2023-02-16 07:04:28 -08:00