Commit Graph

1383 Commits

Author SHA1 Message Date
dependabot[bot]
42745ff539 Bump metro-resolver from 0.65.2 to 0.66.0 in /desktop (#2264)
Summary:
allow-large-files
Bumps [metro-resolver](https://github.com/facebook/metro) from 0.65.2 to 0.66.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-resolver's releases</a>.</em></p>
<blockquote>
<h2>Release v0.66.0</h2>
<ul>
<li><strong>[Breaking]</strong> metro-symbolicate: Optionally accept a SourceURL parameter for debug builds (7ad7560)</li>
<li><strong>[Feature]</strong> Move generator to Hermes stable (b280477)</li>
<li><strong>[Feature]</strong> Move for-of and ?? to hermes stable (31375f7)</li>
<li><strong>[Feature]</strong> Set app name for React Native Experimental Debug Connection (3aca116)</li>
<li><strong>[Feature]</strong> Infer the name &quot;default&quot; for anonymous exports (af23a1b)</li>
<li><strong>[Fix]</strong> Disable fileName moduleId parsing for non-legacy source maps (e473e93)</li>
<li><strong>[Fix]</strong> Format log messages using printf format (f2b3485)</li>
<li><strong>[Fix]</strong> Fix scope of function declaration binding in constant folding (150d13e)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="20e4480f9e"><code>20e4480</code></a> Bump metro to 0.66.0</li>
<li><a href="7ad7560e33"><code>7ad7560</code></a> Optionally accept a SourceURL parameter for debug builds</li>
<li><a href="af23a1b27b"><code>af23a1b</code></a> Infer the name &quot;default&quot; for anonymous exports</li>
<li><a href="31375f7604"><code>31375f7</code></a> Move for-of and ?? to hermes stable</li>
<li><a href="3aca116973"><code>3aca116</code></a> Set app name for React Native Experimental Debug Connection</li>
<li><a href="4bd9e40297"><code>4bd9e40</code></a> Deploy v0.148.0 to xplat</li>
<li><a href="54bcce22c6"><code>54bcce2</code></a> Backout for-of and canary ??</li>
<li><a href="f66d6e37f2"><code>f66d6e3</code></a> Canary Hermes for-of</li>
<li><a href="17d4761946"><code>17d4761</code></a> Clean up redundant experimental flowconfig options</li>
<li><a href="0b4f46c064"><code>0b4f46c</code></a> Update troubleshooting docs for metro cache tmpdir (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/642">https://github.com/facebook/flipper/issues/642</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.65.2...v0.66.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro-resolver&package-manager=npm_and_yarn&previous-version=0.65.2&new-version=0.66.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/2264

Reviewed By: mweststrate

Differential Revision: D28181904

Pulled By: passy

fbshipit-source-id: dae2d6e5936e21a09d831460129b69563c8a4bed
2021-05-04 14:11:58 -07:00
dependabot[bot]
9c6874b5f7 Bump metro from 0.65.2 to 0.66.0 in /desktop (#2261)
Summary:
allow-large-files

Bumps [metro](https://github.com/facebook/metro) from 0.65.2 to 0.66.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro's releases</a>.</em></p>
<blockquote>
<h2>Release v0.66.0</h2>
<ul>
<li><strong>[Breaking]</strong> metro-symbolicate: Optionally accept a SourceURL parameter for debug builds (7ad7560)</li>
<li><strong>[Feature]</strong> Move generator to Hermes stable (b280477)</li>
<li><strong>[Feature]</strong> Move for-of and ?? to hermes stable (31375f7)</li>
<li><strong>[Feature]</strong> Set app name for React Native Experimental Debug Connection (3aca116)</li>
<li><strong>[Feature]</strong> Infer the name &quot;default&quot; for anonymous exports (af23a1b)</li>
<li><strong>[Fix]</strong> Disable fileName moduleId parsing for non-legacy source maps (e473e93)</li>
<li><strong>[Fix]</strong> Format log messages using printf format (f2b3485)</li>
<li><strong>[Fix]</strong> Fix scope of function declaration binding in constant folding (150d13e)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="20e4480f9e"><code>20e4480</code></a> Bump metro to 0.66.0</li>
<li><a href="7ad7560e33"><code>7ad7560</code></a> Optionally accept a SourceURL parameter for debug builds</li>
<li><a href="af23a1b27b"><code>af23a1b</code></a> Infer the name &quot;default&quot; for anonymous exports</li>
<li><a href="31375f7604"><code>31375f7</code></a> Move for-of and ?? to hermes stable</li>
<li><a href="3aca116973"><code>3aca116</code></a> Set app name for React Native Experimental Debug Connection</li>
<li><a href="4bd9e40297"><code>4bd9e40</code></a> Deploy v0.148.0 to xplat</li>
<li><a href="54bcce22c6"><code>54bcce2</code></a> Backout for-of and canary ??</li>
<li><a href="f66d6e37f2"><code>f66d6e3</code></a> Canary Hermes for-of</li>
<li><a href="17d4761946"><code>17d4761</code></a> Clean up redundant experimental flowconfig options</li>
<li><a href="0b4f46c064"><code>0b4f46c</code></a> Update troubleshooting docs for metro cache tmpdir (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/642">https://github.com/facebook/flipper/issues/642</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.65.2...v0.66.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro&package-manager=npm_and_yarn&previous-version=0.65.2&new-version=0.66.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/2261

Reviewed By: mweststrate

Differential Revision: D28181917

Pulled By: passy

fbshipit-source-id: 5219b826a8acfeb098fd0ac72f0503a679780bb6
2021-05-04 14:11:57 -07:00
dependabot[bot]
ab7096f032 Bump app-builder-lib from 22.10.5 to 22.11.1 in /desktop (#2260)
Summary:
allow-large-files

Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder) from 22.10.5 to 22.11.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/electron-userland/electron-builder/releases">app-builder-lib's releases</a>.</em></p>
<blockquote>
<h2>22.11.1</h2>
<h3>Bug Fixes</h3>
<ul>
<li>check if icons subdir exists in build resources, otherwise don't prepend it to fallback sources (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5686">#5686</a>) (<a href="8df250b464">8df250b</a>)</li>
<li>DMG assembly on Apple Silicon (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/4606">#4606</a>) (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5724">#5724</a>) (<a href="469b85fa2a">469b85f</a>)</li>
<li>Escape version in NSIS Updater during replace (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5655">#5655</a>) (<a href="77c215d1b1">77c215d</a>)</li>
<li>extend http file limit (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5843">#5843</a>) (<a href="9305fefa12">9305fef</a>), closes <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/4676">#4676</a></li>
<li>fixing downloadPromise not resolving on Mac. (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5802">#5802</a>) (<a href="d57453cffc">d57453c</a>)</li>
<li>test snap update for abi_registry.json (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5823">#5823</a>) (<a href="6237e670a8">6237e67</a>)</li>
<li>typo in <code>fileMatcher</code>'s default patterns (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5705">#5705</a>) (<a href="c0ae89c004">c0ae89c</a>)</li>
<li>update repo in CONTRIBUTING.md (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5726">#5726</a>) (<a href="da85087143">da85087</a>)</li>
<li><strong>electron-updater:</strong> do not install on quit when autoInstallOnAppQuit is set to false (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5681">#5681</a>) (<a href="8f845916d1">8f84591</a>)</li>
<li>windows async signing (<a href="91627116fd">9162711</a>)</li>
<li><strong>nsis:</strong> keep injected logger state (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5596">#5596</a>) (<a href="be4a1fb05b">be4a1fb</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>add custom macro for checking uninstallation results (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5712">#5712</a>) (<a href="e4250206e9">e425020</a>)</li>
<li>add Electron branding options (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5727">#5727</a>) (<a href="0de5f1f7d4">0de5f1f</a>)</li>
<li>add option removePackageKeywords (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5814">#5814</a>) (<a href="dcf570f5fe">dcf570f</a>)</li>
<li>Allow specifying additional WiX compiler options (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5813">#5813</a>) (<a href="4e2909cdf5">4e2909c</a>)</li>
<li>build additional arch-specific nsis installers when ${arch} template is provided (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5718">#5718</a>) (<a href="7194c388f6">7194c38</a>)</li>
<li><strong>linux:</strong> Package name can be specified using packageName option (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5530">#5530</a>) (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5588">#5588</a>) (<a href="622aaefd15">622aaef</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9305fefa12"><code>9305fef</code></a> fix: extend http file limit (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5843">#5843</a>)</li>
<li><a href="4e2909cdf5"><code>4e2909c</code></a> feat: Allow specifying additional WiX compiler options (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5813">#5813</a>)</li>
<li><a href="6237e670a8"><code>6237e67</code></a> fix: test snap update for abi_registry.json (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5823">#5823</a>)</li>
<li><a href="dcf570f5fe"><code>dcf570f</code></a> feat: add option removePackageKeywords (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5814">#5814</a>)</li>
<li><a href="79c9f6b6b5"><code>79c9f6b</code></a> docs: CONTRIBUTING.md -&gt; limit line length, refactoring and snippets for Wind...</li>
<li><a href="d57453cffc"><code>d57453c</code></a> fix: fixing downloadPromise not resolving on Mac. (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5802">#5802</a>)</li>
<li><a href="28cb86bdcb"><code>28cb86b</code></a> fix/windows-tests (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5806">#5806</a>)</li>
<li><a href="66f01bba33"><code>66f01bb</code></a> chore: default linux target + ci config (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5787">#5787</a>)</li>
<li><a href="6b1be73e45"><code>6b1be73</code></a> Add support for building Flatpak bundles (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5711">#5711</a>)</li>
<li><a href="0f3b46c3ae"><code>0f3b46c</code></a> [Electron Builder] Fix for Signing error on docker with WSL 2 engine … (<a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/issues/5722">#5722</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/electron-userland/electron-builder/compare/v22.10.5...v22.11.1">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: mweststrate

Differential Revision: D28181919

Pulled By: passy

fbshipit-source-id: ba8f57c46e08f282315391f5bbdbe37d87c271c5
2021-05-04 14:11:57 -07:00
Michel Weststrate
e707fcc9f9 Convert UI to Sandy
Summary:
With proper notification, components and code clean up in place, time for the reward and giving the plugin a fresh look.

Changelog: CrashReporter plugin got a fresh look and several navigation issues were addressed.

Reviewed By: passy

Differential Revision: D28102398

fbshipit-source-id: 5721634e45c5b1fc5fba3fb0c0b8970635b80b46
2021-05-04 13:50:31 -07:00
Michel Weststrate
01ea822341 Code shuffle
Summary:
Moved a lot of utility logic in separate files for Android and iOS, to make cleanup in next diffs easier by having a bit smaller files.

Purely a code shuffle, no functional changes

Reviewed By: passy

Differential Revision: D28102399

fbshipit-source-id: 2fd8f6669bdd2804fa8a7e1791c610ae7883eda6
2021-05-04 13:50:31 -07:00
Michel Weststrate
c0633652e8 Fix notification handling
Summary:
Changelog: Fixed application crash notifications not opening the crash log

Crashlog notifications were quite blatantly broken:
1. Because I force all GK's to true locally during testing, and the feature gate is negative, I never had any crash reports in the first place. The GK was empty so removed it.
2. The notifications overview would always cause a NPE when the notification came from a device plugin (it assumed a client to be present). This made the button do nothing and the device name not show up near the notification
3. The OS level notifications would link to the notification screen, which was a static screen in the classic UI and would always render to an empty page in Sandy. Removed that screen from the code base. Instead the click the notification will now trigger the notification action.

Reviewed By: passy

Differential Revision: D28119719

fbshipit-source-id: 5b28dd854260fd479d09e3ee6206301cc669ab40
2021-05-04 13:50:31 -07:00
Michel Weststrate
be3cdedf52 Some UI / docs fine-tuning
Summary: Added wash color option to Toolbar, made codeblocks transparent rather than gray & bordered, which looks cleaner

Reviewed By: passy

Differential Revision: D28119720

fbshipit-source-id: 9d1f4db5b39a91d9d117046bd5482726ac2f555d
2021-05-04 13:50:31 -07:00
Michel Weststrate
d903a862d2 Use DataTable as list base
Summary:
Changelog: Standardized DataList component

This diff standardizes the DataList component, by reusing the DataList. This is done to be able to take full advantage of all its features like virtualisation, keyboard support, datasource support, etc.

Also cleaned up DataTable properties a bit, by prefixing all flags with `enableXXX` and setting clear defaults

Reviewed By: passy

Differential Revision: D28119721

fbshipit-source-id: b7b241ea18d788bfa035389cc8c6ae7ea95ecadb
2021-05-04 13:50:31 -07:00
Michel Weststrate
5bf9541e05 Standardize CodeBlock component
Summary:
Code blocks are quite common in Flipper, and a bit verbose in Ant, so let's standardize!

Changelog: Standardize CodeBlock component

Reviewed By: passy

Differential Revision: D28117560

fbshipit-source-id: 5a5538a49b59ef40c814d22055fac56e7598cbbb
2021-05-04 13:50:31 -07:00
Michel Weststrate
dd7a9f5195 introduce onReady life-cycle
Summary: Flipper Sandy plugins didn't have an event to hook into that is run _after_ any state snapshot is loaded, which was needed by the graphQL plugin, as they do some post processing when a data snapshot is restored.

Reviewed By: passy

Differential Revision: D28189573

fbshipit-source-id: 4ef992f3fafc32787eab3bc235059f2c41396c80
2021-05-04 12:52:26 -07:00
dependabot[bot]
574e902a34 Bump jest-mock-console from 1.0.1 to 1.1.0 in /desktop (#2265)
Summary:
Bumps [jest-mock-console](https://github.com/bpedersen/jest-mock-console) from 1.0.1 to 1.1.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/bpedersen/jest-mock-console/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jest-mock-console&package-manager=npm_and_yarn&previous-version=1.0.1&new-version=1.1.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/2265

Reviewed By: mweststrate

Differential Revision: D28181903

Pulled By: passy

fbshipit-source-id: 40b305d3a90a01adfb7e21b3cbd5a8e75ce5de04
2021-05-04 11:49:56 -07:00
Pascal Hartig
bf571065f9 Allow copying from whole row
Summary:
Increase the mouse target for copying values from the the tree in a data inspector to the full row, not just the text.

Not sure if bringing reversing the order here has any unintended side-effects, but in testing it seems to work fine.

Reviewed By: mweststrate

Differential Revision: D28185064

fbshipit-source-id: b9b86a7e181bfd0083f2a3bcb24c571b5ec4647e
2021-05-04 10:35:36 -07:00
dependabot[bot]
d02951e8e9 Bump @types/yargs from 15.0.13 to 16.0.1 in /desktop (#2262)
Summary:
Bumps [types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 15.0.13 to 16.0.1.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: mweststrate

Differential Revision: D28181914

Pulled By: passy

fbshipit-source-id: c4d85bcad4bbc5829b7177bec3debb1bc94b7caa
2021-05-04 10:35:36 -07:00
Pascal Hartig
c59d1fd2a5 More dep mass-bumping
Summary: Some more deps bumps that don't have breaking changes.

Reviewed By: mweststrate

Differential Revision: D28121014

fbshipit-source-id: 51a6473fe8aceb32fb58a7602d41d5cae0c94259
2021-05-04 10:03:52 -07:00
Anton Nikolaev
3586f8ebbb UI Conversion: extracted plugin UI root component into a separate file
Summary: Extracted plugin UI root coomponent to a separate file to avoid falling back to full reloads even when "--fast-refresh" flag provided

Reviewed By: mweststrate

Differential Revision: D28119498

fbshipit-source-id: 18ef891512cbe5ddc34cacf7010dfd82f86c4fcc
2021-04-30 09:38:15 -07:00
Anton Nikolaev
45397fd2f4 UI Conversion: use DetailsSidebar from "flipper-plugin"
Summary: Use DetailsSidebar from "flipper-plugin"

Reviewed By: mweststrate

Differential Revision: D28110484

fbshipit-source-id: 0b9e3c07fc642242f2846f024895e740078779f7
2021-04-30 09:38:15 -07:00
Anton Nikolaev
368dd4a5ab Remove Value/renderValue public API from "flipper"
Summary:
Moving Value/renderValue API to "database" plugin as these APIs used exclusively by this plugin.

Alternative to that could be moving this API to "flipper-plugin" instead, but I think it doesn't make sense to expose public API which is only used in one plugin.

Reviewed By: mweststrate

Differential Revision: D28110483

fbshipit-source-id: 1576444681c1e0531fe45f0c15f442d65a28f803
2021-04-30 09:38:15 -07:00
Anton Nikolaev
23102b1997 UI Conversion: Use DataTable to show DB table structure
Summary: Use DataTable to show table structure

Reviewed By: mweststrate

Differential Revision: D28110485

fbshipit-source-id: 81f843a4763e1fbf5acf870621bc9049f719fd2c
2021-04-30 09:38:15 -07:00
Anton Nikolaev
763eda8f6b Fix re-loading of source maps with "-fast-refresh" flag enabled
Summary: Fixed loading of source maps when dev server is running with --fast-refresh flag set. Looks like it was broken after last metro upgrade because it changed the way how module paths are passed to dev server. We also had a hack to workaround bug when requested module paths were malformed, but it looks this hack is not needed now, so I deleted it as well.

Reviewed By: passy

Differential Revision: D28120080

fbshipit-source-id: 03a39c9840da8f4c8c72be6189c0b71c62fac7f0
2021-04-30 09:38:15 -07:00
Pascal Hartig
1447ae0c18 Proposal: Make AppInspect open on click
Summary:
This addresses my biggest gripe with Flipper right now (maybe after it occasionally crashing my entire Mac, but that's beyond our control, sadly). When you try to switch your current device and hover over the picker, move your mouse quickly to where you expect the menu to open, it will immediate close. You have to wait for about 200ms before moving your cursor down into the expanded dropdown menu. "Well, it's only 200ms, Passy, chill." That's fair, but I still think that hovering to open a dropdown is unnatural behaviour. Looking around here in Phabricator, none of the dropdowns behave like this. And they definitely don't just disappear under my cursor if I'm Moving (too) Fast.

Changelog: The app selector no longer reacts on hover events now requites a click

Reviewed By: mweststrate

Differential Revision: D28118657

fbshipit-source-id: 67867d597b21b80a0de87ecbc8c86a7334f81952
2021-04-30 07:33:22 -07:00
Brian Vaughn
2520e6912f Update React DevTools to ^4.13.0
Summary:
React DevTools has gotten pretty outdated in React Native. Let's fix that!

Last time I tried this it caused a lot of churn for tools like Flipper, so I approached this in two steps ([detailed in this post](https://fb.workplace.com/groups/rnsyncsquad/permalink/808063140086959/)).

First was a short term plan (as implemented in [PR 21344](https://github.com/facebook/react/pull/21344)) to:
1. Branch and make a patch release of DevTools 4.10 that adds a protocol check to the frontend (to detect any newer backends).
2. Upgrade Flipper (and recommend upgrade for the OSS React Native Debugger as well) to this new frontend.
3. Wait for the updated frontend to roll out.

The short term plan is now done, at least for the internal build of Flipper, and both GitHub PRs to update Flipper and React Native Debugger have been merged.

So this diff moves forward with the longer term plan (implemented in [PR 21331](https://github.com/facebook/react/pull/21331)):
1. Add an explicit version to the protocol used by the DevTools "backend" and "frontend" components to talk to each other.
2. Check this protocol during initialization to ensure it matches.
3. Show upgrade/downgrade instructions if there's a mismatch (or if the check times out without a response– indicating an older backend).
4. Release this as 4.13.

 ---

Changelog:
[General][Changed] - Upgrade `react-devtools-core` from ~4.6.0 to ^4.13.0

Reviewed By: yungsters

Differential Revision: D28103394

fbshipit-source-id: 21114294144bde9aede63cb3ba98a240082299bd
2021-04-29 16:58:33 -07:00
Michel Weststrate
699343a9ca Fix bug causing archived devices trying to connect
Reviewed By: nikoant

Differential Revision: D28064540

fbshipit-source-id: 43f05c4348a33e9633751bb9f69cd8d17ddd13c4
2021-04-29 12:12:57 -07:00
Anthony Dubis
8a3ba8615d Extend Atom's update interface
Summary:
This help handle updates to objects containing JSONObject type (generates typescript errors around infinite recursion:

> Type instantiation is excessively deep and possibly infinite.ts(2589)

Reviewed By: mweststrate

Differential Revision: D28098502

fbshipit-source-id: a8e7f785b03bce7c8e1c0b355e2eca2e087b1881
2021-04-29 12:06:21 -07:00
Anton Nikolaev
84b48ff7e9 UI Conversion: Cleanup margins / paddings
Summary:
Cleaned up margins and paddings by removing hardcoded values and use constant sizes from "themes" instead.

Changelog: Database plugin UI aligned with the new Flipper UI

Reviewed By: mweststrate

Differential Revision: D28094217

fbshipit-source-id: 6514b2f1ea7073ca658a86e49c2be029f054ddf0
2021-04-29 12:04:04 -07:00
Anton Nikolaev
e1afe9d6b9 UI Conversion: Use TextArea from antd
Summary: Replaced Text and TextArea components by antd analogues

Reviewed By: mweststrate

Differential Revision: D28088959

fbshipit-source-id: 87f867f04f34a9b026045b34467a35437d132317
2021-04-29 12:04:04 -07:00
Anton Nikolaev
71d827288f UI Conversion: Replace buttons and dropdowns to antd analogues
Summary: Replaced favorite query dropdown to antd analogue

Reviewed By: mweststrate

Differential Revision: D28089366

fbshipit-source-id: 0d6e01bf6169f100ba7c9e612f0da8240ca3218d
2021-04-29 12:04:04 -07:00
Anton Nikolaev
1a315c510e UI Conversion: Switched ButtonGroup to Radio
Summary: Switched button group to Ant's radio buttons

Reviewed By: mweststrate

Differential Revision: D28068173

fbshipit-source-id: bcde8f32d76f76c18cf8bc8c8742bc3e01c54c7c
2021-04-29 12:04:04 -07:00
Anton Nikolaev
f743bd68a1 UI Conversion: Use Select from antd
Summary: Used Antd's Select component instead of the old one. In addition to that also enabled search in Select which can be quite handly as there might be many databases / tables.

Reviewed By: mweststrate

Differential Revision: D28068179

fbshipit-source-id: 4ff337a532e035c8b53a23858b5ba6d900e65ebd
2021-04-29 12:04:04 -07:00
Anton Nikolaev
24ac075d76 UI Conversion: Replaced all usages of FlexRow / FlexColumn to Layout
Summary: Replaced all usages of FlexRow / FlexColumn to new Layout component

Reviewed By: mweststrate

Differential Revision: D28055698

fbshipit-source-id: ad50762b068c897e5c4c182ac2d575d7e3a5f166
2021-04-29 12:04:04 -07:00
Anton Nikolaev
00fb573ba2 Extracted and memoized components
Summary: Just small refactoring to extract / memoize some of components

Reviewed By: mweststrate

Differential Revision: D28055699

fbshipit-source-id: 3d689a4e41e3f3c4c4e2e8cc2887cb255b4c4dc2
2021-04-29 12:04:04 -07:00
Michel Weststrate
ae65e2ccb8 Fix logs loosing connection occasionally
Summary:
Changelog: Fixed an issue where Android logs would get stuck

Our adb and rsocket connection are fundamentally unstable; every now and then it looses connection (at least on my machine). This happens both for emulators and real devices.

If the logcat connection closes, it isn't restarted, so occassionaly the the logs would get 'stuck'. Fixed it by automatically restarting the stream if the close wasn't intentional.

Investigated the stack of the disconnects, but it isn't caused on our end, the closures originate from (R)socket itself, so this band aid seems unavoidable.

Using a near-zero timeout does work as well. Gave it a 100ms grace time though, in case starvation is a factor in the original problem. This might cause a few messages to be missed though, but it doesn't seem to happen to often (every few minutes in my case)

Reviewed By: passy

Differential Revision: D28095802

fbshipit-source-id: f22336ad46c04a3d886ff9dbc4d787591ac75eea
2021-04-29 11:45:14 -07:00
Michel Weststrate
1a8943e903 Fix autoscroll issue
Summary:
Noticed a regression in sticky scrolling not being sticky. I suspect this is caused by pixel inaccuracy + rounding, but our offset from bottom calculation consistently now reports `1` when being at the end of the scrollable region.

Too bad it is really hard to protect against these kind of regressions automated.

Reviewed By: passy

Differential Revision: D28095803

fbshipit-source-id: 1dbd57d84fb308023c2300c543aca344bf27ec28
2021-04-29 11:45:14 -07:00
Pascal Hartig
c3f3b35a31 Mass-bump deps
Summary:
Trying to get ahead of dependabot by bumping a bunch of things at once
that are minor or patch level bumps.

Reviewed By: muraziz

Differential Revision: D28094201

fbshipit-source-id: b6b53ae2d582686201124b82fed4f436a60b3172
2021-04-29 11:33:57 -07:00
John Knox
679ef665e2 Cleanup CPU plugin
Summary:
Addressing code review feedback from previous 3 diffs.

* Don't return draft when using immer
* Move functions out of component to module level
* Make executeShell async and simplify callsites
* Add onStopMonitor to cleanup function
* Add uniform spacing by adding Layout.Container around titles
* Disable searchbar on both tables
* Use Toolbar

Reviewed By: mweststrate

Differential Revision: D28091565

fbshipit-source-id: 533d2491e6f48a9eaaa64b1a6cf76eea2e7189a5
2021-04-29 07:41:23 -07:00
John Knox
303e42535c Finish converting CPU plugin to Sandy
Summary: Finishes off by converting the rest of the UI.

Reviewed By: mweststrate

Differential Revision: D28061468

fbshipit-source-id: 8d87d3344fe3937470e566d8c425efc97f38333c
2021-04-29 07:41:23 -07:00
John Knox
92f51485c9 Fix CPU plugin concurrency issues
Summary:
Half way through sandy conversion I ended up redoing the task scheduling in this plugin because it was sketchy and unreliable.

Previously, it was using setInterval to schedule a task every 500ms, which would query a lot of data from the device. The problem was that if these tasks took >500ms (which they did for me at least), you'd get overlapping ones, causing havoc.

Now it uses setTimeout instead, promisifies everything, and only ever schedules the next timeout when the current task has finished.

Also fixed a race condition where you could hit stop, but not actually stop the recurring tasks... and then there was no way to stop them because it was already "stopped".

Reviewed By: mweststrate

Differential Revision: D28061469

fbshipit-source-id: 2bb8aba7ddf37ba1fdbdc52c95ec258cae96f509
2021-04-29 07:41:23 -07:00
John Knox
a53f1b8f8d Convert CPU plugin to Sandy
Summary:
Starts converting the plugin by moving to new model and switching some of the UI components.

No logic changes here, it's just shifting everything over.

Reviewed By: mweststrate

Differential Revision: D28028052

fbshipit-source-id: 7444eab77d9dba49261a70887ee26b8d120e97a6
2021-04-29 07:41:23 -07:00
Michel Weststrate
923d44ef40 Some mental model explanation on grow / scrollable props
Summary: ^

Reviewed By: jknoxville

Differential Revision: D28059213

fbshipit-source-id: d4bc09d5765ac667e73a9d8c97aaa7f266d77f84
2021-04-29 07:38:40 -07:00
Michel Weststrate
e3cb16d870 Fixed layout issue with undefined column widths
Summary: This fixes an earlier reported issue with Messages plugin, if no column widths are set values can jump around per row

Reviewed By: passy

Differential Revision: D28090807

fbshipit-source-id: be124b94f507584cf177710816035cd280a5ef01
2021-04-29 07:31:54 -07:00
Michel Weststrate
e26a8c5ad0 Provide standardised MasterDetail
Summary:
Noticed in reviews during the convertathon there is still quite some boilerplate in things that happen on the boundary of UI and plugin state, such as setting up menu entries and providing common functionality like clear, master/detail layout, etc.

This diff introduces the `MasterDetail` component, which takes a higher level approach by merely needing to provide the state atoms and desired features, and taking care of the wiring.

Applied it to createTablePlugin, to prove that going from `createTablePlugin` to `MasterDetail` will be a much smaller step now.

Verified on the funnel logger plugin

Reviewed By: passy

Differential Revision: D28090362

fbshipit-source-id: 146f8c315fea903901ad4e3e46711642f16cf0e6
2021-04-29 07:31:54 -07:00
Brian Vaughn
e7cdbcbe85 Update react-devtools-core from ~4.10.2 to ~4.10.3 (#2244)
Summary:
4.10.2 had an fburl.com link in it when I should have used an fb.me link :( I'm sorry

cc mweststrate

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

Reviewed By: passy

Differential Revision: D28054736

Pulled By: mweststrate

fbshipit-source-id: 0330f884e5d82cc669232aee3d8439b0f51240bd
2021-04-29 04:25:34 -07:00
Anton Nikolaev
c4887e638b Fixed adding queries to favorites
Summary: I found a bug after migration to Sandy. It is now not possible to add queries to favorites. This diff fixes the issue.

Reviewed By: mweststrate

Differential Revision: D28066435

fbshipit-source-id: 129a62dab9521160f8957abba70e5c7a6e609839
2021-04-29 01:27:54 -07:00
Michel Weststrate
05bf55419f Introduce createTablePlugin
Summary: This diff exposes the createTablePlugin from flipper-plugin, so that createTablePlugin based plugins can be converted to Sandy as well

Reviewed By: jknoxville

Differential Revision: D28031227

fbshipit-source-id: 8e9c82da08a83fddab740b46be9917b6a1023117
2021-04-28 12:28:37 -07:00
Pascal Hartig
cf2405a466 Convert flipper-messages to ant.design
Summary: The main change is the move to DataTable here.

Reviewed By: mweststrate

Differential Revision: D28006097

fbshipit-source-id: 7564276a1177a7835612db08857862cb81942bce
2021-04-28 07:06:09 -07:00
Flipper Bot
7f135722a9 Flipper Release: v0.87.0
Summary: Releasing version 0.87.0

Reviewed By: passy

Differential Revision: D28055084

fbshipit-source-id: 71cb9abbea0b43b56fd23baf7a728337a554ecbc
2021-04-28 06:58:22 -07:00
Michel Weststrate
bbcb16d8fb Make DataTable / DataInspector unit tests predictable
Summary: Having time / async / non-blocking behavior in components in unit tests is really annoying, as it makes unit tests async without an easy way to determine 'done'. This diff makes sure that DataTable & DataInspector don't break down their work in smaller tasks, but do everything block if they are running in a unit test.

Reviewed By: nikoant

Differential Revision: D28054487

fbshipit-source-id: 72c3b519e092ad69ed71eb1731e1fed80022f91f
2021-04-28 06:33:04 -07:00
Michel Weststrate
39be769bab DataInspector renames
Summary:
Two minor renames:
* `DataInspector` => `DataInspectorNode`
* `ManagedDataInspector` => `DataInspector`

This aligns the internal and public name of the component, and better captures the meaning of the original `DataInspector` class.

The diff looks quite hefty, but that seems to be a phabricator issue caused by the filename swap; barely a thing changed :)

Reviewed By: jknoxville

Differential Revision: D28028554

fbshipit-source-id: d3d61fcb50abffaeae4bd1d26966604cece37b03
2021-04-28 06:33:04 -07:00
Michel Weststrate
8e02b2ec10 Expose Toolbar from Sandy
Summary: Moved Toolbar to flipper-plugin. No further changes.

Reviewed By: nikoant

Differential Revision: D28027334

fbshipit-source-id: 35de13d87734ae3a8af037166945b1a669106274
2021-04-28 05:48:20 -07:00
Michel Weststrate
d9ec09b381 Fix dark mode issue
Summary: Fixed minor dark mode issue. Will address the ugly scrollbars in dark mode later.

Reviewed By: nikoant

Differential Revision: D28039447

fbshipit-source-id: eb0f545d224decb0334dca68b11277ddab612c2e
2021-04-28 05:48:20 -07:00
Michel Weststrate
d6c74c4e2f Support natural sizing
Summary:
Introduced the `scrollable={false}` option to DataTable, that gives the table its natural size, while still having all the other gimmicks of DataTable, like search, filter, etc etc.

To implement this, a non-virtualizing rendering is needed, which is handled by the `StaticDataSourceRenderer`

Also introduced the option to hide the searchbar.

Reviewed By: nikoant

Differential Revision: D28036469

fbshipit-source-id: 633c4f7f3fabfa99efa2839059aaa59b0a407ada
2021-04-28 05:48:20 -07:00