Commit Graph

8457 Commits

Author SHA1 Message Date
Luke De Feo
9d0b8ac0fe Align badge in tree
Reviewed By: lblasa

Differential Revision: D47520030

fbshipit-source-id: 01466aff57d048a50803366957396abeb76d5649
2023-07-19 08:58:20 -07:00
Luke De Feo
34f6b100d7 Refactor node highlighting
Summary: The previous approach would set the atom many times causing several unnecessary renders

Reviewed By: lblasa

Differential Revision: D47519869

fbshipit-source-id: 536334c892334035a6c0fefc86a2e205b2c9769d
2023-07-19 08:58:20 -07:00
Luke De Feo
b17c1be12f Ensure hover state of visualiser doesnt go off when modal open
Summary: I was experiencing some odd behaviour and locks ups from deep within Ant d. It seems to be related to the fact that tooltips for the visualiser were showing up when there was a modal on top.

Reviewed By: lblasa

Differential Revision: D47519848

fbshipit-source-id: d67edaedba2910069ba1eb424548de55c2badff3
2023-07-19 08:58:20 -07:00
Luke De Feo
a6bc8933cc No longer autoscroll when selecting via tree
Summary:
Added selection source concept to onSelect callback. This allows us to only autoscroll the tree when selection source is the visualiser. We had feedback that the horizontal autoscrolling whilst using the tree was unhelpful.

A side benefit of selection source is better tracking of how people use kb, tree vs visualiser to select things

Changelog: UIDebugger only autoscroll horizontally when selecting via the visualiser

Reviewed By: lblasa

Differential Revision: D47334078

fbshipit-source-id: d7eadddb8d3d0fd428d5c294b2dccc2f1efa5a95
2023-07-19 08:58:20 -07:00
Luke De Feo
d9c8dbf404 Fix react error
Summary: It was complaining about no key for items in a list

Reviewed By: antonk52

Differential Revision: D47396639

fbshipit-source-id: c3d5cb7205dbe1c343d109e22f43e5756a071119
2023-07-19 08:58:20 -07:00
Lorenzo Blasa
336c8c3159 Enable Lunr search bar
Summary: ^

Reviewed By: jknoxville

Differential Revision: D47548867

fbshipit-source-id: 462496da3d2668f9991e66381ca5ca0dd9c45ea9
2023-07-19 07:00:09 -07:00
Lorenzo Blasa
532f6ff1ee App Inspect rounded container
Summary: ^

Reviewed By: antonk52

Differential Revision: D47591057

fbshipit-source-id: 5f3f308fb252245ebe510dd98b4cbd7ea7c6e27e
2023-07-19 06:12:07 -07:00
dependabot[bot]
be9e645b53 Bump anyhow from 1.0.71 to 1.0.72 in /packer (#4953)
Summary:
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.71 to 1.0.72.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/anyhow/releases">anyhow's releases</a>.</em></p>
<blockquote>
<h2>1.0.72</h2>
<ul>
<li>Documentation improvements</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="e458996b0a"><code>e458996</code></a> Release 1.0.72</li>
<li><a href="660fb0f068"><code>660fb0f</code></a> Opt in to generate-link-to-definition when building on docs.rs</li>
<li><a href="24d9166581"><code>24d9166</code></a> Add CI job using minimal-versions</li>
<li><a href="2c913b3078"><code>2c913b3</code></a> Remove .clippy.toml in favor of respecting rust-version from Cargo.toml</li>
<li><a href="1f17666ef1"><code>1f17666</code></a> Ignore needless_else clippy lint in test suite</li>
<li><a href="6046674814"><code>6046674</code></a> Show error details during miri setup in CI</li>
<li><a href="dffcb4bf6c"><code>dffcb4b</code></a> Revert &quot;Temporarily disable miri CI&quot;</li>
<li><a href="438fec6036"><code>438fec6</code></a> Temporarily disable miri CI</li>
<li>See full diff in <a href="https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anyhow&package-manager=cargo&previous-version=1.0.71&new-version=1.0.72)](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/4953

Reviewed By: antonk52

Differential Revision: D47553549

Pulled By: passy

fbshipit-source-id: 4486ad16fba61214dbc0749867498eca25517ca6
2023-07-19 05:09:38 -07:00
Pranav Yadav
8b2e1cc8f8 Upgrade to Gradle 8.1.1 (#4907)
Summary:
Upgrade to Gradle `8.1.1`

Done using:

```bash
./gradlew wrapper --gradle-version=8.1.1 --distribution-type=all
```

This is to align with the bump to gradle `8.x` in React Native.

## Changelog

[GENERAL] [SECURITY] - Upgrade to Gradle `8.1.1`

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

Test Plan: - CI checks should pass & builds should be successful without any errors.

Reviewed By: antonk52

Differential Revision: D47553708

Pulled By: passy

fbshipit-source-id: a0ab9ab732a254c563d8cb55b277f73571da8927
2023-07-19 02:47:42 -07:00
vlsido
2427ba754c upgrade react-devtools to v4.28.0 (#4948)
Summary:
allow-large-files

Resolved issue with react-devtools v4.27.7 (duplicated backend activation with multiple renderers)

## Changelog

upgraded react-devtools to v4.28.0

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

Test Plan: in flipper/desktop/plugins/public/reactdevtools/ I run yarn upgrade react-devtools-core

Reviewed By: antonk52

Differential Revision: D47553560

Pulled By: passy

fbshipit-source-id: ba315047fe9c71628aa8f3d934e9a092b61bff4e
2023-07-19 02:15:58 -07:00
dependabot[bot]
870bc9bd58 Bump tar from 0.4.38 to 0.4.39 in /packer (#4954)
Summary:
Bumps [tar](https://github.com/alexcrichton/tar-rs) from 0.4.38 to 0.4.39.
<details>
<summary>Commits</summary>
<ul>
<li><a href="c77f47cb1b"><code>c77f47c</code></a> Bump to 0.4.39</li>
<li><a href="1fd8b4ef30"><code>1fd8b4e</code></a> feat: setting permission mask in <code>Entry</code> and <code>Archive</code> (<a href="https://redirect.github.com/alexcrichton/tar-rs/issues/330">https://github.com/facebook/flipper/issues/330</a>)</li>
<li><a href="702598615e"><code>7025986</code></a> test: temporary fix for UNC path parsing issue (<a href="https://redirect.github.com/alexcrichton/tar-rs/issues/331">https://github.com/facebook/flipper/issues/331</a>)</li>
<li><a href="f4f439ca0c"><code>f4f439c</code></a> Preserve symlink mtimes (<a href="https://redirect.github.com/alexcrichton/tar-rs/issues/289">https://github.com/facebook/flipper/issues/289</a>)</li>
<li><a href="c3e2cb848a"><code>c3e2cb8</code></a> archive: allow preserving ownerships when unpacking (<a href="https://redirect.github.com/alexcrichton/tar-rs/issues/276">https://github.com/facebook/flipper/issues/276</a>)</li>
<li>See full diff in <a href="https://github.com/alexcrichton/tar-rs/compare/0.4.38...0.4.39">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tar&package-manager=cargo&previous-version=0.4.38&new-version=0.4.39)](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/4954

Reviewed By: antonk52

Differential Revision: D47553553

Pulled By: passy

fbshipit-source-id: 272b4690a5ae8d3ea9a7703f946007ce40f54030
2023-07-19 02:00:51 -07:00
dependabot[bot]
255292d782 Bump com.google.protobuf:protobuf-java from 3.23.2 to 3.23.4 (#4936)
Summary:
Bumps [com.google.protobuf:protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.23.2 to 3.23.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="2c5fa078d8"><code>2c5fa07</code></a> Updating version.json and repo version numbers to: 23.4</li>
<li><a href="da85a3a96f"><code>da85a3a</code></a> Update upb dep to the latest 23.x commit (<a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13215">#13215</a>)</li>
<li><a href="571fae48b0"><code>571fae4</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13106">#13106</a> from chadlwilson/backport-bump-guava-3201</li>
<li><a href="40d577782b"><code>40d5777</code></a> deps: Update Guava to 32.0.1</li>
<li><a href="62d7b37a42"><code>62d7b37</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13090">#13090</a> from fowles/23.x</li>
<li><a href="3312fc23c7"><code>3312fc2</code></a> update stale files</li>
<li><a href="0c70d95140"><code>0c70d95</code></a> Add dllexport_decl for generated default instance. (<a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13085">#13085</a>)</li>
<li><a href="528e673fcc"><code>528e673</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13088">#13088</a> from fowles/23.x</li>
<li><a href="1291253618"><code>1291253</code></a> Fix a typo</li>
<li><a href="6241d42a2a"><code>6241d42</code></a> Modify port_def.inc to ignore -Wshadow warning (<a href="https://redirect.github.com/protocolbuffers/protobuf/issues/13059">#13059</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/protocolbuffers/protobuf/compare/v3.23.2...v3.23.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.protobuf:protobuf-java&package-manager=gradle&previous-version=3.23.2&new-version=3.23.4)](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/4936

Reviewed By: antonk52

Differential Revision: D47553575

Pulled By: passy

fbshipit-source-id: 03329ecc99b743f7370a1b398d12510b5941c8ea
2023-07-18 10:43:58 -07:00
dependabot[bot]
8028fef403 Bump serde from 1.0.164 to 1.0.171 in /packer (#4935)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.164 to 1.0.171.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.171</h2>
<ul>
<li>Support <code>derive(Deserialize)</code> on unit structs that have const generics (<a href="https://redirect.github.com/serde-rs/serde/issues/2500">https://github.com/facebook/flipper/issues/2500</a>, thanks <a href="https://github.com/Baptistemontan"><code>@​Baptistemontan</code></a>)</li>
</ul>
<h2>v1.0.170</h2>
<ul>
<li>Produce error message on suffixed string literals inside serde attributes (<a href="https://redirect.github.com/serde-rs/serde/issues/2242">https://github.com/facebook/flipper/issues/2242</a>)</li>
<li>Support single identifier as unbraced default value for const generic parameter (<a href="https://redirect.github.com/serde-rs/serde/issues/2449">https://github.com/facebook/flipper/issues/2449</a>)</li>
</ul>
<h2>v1.0.169</h2>
<ul>
<li>Add Deserializer::deserialize_identifier support for adjacently tagged enums (<a href="https://redirect.github.com/serde-rs/serde/issues/2475">https://github.com/facebook/flipper/issues/2475</a>, thanks <a href="https://github.com/Baptistemontan"><code>@​Baptistemontan</code></a>)</li>
<li>Fix unused_braces lint in generated Deserialize impl that uses braced const generic expressions (<a href="https://redirect.github.com/serde-rs/serde/issues/2414">https://github.com/facebook/flipper/issues/2414</a>)</li>
</ul>
<h2>v1.0.168</h2>
<ul>
<li>Allow <code>serde::de::IgnoredAny</code> to be the type for a <code>serde(flatten)</code> field (<a href="https://redirect.github.com/serde-rs/serde/issues/2436">https://github.com/facebook/flipper/issues/2436</a>, thanks <a href="https://github.com/Mingun"><code>@​Mingun</code></a>)</li>
<li>Allow larger preallocated capacity for smaller elements (<a href="https://redirect.github.com/serde-rs/serde/issues/2494">https://github.com/facebook/flipper/issues/2494</a>)</li>
</ul>
<h2>v1.0.167</h2>
<ul>
<li>Add serialize and deserialize impls for <code>RangeFrom</code> and <code>RangeTo</code> (<a href="https://redirect.github.com/serde-rs/serde/issues/2471">https://github.com/facebook/flipper/issues/2471</a>, thanks <a href="https://github.com/tbu"><code>@​tbu</code></a>-)</li>
</ul>
<h2>v1.0.166</h2>
<ul>
<li>Add <code>no-alloc</code> category to crates.io metadata</li>
</ul>
<h2>v1.0.165</h2>
<ul>
<li>Fix incorrect count of fields passed to tuple deserialization methods when using <code>serde(skip_deserializing)</code> attributes (<a href="https://redirect.github.com/serde-rs/serde/issues/2466">https://github.com/facebook/flipper/issues/2466</a>, thanks <a href="https://github.com/Mingun"><code>@​Mingun</code></a>)</li>
<li>Fix <code>-Zminimal-versions</code> build</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="03da66c805"><code>03da66c</code></a> Release 1.0.171</li>
<li><a href="f75426f47e"><code>f75426f</code></a> Inline visitor_expr of unit struct deserialize impl</li>
<li><a href="662fc3861c"><code>662fc38</code></a> Add test of const-generic unit struct where-clause edge case</li>
<li><a href="28c10020b9"><code>28c1002</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2500">https://github.com/facebook/flipper/issues/2500</a> from Baptistemontan/derive_generic_unit_struct</li>
<li><a href="89c8d85de9"><code>89c8d85</code></a> allow Deserialize derive to handle generic unit structs</li>
<li><a href="6502838f27"><code>6502838</code></a> Release 1.0.170</li>
<li><a href="c93a0f335a"><code>c93a0f3</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2499">https://github.com/facebook/flipper/issues/2499</a> from dtolnay/strsuffix</li>
<li><a href="8264e002a7"><code>8264e00</code></a> Reject suffixed string literals inside serde attrs</li>
<li><a href="117ef22142"><code>117ef22</code></a> Add ui test with suffixed string literals in attribute</li>
<li><a href="3fb5e71c33"><code>3fb5e71</code></a> Release 1.0.169</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.171">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.164&new-version=1.0.171)](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/4935

Reviewed By: antonk52

Differential Revision: D47553569

Pulled By: passy

fbshipit-source-id: c490d74d44e625b00bf30b83d0bfe2474879b7ea
2023-07-18 10:35:35 -07:00
dependabot[bot]
3962530faa Bump serde_yaml from 0.9.21 to 0.9.23 in /packer (#4952)
Summary:
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.21 to 0.9.23.
<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.23</h2>
<ul>
<li>Documentation improvements</li>
</ul>
<h2>0.9.22</h2>
<ul>
<li>Update indexmap dependency to version 2</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6b212e08b3"><code>6b212e0</code></a> Release 0.9.23</li>
<li><a href="cc83b0a220"><code>cc83b0a</code></a> Opt in to generate-link-to-definition when building on docs.rs</li>
<li><a href="954e38428c"><code>954e384</code></a> Make minimal-versions job consistent with other repos</li>
<li><a href="060eb8669c"><code>060eb86</code></a> Release 0.9.22</li>
<li><a href="b12ad38d63"><code>b12ad38</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/serde-yaml/issues/377">https://github.com/facebook/flipper/issues/377</a> from dtolnay/indexmap</li>
<li><a href="c418ad56c3"><code>c418ad5</code></a> Update indexmap dependency to version 2</li>
<li><a href="f1cd9e6b7f"><code>f1cd9e6</code></a> Remove .clippy.toml in favor of respecting rust-version from Cargo.toml</li>
<li><a href="147103c4f4"><code>147103c</code></a> Show error details during miri setup in CI</li>
<li><a href="622553f382"><code>622553f</code></a> Fix unused import warnings in test under cfg miri</li>
<li><a href="2037c7e62b"><code>2037c7e</code></a> Fix new unused_mut detected by nightly-2023-04-30</li>
<li>See full diff in <a href="https://github.com/dtolnay/serde-yaml/compare/0.9.21...0.9.23">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.21&new-version=0.9.23)](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/4952

Reviewed By: antonk52

Differential Revision: D47553552

Pulled By: passy

fbshipit-source-id: 2d90115eebe71748270d813e26cea7053e96bdb0
2023-07-18 10:26:08 -07:00
Andrey Goncharov
b55d730dd7 Integrate filter exceptions with DataTable
Summary: See previous diff for context

Reviewed By: LukeDefeo

Differential Revision: D47472005

fbshipit-source-id: 6e7d8873d275f826c38fab16c72e1621fd2784e1
2023-07-18 05:25:59 -07:00
Andrey Goncharov
8397b2bab8 Add filter exceptions to DataSource
Summary: Filter exceptions allow us to add singular items to table views. Extremely useful for Bloks Debugger where we have to jump between multiple types of rows that could be filtered out

Reviewed By: LukeDefeo

Differential Revision: D47472006

fbshipit-source-id: 74d21a65d364ec5ab88652effc06aade20ad80b2
2023-07-18 05:25:59 -07:00
dependabot[bot]
cba5af60c8 Bump ts-jest from 29.1.0 to 29.1.1 in /js/js-flipper (#4912)
Summary:
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.0 to 29.1.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/kulshekhar/ts-jest/releases">ts-jest's releases</a>.</em></p>
<blockquote>
<h2>v29.1.1</h2>
<p>Please refer to <a href="https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md">CHANGELOG.md</a> for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md">ts-jest's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/kulshekhar/ts-jest/compare/v29.1.0...v29.1.1">29.1.1</a> (2023-06-23)</h2>
<h3>Security Fixes</h3>
<ul>
<li>bump <code>semver</code> to <code>7.5.3</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9670787b08"><code>9670787</code></a> chore(release): 29.1.1 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4173">https://github.com/facebook/flipper/issues/4173</a>)</li>
<li><a href="8c51d3252c"><code>8c51d32</code></a> build(deps): Update actions/checkout digest to c85c95e (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4172">https://github.com/facebook/flipper/issues/4172</a>)</li>
<li><a href="0f82024897"><code>0f82024</code></a> build(deps): bump semver from 7.3.7 to 7.5.2 in /examples/react-app (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4170">https://github.com/facebook/flipper/issues/4170</a>)</li>
<li><a href="431dca69cd"><code>431dca6</code></a> build(deps): bump semver from 7.5.1 to 7.5.2 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4169">https://github.com/facebook/flipper/issues/4169</a>)</li>
<li><a href="f4f7daeafd"><code>f4f7dae</code></a> build(deps): Update <a href="https://github.com/types"><code>@​types</code></a> packages (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4164">https://github.com/facebook/flipper/issues/4164</a>)</li>
<li><a href="5e551acf30"><code>5e551ac</code></a> build(deps): Update dependency <code>@​formatjs/ts-transformer</code> to ^3.13.3 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4165">https://github.com/facebook/flipper/issues/4165</a>)</li>
<li><a href="2925d0e0ab"><code>2925d0e</code></a> build(deps): Update dependency <code>@​formatjs/ts-transformer</code> to ^3.13.2 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4160">https://github.com/facebook/flipper/issues/4160</a>)</li>
<li><a href="71c7786128"><code>71c7786</code></a> build(deps): Update <a href="https://github.com/types"><code>@​types</code></a> packages to ^5.59.9 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4159">https://github.com/facebook/flipper/issues/4159</a>)</li>
<li><a href="099102e4a6"><code>099102e</code></a> build(deps): Update dependency typescript to ~5.1.3 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4157">https://github.com/facebook/flipper/issues/4157</a>)</li>
<li><a href="6e5a29414e"><code>6e5a294</code></a> build(deps): Update dependency eslint to ^8.42.0 (<a href="https://redirect.github.com/kulshekhar/ts-jest/issues/4158">https://github.com/facebook/flipper/issues/4158</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/kulshekhar/ts-jest/compare/v29.1.0...v29.1.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ts-jest&package-manager=npm_and_yarn&previous-version=29.1.0&new-version=29.1.1)](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/4912

Reviewed By: lblasa

Differential Revision: D47294571

Pulled By: passy

fbshipit-source-id: c113023f8f1a2c89a199191b233b6ae1c2e8ec5d
2023-07-18 04:38:15 -07:00
Anton Kastritskiy
f8e51e13ef remove LeftNavButton
Summary: This was added initially for login button only which was redundant. Fixed in this diff

Reviewed By: elboman

Differential Revision: D47517366

fbshipit-source-id: 58191c618fe2e85d6a06e444029a308223b4e235
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
20ebb75f97 lift NoDevices from TroubleshootingGuide
Reviewed By: lblasa

Differential Revision: D47474152

fbshipit-source-id: 26f3857890cf32ccae8fdd017872d4d12684299f
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
5d2284ce4a No device warning
Reviewed By: LukeDefeo

Differential Revision: D47473652

fbshipit-source-id: d4fe51c20cb555d3701aa112ccf3ea9edd23c903
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
b1be5d79c8 troubleshoot menu
Reviewed By: lblasa

Differential Revision: D47472474

fbshipit-source-id: 50684055b72067e7ea042da24b6cfc502fe1f85e
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
7c93d92956 troubleshoot menu placeholder
Reviewed By: LukeDefeo

Differential Revision: D47470928

fbshipit-source-id: e7d235e60ce336a9f67b6bc8ac155c9cc9cbfd02
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
d198f19471 rearrange app inspect section
Summary:
- remove tooltip as it is about the items that are in the navbar now
- metro buttons and bookmarks are still located in the sidebar
- so are plugin app actions

Reviewed By: elboman

Differential Revision: D47470797

fbshipit-source-id: cb7d757821eaa45ea770d3731b94e4e2f1a6d0ff
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
cf3455f126 move app status message to navbar
Summary: Don't mind busy navbar, flipper debugger buttons will be moved into a menu down the stack

Reviewed By: elboman

Differential Revision: D47469851

fbshipit-source-id: b29367810287d77106a56a5b1ae4aec49188e8fc
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
e755931642 TroubleshootingGuide navbar style
Summary: I also changed the "export" button icon as having two bug icons in the navbar is confusion. lblasa is going to squish all 4 or 5 debug flipper related buttons into one in the near future, so I am not focused on solving this currently

Reviewed By: elboman

Differential Revision: D47468721

fbshipit-source-id: 9492f9feba0df4afaf5b72470cb65e5cefbcb955
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
0dad5ee993 screenshot / screen recording buttons
Reviewed By: lblasa

Differential Revision: D47443316

fbshipit-source-id: 01a7d0d54cda8f8425bcbeb95047aa3aa5857cc8
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
13c88ccb11 squish menu items
Reviewed By: elboman

Differential Revision: D47441631

fbshipit-source-id: 5d2e105e46cb36f4ba89df5b9f3ed3c01ede5402
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
a5631c8d9f remove LeftRail
Reviewed By: elboman

Differential Revision: D47441161

fbshipit-source-id: f0c792beb64fc2474bf6e72b4e4a69d40b699c1e
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
a76faafa4b remove sandy migration
Summary: lblasa said Sandy migration was done years ago. Can be removed safely.

Reviewed By: elboman

Differential Revision: D47439199

fbshipit-source-id: 3ae0e1b3133d051740cd28e9d47c978e6f478c36
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
cb183cc354 export button
Reviewed By: lblasa

Differential Revision: D47439113

fbshipit-source-id: 551daf5e36463bf54ff8191e313b43dd96003b97
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
af73e5a2b4 app inspect button
Reviewed By: elboman

Differential Revision: D47438914

fbshipit-source-id: 297fba476e348dee89fa723db5303f0342b331c2
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
1463620c28 connectivity button
Reviewed By: elboman

Differential Revision: D47437819

fbshipit-source-id: fa6120f0714f81c99b2b0334a3b55a80d26f35b9
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
e431caf0f9 notification button
Reviewed By: elboman

Differential Revision: D47437749

fbshipit-source-id: 6dd7ded014e79b23328f59994e053d4d48c4eb65
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
9a5d421e0a toggle right sidebar button
Reviewed By: elboman

Differential Revision: D47437493

fbshipit-source-id: c799dddb2bb1a7e6420f41670b130724bb1817eb
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
9882381e48 flipper logs button
Reviewed By: elboman

Differential Revision: D47436310

fbshipit-source-id: cd1359acb046e5f4515ef0fcb60f65a442c8c868
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
c1c6ac41e0 fps graph + network graph
Reviewed By: LukeDefeo

Differential Revision: D47436168

fbshipit-source-id: 02faf84b513ed724bd4e3b5ebd606758301392d5
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
a5c109f762 doctor button
Reviewed By: lblasa

Differential Revision: D47435889

fbshipit-source-id: ff3eef79f50f3b63ada46c6d8349860906e28715
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
5647b9a4b8 start emulator button
Reviewed By: elboman

Differential Revision: D47400275

fbshipit-source-id: 38a0090283e8fc7207b643411246b15a3659616d
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
a7d3c265c6 plugin manager button
Reviewed By: elboman

Differential Revision: D47400185

fbshipit-source-id: fc2875808d8b2c2443766d7619091c65395b0c07
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
5b27a6a4c9 toggle left sidebar button
Reviewed By: elboman

Differential Revision: D47399778

fbshipit-source-id: 842a6900f05e629c4c4fca60928fb9ab107b46fd
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
12997086eb Pretty navbar buttons
Reviewed By: elboman

Differential Revision: D47399039

fbshipit-source-id: c4cc9612a5a9299ebb07e34933b2fa6698f073e7
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
32e19b779f move login button to navbar
Reviewed By: elboman

Differential Revision: D47398401

fbshipit-source-id: 9d49f79e97af5f3373e9c872d9d59e7f9e15694e
2023-07-18 03:52:34 -07:00
Anton Kastritskiy
bdd502d54f navbar placeholder
Reviewed By: elboman

Differential Revision: D47398098

fbshipit-source-id: 6e9518b47292b351153015da233574f7abfd0396
2023-07-18 03:52:34 -07:00
Luke De Feo
2111067d01 Add icon for litho mountables
Summary:
Requested by litho team

Changelog: UIDebugger Add seperate icon for litho mountables

Changelog: UIDebugger Serialize all props using java.lang.toString

Changelog: UIDebugger show drawables mounted by litho

Reviewed By: lblasa

Differential Revision: D47295799

fbshipit-source-id: ce5b9384e4796a5c58080a289709ed9f7afdf329
2023-07-17 09:33:42 -07:00
Andrey Goncharov
9ef69bdbad Downgrade metro connection error
Reviewed By: passy

Differential Revision: D47515502

fbshipit-source-id: aa05e9f62b661989187f0340cf06eaa7dbaac379
2023-07-17 08:38:50 -07:00
Lorenzo Blasa
07292f837d Clear event handler after error or close
Summary:
Previous approach was a bit flawed as the `isOpen()` API returns true by the time close is called.

This was OK in the case of errors, as the open flag was set to false hence preventing us to report a close after the error. It is not OK on healthy disconnect situations as these events were not getting reported.

In this case, a better solution is just to clear the event handler after a close or error because in either case we are no longer interested in dispatching any other events to the handler.

Reviewed By: antonk52

Differential Revision: D47510883

fbshipit-source-id: 883a3f87f24f71fe44a624590a310fe2563cbd8a
2023-07-17 06:54:35 -07:00
dependabot[bot]
93b8cc2fdf Bump serde from 1.0.164 to 1.0.165 in /packer (#4910)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.164 to 1.0.165.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.165</h2>
<ul>
<li>Fix incorrect count of fields passed to tuple deserialization methods when using <code>serde(skip_deserializing)</code> attributes (<a href="https://redirect.github.com/serde-rs/serde/issues/2466">https://github.com/facebook/flipper/issues/2466</a>, thanks <a href="https://github.com/Mingun"><code>@​Mingun</code></a>)</li>
<li>Fix <code>-Zminimal-versions</code> build</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="dcbc3e0162"><code>dcbc3e0</code></a> Release 1.0.165</li>
<li><a href="0289d31724"><code>0289d31</code></a> Fix -Zminimal-versions build</li>
<li><a href="015e39776f"><code>015e397</code></a> No need for single-element vec for chaining one element</li>
<li><a href="6a9a21f178"><code>6a9a21f</code></a> Resolve useless_conversion clippy lint in test</li>
<li><a href="81ac54b20d"><code>81ac54b</code></a> Resolve redundant_closure_call clippy lint</li>
<li><a href="6b4e75520a"><code>6b4e755</code></a> Resolve explicit_iter_loop pedantic clippy lint</li>
<li><a href="b053b4f492"><code>b053b4f</code></a> Touch up early return in Enum checks</li>
<li><a href="c0ba323166"><code>c0ba323</code></a> Support a manual trigger on CI workflow</li>
<li><a href="20a48c9580"><code>20a48c9</code></a> Remove .clippy.toml in favor of respecting rust-version from Cargo.toml</li>
<li><a href="09938803af"><code>0993880</code></a> Resolve redundant_static_lifetimes clippy lint</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.165">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.164&new-version=1.0.165)](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/4910

Reviewed By: lblasa

Differential Revision: D47294568

Pulled By: passy

fbshipit-source-id: 284710438e91a56b63f56f52a5974478af603eeb
2023-07-17 04:52:03 -07:00
Pranav Yadav
78d56eaa70 Enforce minimum Node JS to v18 (#4897)
Summary:
Enforce minimum Node JS version to `v18` via `/package.json#engines
`

- Node JS `v16`'s EOL is `2023-09-11`:
https://nodejs.org/en/blog/announcements/nodejs16-eol

- react-native also bumped Node JS to `v18` recently https://github.com/facebook/react-native/pull/37709 (RN `0.73` will probably enforce min Node JS `v18`)

Bumps in CI via:
1. https://github.com/facebook/flipper/issues/4898

## Changelog:

[General] [Breaking] - Enforce minimum Node JS `v18`

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

Test Plan: - Should pass tests & builds successfully

Reviewed By: ivanmisuno

Differential Revision: D47294577

Pulled By: passy

fbshipit-source-id: 7ba6a1b6ea6a9e42c77620dc7e0ddf7bd0c641b8
2023-07-17 04:44:21 -07:00
Sanjaiyan Parthipan
7cef8286f9 Concurrent Function Upgrade for Enhanced Performance (#4918)
Summary:
Republishing sanjaiyan-dev's PR https://github.com/facebook/flipper/pull/4889 running `git rebase` because of a conflict.

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

Reviewed By: lblasa

Differential Revision: D47294545

Pulled By: passy

fbshipit-source-id: 74904ec6179ed5a3bab6f9b701c3cd769ecad3bf
2023-07-17 04:43:14 -07:00
Michel Weststrate
c8776175c3 Added support for secondary indices for fast lookups
Summary:
Add support for secondary indices, to allow for cheap lookups, like a set of events for a specific UI element in the events table:

```

#### getAllRecordsByIndex

Usage: `getAllRecordsByIndex({ indexedAttribute: value, indexAttribute2: value2, .... })`

This method allows fast lookups for objects that match specific attributes exactly.
Returns all items matching the specified index query.
Note that the results are unordered, unless
records have not been updated using upsert / update, in that case
insertion order is maintained.
If no index has been specified for this exact keyset in the indexQuery (see options.indices), this method will throw.

Example:
```

```
const ds = createDataSource([eatCookie, drinkCoffee, submitBug], {
  key: 'id',
  indices: [
    ['title']
    ['id', 'title'],
    ['title', 'done'],
  ],
});

// Find first element with title === cookie (or undefined)
const todo = ds.getFirstRecordByIndex({
    title: 'cookie',
})

// Find all elements where title === cookie, and done === false
const todos = ds.getAllRecordsByIndex({
  title: 'cookie',
  done: false,
})
```

Reviewed By: antonk52

Differential Revision: D47396435

fbshipit-source-id: 20c4527be83532863b9b07ab20ebf20a80c3c35d
2023-07-14 07:46:52 -07:00