Commit Graph

9043 Commits

Author SHA1 Message Date
Andrey Goncharov
143dce85f1 Support integer operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605154

fbshipit-source-id: 4662b61b217568e593f6b65c8b4dd1d99ea5606a
2023-08-30 07:26:35 -07:00
Andrey Goncharov
a9fb5d9863 Extract PowerSearchStringTerm
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48601912

fbshipit-source-id: 90f67f1ea19ef6ae8b5d92f26894af2ab20fa821
2023-08-30 07:26:35 -07:00
Andrey Goncharov
380e99400f Simplify config
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48600255

fbshipit-source-id: a57504519000fce4544f6875b2933cd5bcaedba3
2023-08-30 07:26:35 -07:00
Andrey Goncharov
e87ec62552 Remove ordering support for mvp
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48600046

fbshipit-source-id: 9ded79616a822759f0c74dd1e5c6ce6c120b8350
2023-08-30 07:26:35 -07:00
Andrey Goncharov
bee42f442e Expose external API
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599785

fbshipit-source-id: ae5835ece1299d26dcaeb3cb66668aa919900a85
2023-08-30 07:26:35 -07:00
Andrey Goncharov
a492b32bd3 Extract PowerSearchTermFinder
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599226

fbshipit-source-id: 29c5a8182312e5f8c09d78d5cc223ef65cfc841d
2023-08-30 07:26:35 -07:00
Andrey Goncharov
c9ab951e84 Extract PowerSearchTerm
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599166

fbshipit-source-id: 13b447b55408a8673928489312c4d22cf864c232
2023-08-30 07:26:35 -07:00
Andrey Goncharov
2c5bcb373d Extract container
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: LukeDefeo

Differential Revision: D48560381

fbshipit-source-id: ecdc6bb95514faf913b23239bbd40113b8e0f57b
2023-08-30 07:26:35 -07:00
Andrey Goncharov
729c60f711 Shift focus to entering next search term when finish editing the curretn one
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48559678

fbshipit-source-id: 88075c473f8296a6d734116e9f2b02e941b3d7c7
2023-08-30 07:26:35 -07:00
Andrey Goncharov
194c08a12c Support keyboard
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48559580

fbshipit-source-id: 683969879c213b869faadc60c6caab8f716b8688
2023-08-30 07:26:35 -07:00
Andrey Goncharov
0633658cee Filter power search term options
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48558180

fbshipit-source-id: 311d5ed1859d0a31f85942772a956c46f58be46e
2023-08-30 07:26:35 -07:00
Andrey Goncharov
44c3f53905 Support removing search terms
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48557277

fbshipit-source-id: edaa5e8806538fa308d43c364e4f68967c1bf2ac
2023-08-30 07:26:35 -07:00
Andrey Goncharov
7061de44fe Support entering freeform search values
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48556764

fbshipit-source-id: aa2d77ce111e33ebe5d936c30d23ed78ca0e2c2e
2023-08-30 07:26:35 -07:00
Andrey Goncharov
c091067902 Update antd
Summary:
Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Required to get `Space.Compact`

allow-large-files

Reviewed By: passy

Differential Revision: D48520383

fbshipit-source-id: 000a5c16c00541455dc4a31c4fddb2c4c252a89e
2023-08-30 07:26:35 -07:00
Andrey Goncharov
795d02d00c Separate search term parts
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48520106

fbshipit-source-id: 2a544230f182bd82023310ea88742fab44e2df9b
2023-08-30 07:26:35 -07:00
Andrey Goncharov
c746a11dc6 Allow multiple search terms
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48519758

fbshipit-source-id: d691a26ebed9f7797516386b8fb9d4457b870a3e
2023-08-30 07:26:35 -07:00
Andrey Goncharov
9cdf944716 Compute Autocomplete options from config
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48518324

fbshipit-source-id: 5abee77cca10f03b2d9fa5b62802a5000152248e
2023-08-30 07:26:35 -07:00
Andrey Goncharov
b780dc0598 Add basic Autocomplete
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48517919

fbshipit-source-id: ec6e723a595862b61722db9c5afd96138264dfdc
2023-08-30 07:26:35 -07:00
Andrey Goncharov
839653c8fa Add PowerSearch example config
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48468962

fbshipit-source-id: e86be373be324b44656f2ed0d9f66bf969d47a6b
2023-08-30 07:26:35 -07:00
Andrey Goncharov
d54bd8938a Add PowerSearch basic types
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48467956

fbshipit-source-id: 7f5303d981831c261bf5e4fe0027883fd1e7d873
2023-08-30 07:26:35 -07:00
Lorenzo Blasa
3bfe9a1f98 Remove not needed 'then' clause
Summary: ^

Reviewed By: antonk52

Differential Revision: D48826887

fbshipit-source-id: 3ecc77d326bd7ddfa5e9f125012d6854f1692010
2023-08-30 06:47:48 -07:00
Lorenzo Blasa
2858259497 Launch early, even if not ready
Summary:
Flipper Launcher downloads, unpacks, launches Flipper, and closes itself.

This is fine except for the fact that Flipper may be initiating and thus there's a gap of a few seconds until engineers see the main Flipper UI.

This change improves this by launching earlier, even if just showing a loading page until Flipper is actually ready.

Reviewed By: passy, aigoncharov

Differential Revision: D48824479

fbshipit-source-id: aa6147a09f313d80592c9b08d089660ba73773a4
2023-08-30 05:08:26 -07:00
Lorenzo Blasa
3e8f94ceda iOS get devices/targets/simulators cleanup
Summary: ^

Reviewed By: passy

Differential Revision: D48781211

fbshipit-source-id: 71133c07d15ca6a380d85e582d55cbdb192b5a19
2023-08-30 04:24:05 -07:00
Lorenzo Blasa
0045f15e2a isAvailable to isIdbAvailable
Summary: Make it more clear what are we checking about.

Reviewed By: aigoncharov

Differential Revision: D48781145

fbshipit-source-id: c3c03b407dc7f47730a3fb80de769243768b34ec
2023-08-30 04:24:05 -07:00
Lorenzo Blasa
03c0874f30 Query devices should be async
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D48781102

fbshipit-source-id: c987be90c7bca7dbab40a89b389ee86ef2230393
2023-08-30 04:24:05 -07:00
Pascal Hartig
50d31cb1f7 Demote "Document not focused" error from Electron
Summary: Comes from Electron. Will go away with PWA.

Reviewed By: lblasa

Differential Revision: D48778132

fbshipit-source-id: 0cecdc38e76b663315434aec995635afca2959dc
2023-08-30 03:15:44 -07:00
github-actions[bot]
981a0ed6c8 Automated: Update Podfile.lock (#5078)
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/5078

Reviewed By: aigoncharov

Differential Revision: D48778220

Pulled By: passy

fbshipit-source-id: 31f63b9f129f3d0c9914d9c4aba499e8cc7455dc
2023-08-29 09:58:41 -07:00
dependabot[bot]
f658b5c362 Bump serde from 1.0.185 to 1.0.188 in /packer (#5090)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.185 to 1.0.188.
<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.188</h2>
<ul>
<li>Fix <em>&quot;failed to parse manifest&quot;</em> error when building serde using a Cargo version between 1.45 and 1.50 (<a href="https://redirect.github.com/serde-rs/serde/issues/2603">https://github.com/facebook/flipper/issues/2603</a>)</li>
</ul>
<h2>v1.0.187</h2>
<ul>
<li>Remove support for Emscripten targets on rustc older than 1.40 (<a href="https://redirect.github.com/serde-rs/serde/issues/2600">https://github.com/facebook/flipper/issues/2600</a>)</li>
</ul>
<h2>v1.0.186</h2>
<ul>
<li>Disallow incompatible versions of <code>serde_derive</code> and <code>serde</code> in the dependency graph (<a href="https://redirect.github.com/serde-rs/serde/issues/2588">https://github.com/facebook/flipper/issues/2588</a>, thanks <a href="https://github.com/soqb"><code>@​soqb</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="dad15b9fd0"><code>dad15b9</code></a> Release 1.0.188</li>
<li><a href="d89c19f903"><code>d89c19f</code></a> Revert &quot;Adopt new Cargo feature resolver&quot;</li>
<li><a href="146dc0fad5"><code>146dc0f</code></a> Release 1.0.187</li>
<li><a href="d26852deef"><code>d26852d</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2602">https://github.com/facebook/flipper/issues/2602</a> from dtolnay/resolver</li>
<li><a href="e1c27243b2"><code>e1c2724</code></a> Adopt new Cargo feature resolver</li>
<li><a href="dbbfe7abe2"><code>dbbfe7a</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2600">https://github.com/facebook/flipper/issues/2600</a> from dtolnay/oldemscripten</li>
<li><a href="dc24d12ce0"><code>dc24d12</code></a> Clean up all usage of serde_if_integer128</li>
<li><a href="4e7533e872"><code>4e7533e</code></a> Remove support for emscripten targets on rustc older than 1.40</li>
<li><a href="5d036515ed"><code>5d03651</code></a> Release 1.0.186</li>
<li><a href="a741293886"><code>a741293</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2599">https://github.com/facebook/flipper/issues/2599</a> from dtolnay/encodeutf8</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.188">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.185&new-version=1.0.188)](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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `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/5090

Reviewed By: aigoncharov

Differential Revision: D48778219

Pulled By: passy

fbshipit-source-id: fdf558152f45ad2e1961b660de19ce4abe94812d
2023-08-29 09:56:20 -07:00
Pascal Hartig
c91652d5de Don't throw errors for Watchman not found
Summary: Changelog: Don't throw an error if Watchman was not found

Reviewed By: aigoncharov

Differential Revision: D48778121

fbshipit-source-id: bfe3599e41d8c6fbe4ea89393ace5213914a2611
2023-08-29 09:49:56 -07:00
Pascal Hartig
554d2f9b83 Bump ES level to 2021
Summary: Updating the remaining tsconfigs to build for an ES2021 target.

Reviewed By: antonk52

Differential Revision: D48687661

fbshipit-source-id: 2761704d251f701594ca5d362a17731f287088ed
2023-08-29 05:06:18 -07:00
Pascal Hartig
d4d8c965eb Show iOS version in launcher
Summary:
A little hacky because we currently have too many implementations for getting devices but lblasa is working on cleaning this up. Once that's done, we should add some tests for this.

Changelog: Show the iOS version of simulators in the launcher window

Reviewed By: lblasa

Differential Revision: D48777923

fbshipit-source-id: 18846520feba8eb10b6417f87bd802ffaabb1dff
2023-08-29 04:55:46 -07:00
Pascal Hartig
7ce86869e4 Build plugins with ES2021
Summary:
Starting small as this will unblock D48642120.

If it works without causing any issues, I'll update the remaining ones.

We're on Node v18 everywhere now, so this should be compatible. According to https://node.green/ that should cover nearly everything.

Reviewed By: lblasa

Differential Revision: D48683680

fbshipit-source-id: 26d2788468b673793b70b6339d1845c1dcf7e05d
2023-08-25 09:43:01 -07:00
dependabot[bot]
ff1e6f7784 Bump serde from 1.0.183 to 1.0.185 in /packer (#5057)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.183 to 1.0.185.
<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.185</h2>
<ul>
<li>Fix error <em>&quot;cannot move out of <code>*self</code> which is behind a shared reference&quot;</em> deriving Serialize on a non_exhaustive enum (<a href="https://redirect.github.com/serde-rs/serde/issues/2591">https://github.com/facebook/flipper/issues/2591</a>)</li>
</ul>
<h2>v1.0.184</h2>
<ul>
<li>Restore from-source <code>serde_derive</code> build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.io</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3c7dd6fc1e"><code>3c7dd6f</code></a> Release 1.0.185</li>
<li><a href="8b196ea1c8"><code>8b196ea</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2592">https://github.com/facebook/flipper/issues/2592</a> from dtolnay/remotenonexhaustive</li>
<li><a href="1f8c8ad5a3"><code>1f8c8ad</code></a> Fix &quot;cannot move out of <code>*self</code> which is behind a shared reference&quot;</li>
<li><a href="870925d503"><code>870925d</code></a> Add repro of issue 2591</li>
<li><a href="d593215ef7"><code>d593215</code></a> No need for slow macOS CI if there is no platform-specific code</li>
<li><a href="110af31b48"><code>110af31</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2590">https://github.com/facebook/flipper/issues/2590</a> from pinkforest/phase-out-precompiled</li>
<li><a href="360606b9a6"><code>360606b</code></a> Following consensus on: <a href="https://redirect.github.com/serde-rs/serde/issues/2580">https://github.com/facebook/flipper/issues/2580</a> (review)</li>
<li><a href="151b45ae36"><code>151b45a</code></a> Release 1.0.184</li>
<li><a href="4617c957b9"><code>4617c95</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2587">https://github.com/facebook/flipper/issues/2587</a> from wucke13/master</li>
<li><a href="2547ed83ca"><code>2547ed8</code></a> fix shebang in build.sh</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.185">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.183&new-version=1.0.185)](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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `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/5057

Reviewed By: lblasa

Differential Revision: D48685679

Pulled By: passy

fbshipit-source-id: dcc7e87ce7ee151a4946ed3dc59de405d48b936d
2023-08-25 09:26:48 -07:00
generatedunixname89002005306973
f1e0bc2c00 Flipper Snapshot Bump: v0.213.1-SNAPSHOT
Summary: Releasing snapshot version 0.213.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D48685727

fbshipit-source-id: 75777f643d5f4b98a078cfece8c2e1c5d51672bd
2023-08-25 09:21:17 -07:00
generatedunixname89002005306973
27ebbbb951 Flipper Release: v0.213.0
Summary: Releasing version 0.213.0

Reviewed By: lblasa

Differential Revision: D48685726

fbshipit-source-id: 7726ff795d5d3c6609c3dbcaccd38964c6edf4d7
2023-08-25 09:21:17 -07:00
dependabot[bot]
d9f41e6e5c Bump anyhow from 1.0.74 to 1.0.75 in /packer (#5055)
Summary:
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.74 to 1.0.75.
<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.75</h2>
<ul>
<li>Partially work around rust-analyzer bug (<a href="https://redirect.github.com/rust-lang/rust-analyzer/issues/9911">rust-lang/rust-analyzer#9911</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6485caebde"><code>6485cae</code></a> Release 1.0.75</li>
<li><a href="238223af99"><code>238223a</code></a> Work around ridiculous rust-analyzer behavior</li>
<li>See full diff in <a href="https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75">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.74&new-version=1.0.75)](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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `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/5055

Reviewed By: lblasa

Differential Revision: D48685685

Pulled By: passy

fbshipit-source-id: a30912de6677237fb2ad11bd3648f1d9862898eb
2023-08-25 09:19:31 -07:00
Lorenzo Blasa
0c2ef9d00d Check if entry is undefined first
Summary:
Fixes this issue:

https://pxl.cl/3dQRs

Reviewed By: LukeDefeo

Differential Revision: D48682817

fbshipit-source-id: 1bbb40a02dc970ed1c5f2731a85b6ef613ebd2af
2023-08-25 07:05:30 -07:00
Lorenzo Blasa
ffae44f446 Remove '$' prefix
Summary:
Fixes the following issue:

 {F1076395349}

Reviewed By: passy

Differential Revision: D48681839

fbshipit-source-id: b11475ef58c872eacee0bb513b5ad15423fccdf6
2023-08-25 07:05:30 -07:00
Pascal Hartig
3337c28893 Don't break the build if the reactdevtools patching fails (#5070)
Summary:
[flipper] Don't break the build if the reactdevtools patching fails
There seems to be a bug in yarn workspaces on Windows:

```
Error: Cannot find module 'D:\\a\\flipper\\flipper\\desktop\\plugins\\public\\node_modules\\node_modules\\ts-node\\dist\\bin.js
```

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

Test Plan: Let's see if CI will be happy again.

Reviewed By: lblasa

Differential Revision: D48681388

Pulled By: passy

fbshipit-source-id: d41f21be09c9d060e3c68e36466cfc54b3272325
2023-08-25 04:53:34 -07:00
Pascal Hartig
2a6426ebbe Do not throw when a plugin removal fails
Summary:
Symmetry with D48642974.

Changelog: Don't throw in C++ if a plugin gets added/removed multiple times.

Reviewed By: lblasa

Differential Revision: D48643116

fbshipit-source-id: cc6638061b1dee2a6f7deb1fab1093906decc24a
2023-08-25 02:14:22 -07:00
Pascal Hartig
7822099f50 Do not throw when a plugin is already added
Summary:
Causes a lot of errors that don't seem to be preventable from a plugin author's perspective and also completely benign.

https://www.internalfb.com/logview/flipper_javascript/3b754533c5da4e91fe8c0a3318cf8d5c?trace_tab=latest

Reviewed By: lblasa

Differential Revision: D48642974

fbshipit-source-id: 5ba542afbaa4175e1657d4b229d8bab62fac9862
2023-08-25 02:14:22 -07:00
Lorenzo Blasa
ef6e3df9df Remove the client from error log
Summary: Removing this information from the error as it will cause duplicated error tasks.

Reviewed By: passy

Differential Revision: D48646678

fbshipit-source-id: 26e5525318b4720568275a5086df00f21b7d2836
2023-08-24 10:05:17 -07:00
Lorenzo Blasa
ecc50f47e8 Clients to avoid sending payloads larger than the maximum allowed size
Summary: ^

Reviewed By: passy

Differential Revision: D48645400

fbshipit-source-id: ac262296f113298812803c12eccf5a37da1da2b7
2023-08-24 10:05:17 -07:00
Lorenzo Blasa
865d551f8e Increase max payload size
Summary: ^

Reviewed By: passy, antonk52

Differential Revision: D48644784

fbshipit-source-id: 2cd0aeed94c31553243e1b335adbd4089feb0d7e
2023-08-24 10:05:17 -07:00
Luke De Feo
a275235a7c ADd tracking for framework event debugging
Summary: ^

Reviewed By: lblasa

Differential Revision: D48645332

fbshipit-source-id: faf558c592b00a69586970edea407d8997a54699
2023-08-24 08:14:31 -07:00
Lorenzo Blasa
c0347ec830 Deep-link hooked to our protocol handler
Summary: This hooks the PWA deep-link to our existing deep-link url handler.

Reviewed By: antonk52

Differential Revision: D48598886

fbshipit-source-id: 8da9b7bc89bebdafc2bd4c0dc0bd7608864e0254
2023-08-24 07:25:01 -07:00
Lorenzo Blasa
aa327b1a46 Deep-link scaffolding
Summary:
This change adds the necessary scaffolding to enable deep-link for PWA.

1. Registers the protocol/scheme in the manifest.json
2. Add a skeleton handler that parses the received arguments

Notes for reviewers:

PWA cannot reuse the 'flipper://' scheme as is not allowed. PWA schemes are limited. The only extension point is 'web+...' which is the one that is used.

Reviewed By: antonk52

Differential Revision: D48562301

fbshipit-source-id: e191fcb1a6604d20a55c1acdadf6a8eb0194895b
2023-08-24 07:25:01 -07:00
Lorenzo Blasa
1360e906f8 Centralise sessionId to a dedicated place
Summary:
The sessionId is just uuid() which is held by the config. This changes moves that to a single place.

This achieves two goals:
1) Makes it very clear where is created and what value it holds
2) It allows us to know the sessionId even before the config is available. This becomes useful as we can start logging to Scribe earlier.

Reviewed By: passy

Differential Revision: D48601829

fbshipit-source-id: c54d86d76f0b58d2b59f8dd1c45d7f345c4a84c3
2023-08-24 06:18:39 -07:00
Lorenzo Blasa
6405a7bfdd Hook with FB logger
Summary:
This change replaces the existing logging infra with the one defined and exposed in flipper-server-core.

Functionality remains the same with the addition of having support for Scribe.

Reviewed By: aigoncharov

Differential Revision: D48515246

fbshipit-source-id: 7970f6ad069821ee4f15136adc8da40d0b1fb0c7
2023-08-24 06:18:39 -07:00
Lorenzo Blasa
87bf73f1d5 FBLogger for flipper-server-core
Summary: ^

Reviewed By: passy

Differential Revision: D48557327

fbshipit-source-id: 0112dec9a1a7f0afddcc459459a9278bbbeb3fc7
2023-08-24 06:18:39 -07:00