Commit Graph

355 Commits

Author SHA1 Message Date
Michel Weststrate
89de3d4ae2 Disable require cycle warnings
Summary: The holier-than-thou warnings of metro about require cycles are annoying. Require cycles are generally speaking well handles by ESM, and cause only harm if modules themselves are stateful, which is a bad smell. But warning for every cycle is just a flooding of false positives and removes the insentive to drop actual warnings.

Reviewed By: jknoxville

Differential Revision: D21859908

fbshipit-source-id: 66ec9a619a3737ccab5b16d11be5623d1d97c9f6
2020-06-03 08:45:16 -07:00
generatedunixname89002005306973
23d80bf3d5 Flipper Release: v0.45.0
Summary: Releasing version 0.45.0

Reviewed By: mweststrate

Differential Revision: D21860035

fbshipit-source-id: 58af5bbc4e743024beac925eac8012e64bd76aa9
2020-06-03 08:28:54 -07:00
Anton Nikolaev
e65b355fb6 Load either installed or bundled version of plugin depending on which is newer
Summary: Load either installed or bundled version of plugin depending on which is newer.

Reviewed By: mweststrate

Differential Revision: D21858965

fbshipit-source-id: aa46eafe0b5137134fadad827749672441f2c9e5
2020-06-03 07:42:12 -07:00
Michel Weststrate
e31ddbc648 Debounce receiving messages
Summary:
See previous diff.

Achieves the same optimization as in the mentioned diff, but this time by only debouncing the messages as they arrive over the socket, and not the state updates caused by Redux directly. This means that plugin rendering won't be debounced anymore until we address this more fundamentally.

With this change there is a double level buffering:

1. A buffer that stores all incoming messages (that are not replies to requests)
2. A buffer that stores messages we are interested in in the plugin queue, unless the plugin is active (this we already had).

This still fixes the issue that too chatty plugins cause to many updates foreground plugin (the problem we tried to fix originally), without debouncing plugin rendering if it is needed to update for any other reason.

Another nice benefit is that previously every received message would trigger a store update in Redux which would cause all connected components to evaluate their subscriptions (and then bail out in the typical case). Now we will only update the redux store every 200 ms.

Changelog: Foreground plugins will burn less CPU when they're very chatty

Reviewed By: jknoxville

Differential Revision: D21858849

fbshipit-source-id: c72352e569a8a803bbedffb71b17b11fcefee043
2020-06-03 06:54:15 -07:00
Michel Weststrate
d70b620fae Disable render debouncing
Summary:
This change kinda reverts D21690494, which broke the layout plugin.

The layout plugin broken because it's implementation assumes that if `this.props.setPersisted` state is called, those changes are immediately reflected in `this.props.persistedState`. For that to work it means that a render needs to be triggered immediately and synchronously by React.

That is a troublesome assumption (React doesn't actually guarantee this) and very likely to break in the future if implementation details change in React or Redux. However, since this is an assumption here, probably more plugins rely on that behavior, so this diff reverts that change. I'll add it the the component library plan to fundamentally address this.

The next diff will re-introduce debouncing, just at a different code point.

Reviewed By: jknoxville

Differential Revision: D21840282

fbshipit-source-id: af69dbded80aa73dfd6558d7cb0268ea0b1c504a
2020-06-03 06:54:14 -07:00
dependabot-preview[bot]
aa3ed614b0 Bump mkdirp from 1.0.3 to 1.0.4 in /desktop (#1210)
Summary:
Bumps [mkdirp](https://github.com/isaacs/node-mkdirp) from 1.0.3 to 1.0.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="b694079b54"><code>b694079</code></a> 1.0.4</li>
<li><a href="2d42170b9f"><code>2d42170</code></a> Remove unnecessary process.umask()</li>
<li><a href="4d59b810ed"><code>4d59b81</code></a> update tap</li>
<li><a href="117328b713"><code>117328b</code></a> remove outdated example</li>
<li><a href="7cd4e9eb9a"><code>7cd4e9e</code></a> correct gitignore</li>
<li>See full diff in <a href="https://github.com/isaacs/node-mkdirp/compare/v1.0.3...v1.0.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=mkdirp&package-manager=npm_and_yarn&previous-version=1.0.3&new-version=1.0.4)](https://dependabot.com/compatibility-score/?dependency-name=mkdirp&package-manager=npm_and_yarn&previous-version=1.0.3&new-version=1.0.4)

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)

 ---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<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)
- `dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/1210

Reviewed By: passy

Differential Revision: D21838219

Pulled By: mweststrate

fbshipit-source-id: c9fe6920a65a1fcede07579899a50620f459b949
2020-06-02 09:53:02 -07:00
Anton Nikolaev
776d4098b9 Show plugin version in Plugin Manager list
Summary: Added plugin version property + showing it in Plugin Manager

Reviewed By: passy

Differential Revision: D21839544

fbshipit-source-id: 89daed813cffb066b3b584f6df97d6674ca6be08
2020-06-02 09:49:45 -07:00
dependabot-preview[bot]
1082de41bc Bump eslint-plugin-react-hooks from 4.0.2 to 4.0.4 in /desktop (#1211)
Summary:
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.0.2 to 4.0.4.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md">eslint-plugin-react-hooks's changelog</a>.</em></p>
<blockquote>
<h2>4.0.3</h2>
<ul>
<li>Remove the heuristic that checks all Hooks ending with <code>Effect</code> due to too many false positives. (<a href="https://github.com/gaearon">gaearon</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19004">#19004</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=eslint-plugin-react-hooks&package-manager=npm_and_yarn&previous-version=4.0.2&new-version=4.0.4)](https://dependabot.com/compatibility-score/?dependency-name=eslint-plugin-react-hooks&package-manager=npm_and_yarn&previous-version=4.0.2&new-version=4.0.4)

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)

 ---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<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)
- `dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/1211

Reviewed By: passy

Differential Revision: D21838130

Pulled By: mweststrate

fbshipit-source-id: 624154b78f5bbb773529ac4779aaa97c85b4a146
2020-06-02 09:42:53 -07:00
dependabot-preview[bot]
8c0616d64d Bump @babel/plugin-proposal-object-rest-spread from 7.9.0 to 7.10.1 in /desktop (#1212)
Summary:
Bumps [babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.9.0 to 7.10.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases">babel/plugin-proposal-object-rest-spread's releases</a>.</em></p>
<blockquote>
<h2>v7.10.1 (2020-05-27)</h2>
<p>This releases includes fixes for two bugs introduced in 7.10.0. There are still a few known bugs, and we'll fix them soon.</p>
<p>Thanks <a href="https://github.com/saulosantiago">saulosantiago</a> for your first PR!</p>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11633">#11633</a> [hotfix] Use same targets for fields as for private methods (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11624">#11624</a> Fix standalone tag when data-type is not set. (<a href="https://github.com/dfabulich">dfabulich</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><em>Every package</em>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11625">#11625</a> Use <code>repository.directory</code> field in <code>package.json</code> files (<a href="https://github.com/saulosantiago">saulosantiago</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 3</h4>
<ul>
<li>Dan Fabulich (<a href="https://github.com/dfabulich">dfabulich</a>)</li>
<li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
<li>Saulo Santiago (<a href="https://github.com/saulosantiago">saulosantiago</a>)</li>
</ul>
<h2>v7.10.0 (2020-05-26)</h2>
<p>Thanks <a href="https://github.com/AndrewLeedham">AndrewLeedham</a>, <a href="https://github.com/fisker">fisker</a>, <a href="https://github.com/kik-o">kik-o</a>, <a href="https://github.com/kitos">kitos</a>, <a href="https://github.com/lazytype">lazytype</a> for their first PRs!</p>
<p>We are also releasing the first experimental version of the new polyfills plugins: you can check them out at <a href="https://github.com/babel/babel-polyfills"><code>babel/babel-polyfills</code></a>.</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11370">#11370</a> logical-assignment: Do not assign names to anonymous functions (<a href="https://github.com/arku">arku</a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-helper-optimise-call-expression</code>, <code>babel-helper-replace-supers</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11248">#11248</a> Handle private access chained on an optional chain (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11593">#11593</a> feat: add privatePropertyInObject to babel-standalone (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11466">#11466</a> Support data-type=&quot;module&quot; to generate native &lt;script type="module"> (<a href="https://github.com/dfabulich">dfabulich</a>)</li>
</ul>
</li>
<li><code>babel-cli</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-private-property-in-object</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11372">#11372</a> Add private-property-in-object support (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-plugin-transform-template-literals</code>, <code>babel-plugin-transform-unicode-escapes</code>, <code>babel-preset-env</code>, <code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11377">#11377</a> Transform ES2015 Unicode Escapes to ES5 (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-syntax-module-attributes</code>, <code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/10962">#10962</a> added basic support for module attributes and tests updated (<a href="https://github.com/vivek12345">vivek12345</a>)</li>
</ul>
</li>
<li><code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11434">#11434</a> [<code>preset-env</code>] Add <code>browserslistEnv</code> option (<a href="https://github.com/AndrewLeedham">AndrewLeedham</a>)</li>
</ul>
</li>
<li><code>babel-cli</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11220">#11220</a> Log after subsequent compilations in --watch mode (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>, <code>babel-plugin-transform-destructuring</code>, <code>babel-plugin-transform-spread</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11265">#11265</a> Add &quot;allowArrayLike&quot; option to the destructuring and spread transforms (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>, <code>babel-plugin-transform-for-of</code>, <code>babel-preset-env</code></li>
</ul>
</tr></table> ... (truncated)
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/master/CHANGELOG.md">babel/plugin-proposal-object-rest-spread's changelog</a>.</em></p>
<blockquote>
<h2>v7.10.1 (2020-05-27)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11633">#11633</a> [hotfix] Use same targets for fields as for private methods (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11624">#11624</a> Fix standalone tag when data-type is not set. (<a href="https://github.com/dfabulich">dfabulich</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><em>Every package</em>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11625">#11625</a> Use <code>repository.directory</code> field in <code>package.json</code> files (<a href="https://github.com/saulosantiago">saulosantiago</a>)</li>
</ul>
</li>
</ul>
<h2>v7.10.0 (2020-05-26)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11370">#11370</a> logical-assignment: Do not assign names to anonymous functions (<a href="https://github.com/arku">arku</a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-helper-optimise-call-expression</code>, <code>babel-helper-replace-supers</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11248">#11248</a> Handle private access chained on an optional chain (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11593">#11593</a> feat: add privatePropertyInObject to babel-standalone (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11466">#11466</a> Support data-type=&quot;module&quot; to generate native &lt;script type="module"> (<a href="https://github.com/dfabulich">dfabulich</a>)</li>
</ul>
</li>
<li><code>babel-cli</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-private-property-in-object</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11372">#11372</a> Add private-property-in-object support (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-plugin-transform-template-literals</code>, <code>babel-plugin-transform-unicode-escapes</code>, <code>babel-preset-env</code>, <code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11377">#11377</a> Transform ES2015 Unicode Escapes to ES5 (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-syntax-module-attributes</code>, <code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/10962">#10962</a> added basic support for module attributes and tests updated (<a href="https://github.com/vivek12345">vivek12345</a>)</li>
</ul>
</li>
<li><code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11434">#11434</a> [<code>preset-env</code>] Add <code>browserslistEnv</code> option (<a href="https://github.com/AndrewLeedham">AndrewLeedham</a>)</li>
</ul>
</li>
<li><code>babel-cli</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11220">#11220</a> Log after subsequent compilations in --watch mode (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>, <code>babel-plugin-transform-destructuring</code>, <code>babel-plugin-transform-spread</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11265">#11265</a> Add &quot;allowArrayLike&quot; option to the destructuring and spread transforms (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>, <code>babel-plugin-transform-for-of</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11266">#11266</a> Add &quot;allowArrayLike&quot; support to the for-of transform (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11406">#11406</a> Enable import.meta by default in babel/parser (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11364">#11364</a>) (<a href="https://github.com/kik-o">kik-o</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-pure-annotations</code>, <code>babel-preset-react</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11428">#11428</a> Implement <code>plugin-transform-react-pure-annotations </code>and add to <code>preset-react</code> (<a href="https://github.com/devongovett">devongovett</a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11451">#11451</a> Add class proposals to shipped proposals (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11595">#11595</a> scope.rename() missing identifier in VariableDeclarator (<a href="https://github.com/yulanggong">yulanggong</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/10961">#10961</a> fix: optional-chaining should work correctly with ts non-null operator (<a href="https://github.com/macabeus">macabeus</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code></li>
</ul>
</tr></table> ... (truncated)
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="88f57a7ea6"><code>88f57a7</code></a> v7.10.1</li>
<li><a href="242d9e0b20"><code>242d9e0</code></a> Use <code>repository.directory</code> field in <code>package.json</code> files (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11625">#11625</a>)</li>
<li><a href="5da2440adf"><code>5da2440</code></a> v7.10.0</li>
<li><a href="9a52019019"><code>9a52019</code></a> Use computed memberExpression for literal keys with object rest (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11550">#11550</a>)</li>
<li><a href="a080a1d345"><code>a080a1d</code></a> Use single object spread call in loose mode (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11520">#11520</a>)</li>
<li><a href="9c2846bcac"><code>9c2846b</code></a> v7.9.6</li>
<li><a href="c1d65d8842"><code>c1d65d8</code></a> Fix evaluation order with object spread, 2 (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11471">#11471</a>)</li>
<li><a href="af669297ef"><code>af66929</code></a> Fix evaluation order with object spread (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11412">#11412</a>)</li>
<li><a href="5b97e77e03"><code>5b97e77</code></a> v7.9.5</li>
<li><a href="aea0fcd599"><code>aea0fcd</code></a> Correctly transpile when cross-param refs with obj rest (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread/issues/11326">#11326</a>)</li>
<li>See full diff in <a href="https://github.com/babel/babel/commits/v7.10.1/packages/babel-plugin-proposal-object-rest-spread">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=@babel/plugin-proposal-object-rest-spread&package-manager=npm_and_yarn&previous-version=7.9.0&new-version=7.10.1)](https://dependabot.com/compatibility-score/?dependency-name=@babel/plugin-proposal-object-rest-spread&package-manager=npm_and_yarn&previous-version=7.9.0&new-version=7.10.1)

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)

 ---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<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)
- `dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/1212

Reviewed By: passy

Differential Revision: D21838136

Pulled By: mweststrate

fbshipit-source-id: e4eda26eb6600b9bbd51ba5aed55d20f717cd654
2020-06-02 09:36:21 -07:00
Chaiwat Ekkaewnumchai
53cccdc199 Unit Test of DatabaseDetailSidebar
Summary:
per title.

Also, remove `console.log`

Reviewed By: mweststrate

Differential Revision: D21829809

fbshipit-source-id: cfad4ff50e816153d7370f63052d4dc450464fd5
2020-06-02 08:19:43 -07:00
Chaiwat Ekkaewnumchai
2bbd260f9f Unit Test for TypeBasedValueRenderer
Summary: per title

Reviewed By: mweststrate

Differential Revision: D21820854

fbshipit-source-id: 3035d58e9afe6d1cdc8fd90b910ff845f6d13085
2020-06-02 08:19:43 -07:00
Chaiwat Ekkaewnumchai
230b9528cf Unit Test for UpdateQueryUtil
Summary:
per title

Also, edit file to match tests

Reviewed By: mweststrate

Differential Revision: D21819748

fbshipit-source-id: b697ae9915c53162624ba90fc867676c9ca8733b
2020-06-02 08:19:42 -07:00
dependabot-preview[bot]
302ba9f69a Bump eslint-plugin-flowtype from 4.6.0 to 4.7.0 in /desktop (#1194)
Summary:
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 4.6.0 to 4.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/gajus/eslint-plugin-flowtype/releases">eslint-plugin-flowtype's releases</a>.</em></p>
<blockquote>
<h2>v4.7.0</h2>
<h1><a href="https://github.com/gajus/eslint-plugin-flowtype/compare/v4.6.0...v4.7.0">4.7.0</a> (2020-03-24)</h1>
<h3>Features</h3>
<ul>
<li>require-exact-type detects nested objects (<a href="https://github-redirect.dependabot.com/gajus/eslint-plugin-flowtype/issues/441">https://github.com/facebook/flipper/issues/441</a>) (<a href="463b74e40b">463b74e</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="463b74e40b"><code>463b74e</code></a> feat: require-exact-type detects nested objects (<a href="https://github-redirect.dependabot.com/gajus/eslint-plugin-flowtype/issues/441">https://github.com/facebook/flipper/issues/441</a>)</li>
<li>See full diff in <a href="https://github.com/gajus/eslint-plugin-flowtype/compare/v4.6.0...v4.7.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=eslint-plugin-flowtype&package-manager=npm_and_yarn&previous-version=4.6.0&new-version=4.7.0)](https://dependabot.com/compatibility-score/?dependency-name=eslint-plugin-flowtype&package-manager=npm_and_yarn&previous-version=4.6.0&new-version=4.7.0)

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)

 ---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<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)
- `dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/1194

Reviewed By: passy

Differential Revision: D21838073

Pulled By: mweststrate

fbshipit-source-id: 276cd5a3959322dd5980d4a89c890d20cf3ab4f0
2020-06-02 05:19:12 -07:00
Pritesh Nandgaonkar
965a36ee52 Fix the broken deeplink of support form
Summary:
I just noticed that the deeplink of the support form didn't select the right group. It got broken after the recent design change of the support form. This diff fixes that issue.

I have also added unit tests.

Reviewed By: passy

Differential Revision: D21817153

fbshipit-source-id: 06298b3b60cfc1bd77bea6c1f902b983474808dc
2020-06-02 04:47:37 -07:00
Roi Becker
3c97c1d3bc Scuba plugin
Summary:
Scuba doesn't work when running on laptops, so developers often run a canary just to see that their logging works. This attempts to give a Scuba-like view (Scuba UI does a lot, I'm just showing a simple samples-like view) of the data you report in real time.

## Unity
* `ScubaFlipperPlugin` - very similar to our Pigeon/Logview plugins.
* `ScubaLogger` - notice that I'm ignoring the sample rate (weight) to give as much signal as possible since a local Unity usually doesn't have a lot of traffic/logs.

## Flipper
* `index.tsx`
  * Aggregates incoming data from Unity:
    * `messages` - all messages, keyed by the scribe category.
    * `columns` - keeps track of all the columns per table. This can grow over time (different messages can have different columns; Scuba does the same - using the union of all columns from all rows). I'm doing this here (and not while rendering a specific table) since this allows me to run the aggregation only once when a message arrives instead of every render (which React can do many of).
  * Chooses between one of the two following components.
* `ScubaTables.tsx` - shows all known tables so far, with a count of rows (just so I'll have something to show in table...). Each row has a button to view this table.
* `ScubaTable.tsx` - probably the only interesting part is not using explicit widths in the table (since I don't know what data I'll have). Instead, I just use `horizontallyScrollable` on the table and let it decide. It will squeeze everything in the window's width, but let's you expand/scroll as needed.

Differential Revision: D21715926

fbshipit-source-id: 6f1c4f7f77c3b047dcb35a4e9b8173a7378af198
2020-06-02 03:46:04 -07:00
Chaiwat Ekkaewnumchai
54bf6440de Allow to Edit only When There Is Primary Key in Table
Summary: To be able to edit correct cell, identifiers are needed. Assume that the primary key is unique, this should be safe to allow the query to find exactly one row to edit

Reviewed By: jknoxville

Differential Revision: D21788239

fbshipit-source-id: b09d1b6da1b46cbc961f08010467e973546acbef
2020-06-02 01:47:06 -07:00
Chaiwat Ekkaewnumchai
b57612a116 Allow to Edit Cell in Detail Sidebar
Summary: This diff adds edit button to detail sidebar to allow user to edit column he/she wants to

Reviewed By: jknoxville

Differential Revision: D21788243

fbshipit-source-id: 4bdcef62114d5a6282ba85bc2bd1b5d039322e50
2020-06-02 01:47:06 -07:00
Chaiwat Ekkaewnumchai
5a2221e6cd Add Logic to Edit And Update Database on Both Client And Server
Summary:
This logic relies on the logic on client side, specifically `SqliteDatabaseDriver.java` in specifying some keys to retrieve useful data in `currentStructure`. This will be error-prone if developer writes their own data driver which doesn't follow the same naming as the data driver used as model.
Also, this diff adds util file to deal with query for updating database on client side.

I decided to construct query clause on server side so that the client side change is not needed.

Reviewed By: jknoxville

Differential Revision: D21788241

fbshipit-source-id: cf9a920c3e5b7b29f619bc3f00e68616b3445cab
2020-06-02 01:47:06 -07:00
Chaiwat Ekkaewnumchai
fe17ddce1a Change UpdatePage Reducer
Summary: The different is small after the change from storing pre-rendered data to raw data. Hence, the diff changes it to match `currentPage` to ease the assignment (used in next diffs)

Reviewed By: jknoxville

Differential Revision: D21788245

fbshipit-source-id: 87bdbce33f0615bf31878797a74fce5d5969db7b
2020-06-02 01:47:05 -07:00
Chaiwat Ekkaewnumchai
d6b617a952 Change Execute Action Parameter
Summary: `'Execute'` action was previously used only for execute tab which assumed the input will come from the state. This changes so that it can take any input attached to parameters (more explanation about the design in <insert diff number>)

Reviewed By: jknoxville

Differential Revision: D21788244

fbshipit-source-id: 8fb8ecb8f8df84f4854f70432e7a1fdb531403e9
2020-06-02 01:47:05 -07:00
Chaiwat Ekkaewnumchai
df480bd57a Change Value Used in DB Plugin
Summary:
- Add value for null type to use `.value` easier
- Add value to string by directly converting to string if possible; otherwise null

Reviewed By: jknoxville

Differential Revision: D21788242

fbshipit-source-id: f3a9f995de6b4cb1b304981c8adaaba70105c988
2020-06-02 01:47:04 -07:00
Chaiwat Ekkaewnumchai
741f3591e6 Get Table Structure Even without Accessing The Page
Summary: This diff helps obtaining metadata for using to edit row

Reviewed By: jknoxville

Differential Revision: D21788246

fbshipit-source-id: bf01eff8866c82f001575d59cc2886b6cdd39dc5
2020-06-02 01:47:04 -07:00
Amir Katz
4c0b6efe9e flipper UI add compose to message
Summary:
Using this diff as baseline for fblite composer.
Demo in this post https://fb.workplace.com/groups/503571760094149/permalink/934762916975029/

## Next
* UI
* Add binary buffer (clone/re-send)
* Support multiple messages as flow
* Persistance
* More feedbacks from post

{F238376954}

Reviewed By: timur-valiev

Differential Revision: D21701994

fbshipit-source-id: 020733034968acb5c02a1f79bfc256a1a13d6ef8
2020-06-01 04:01:54 -07:00
Pascal Hartig
fd50111ea4 More aggressive build ignores
Summary:
This strips another 8MB from our node_modules.

Checked out the largest individual files in with Disk Inventory X.

{F238464588}

Reviewed By: nikoant

Differential Revision: D21765847

fbshipit-source-id: d74b0eae270b86f0518d7e73288fd773b24535da
2020-05-29 07:18:39 -07:00
John Knox
5723553fba Open-source idb interaction code
Summary:
I've outlined the tasks required to get iOS device support working for open source users [here](https://github.com/facebook/flipper/issues/262).

This is the first step. It publishes the same code we use internally to GitHub, but in a state where it is only "available" for non-public builds. This will not change any behavior, but means that together with the community, we can start adapting it to suit everyone, and then eventually flip "available" to true for everyone.

Reviewed By: passy

Differential Revision: D21740193

fbshipit-source-id: 586c79ad850f67da330c10a007605ff25a187544
2020-05-29 06:04:39 -07:00
generatedunixname89002005306973
b18760823d Flipper Release: v0.44.1
Summary: Releasing version 0.44.1

Reviewed By: passy

Differential Revision: D21767292

fbshipit-source-id: 94276959d0421fa687cc24f9553a0951b398ea56
2020-05-29 05:02:23 -07:00
Pritesh Nandgaonkar
a8f749b2e8 Update the UX of the mobilebuild download
Summary:
Update the UX of the mobilebuild download. When one clicks download one can see the the installation in progress in the main screen. Once its downloaded, you can open the finder pointed to the folder of download.

I didn't write the test for InstallSection as I was not able to test it through react-testing library. Seems like the data gets added to the document little late and not instantly.

Next work:
- Search in sidebar
- Persist downloaded app data for a session
- Show download data in the form of progress bar.

Reviewed By: mweststrate

Differential Revision: D21709229

fbshipit-source-id: e67db68ff16155230becf86c913dc6b1ec9d482c
2020-05-28 11:24:57 -07:00
Michel Weststrate
828385e246 Enable babel transformer for emotion
Summary: This diff enables the babel transformer for emotion. It is supposed to be a bit faster, but the most interesting thing is that it will show component names inside the dom tree, which, at least for me, will be a huge performance booster is it will make it much easier to find out to which component style changes need to be applied

Reviewed By: nikoant

Differential Revision: D21722021

fbshipit-source-id: cab1278046b1aa7f8b875c016d43dfafdbaa0a2d
2020-05-28 10:14:05 -07:00
Michel Weststrate
54162d480c Enable react hooks linting
Summary:
Enabled linting rules that help to signal making errors with effect dependencies and such.

Fixed all errors, left any warnings generated by the hooks untouched

Reviewed By: nikoant

Differential Revision: D21721497

fbshipit-source-id: 9548453443fa7b663dc4d4289132f388c6697283
2020-05-28 10:14:05 -07:00
Michel Weststrate
67b53aea98 Make it more obvious that jest has a watch mode
Summary: See https://fb.workplace.com/groups/flippersupport/permalink/884233452057314/

Reviewed By: jknoxville

Differential Revision: D21762521

fbshipit-source-id: d62507c419ad5afa5bf519612657a4b2f9b7e8a7
2020-05-28 10:08:36 -07:00
Pascal Hartig
9d88469063 Fix public version check (#1203)
Summary:
Relied too much on TSC and not enough on my brain.

![image](https://user-images.githubusercontent.com/9906/83158023-2f0ff880-a0fc-11ea-8f1b-bff89ec7934a.png)
Pull Request resolved: https://github.com/facebook/flipper/pull/1203

Test Plan:
![Screenshot 2020-05-28 15 51 49](https://user-images.githubusercontent.com/9906/83158051-38996080-a0fc-11ea-8e59-9bb6cd88d832.png)

Endpoint is getting hit on startup now for public builds.

Reviewed By: mweststrate

Differential Revision: D21764325

Pulled By: passy

fbshipit-source-id: 771c4e430717f4eae5eab36f279ca3eff9e9bcf7
2020-05-28 09:04:54 -07:00
Chaiwat Ekkaewnumchai
046b8ceac6 Refactor Structure Page
Summary:
This refactor has the following changes:
- Change way to store data: raw data instead of rendered data
- Move render function to separated function component file
- Remove repetitive pattern

Reviewed By: jknoxville

Differential Revision: D21739468

fbshipit-source-id: 1f7e7ae902c3b55f3863300aaed26c2adda898ac
2020-05-27 07:14:39 -07:00
Anton Nikolaev
ec646f365f Fix tests runInit.node.ts failing on Windows (#1198)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1198

Normalize paths so snapshots look the same on mac and win

Reviewed By: passy

Differential Revision: D21722773

fbshipit-source-id: 4a12117d3ec0fb57cdfc7c5bb06a5c0835412a5f
2020-05-26 11:58:59 -07:00
Pascal Hartig
421733682f Add snap build option for Linux
Summary: Asked for in https://github.com/facebook/flipper/issues/1184.

Reviewed By: mweststrate

Differential Revision: D21719920

fbshipit-source-id: 80187dfdc3d04e66bf79f0317e86719bede2f497
2020-05-26 07:05:03 -07:00
Anton Nikolaev
8473bc9ecf Fix npm publishing script
Summary: Npm publishing script should not attempt to publish plugin packages

Reviewed By: mweststrate

Differential Revision: D21721175

fbshipit-source-id: 0bf9808339c1177bc9d263ac34d40aa30df08d11
2020-05-26 06:44:25 -07:00
Anton Nikolaev
6005d039f7 Dry-run for version bumping and npm publishing scripts
Summary: To make testing easier, I've implemented dry-run for version bumping and npm publishing scripts

Reviewed By: mweststrate

Differential Revision: D21721142

fbshipit-source-id: 72fc5a78bfc102a8fca9087decfbed6ebbda5e51
2020-05-26 06:44:25 -07:00
Chaiwat Ekkaewnumchai
dec5045fca Fix Unwanted Highlight in ManagedTable
Summary: Previously, rows got highlighted after switching between data for `ManagedTable` even though `highlightableRows` was set to false. This diff forces the highlighting not to happen when the value is set to false

Reviewed By: mweststrate

Differential Revision: D21720266

fbshipit-source-id: 534944fe03ad1561bc2109468ae6c4c5f3fc947d
2020-05-26 05:50:12 -07:00
Timur Valiev
2283bbd313 vscode integration helper
Summary: VSCode integration helpers to call extensions

Reviewed By: passy

Differential Revision: D21641284

fbshipit-source-id: dd978520ea541dbd6a96b8398ce28744a0fc97ad
2020-05-26 05:03:05 -07:00
Michel Weststrate
0da766f27b Make sure inefficient or chatty plugins don't churn too much CPU
Summary:
While profiling the high CPU load of the Analytics plugin, I noticed that most of the time is spend in rendering React. This makes sense as the component sends data very frequently, although it is definitely less efficient than it could be.

As shown in the following profile picture, it is clear that all the cpu churns up due to the amounts of re-renderings caused (every new incoming messages causes the plugin to analyse and process all it's data).

With background plugins, we already made sure that non-active plugins don't eat up all the CPU in React components if they process data inefficiently. Before:

{F238020503}

This change debounces how often we give new state to plugins, so that multiple updates get collapsed if the load becomes to high. After (note that not every 'emit' causes in an expensive render anymore, but that the rendering is now in a separate stack, the only remaining renderer is the debouncer component). After:

{F238020481}

Render stack happens now after a bunch of emits:
{F238021694}

This drops ~130% cpu to 70% cpu in the case of the analytics plugin, see below

Reviewed By: passy

Differential Revision: D21690494

fbshipit-source-id: 299c49c95f20af01e6ee3110b0c39478b3135c43
2020-05-26 04:50:52 -07:00
Pritesh Nandgaonkar
c9d2acab08 Remove flipper AD bar
Summary: This diff removes the FlipperAD bar which is shown in the layout inspector. Fixes [this](https://fb.workplace.com/groups/flippersupport/permalink/881019929045333/)

Reviewed By: passy

Differential Revision: D21716761

fbshipit-source-id: 503fc0002d137032c9a40853f7eeea599d65acea
2020-05-26 04:34:29 -07:00
Chaiwat Ekkaewnumchai
8d8ed5e2ed Add Unit Test to ToolbarIcon
Summary: per title

Reviewed By: mweststrate

Differential Revision: D21663253

fbshipit-source-id: de1eff5a3500473082973a27d0b72479407cbebe
2020-05-25 10:40:39 -07:00
generatedunixname89002005306973
b538cead7a Flipper Release: v0.44.0
Summary: Releasing version 0.44.0

Reviewed By: passy

Differential Revision: D21686080

fbshipit-source-id: 83a8d997e99361e3fcc4472d484d3759f73ed964
2020-05-21 11:31:56 -07:00
Chaiwat Ekkaewnumchai
27dd08e546 Add Tooltip to ToolbarIcon in Layout Plugin
Summary: Trying to add tooltip to some components to promote tooltip itself and make it clearer what they do

Reviewed By: mweststrate

Differential Revision: D21649207

fbshipit-source-id: 4763ae9a99d687e6624c07bb636c5f4e869cafc9
2020-05-21 07:56:46 -07:00
Chaiwat Ekkaewnumchai
b8a989214d Change Tooltip Position
Summary: Change some offset to make it point more direct to an element

Reviewed By: mweststrate

Differential Revision: D21649206

fbshipit-source-id: 64b4a3851e713baa6095d819a16cd207bebdf46f
2020-05-21 07:56:46 -07:00
Pascal Hartig
3723e08b50 Make message drops a warning
Reviewed By: jknoxville

Differential Revision: D21684530

fbshipit-source-id: f918c39562eaf6c5fd61af76e68d3e4cfe561a90
2020-05-21 04:24:06 -07:00
Michel Weststrate
ed2bcea906 Fix horizontal scrolling issue
Summary: Fixed a layout issue in the list items of GraphQL, background style / line didn't tend to continue when scrolling, because flexbox doesn't grow all lines similarly. Tables do.

Reviewed By: jonathoma

Differential Revision: D21662000

fbshipit-source-id: 767d2d7ffd7e5dacf2c49aa67babbb47a331282c
2020-05-21 03:36:35 -07:00
Michel Weststrate
cdd0026e83 fix issue where row backgrounds are not continued when scrolling horizontally
Summary:
We used flexbox to layout rows in the element inspector. The problem with that is that flexbox cannot nicely grow all its childrens to the largest one. Although we could still see contents thanks to the `overflow: visible` hack, this means that the backgrounds didn't continue when scrolling.

In contrast, tables do grow their children width :)

Also fixed an issue where the AX details tree wasn't scrollable

Reviewed By: cekkaewnumchai

Differential Revision: D21661766

fbshipit-source-id: 6b1d16c7aded8beebdd8a50f3e8ab0d9b8633e02
2020-05-21 03:36:35 -07:00
Michel Weststrate
b0ab9b9b98 Fix Height for Main Layout Inspector
Summary:
in Layout plugin, scrollbars where often not visible, for example to see the vertical scrollbar, one had to scroll to the horizontal end first.

Also introduced the `Scrollable` component to simplify this in the feature and separate the concepts of rendering something large and making it scrollable.

This diff cleans up the layout structure and fixes the problem

changelog: Fixed several minor layout issues in the Layout plugin

Reviewed By: cekkaewnumchai

Differential Revision: D21283157

fbshipit-source-id: 81849151475165796c65001616f038a9d6cbdfb2
2020-05-21 03:36:34 -07:00
Pritesh Nandgaonkar
22dfc33da0 Fetch recommended and all builds types in Sidebar
Summary:
This diff updates the sidebar to show the recommended and all build types.

Also there is error handling in place along with tests. Right now the download happens by opening browser and the build gets downloaded in the download folder. But later in the diffs I will improve this flow to do that in the Flipper with a UX showing status updates.

Reviewed By: mweststrate

Differential Revision: D21556383

fbshipit-source-id: 6de9a00fe416c22cae7bacf91828a2221644eac7
2020-05-20 08:14:25 -07:00
Chaiwat Ekkaewnumchai
a5cd79ea8b Export FileSelector
Summary: FileSelector was added in D19743998, but it was not exported to be used by other. This diff exports it so that developers can use.

Reviewed By: mweststrate

Differential Revision: D21653870

fbshipit-source-id: 062247fa7a14c7ddf87c927205880a695598928d
2020-05-20 06:58:37 -07:00