Commit Graph

7992 Commits

Author SHA1 Message Date
Andrey Goncharov
ccba2fb73e Prevent stack overflow in cyclical graphs
Summary: Logview reported "Error: Maximum call stack size exceeded" for "getElementLeaves". Apparently, there was a cycle in the graph that caused it. The new implementation should ignore cycles.

Reviewed By: lblasa

Differential Revision: D43976359

fbshipit-source-id: bb5218a3b29706146501241492ee079773d5abc3
2023-03-10 08:33:19 -08:00
Andrey Goncharov
3d70020f40 Downgrade user error to warning
Summary: We can't do much if a phone is not setup properly

Reviewed By: lblasa

Differential Revision: D43980508

fbshipit-source-id: 5baf82ae36030b81c7cc90bcf6a5de2af9304fb3
2023-03-10 08:32:24 -08:00
Niccolò Belli
6452816de7 fix(build-utils): await stripSourceMapComment (#4586)
Summary:
I've just packaged Flipper for Gentoo Linux and I wanted to use the system electron instead of bundling its own copy into the flipper executable. To do so I use my custom `electron-builder` and `app-builder` versions, which also allows me to support otherwise unsupported architectures like ppc64. That means skipping the downloading/unzipping/bundling steps for electron, which greatly shortens the overall build process.
Being that fast resulted in countless hours of debugging, because the resulting `app.asar` wouldn't work. At some point I noticed that electron-builder cli was working flawlessly while processing the same exact config through the Javascript API resulted in failure, so I started digging into your scripts and I've noticed that you didn't await `stripSourceMapComment` into `desktop/scripts/build-utils.ts`.
In particular the `compile` function was returning before `stripSourceMapComment` had finished doing its stuff, which ended up messing with electron-builder later.
You didn't notice because you download electron, unzip it, etc which takes enough time to let `stripSourceMapComment` finish its stuff before the actual build starts, but since I skip these steps in order to use system electron I've been able to notice it.

## Changelog

I simply await `stripSourceMapComment` promises in `build-utils`.

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

Test Plan:
`cd desktop && yarn && yarn build` is enough to test this.

## Additional Suggestions

I also suggest to enable the [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises/) eslint rule in order to ensure similar mistakes won't happen in the future.

Reviewed By: ivanmisuno, mweststrate

Differential Revision: D43974442

Pulled By: passy

fbshipit-source-id: 5acfa3d1479828e9373070c40fe3dd865a862561
2023-03-10 06:34:10 -08:00
github-actions[bot]
6eacbe87cc Automated: Update Podfile.lock (#4528)
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/4528

Reviewed By: ivanmisuno

Differential Revision: D43974467

Pulled By: passy

fbshipit-source-id: b2a0b3539add658f59221acadc6701bdcae3238c
2023-03-10 06:27:37 -08:00
Lorenzo Blasa
2dde672045 Events tab
Summary:
Add a frameworks events tab. This is currently using the `TimelineDataDescription` component which may ultimately be replaced by something more sophisticated.

In the meanwhile, this does the job of chronologically displaying events with a label.

Reviewed By: mweststrate

Differential Revision: D43948891

fbshipit-source-id: 31ebf8a1d0e126856c3aa5291a1a06d7f2547233
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
d669fd08e5 TimelineDataDescription optional properties
Summary: Make properties optional. Additionally, only show them if found.

Reviewed By: mweststrate

Differential Revision: D43948493

fbshipit-source-id: 0aa77a725663b456f069c717b4ea051008516c9e
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
b4f6f9f008 TimelineDataDescription optional onClick
Summary: Make this property optional as is not always required to implement it, if not needed.

Reviewed By: mweststrate

Differential Revision: D43948425

fbshipit-source-id: 43ed761c70c4779134f277a4cda53c1e3d326cb8
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
d349135683 Badge for events instead of inline approach
Summary:
Instead of showing events as inline attributes, just show a badge with the number of it. Event details will be displayed with other means:

- Hover
- Dedicated tab
- Other

Reviewed By: mweststrate

Differential Revision: D43946575

fbshipit-source-id: 762a241040d7fc6afb2c86d129a620ff2bb15feb
2023-03-10 06:18:21 -08:00
Lorenzo Blasa
ed4903576a Better guidelines
Summary: Removes dotted/dashed lines for the hierarchy guidelines.

Reviewed By: ivanmisuno

Differential Revision: D43912904

fbshipit-source-id: c65de8258c7efc997ae739022e6af5919d6453f6
2023-03-10 03:14:32 -08:00
Ivan Misuno
23ba461ab3 Scaffolding FlipperKitBloksDebuggerPlugin
Summary:
Add scaffolding for the bloks-debugger plugin (Flipper, iOS).
On iOS side, integrate with fbios, igios, msgios & FBBloksShell playground apps.

Reviewed By: aigoncharov

Differential Revision: D43306472

fbshipit-source-id: ffc6348d6e0810d4ddeebe3b192b7bf06049a2d1
2023-03-09 13:05:36 -08:00
dependabot[bot]
cef1f4ae75 Bump rayon from 1.6.1 to 1.7.0 in /packer (#4571)
Summary:
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.6.1 to 1.7.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rayon-rs/rayon/blob/master/RELEASES.md">rayon's changelog</a>.</em></p>
<blockquote>
<h1>Release rayon 1.7.0 / rayon-core 1.11.0 (2023-03-03)</h1>
<ul>
<li>The minimum supported <code>rustc</code> is now 1.59.</li>
<li>Added a fallback when threading is unsupported.</li>
<li>The new <code>ParallelIterator::take_any</code> and <code>skip_any</code> methods work like
unordered <code>IndexedParallelIterator::take</code> and <code>skip</code>, counting items in
whatever order they are visited in parallel.</li>
<li>The new <code>ParallelIterator::take_any_while</code> and <code>skip_any_while</code> methods work
like unordered <code>Iterator::take_while</code> and <code>skip_while</code>, which previously had
no parallel equivalent. The &quot;while&quot; condition may be satisfied from anywhere
in the parallel iterator, affecting all future items regardless of position.</li>
<li>The new <code>yield_now</code> and <code>yield_local</code> functions will cooperatively yield
execution to Rayon, either trying to execute pending work from the entire
pool or from just the local deques of the current thread, respectively.</li>
</ul>
<h1>Release rayon-core 1.10.2 (2023-01-22)</h1>
<ul>
<li>Fixed miri-reported UB for SharedReadOnly tags protected by a call.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7ffaf3463b"><code>7ffaf34</code></a> Merge <a href="https://github-redirect.dependabot.com/rayon-rs/rayon/issues/716">https://github.com/facebook/flipper/issues/716</a></li>
<li><a href="163003e0e3"><code>163003e</code></a> bump the release date</li>
<li><a href="f7d75532fc"><code>f7d7553</code></a> Release rayon 1.3.0 / rayon-core 1.7.0</li>
<li><a href="b98bb23f05"><code>b98bb23</code></a> Remove unneeded extern crate statements</li>
<li><a href="9b92c7deb9"><code>9b92c7d</code></a> cargo fmt</li>
<li><a href="e02f439bbf"><code>e02f439</code></a> Remove useless 'use crate;' in favor of the crate prelude</li>
<li><a href="a1db0fe390"><code>a1db0fe</code></a> Fix clippy::flat_map_identity</li>
<li><a href="4e4025693f"><code>4e40256</code></a> Update ci/compat-Cargo.lock</li>
<li><a href="1f9d117d51"><code>1f9d117</code></a> Remove cfg(rayon_unstable)</li>
<li><a href="198ca7f6aa"><code>198ca7f</code></a> Remove rayon-futures</li>
<li>Additional commits viewable in <a href="https://github.com/rayon-rs/rayon/compare/rayon-core-v1.6.1...rayon-core-v1.7.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: lblasa

Differential Revision: D43904929

Pulled By: passy

fbshipit-source-id: 7e8fdb590b30c89a6f144a936a28b118633fb688
2023-03-09 06:41:52 -08:00
dependabot[bot]
2fca50ec8b Bump react-native-flipper from 0.180.0 to 0.183.0 in /react-native/ReactNativeFlipperExample (#4569)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.180.0 to 0.183.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.183.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.182.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
<h2>v0.181.0</h2>
<p>See <a href="https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md">https://github.com/facebook/flipper/blob/main/desktop/static/CHANGELOG.md</a>
for full notes.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="80edf44dc5"><code>80edf44</code></a> Flipper Release: v0.183.0</li>
<li><a href="3a36c269e7"><code>3a36c26</code></a> Element name to not overflow</li>
<li><a href="914b32c383"><code>914b32c</code></a> Add framework event infra</li>
<li><a href="39b14fc428"><code>39b14fc</code></a> Track socket usage during file download</li>
<li><a href="fa74ebba68"><code>fa74ebb</code></a> Restore TimeMachine in Flipper</li>
<li><a href="7d99913416"><code>7d99913</code></a> Bump SoLoader version to 0.10.5 in readme</li>
<li><a href="b6f3be01f9"><code>b6f3be0</code></a> Remove client connection timeout</li>
<li><a href="b062ee0629"><code>b062ee0</code></a> Fix feedback prompt on dark mode</li>
<li><a href="26a7e17df6"><code>26a7e17</code></a> Remove unused import</li>
<li><a href="2e31247486"><code>2e31247</code></a> Move flipper-fresco-plugin to fresco's repo from flipper's repo (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/4546">https://github.com/facebook/flipper/issues/4546</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.180.0...v0.183.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.180.0&new-version=0.183.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/4569

Reviewed By: lblasa

Differential Revision: D43904937

Pulled By: passy

fbshipit-source-id: 05c7a910b220f42b38f9fb41edee8517e0f8d6cc
2023-03-09 03:46:08 -08:00
dependabot[bot]
37b95c251e Bump com.github.ben-manes.versions from 0.44.0 to 0.46.0 (#4551)
Summary:
Bumps com.github.ben-manes.versions from 0.44.0 to 0.46.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.44.0&new-version=0.46.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/4551

Reviewed By: lblasa

Differential Revision: D43904939

Pulled By: passy

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

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

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

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

 ---

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

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

</details>

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

Reviewed By: lblasa

Differential Revision: D43904930

Pulled By: passy

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

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

Reviewed By: lblasa

Differential Revision: D43904047

Pulled By: passy

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

Reviewed By: passy

Differential Revision: D43879496

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

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

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

Reviewed By: passy

Differential Revision: D43879098

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

Reviewed By: ardavank

Differential Revision: D43837781

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

Reviewed By: fabiomassimo

Differential Revision: D43872434

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

Reviewed By: antonk52

Differential Revision: D43872394

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

Reviewed By: antonk52

Differential Revision: D43872373

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

Reviewed By: antonk52

Differential Revision: D43872203

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

Reviewed By: antonk52

Differential Revision: D43872178

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

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

Reviewed By: antonk52

Differential Revision: D43872161

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

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

Reviewed By: antonk52

Differential Revision: D43870273

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

Reviewed By: lblasa

Differential Revision: D43739851

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

Reviewed By: lawrencelomax

Differential Revision: D43834469

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

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

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

```

Reviewed By: ivanmisuno

Differential Revision: D43767006

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

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

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

Reviewed By: antonk52

Differential Revision: D43773298

fbshipit-source-id: 8e1099249626ca9fe745ce51014491fe9674a5a4
2023-03-03 11:04:13 -08:00
Vova-SH
a46b7c2e78 Fix example code on setup leakCanary plugin (#4566)
Summary:
Fix sample for install leak canary plugin

## Changelog

add brackets on sample code

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

Test Plan: -

Reviewed By: antonk52

Differential Revision: D43766946

Pulled By: passy

fbshipit-source-id: 4bded0122330ab4186745a9f5b2dcbd511318ee3
2023-03-03 10:38:42 -08:00
Lorenzo Blasa
4d5bf8084b Remove feedback request
Summary: It has served its purpose, remove.

Reviewed By: LukeDefeo

Differential Revision: D43769239

fbshipit-source-id: 36fb575b15fe9d092c7728a56b735ff98ff78608
2023-03-03 07:33:24 -08:00
Mohammed Abdel Raouf
0c442bf4b1 Fix searching for FlipperClient.h headers in productions builds if PRODUCTION=1 passed (#4275)
Summary:
In newer builds of react-native if you passed parameters PRODUCTION=1, flipper pods won't get installed
you can see that in their codebase here [react_native_pods.rb](6a43fafd78/scripts/react_native_pods.rb (L140))

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

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

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

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

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

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

Reviewed By: jknoxville

Differential Revision: D41298345

Pulled By: mweststrate

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

Reviewed By: passy

Differential Revision: D43692457

fbshipit-source-id: 1b1f21e2bcb495a640143cd1012e36f2382ed959
2023-03-01 10:06:37 -08:00
generatedunixname89002005306973
80edf44dc5 Flipper Release: v0.183.0
Summary: Releasing version 0.183.0

Reviewed By: passy

Differential Revision: D43692458

fbshipit-source-id: 7a879ae59de489643cf2195b89bf5232e0eecdf7
2023-03-01 10:06:37 -08:00
Lorenzo Blasa
3a36c269e7 Element name to not overflow
Summary: ^

Reviewed By: LukeDefeo, antonk52

Differential Revision: D43697303

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

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

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

Reviewed By: lblasa

Differential Revision: D42606933

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

Reviewed By: passy

Differential Revision: D43692927

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

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

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

{F884011465}

Reviewed By: LukeDefeo, adityasharat

Differential Revision: D43574130

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

Reviewed By: lblasa

Differential Revision: D43575139

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

Reviewed By: antonk52

Differential Revision: D43405793

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

It was reported the feedback prompt title was unreadable.

Reviewed By: mweststrate

Differential Revision: D43533800

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

Reviewed By: mweststrate

Differential Revision: D43533768

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

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

Reviewed By: passy

Differential Revision: D43467895

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

Differential Revision: D43494264

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

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

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

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

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

 ---

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

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

</details>

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

Reviewed By: ivanmisuno

Differential Revision: D43438544

Pulled By: passy

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

Reviewed By: lawrencelomax

Differential Revision: D43495107

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

Original Phabricator Diff: D43408140 (b0a6b0f430)

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

Reviewed By: lblasa

Differential Revision: D43466846

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

Reviewed By: d16r

Differential Revision: D43408140

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

Reviewed By: ivanmisuno

Differential Revision: D43389079

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

Reviewed By: ivanmisuno

Differential Revision: D43389080

fbshipit-source-id: 3a59082194d24c138fbd2c9bcc2e984b46c6f54e
2023-02-17 08:04:32 -08:00