Commit Graph

8286 Commits

Author SHA1 Message Date
dependabot[bot]
a4ff1fbe72 Bump serde from 1.0.163 to 1.0.164 in /packer (#4813)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.163 to 1.0.164.
<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.164</h2>
<ul>
<li>Allowed enum variants to be individually marked as untagged (<a href="https://redirect.github.com/serde-rs/serde/issues/2403">https://github.com/facebook/flipper/issues/2403</a>, thanks <a href="https://github.com/dewert99"><code>@​dewert99</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="107018c628"><code>107018c</code></a> Release 1.0.164</li>
<li><a href="a398237930"><code>a398237</code></a> Point out serde(untagged) variants which are out of order</li>
<li><a href="b63c65d7f5"><code>b63c65d</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2470">https://github.com/facebook/flipper/issues/2470</a> from dtolnay/contentref</li>
<li><a href="f60324e883"><code>f60324e</code></a> Reuse a single ContentRefDeserializer throughout untagged enum deserialization</li>
<li><a href="361c23a09a"><code>361c23a</code></a> Simplify enumerate().find(...) -&gt; Iterator::position</li>
<li><a href="43b23c7ea0"><code>43b23c7</code></a> Format PR 2403 with rustfmt</li>
<li><a href="6081497506"><code>6081497</code></a> Resolve semicolon_if_nothing_returned pedantic clippy lint</li>
<li><a href="48e5753e76"><code>48e5753</code></a> Allowed Enum variants to be individually marked as untagged (<a href="https://redirect.github.com/serde-rs/serde/issues/2403">https://github.com/facebook/flipper/issues/2403</a>)</li>
<li><a href="bbba632ab3"><code>bbba632</code></a> Revert &quot;Ui tests with compile_error resolved at call site&quot;</li>
<li><a href="e77db40b8d"><code>e77db40</code></a> Ui tests with compile_error resolved at call site</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164">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.163&new-version=1.0.164)](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/4813

Reviewed By: lblasa

Differential Revision: D46680063

Pulled By: passy

fbshipit-source-id: 4af9e5a742ca46b5ce33410e4847799189ee6365
2023-06-13 04:00:08 -07:00
dependabot[bot]
ba5a19f53d Bump com.github.ben-manes.versions from 0.46.0 to 0.47.0 (#4814)
Summary:
Bumps com.github.ben-manes.versions from 0.46.0 to 0.47.0.

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.github.ben-manes.versions&package-manager=gradle&previous-version=0.46.0&new-version=0.47.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/4814

Reviewed By: lblasa

Differential Revision: D46680058

Pulled By: passy

fbshipit-source-id: 896ac8ec5a5a4587b786aa68d96c795e49ff5a56
2023-06-13 03:57:21 -07:00
dependabot[bot]
d4cb23446e Bump react-native-flipper from 0.192.0 to 0.195.0 in /react-native/ReactNativeFlipperExample (#4825)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.192.0 to 0.195.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/flipper/releases">react-native-flipper's releases</a>.</em></p>
<blockquote>
<h2>v0.195.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.194.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.193.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>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cbadce41db"><code>cbadce4</code></a> Flipper Release: v0.195.0</li>
<li><a href="4ed40506bf"><code>4ed4050</code></a> Make PWA menu bar the Flipper color</li>
<li><a href="16b4d58ac3"><code>16b4d58</code></a> Support filtering by exact match</li>
<li><a href="b34d3e0a74"><code>b34d3e0</code></a> Bootstrap logging and performance improvement</li>
<li><a href="6b655d64db"><code>6b655d6</code></a> Custom log handler setup</li>
<li><a href="56694b441e"><code>56694b4</code></a> Use assets_DO_NOT_HARDCODE in public as well</li>
<li><a href="146a5cf666"><code>146a5cf</code></a> Move server started analytics</li>
<li><a href="b29ced9d52"><code>b29ced9</code></a> Refactor open functionality into function</li>
<li><a href="2062fd7d94"><code>2062fd7</code></a> Flipper Snapshot Bump: v0.194.1-SNAPSHOT</li>
<li><a href="3afe8175d3"><code>3afe817</code></a> Flipper Release: v0.194.0</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.192.0...v0.195.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-native-flipper&package-manager=npm_and_yarn&previous-version=0.192.0&new-version=0.195.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/4825

Reviewed By: lblasa

Differential Revision: D46679159

Pulled By: passy

fbshipit-source-id: 8d4e4f919379e296c2c2a61ee0642da4b7a4f9ec
2023-06-13 03:53:24 -07:00
Lukas Kurucz
279a9e6b52 fix: prefixed plugin package name (#4811)
Summary:
When distributing plugin over Marketplace. Currently there is an issue with downloading a plugin to `tmp` folder if the plugin `packageName` starts with `company-prefix/flipper-plugin-name`. It would throw `ENONET` error while trying to stream the response data into `tmp` folder.

## Changelog

- add support for prefixed plugin package names (`shopify/flipper-plugin-name`,...)

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

Test Plan: - Try install a plugin from Marketplace which has `/` in the plugin `package.json` `name`.

Reviewed By: lblasa

Differential Revision: D46679195

Pulled By: passy

fbshipit-source-id: f330896dae9da7cbe101b1c6d7ed07667fb7ae0a
2023-06-13 03:53:18 -07:00
Lorenzo Blasa
0db4e99aff Track bootstrap diagnostics
Summary:
^

In addition to logging to the console bootstrap performance metrics, track these events to scuba as well.

Reviewed By: aigoncharov

Differential Revision: D46648876

fbshipit-source-id: 191704c13158884bb8cfbca614a23f2a64f1fd93
2023-06-13 02:45:57 -07:00
generatedunixname89002005306973
5f292bcc08 Flipper Snapshot Bump: v0.195.1-SNAPSHOT
Summary: Releasing snapshot version 0.195.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D46643991

fbshipit-source-id: 0787d22934d23675a624ffd03b757660a3b46b82
2023-06-12 09:50:21 -07:00
generatedunixname89002005306973
cbadce41db Flipper Release: v0.195.0
Summary: Releasing version 0.195.0

Reviewed By: lblasa

Differential Revision: D46643992

fbshipit-source-id: 1c50201061ec0335f80d49d46eddfe1b534f39a6
2023-06-12 09:50:21 -07:00
Pascal Hartig
4ed40506bf Make PWA menu bar the Flipper color
Summary:
{F1026310422}

I think it's quite nice having a matching title bar and buttons?

Changelog: The Flipper PWA now uses the Flipper purple as theme color

Reviewed By: lblasa

Differential Revision: D46646266

fbshipit-source-id: 1bc6573c3cd863678ceed5b9358a78d19606ee8a
2023-06-12 09:22:54 -07:00
Andrey Goncharov
16b4d58ac3 Support filtering by exact match
Summary: Project: https://docs.google.com/document/d/1SbFrpvfIShX5npANNa1AkgHliR1M-VMLW5Q9RhREt94/edit

Reviewed By: antonk52

Differential Revision: D46642517

fbshipit-source-id: e23eead18189adb9aaacb7eab3244cfce289203e
2023-06-12 07:29:55 -07:00
Lorenzo Blasa
b34d3e0a74 Bootstrap logging and performance improvement
Summary:
Add a few console logs as to highlight how long does it take for our server to start.

Additionally, do not wait until we are ready for client connections before attempting to launch. There's nothing else we do at this point. Instead, launch and wait until we are ready.

Reviewed By: passy

Differential Revision: D46639482

fbshipit-source-id: c098d229edc3cd52e5c876c509a7c81532635afa
2023-06-12 04:51:24 -07:00
Murat Seker
6b655d64db Custom log handler setup
Summary: Add custom log handler setup so people can use their own log infra instead of "printf".

Reviewed By: Neil-Clifford-FB

Differential Revision: D46590343

fbshipit-source-id: ded9cf6caa580d477a71a9155cad9db295151c84
2023-06-09 06:26:52 -07:00
Michel Weststrate
56694b441e Use assets_DO_NOT_HARDCODE in public as well
Summary: Since ~couple of days to last week we cannot download image assets anymore from facebook.com during build, which is worked around in previous diff. This diff fixes it also in the development environment (`yarn start`)

Reviewed By: lblasa

Differential Revision: D46556075

fbshipit-source-id: ee5d912fb06d1632c41ff6d536b64a55608f5848
2023-06-09 04:01:17 -07:00
Lorenzo Blasa
146a5cf666 Move server started analytics
Summary: This is a better place as it takes place once the server starts listening.

Reviewed By: passy

Differential Revision: D46558350

fbshipit-source-id: f586defecc8e16d8f0b285615803662d8b6b75fb
2023-06-08 11:03:44 -07:00
Lorenzo Blasa
b29ced9d52 Refactor open functionality into function
Summary: ^

Reviewed By: passy

Differential Revision: D46557867

fbshipit-source-id: b741288d38c96288b41d201ac9c229176b9eb197
2023-06-08 11:03:44 -07:00
generatedunixname89002005306973
2062fd7d94 Flipper Snapshot Bump: v0.194.1-SNAPSHOT
Summary: Releasing snapshot version 0.194.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D46560116

fbshipit-source-id: 84840f5984547af1e7ee52f4ebfa5258eaf94a56
2023-06-08 09:46:54 -07:00
generatedunixname89002005306973
3afe8175d3 Flipper Release: v0.194.0
Summary: Releasing version 0.194.0

Reviewed By: lblasa

Differential Revision: D46560117

fbshipit-source-id: 13413931f46397082c83449845025af646982c2c
2023-06-08 09:46:54 -07:00
Michel Weststrate
50f50fa46c fall back to larger images if requested size is not available
Summary: This diff follows up on the previous one, by trying a larger icon size if the original requested icon size was missing.

Reviewed By: lblasa

Differential Revision: D46556076

fbshipit-source-id: 4a078088aa27390f247e39afeda4b1df261d8b30
2023-06-08 07:31:34 -07:00
Michel Weststrate
a6dac1d8d9 make icon download more robust, and use assets_DO_NOT_HARDCODE urls instead of asset urls.
Summary:
Since ~yesterday all our builds started failing due to being unable to download static assets. Although those assets load correctly in the browser, and by using the browsers's generated `curl` command, which looks like:

```
curl 'https://facebook.com/assets/?name=face-unhappy&variant=outline&size=24&set=facebook_icons&density=1x' \
  -H 'authority: facebook.com' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: nl,en-GB;q=0.9,en;q=0.8,nl-NL;q=0.7,en-US;q=0.6' \
  -H 'cache-control: no-cache' \
  -H 'cookie: OMITTED' \
  -H 'pragma: no-cache' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: none' \
  -H 'sec-fetch-user: ?1' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  --compressed
```

Download fails as soon as the cookie header is dropped.

Changes the base url to `https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/` fixes that problem, unless the resolution doesn't exist (addressed in next diff).

This also seems to remove the flakiness we were experiencing before, so dropped the retry mechanism for now.

Also made failing to download an icon a warning instead of a build failure.

Reviewed By: lblasa

Differential Revision: D46552986

fbshipit-source-id: f1382d6a8fc6669691f0c8da6b77834d24a373c5
2023-06-08 07:31:34 -07:00
Lorenzo Blasa
bd809853e7 Fixes an issue with client queries and rsocket
Summary: This is necessary as we map from the protocol medium to our internal medium representation.

Reviewed By: mweststrate

Differential Revision: D46557431

fbshipit-source-id: 617307cd860e1c7e230be2441c06417c44af580e
2023-06-08 07:24:32 -07:00
Lorenzo Blasa
c347fae7c1 Use getAuthToken utility function instead
Summary: ^

Reviewed By: mweststrate

Differential Revision: D46557801

fbshipit-source-id: 2a83613afd9482ff4ed0abe5aaaf9675ef73bc49
2023-06-08 07:17:12 -07:00
Lorenzo Blasa
85f5c6f893 Close server if no clients are connected
Summary: If after 15min there are no connected clients, close flipper server.

Reviewed By: antonk52

Differential Revision: D46519563

fbshipit-source-id: c3396ed8987be8ca7075c644734793e4ebceba18
2023-06-07 10:46:15 -07:00
Lorenzo Blasa
132a20d5a7 Token read from invalid path
Summary:
^

Token is no longer in the static directory. Also, we can now use a shared utility.

Reviewed By: aigoncharov

Differential Revision: D46516296

fbshipit-source-id: c38d024061653ac8b3fb587c8e3ad83dba0b151d
2023-06-07 07:39:56 -07:00
Lorenzo Blasa
7dc978c3d3 Remove processDevices logs
Summary: These are no longer that useful and can be quite verbose, remove.

Reviewed By: antonk52

Differential Revision: D46516093

fbshipit-source-id: e6c3a546d379ca20ff8757fdc3feaa11bf0788a0
2023-06-07 06:59:31 -07:00
Luke De Feo
74ecbec9e6 Clean up tooltip on long hover for visualiser
Summary:
Previously every single visualisation node would have jsx for a tooltip and would control its own tooltop. now we have the overlay we can have just one. this improves perf a bit and simplifies the code.

i also increased the delay slightly

Reviewed By: lblasa

Differential Revision: D46274098

fbshipit-source-id: cb8afbc4804c549da9abf33d69aaf190397f74c7
2023-06-07 06:20:13 -07:00
Luke De Feo
c13180a929 Draw selected and hovered node borders in overlay layer
Summary:
The previous approach of setting some of the borders to be thicker and different colours was flakey, sometimes parts of the border would be cut off by a parent

With this approach we figure out the offset relative to the root of the visualiser, and draw a box that is definatley on top. It works much more reliably

Also fixed a couple of other niggles:
1. Can unselect when clicking again
2. Going into focus mode clears selection since your selection may not be in the focused area and there is a phantom box

Reviewed By: lblasa

Differential Revision: D46224034

fbshipit-source-id: 24bed8db38cddab796f786e7e0a4acfe7c6a9089
2023-06-07 06:20:13 -07:00
Lorenzo Blasa
2815ba0fb8 Copy/Paste implementation
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D46515194

fbshipit-source-id: 0ee6931569d5248d5643b391683e230e0c095e41
2023-06-07 06:04:46 -07:00
Andrey Goncharov
b9322247e6 Make assert stable ref error more explicit
Reviewed By: ivanmisuno

Differential Revision: D46359534

fbshipit-source-id: 002e4e8ae9168cf2cf3b652fc853416de825861f
2023-06-06 03:44:48 -07:00
generatedunixname89002005306973
2f2754f56a Flipper Snapshot Bump: v0.193.1-SNAPSHOT
Summary: Releasing snapshot version 0.193.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D46442119

fbshipit-source-id: b9867906451d59251f25e2cff8ba59b3c30cd921
2023-06-05 08:50:24 -07:00
generatedunixname89002005306973
1f296ba6fc Flipper Release: v0.193.0
Summary: Releasing version 0.193.0

Reviewed By: aigoncharov

Differential Revision: D46442118

fbshipit-source-id: 8e50914b36a4fde8ca710014f5c98f17780396b1
2023-06-05 08:50:24 -07:00
Lorenzo Blasa
98f376ec69 Use auth token when connecting to existing server from Electron
Summary:
All clients need to provide an authentication token before connecting. Electron app is no different.

This change adds the authentication token whether we are connecting over UDS or TCP.

Before this change, if Flipper server was already running, launching the Electron app would look similar to this:

{F1016961594}

Reviewed By: antonk52

Differential Revision: D46418758

fbshipit-source-id: f00ffe675df78403d5921250e3e9ed9331a55bde
2023-06-05 05:26:10 -07:00
Lorenzo Blasa
90240f4186 Move auth token to the default directory for crypto related files
Summary:
Used to be stored in the static directory as it was meant to be used by connecting clients.

This is still the case, except that there may be different clients with different static directories all trying to connect to the same server.

Instead, store the authentication token with the other crypto files, in the user's home directory.

By doing this, all clients, as long as they have access to the local filesystem, can use it.

Reviewed By: mweststrate

Differential Revision: D46418639

fbshipit-source-id: 181e98346d86ad7b3fc1d0005aca3350deb6df32
2023-06-05 05:26:10 -07:00
Lorenzo Blasa
353e51e2ea Better error message format
Summary:
The existing error message was not in the centre and didn't give any possible remediation steps.

{F1015240268}

Reviewed By: passy

Differential Revision: D46394149

fbshipit-source-id: 09d450bef9df83c5b3af3ba49c7e0fafb81bfdce
2023-06-02 09:35:32 -07:00
Lorenzo Blasa
80c201b10f Add localhost as a valid host
Summary: ^

Reviewed By: passy

Differential Revision: D46393661

fbshipit-source-id: eeaa0971a747d6435a10c3eb27969bb452cd73a7
2023-06-02 09:35:32 -07:00
Andrey Goncharov
e8e1a32e48 Back out "Update adbkit and logcat to maintained librarys"
Summary:
Original commit changeset: 2a23c0eaa12f

Original Phabricator Diff: D45569652

The new lib causes weird log parsing https://fb.workplace.com/groups/flippersupport/permalink/1629943924152926/

Reviewed By: LukeDefeo, passy

Differential Revision: D46390961

fbshipit-source-id: 7c9d0ca7fff2d9cb1ac1a309710f2348233a3471
2023-06-02 08:10:47 -07:00
Lorenzo Blasa
bb9793019c Expand PATH with /usr/local/bin
Summary:
^

There is an issue whereas when Flipper Server is launched NOT from the terminal, it doesn't inherit the user's terminal `$PATH` variable.

This causes a few different issues.

This change tries to address that.

Reviewed By: passy

Differential Revision: D46392435

fbshipit-source-id: 6201a1749134db8c50eca8751af149737dce57d7
2023-06-02 08:01:51 -07:00
Lorenzo Blasa
828d56f617 Kill PortForwardingApp on exit
Summary:
I noticed we were not killing the PortForwardingApp on exit.

This is not ideal.

So, use an exit hook to kill the app.

Reviewed By: passy

Differential Revision: D46392855

fbshipit-source-id: e2b75f76c9dfab0ff46df3ad2c94a1a523154b2a
2023-06-02 07:55:56 -07:00
Anton Kastritskiy
c01b6b9f16 expose isHeadlessBuild to flipper plugins
Reviewed By: passy

Differential Revision: D46364476

fbshipit-source-id: bad584e3892cc0fb0fdaba0e8b3c79952596d34d
2023-06-02 06:49:49 -07:00
Lorenzo Blasa
2f9e633fad Medium refactoring
Summary:
Simplifies medium usage. Clients report this value as an integer. Internally, we transform this integer as type (a set of valid strings).

Instead of transform this value in different places, do it once when the client query is received.

Reviewed By: antonk52

Differential Revision: D46358024

fbshipit-source-id: ecd2b6c6ccbe7c38787a89d4e2f81930c7b91864
2023-06-02 03:59:15 -07:00
github-actions[bot]
3607b7f996 Automated: Update Podfile.lock (#4794)
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/4794

Reviewed By: antonk52

Differential Revision: D46355046

Pulled By: passy

fbshipit-source-id: e676d4c9d8bef0b3ab29bc9e6cb23838b262c5bf
2023-06-01 10:50:02 -07:00
dependabot[bot]
ab62cfa5da Bump indicatif from 0.17.3 to 0.17.4 in /packer (#4778)
Summary:
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.17.3 to 0.17.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/console-rs/indicatif/releases">indicatif's releases</a>.</em></p>
<blockquote>
<h2>0.17.4</h2>
<p>Another small bugfix release.</p>
<ul>
<li>Handle newline in msg and empty msg (<a href="https://redirect.github.com/console-rs/indicatif/issues/540">https://github.com/facebook/flipper/issues/540</a>, thanks to <a href="https://github.com/RDruon"><code>@​RDruon</code></a>)</li>
<li>Handle terminal line wrap to avoid new line (<a href="https://redirect.github.com/console-rs/indicatif/issues/533">https://github.com/facebook/flipper/issues/533</a>, thanks to <a href="https://github.com/RDruon"><code>@​RDruon</code></a>)</li>
<li>Resetting the elapsed time also resets ETA (<a href="https://redirect.github.com/console-rs/indicatif/issues/538">https://github.com/facebook/flipper/issues/538</a>, thanks to <a href="https://github.com/afontenot"><code>@​afontenot</code></a>)</li>
<li>Mention the prefix and message placeholders in the <code>with_</code> docs (<a href="https://redirect.github.com/console-rs/indicatif/issues/529">https://github.com/facebook/flipper/issues/529</a>, thanks to <a href="https://github.com/lnicola"><code>@​lnicola</code></a>)</li>
<li>Allow rate-limiting <code>TermLike</code> targets (<a href="https://redirect.github.com/console-rs/indicatif/issues/526">https://github.com/facebook/flipper/issues/526</a>, thanks to <a href="https://github.com/akx"><code>@​akx</code></a>)</li>
<li>Fix docs for <code>ProgressDrawTarget</code> (<a href="https://redirect.github.com/console-rs/indicatif/issues/523">https://github.com/facebook/flipper/issues/523</a>, thanks to <a href="https://github.com/tillarnold"><code>@​tillarnold</code></a>)</li>
<li>Change &quot;OS X&quot; to &quot;macOS&quot; (<a href="https://redirect.github.com/console-rs/indicatif/issues/519">https://github.com/facebook/flipper/issues/519</a>, thanks to <a href="https://github.com/atouchet"><code>@​atouchet</code></a>)</li>
<li>Fix <code>MultiProgress</code> alignment handling and migrate from structopt =&gt; clap (<a href="https://redirect.github.com/console-rs/indicatif/issues/516">https://github.com/facebook/flipper/issues/516</a>)</li>
<li>Don't deadlock when double-adding ProgressBar (<a href="https://redirect.github.com/console-rs/indicatif/issues/515">https://github.com/facebook/flipper/issues/515</a>)</li>
<li>Use <code>instant::Instant</code> when compiling to WASM (<a href="https://redirect.github.com/console-rs/indicatif/issues/514">https://github.com/facebook/flipper/issues/514</a>, thanks to <a href="https://github.com/azriel91"><code>@​azriel91</code></a>)</li>
<li>Update portable-atomic requirement from 0.3.15 to 1.0.0 (<a href="https://redirect.github.com/console-rs/indicatif/issues/512">https://github.com/facebook/flipper/issues/512</a>)</li>
<li>Add <code>contents_formatted()</code> method to `InMemoryTerm (<a href="https://redirect.github.com/console-rs/indicatif/issues/531">https://github.com/facebook/flipper/issues/531</a>, thanks to <a href="https://github.com/dfaust"><code>@​dfaust</code></a>)</li>
<li><code>inc()</code> after work in examples (<a href="https://redirect.github.com/console-rs/indicatif/issues/522">https://github.com/facebook/flipper/issues/522</a>, thanks to <a href="https://github.com/tatref"><code>@​tatref</code></a>)</li>
</ul>
<p>On behalf of the indicatif team (<a href="https://github.com/chris-laplante"><code>@​chris-laplante</code></a> and <a href="https://github.com/djc"><code>@​djc</code></a>), thanks to all contributors!</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6cc3814f80"><code>6cc3814</code></a> Bump CI MSRV to 1.62.1 to resolve Cargo metadata for vte</li>
<li><a href="7c9465b75b"><code>7c9465b</code></a> Bump version to 0.17.4</li>
<li><a href="5dc966c309"><code>5dc966c</code></a> Bump clap dependency to 4</li>
<li><a href="577a34544a"><code>577a345</code></a> Only check library target against MSRV</li>
<li><a href="9deb9ebe52"><code>9deb9eb</code></a> Add <code>contents_formatted</code> to <code>InMemoryTerm</code></li>
<li><a href="e0494e48c2"><code>e0494e4</code></a> fix: inc after work</li>
<li><a href="59cd60674c"><code>59cd606</code></a> Handle newline in msg and empty msg</li>
<li><a href="6d31845d22"><code>6d31845</code></a> resetting the elapsed time also resets ETA</li>
<li><a href="3d5dbb394b"><code>3d5dbb3</code></a> Add render tests</li>
<li><a href="66a90a660c"><code>66a90a6</code></a> Handle MultiProgress println</li>
<li>Additional commits viewable in <a href="https://github.com/console-rs/indicatif/compare/0.17.3...0.17.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=indicatif&package-manager=cargo&previous-version=0.17.3&new-version=0.17.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/4778

Reviewed By: antonk52

Differential Revision: D46355080

Pulled By: passy

fbshipit-source-id: 40a1217d45731b8ea10a532a556c2d51e458fe67
2023-06-01 10:35:15 -07:00
dependabot[bot]
4bf4be9558 Bump react-native-flipper from 0.190.0 to 0.192.0 in /react-native/ReactNativeFlipperExample (#4792)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.190.0 to 0.192.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/flipper/releases">react-native-flipper's releases</a>.</em></p>
<blockquote>
<h2>v0.192.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.191.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.191.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>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="abcfbd822c"><code>abcfbd8</code></a> Flipper Release: v0.192.0</li>
<li><a href="49c356059a"><code>49c3560</code></a> Use a direct download from Node distribution instead of relying on pkg-fetch</li>
<li><a href="1d595862b5"><code>1d59586</code></a> Fix e2e test</li>
<li><a href="5ca9107d0c"><code>5ca9107</code></a> Expose SKIP_TOKEN_VERIFICATION to frontend</li>
<li><a href="53a5939d68"><code>53a5939</code></a> Add one more fallback for the adb path</li>
<li><a href="ff6b0043c4"><code>ff6b004</code></a> avoid creating a copy of an array of entire view to look up index</li>
<li><a href="230c31b548"><code>230c31b</code></a> Upgrade ts-node (<a href="https://redirect.github.com/facebook/flipper/issues/4771">https://github.com/facebook/flipper/issues/4771</a>)</li>
<li><a href="6c84732742"><code>6c84732</code></a> extract get view index into data source view method</li>
<li><a href="27909e8296"><code>27909e8</code></a> Track CSR processing</li>
<li><a href="f25591580c"><code>f255915</code></a> Track insecure connection attempts</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.190.0...v0.192.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-native-flipper&package-manager=npm_and_yarn&previous-version=0.190.0&new-version=0.192.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/4792

Reviewed By: antonk52

Differential Revision: D46355053

Pulled By: passy

fbshipit-source-id: 9bee3337e0753cde3c43be0b5374a06cdb5b0cc1
2023-06-01 10:25:51 -07:00
dependabot[bot]
8bdaca636e Bump com.google.protobuf:protobuf-java from 3.23.1 to 3.23.2 (#4779)
Summary:
Bumps [com.google.protobuf:protobuf-java](https://github.com/protocolbuffers/protobuf) from 3.23.1 to 3.23.2.
<details>
<summary>Commits</summary>
<ul>
<li><a href="a74f54b724"><code>a74f54b</code></a> Updating version.json and repo version numbers to: 23.2</li>
<li><a href="45ddc11b50"><code>45ddc11</code></a> Update upb dependency (<a href="https://redirect.github.com/protocolbuffers/protobuf/issues/12907">#12907</a>)</li>
<li><a href="91e5e6e76d"><code>91e5e6e</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/12906">#12906</a> from mkruskal-google/java-fix-23</li>
<li><a href="b556b8871c"><code>b556b88</code></a> Automated rollback of commit 4d76f12a82bc53cc2d846e65dd8c4bce6c1d4645.</li>
<li><a href="ab367ad73d"><code>ab367ad</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/12852">#12852</a> from fowles/23.x</li>
<li><a href="5bc7e02036"><code>5bc7e02</code></a> fix missing int32_t (<a href="https://redirect.github.com/protocolbuffers/protobuf/issues/12554">#12554</a>)</li>
<li><a href="a171d20df3"><code>a171d20</code></a> Merge pull request <a href="https://redirect.github.com/protocolbuffers/protobuf/issues/12845">#12845</a> from protocolbuffers/23.x-202305171614</li>
<li><a href="3cda141b4d"><code>3cda141</code></a> Updating version.json to: 23.2-dev</li>
<li>See full diff in <a href="https://github.com/protocolbuffers/protobuf/compare/v3.23.1...v3.23.2">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.1&new-version=3.23.2)](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/4779

Reviewed By: antonk52

Differential Revision: D46355076

Pulled By: passy

fbshipit-source-id: 72e493ea24b11a00d5fec978489d78fc048bc9de
2023-06-01 10:16:48 -07:00
Carlos Moreno
b3850c75c7 Update setup.mdx (#4789)
Summary:
Adding missing semicolon.

Added a missing semicolon in java code.

## Changelog
Update documentation.

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

Test Plan: Does not require a test plan.

Reviewed By: antonk52

Differential Revision: D46355062

Pulled By: passy

fbshipit-source-id: 20c398018b1d2deffb9b1a755d2c5a1543e48c21
2023-06-01 07:05:55 -07:00
Anton Kastritskiy
12734d6b7e allow column filter to be loose
Summary:
Until now when we filter by a column value we only get the items that match this value exactly.

Release: we can add loose filters that match value or `undefined`

Reviewed By: lblasa, ivanmisuno

Differential Revision: D46318631

fbshipit-source-id: 94ecb3f074674d4b0ce3a480f4f3b9ddc058ceef
2023-06-01 06:51:41 -07:00
Olivier Chalouhi
f44b168013 Add settings icon to flipper
Summary: Added a new icon to flipper

Differential Revision: D46243405

fbshipit-source-id: a6cde805a0ef2b006eb88ec5e4e79b6c4925facd
2023-05-31 15:49:24 -07:00
Lorenzo Blasa
6430403da0 Jest update v26.6.3 -> v29.5.1
Summary:
^

Basically, update Jest and fix any raised issues. Mainly:
- Update necessary dependencies
- Update snapshots
- `useFakeTimers` caused a few issues which meant that the way we hook into the performance object had to be tweaked. The main code change is: `//fbsource/xplat/sonar/desktop/scripts/jest-setup-after.tsx`
- `mocked` -> `jest.mocked`

Changelog: Update Jest to v29.5.1

Reviewed By: antonk52

Differential Revision: D46319818

fbshipit-source-id: d218ca8f7e43abac6b00844953ddeb7f4e1010a2
2023-05-31 14:19:29 -07:00
Andrey Goncharov
94cb8935b2 Fix adb connection
Summary: On my mac localhost resolves to an IP6 address by the new adb lib. This should fix it.

Reviewed By: LukeDefeo

Differential Revision: D46314612

fbshipit-source-id: 3771efd2c6b79fe9ae9851ce4aac35bcede28847
2023-05-31 09:25:55 -07:00
generatedunixname89002005306973
e7a180b90c Flipper Snapshot Bump: v0.192.1-SNAPSHOT
Summary: Releasing snapshot version 0.192.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D46309560

fbshipit-source-id: 69a76310b639701f3c8e2c25c1b7a2f3ce988deb
2023-05-31 03:54:24 -07:00
generatedunixname89002005306973
abcfbd822c Flipper Release: v0.192.0
Summary: Releasing version 0.192.0

Reviewed By: lblasa

Differential Revision: D46309559

fbshipit-source-id: 94bb3a17dde4554ce903cb8c8d01b0c241ad2976
2023-05-31 03:54:24 -07:00
Lorenzo Blasa
49c356059a Use a direct download from Node distribution instead of relying on pkg-fetch
Summary:
It seems the available binary for macOS arm64 is not signed:

```
codesign -dv --verbose=4 ./node-v16.16.0-macos-arm64
./node-v16.16.0-macos-arm64: code object is not signed
```

This is an issue as it crashes for our flipper server releases.

This can be compared to a binary downloaded from the Node distribution page:

```
codesign -dv --verbose=4 ./node
    Executable=/Users/realpassy/Downloads/node-v16.15.0-darwin-arm64/bin/node
    Identifier=node
    Format=Mach-O thin (arm64)
    CodeDirectory v=20500 size=597360 flags=0x10000(runtime) hashes=18657+7 location=embedded
    VersionPlatform=1
    VersionMin=720896
    VersionSDK=721152
    Hash type=sha256 size=32
    CandidateCDHash sha256=31cdf84cac42a622c1a68558376700a2dd12d40d
    CandidateCDHashFull sha256=31cdf84cac42a622c1a68558376700a2dd12d40d81c5118f3b0e0370c414eb69
    Hash choices=sha256
 CMSDigest=31cdf84cac42a622c1a68558376700a2dd12d40d81c5118f3b0e0370c414eb69
    CMSDigestType=2
    Executable Segment base=0
    Executable Segment limit=56082432
    Executable Segment flags=0x1
    Page size=4096
    Launch Constraints:
        None
    CDHash=31cdf84cac42a622c1a68558376700a2dd12d40d
    Signature size=8986
    Authority=Developer ID Application: Node.js Foundation (HX7739G8FX)
    Authority=Developer ID Certification Authority
    Authority=Apple Root CA
    Timestamp=26 Apr 2022 at 23:00:57
    Info.plist=not bound
    TeamIdentifier=HX7739G8FX
    Runtime Version=11.1.0
    Sealed Resources=none
    Internal requirements count=1 size=164
```

For additional context:

Node binary by using pkg-fetch. We just get the binary from this release page: https://github.com/vercel/pkg-fetch/releases/tag/v3.4

The exact binary we're downloading is https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v16.15.0-macos-arm64

If you just download that via Chrome, it will trigger Gatekeeper and you need to manually click "Allow" in the system privacy settings. You can also do the same by just running:

    xattr -c ./node-v16*

Afterwards you can:
   chmod +x ./node*

It will crash in the same way that it does after our distribution.

Reviewed By: passy

Differential Revision: D46225503

fbshipit-source-id: f0ae2d5101b99c9db7fe80333573caef52c787a2
2023-05-31 01:06:17 -07:00