Commit Graph

757 Commits

Author SHA1 Message Date
Chaiwat Ekkaewnumchai
88f3faffb1 Enable Plugin
Summary: Encountered while debugging. Seems that the id was incorrect. This diff changes the id back to `"Example"`

Reviewed By: nikoant

Differential Revision: D24782578

fbshipit-source-id: ad1c6d6fe4962179ad609728c8641adc2063e929
2020-11-06 05:24:13 -08:00
Pascal Hartig
3a839bddae Download icons with retry
Summary:
This quite often fails in CI. Adobe's fetch has some very sensible defaults
and will do exponential backoff and retry for up to a minute.
That should hopefully fix issues where we have to restart the whole build
just to fix one measly icon download.

Reviewed By: jknoxville

Differential Revision: D24649807

fbshipit-source-id: efbc9eb29e4b5a0f74b0b6ad6dea4aaf86391363
2020-11-05 05:17:29 -08:00
Michel Weststrate
2930d78321 Convert UI Evaluations to TypeScript
Summary: per title

Reviewed By: cekkaewnumchai

Differential Revision: D24726918

fbshipit-source-id: 73c3e07d35900ae52179736ca561bf6a3db80e0e
2020-11-05 04:34:15 -08:00
Chaiwat Ekkaewnumchai
2dd18a4702 Convert Msys to TypeScript
Summary: per title

Reviewed By: mweststrate

Differential Revision: D24748123

fbshipit-source-id: 129d943e4db58585fbe087160254223d63fd29dd
2020-11-05 03:53:12 -08:00
Chaiwat Ekkaewnumchai
c04b26d2bc Fix Empty Array And Object Not Showing up
Summary:
Reported in [the Workplace group](https://fb.workplace.com/groups/flippersupport/permalink/1002324710248187/), the empty array and object in network plugin wasn't shown and left blank. This happened because data component checked for expandability and decided empty object is not expandable. Thus, it uses different path to render components.

This diff fixes that by rendering empty array and object as `[]` and `{}`

Reviewed By: jknoxville

Differential Revision: D24726219

fbshipit-source-id: 9b22e1011c39c363b73f759477f44f08520734a7
2020-11-05 03:23:11 -08:00
dependabot[bot]
63241427a0 Bump eslint from 7.10.0 to 7.12.1 in /desktop (#1644)
Summary:
Bumps [eslint](https://github.com/eslint/eslint) from 7.10.0 to 7.12.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/releases">eslint's releases</a>.</em></p>
<blockquote>
<h2>v7.12.1</h2>
<ul>
<li><a href="08f33e8b9a"><code>08f33e8</code></a> Upgrade: eslint/eslintrc to fix rule schema validation (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13793">#13793</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13794">#13794</a>) (Brandon Mills)</li>
<li><a href="aeef485dc7"><code>aeef485</code></a> Fix: Pass internal config paths in FileEnumerator default (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13789">#13789</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13792">#13792</a>) (Brandon Mills)</li>
<li><a href="631ae8b50e"><code>631ae8b</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<h2>v7.12.0</h2>
<ul>
<li><a href="cbf3585f1d"><code>cbf3585</code></a> Update: skip keyword check for fns in space-before-blocks (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13553">#13553</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13712">#13712</a>) (Milos Djermanovic)</li>
<li><a href="256f656455"><code>256f656</code></a> Fix: autofix shouldn't produce template literals with <code>\8</code> or <code>\9</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13737">#13737</a>) (Milos Djermanovic)</li>
<li><a href="b165aa5f4d"><code>b165aa5</code></a> Fix: yoda rule autofix produces syntax errors with adjacent tokens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13760">#13760</a>) (Milos Djermanovic)</li>
<li><a href="3175316db2"><code>3175316</code></a> Fix: prefer-destructuring invalid autofix with comma operator (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13761">#13761</a>) (Milos Djermanovic)</li>
<li><a href="1a9f17151a"><code>1a9f171</code></a> Chore: Remove more ESLintRC-related files (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13481">#13481</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13762">#13762</a>) (Nicholas C. Zakas)</li>
<li><a href="bfddcedace"><code>bfddced</code></a> Update: remove suggestion if it didn't provide a fix (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13723">#13723</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13772">#13772</a>) (Milos Djermanovic)</li>
<li><a href="5183b14a24"><code>5183b14</code></a> Update: check template literal in no-script-url (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13775">#13775</a>) (YeonJuan)</li>
<li><a href="bfe97d2332"><code>bfe97d2</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="6c51adeb86"><code>6c51ade</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="603de04cab"><code>603de04</code></a> Update: treat all literals like boolean literal in no-constant-condition (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13245">#13245</a>) (Zen)</li>
<li><a href="289aa6fcef"><code>289aa6f</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="9a1f6694e5"><code>9a1f669</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="637f818740"><code>637f818</code></a> Docs: add more examples for no-func-assign (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13705">#13705</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13777">#13777</a>) (Nitin Kumar)</li>
<li><a href="17cc0dd9b5"><code>17cc0dd</code></a> Chore: add test case for no-func-assign (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13705">#13705</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13783">#13783</a>) (Nitin Kumar)</li>
<li><a href="dee0f7764a"><code>dee0f77</code></a> Docs: add TOC to user-guide/configuring.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13727">#13727</a>) (metasean)</li>
<li><a href="0510621298"><code>0510621</code></a> Update: Fix &amp;&amp; vs || short-circuiting false negatives (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13634">#13634</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13769">#13769</a>) (Brandon Mills)</li>
<li><a href="8b6ed691c4"><code>8b6ed69</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="145750991b"><code>1457509</code></a> Docs: fix broken links in Node.js API docs (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13771">#13771</a>) (Laura Barluzzi)</li>
<li><a href="7c813d458f"><code>7c813d4</code></a> Docs: Fix typo in v7 migration page (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13778">#13778</a>) (Yusuke Sasaki)</li>
<li><a href="b0257953be"><code>b025795</code></a> Docs: Fix the format option name in the document (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13770">#13770</a>) (Hideki Igarashi)</li>
<li><a href="84fd591c23"><code>84fd591</code></a> Chore: Increase Mocha timeout for copying fixtures (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13768">#13768</a>) (Brandon Mills)</li>
<li><a href="1faeb84e66"><code>1faeb84</code></a> Docs: clarify that space-unary-ops doesn't apply when space is required (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13767">#13767</a>) (Taylor Morgan)</li>
<li><a href="67c06059dd"><code>67c0605</code></a> Update: check computed keys in no-prototype-builtins (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13088">#13088</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13755">#13755</a>) (Milos Djermanovic)</li>
<li><a href="b5e011c865"><code>b5e011c</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<h2>v7.11.0</h2>
<ul>
<li><a href="23e966f6cf"><code>23e966f</code></a> Chore: Refactor CLIEngine tests (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13481">#13481</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13709">#13709</a>) (Nicholas C. Zakas)</li>
<li><a href="fa9429aac0"><code>fa9429a</code></a> Fix: don't count line after EOF in max-lines (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13735">#13735</a>) (Milos Djermanovic)</li>
<li><a href="d973675a5c"><code>d973675</code></a> Docs: Update anchor links to use existing linkrefs (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13715">#13715</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13741">#13741</a>) (Brandon Mills)</li>
<li><a href="2c6d774c89"><code>2c6d774</code></a> Docs: Fix typos (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13730">#13730</a>) (Frieder Bluemle)</li>
<li><a href="cc468c0102"><code>cc468c0</code></a> Upgrade: eslint-visitor-keys@2.0.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13732">#13732</a>) (Milos Djermanovic)</li>
<li><a href="ab0ac6c532"><code>ab0ac6c</code></a> Docs: Fix anchor links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13715">#13715</a>) (Gary Moore)</li>
<li><a href="27f0de62e6"><code>27f0de6</code></a> Fix: account for linebreaks before postfix <code>++</code>/<code>--</code> in no-extra-parens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13731">#13731</a>) (Milos Djermanovic)</li>
<li><a href="da78fa1163"><code>da78fa1</code></a> Update: support async arrow fn in function-paren-newline (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13728">#13728</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13729">#13729</a>) (Michal Dziekonski)</li>
<li><a href="fe301b8cc0"><code>fe301b8</code></a> Docs: Add configuration comments in examples (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13738">#13738</a>) (YeonJuan)</li>
<li><a href="504408cd65"><code>504408c</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="390065985b"><code>3900659</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="c1974b3f71"><code>c1974b3</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="6f4abe5d5a"><code>6f4abe5</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/blob/master/CHANGELOG.md">eslint's changelog</a>.</em></p>
<blockquote>
<p>v7.12.1 - October 26, 2020</p>
<ul>
<li><a href="08f33e8b9a"><code>08f33e8</code></a> Upgrade: eslint/eslintrc to fix rule schema validation (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13793">#13793</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13794">#13794</a>) (Brandon Mills)</li>
<li><a href="aeef485dc7"><code>aeef485</code></a> Fix: Pass internal config paths in FileEnumerator default (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13789">#13789</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13792">#13792</a>) (Brandon Mills)</li>
<li><a href="631ae8b50e"><code>631ae8b</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<p>v7.12.0 - October 23, 2020</p>
<ul>
<li><a href="cbf3585f1d"><code>cbf3585</code></a> Update: skip keyword check for fns in space-before-blocks (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13553">#13553</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13712">#13712</a>) (Milos Djermanovic)</li>
<li><a href="256f656455"><code>256f656</code></a> Fix: autofix shouldn't produce template literals with <code>\8</code> or <code>\9</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13737">#13737</a>) (Milos Djermanovic)</li>
<li><a href="b165aa5f4d"><code>b165aa5</code></a> Fix: yoda rule autofix produces syntax errors with adjacent tokens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13760">#13760</a>) (Milos Djermanovic)</li>
<li><a href="3175316db2"><code>3175316</code></a> Fix: prefer-destructuring invalid autofix with comma operator (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13761">#13761</a>) (Milos Djermanovic)</li>
<li><a href="1a9f17151a"><code>1a9f171</code></a> Chore: Remove more ESLintRC-related files (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13481">#13481</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13762">#13762</a>) (Nicholas C. Zakas)</li>
<li><a href="bfddcedace"><code>bfddced</code></a> Update: remove suggestion if it didn't provide a fix (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13723">#13723</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13772">#13772</a>) (Milos Djermanovic)</li>
<li><a href="5183b14a24"><code>5183b14</code></a> Update: check template literal in no-script-url (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13775">#13775</a>) (YeonJuan)</li>
<li><a href="bfe97d2332"><code>bfe97d2</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="6c51adeb86"><code>6c51ade</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="603de04cab"><code>603de04</code></a> Update: treat all literals like boolean literal in no-constant-condition (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13245">#13245</a>) (Zen)</li>
<li><a href="289aa6fcef"><code>289aa6f</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="9a1f6694e5"><code>9a1f669</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="637f818740"><code>637f818</code></a> Docs: add more examples for no-func-assign (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13705">#13705</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13777">#13777</a>) (Nitin Kumar)</li>
<li><a href="17cc0dd9b5"><code>17cc0dd</code></a> Chore: add test case for no-func-assign (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13705">#13705</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13783">#13783</a>) (Nitin Kumar)</li>
<li><a href="dee0f7764a"><code>dee0f77</code></a> Docs: add TOC to user-guide/configuring.md (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13727">#13727</a>) (metasean)</li>
<li><a href="0510621298"><code>0510621</code></a> Update: Fix &amp;&amp; vs || short-circuiting false negatives (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13634">#13634</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13769">#13769</a>) (Brandon Mills)</li>
<li><a href="8b6ed691c4"><code>8b6ed69</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="145750991b"><code>1457509</code></a> Docs: fix broken links in Node.js API docs (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13771">#13771</a>) (Laura Barluzzi)</li>
<li><a href="7c813d458f"><code>7c813d4</code></a> Docs: Fix typo in v7 migration page (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13778">#13778</a>) (Yusuke Sasaki)</li>
<li><a href="b0257953be"><code>b025795</code></a> Docs: Fix the format option name in the document (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13770">#13770</a>) (Hideki Igarashi)</li>
<li><a href="84fd591c23"><code>84fd591</code></a> Chore: Increase Mocha timeout for copying fixtures (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13768">#13768</a>) (Brandon Mills)</li>
<li><a href="1faeb84e66"><code>1faeb84</code></a> Docs: clarify that space-unary-ops doesn't apply when space is required (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13767">#13767</a>) (Taylor Morgan)</li>
<li><a href="67c06059dd"><code>67c0605</code></a> Update: check computed keys in no-prototype-builtins (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13088">#13088</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13755">#13755</a>) (Milos Djermanovic)</li>
<li><a href="b5e011c865"><code>b5e011c</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
<p>v7.11.0 - October 9, 2020</p>
<ul>
<li><a href="23e966f6cf"><code>23e966f</code></a> Chore: Refactor CLIEngine tests (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13481">#13481</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13709">#13709</a>) (Nicholas C. Zakas)</li>
<li><a href="fa9429aac0"><code>fa9429a</code></a> Fix: don't count line after EOF in max-lines (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13735">#13735</a>) (Milos Djermanovic)</li>
<li><a href="d973675a5c"><code>d973675</code></a> Docs: Update anchor links to use existing linkrefs (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13715">#13715</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13741">#13741</a>) (Brandon Mills)</li>
<li><a href="2c6d774c89"><code>2c6d774</code></a> Docs: Fix typos (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13730">#13730</a>) (Frieder Bluemle)</li>
<li><a href="cc468c0102"><code>cc468c0</code></a> Upgrade: eslint-visitor-keys@2.0.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13732">#13732</a>) (Milos Djermanovic)</li>
<li><a href="ab0ac6c532"><code>ab0ac6c</code></a> Docs: Fix anchor links (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13715">#13715</a>) (Gary Moore)</li>
<li><a href="27f0de62e6"><code>27f0de6</code></a> Fix: account for linebreaks before postfix <code>++</code>/<code>--</code> in no-extra-parens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13731">#13731</a>) (Milos Djermanovic)</li>
<li><a href="da78fa1163"><code>da78fa1</code></a> Update: support async arrow fn in function-paren-newline (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13728">#13728</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13729">#13729</a>) (Michal Dziekonski)</li>
<li><a href="fe301b8cc0"><code>fe301b8</code></a> Docs: Add configuration comments in examples (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13738">#13738</a>) (YeonJuan)</li>
<li><a href="504408cd65"><code>504408c</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="390065985b"><code>3900659</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="c1974b3f71"><code>c1974b3</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="6f4abe5d5a"><code>6f4abe5</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a1a9d14f11"><code>a1a9d14</code></a> 7.12.1</li>
<li><a href="ea2d249058"><code>ea2d249</code></a> Build: changelog update for 7.12.1</li>
<li><a href="08f33e8b9a"><code>08f33e8</code></a> Upgrade: eslint/eslintrc to fix rule schema validation (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13793">#13793</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13794">#13794</a>)</li>
<li><a href="aeef485dc7"><code>aeef485</code></a> Fix: Pass internal config paths in FileEnumerator default (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13789">#13789</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13">https://github.com/facebook/flipper/issues/13</a>...</li>
<li><a href="631ae8b50e"><code>631ae8b</code></a> Sponsors: Sync README with website</li>
<li><a href="3e7cd1676c"><code>3e7cd16</code></a> 7.12.0</li>
<li><a href="9ddf9d7489"><code>9ddf9d7</code></a> Build: changelog update for 7.12.0</li>
<li><a href="cbf3585f1d"><code>cbf3585</code></a> Update: skip keyword check for fns in space-before-blocks (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13553">#13553</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13">https://github.com/facebook/flipper/issues/13</a>...</li>
<li><a href="256f656455"><code>256f656</code></a> Fix: autofix shouldn't produce template literals with <code>\8</code> or <code>\9</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13737">#13737</a>)</li>
<li><a href="b165aa5f4d"><code>b165aa5</code></a> Fix: yoda rule autofix produces syntax errors with adjacent tokens (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13760">#13760</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/eslint/eslint/compare/v7.10.0...v7.12.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint&package-manager=npm_and_yarn&previous-version=7.10.0&new-version=7.12.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1644

Reviewed By: passy

Differential Revision: D24702706

Pulled By: cekkaewnumchai

fbshipit-source-id: 081dc28000087142590601519610ec46537e8b7c
2020-11-04 04:00:52 -08:00
dependabot[bot]
ff781ffbba Bump @types/node from 14.14.2 to 14.14.6 in /desktop (#1645)
Summary:
Bumps [types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.2 to 14.14.6.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/node&package-manager=npm_and_yarn&previous-version=14.14.2&new-version=14.14.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1645

Reviewed By: passy

Differential Revision: D24702589

Pulled By: cekkaewnumchai

fbshipit-source-id: 5f4c6cb0fed8681174aa4325ada03501da5f6241
2020-11-04 03:45:03 -08:00
dependabot[bot]
24993f35de Bump npm-packlist from 2.1.2 to 2.1.4 in /desktop (#1647)
Summary:
Bumps [npm-packlist](https://github.com/npm/npm-packlist) from 2.1.2 to 2.1.4.
<details>
<summary>Commits</summary>
<ul>
<li><a href="1f77b1b955"><code>1f77b1b</code></a> 2.1.4</li>
<li><a href="240ffb94a4"><code>240ffb9</code></a> push to git before npm</li>
<li><a href="9cb1dbf04a"><code>9cb1dbf</code></a> Strip slashes from package files list results</li>
<li><a href="3d1edd544e"><code>3d1edd5</code></a> 2.1.3</li>
<li><a href="abacc4099b"><code>abacc40</code></a> Maintain order in package.json files array globs</li>
<li>See full diff in <a href="https://github.com/npm/npm-packlist/compare/v2.1.2...v2.1.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=npm-packlist&package-manager=npm_and_yarn&previous-version=2.1.2&new-version=2.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1647

Reviewed By: passy

Differential Revision: D24702583

Pulled By: cekkaewnumchai

fbshipit-source-id: 413fc764345d8dfab722ae77e78d71c082e3a1da
2020-11-04 03:19:00 -08:00
dependabot[bot]
b4c8978bb9 Bump @types/react-dom from 16.9.8 to 16.9.9 in /desktop (#1646)
Summary:
Bumps [types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.8 to 16.9.9.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/react-dom&package-manager=npm_and_yarn&previous-version=16.9.8&new-version=16.9.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1646

Reviewed By: passy

Differential Revision: D24702607

Pulled By: cekkaewnumchai

fbshipit-source-id: 175798a63ec3d6658a19b0c41524b5399ee446e2
2020-11-04 03:15:01 -08:00
dependabot[bot]
82209c872f Bump react-window from 1.8.5 to 1.8.6 in /desktop (#1648)
Summary:
Bumps [react-window](https://github.com/bvaughn/react-window) from 1.8.5 to 1.8.6.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/bvaughn/react-window/blob/master/CHANGELOG.md">react-window's changelog</a>.</em></p>
<blockquote>
<h3>1.8.6</h3>
<ul>
<li>{emoji:2728} Updated peer dependencies to include React v17.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d80bef25fe"><code>d80bef2</code></a> 1.8.5 -&gt; 1.8.6</li>
<li><a href="c057b19bd0"><code>c057b19</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bvaughn/react-window/issues/531">https://github.com/facebook/flipper/issues/531</a> from levigunz/master</li>
<li><a href="9c887af9de"><code>9c887af</code></a> Bump for React 17</li>
<li><a href="1f343d5d3c"><code>1f343d5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bvaughn/react-window/issues/402">https://github.com/facebook/flipper/issues/402</a> from lylpixin2121/master</li>
<li><a href="f25c5216a2"><code>f25c521</code></a> docs: add readme-zh_CN</li>
<li><a href="8506d4354a"><code>8506d43</code></a> docs: add readme-zh_CN</li>
<li><a href="ffc99e578a"><code>ffc99e5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bvaughn/react-window/issues/385">https://github.com/facebook/flipper/issues/385</a> from maclockard/patch-1</li>
<li><a href="921dbb37aa"><code>921dbb3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bvaughn/react-window/issues/391">https://github.com/facebook/flipper/issues/391</a> from dkunzman77/better-docs</li>
<li><a href="31ba105deb"><code>31ba105</code></a> Tweaked wording</li>
<li><a href="1cee24bc78"><code>1cee24b</code></a> Update README.md</li>
<li>Additional commits viewable in <a href="https://github.com/bvaughn/react-window/compare/1.8.5...1.8.6">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-window&package-manager=npm_and_yarn&previous-version=1.8.5&new-version=1.8.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1648

Reviewed By: passy

Differential Revision: D24702571

Pulled By: cekkaewnumchai

fbshipit-source-id: dfce13c31e82558ec3c7b5d069f4d77f1992c646
2020-11-04 03:15:01 -08:00
dependabot[bot]
9998e6345c Bump promise-retry from 1.1.1 to 2.0.1 in /desktop (#1649)
Summary:
Bumps [promise-retry](https://github.com/IndigoUnited/node-promise-retry) from 1.1.1 to 2.0.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fb0849111"><code>7fb0849</code></a> 2.0.1</li>
<li><a href="923edf9475"><code>923edf9</code></a> fix: update node requirement in package.json (<a href="https://github-redirect.dependabot.com/IndigoUnited/node-promise-retry/issues/36">https://github.com/facebook/flipper/issues/36</a>)</li>
<li><a href="a3dae32eda"><code>a3dae32</code></a> 2.0.0</li>
<li><a href="309ed33dd9"><code>309ed33</code></a> chore: update deps</li>
<li><a href="41b8da6b8d"><code>41b8da6</code></a> chore: update deps (<a href="https://github-redirect.dependabot.com/IndigoUnited/node-promise-retry/issues/35">https://github.com/facebook/flipper/issues/35</a>)</li>
<li><a href="03a36d35d6"><code>03a36d3</code></a> Fix minor grammatical errors (<a href="https://github-redirect.dependabot.com/IndigoUnited/node-promise-retry/issues/34">https://github.com/facebook/flipper/issues/34</a>)</li>
<li><a href="7b3192d7e7"><code>7b3192d</code></a> Update README.md</li>
<li><a href="efdab57aca"><code>efdab57</code></a> Fix david link to dev deps</li>
<li>See full diff in <a href="https://github.com/IndigoUnited/node-promise-retry/compare/1.1.1...v2.0.1">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~achingbrain">achingbrain</a>, a new releaser for promise-retry since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=promise-retry&package-manager=npm_and_yarn&previous-version=1.1.1&new-version=2.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1649

Reviewed By: passy

Differential Revision: D24702559

Pulled By: cekkaewnumchai

fbshipit-source-id: 5bbf8a993c0b1c5f5e8cc114c1a012163c415c6e
2020-11-04 03:12:40 -08:00
Vladyslav Stepanov
181afc8f36 Add an easy option to mark all stories in database as seen
Differential Revision: D24634705

fbshipit-source-id: f548b4bf461015da161024acf8cc69f500a82dfa
2020-11-03 11:58:52 -08:00
Pascal Hartig
9d5ca7de87 Support screencaps/recordings from multiple devices
Summary:
We've been using "booted" as a shortcut to select a device in `xcrun` but that will only refer to the *first* booted simulator. If you have multiple ones, that causes screenshots, videos and logs to always be pulled from the first.

Of course, this isn't documented anywhere, because Apple, but you can instead of `booted` pass in the "UDID" and refer to a specific device in all cases.

Reviewed By: nikoant

Differential Revision: D24627077

fbshipit-source-id: 2a52a8a17776746af4b3f6ca821dcce37bb0f7c2
2020-10-30 05:44:48 -07:00
Michel Weststrate
aef3672235 Make support form and plugin manager accessible
Summary:
This diff makes the plugin manager and support form accessible from Sandy.

Actually converting them is TODO in T78698507 / T78698498

Reviewed By: cekkaewnumchai

Differential Revision: D24620558

fbshipit-source-id: c689d95b638b77ad504915a117e909cf0d88b841
2020-10-30 04:23:43 -07:00
Michel Weststrate
3484f321af Support archived devices
Summary:
Make sure archived are displayed as such in the UI, and normal device functions aren't available:

* taking screenshots
* bookmarks
* metro device plugins
* disabling plugins
* disabled and unavailable plugins
* mobile builds

Also moved starting an emulator to the left rail, since it isn't a function related to the current selected thing

Reviewed By: cekkaewnumchai

Differential Revision: D24620247

fbshipit-source-id: f1f469e2fc5167fd90ccb35d583988873a9bc787
2020-10-30 04:23:43 -07:00
Michel Weststrate
9deed974be Support active sheet mechanism in Sandy
Summary:
This diffs adds support for the activeSheets mechanism in Sandy. It should be removed in the future (see T78696648) since open a dialog and keeping dialog state locally results in much more straight forward code, but supporting this for now makes sure that old flows are still supported.

With this change the plugin selection during a Flipper export for example wouldn't become visible

Reviewed By: cekkaewnumchai

Differential Revision: D24620074

fbshipit-source-id: f0558f5738e86a84a5cd0b9d574a3cfd0a3bf424
2020-10-30 04:23:43 -07:00
Michel Weststrate
ef7d4ea487 Fix shrink issue in search box
Summary: See test plan, if there is little space, 'tags' tended to overflow the search box. After this change the searchbox will grow were needed.

Reviewed By: cekkaewnumchai

Differential Revision: D24563826

fbshipit-source-id: 616173db7c080561ff51a76ab0e8938c58f87820
2020-10-30 04:23:42 -07:00
Anton Nikolaev
39e02f5852 Fix flipper-pkg
Summary: flipper-pkg is broken because of metro package name change. This change should fix it.

Reviewed By: priteshrnandgaonkar

Differential Revision: D24591217

fbshipit-source-id: 2036c43bc0c2bb052e56740a03dc248e7daa8cfc
2020-10-28 06:28:27 -07:00
generatedunixname89002005306973
a3bcf6b043 Flipper Release: v0.64.0
Summary: Releasing version 0.64.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D24590607

fbshipit-source-id: 04671a31028a33cf020acd8b83c219608fe38319
2020-10-28 06:06:33 -07:00
dependabot[bot]
e993b7e9d4 Bump console-feed from 3.1.8 to 3.1.10 in /desktop (#1627)
Summary:
Bumps [console-feed](https://github.com/samdenty99/console-feed) from 3.1.8 to 3.1.10.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/samdenty99/console-feed/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=console-feed&package-manager=npm_and_yarn&previous-version=3.1.8&new-version=3.1.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1627

Reviewed By: cekkaewnumchai

Differential Revision: D24590105

Pulled By: passy

fbshipit-source-id: 490dc7bec5f231fa3c689abfb00aea33bb27fe0e
2020-10-28 06:02:57 -07:00
Pascal Hartig
f36c3656b5 Upgrade to React 17
Summary:
Doing some oncall upgrades.

Changelog: Upgrade internal React version to v17

Reviewed By: mweststrate

Differential Revision: D24506315

fbshipit-source-id: 911e4f657684b4d98ec3ef91bc8a81c43130da5b
2020-10-27 05:56:34 -07:00
Michel Weststrate
b8f68a4026 Support React Native buttons
Summary: Added the Metro buttons to AppInspect

Reviewed By: cekkaewnumchai

Differential Revision: D24544760

fbshipit-source-id: 1eb6face14a7950d654c95b1a8fca31b8efed99b
2020-10-27 05:21:23 -07:00
Michel Weststrate
82604020ab Support screenshot buttons
Summary: Added Sandy styling to `CaptureButtons`, and converted to hooks while at it

Reviewed By: cekkaewnumchai

Differential Revision: D24538953

fbshipit-source-id: cfb9a9b856ada40eb96b77d2e5e6ea780971d0ce
2020-10-27 05:21:23 -07:00
Michel Weststrate
9f3df3406d Bless "Layout" and "theme"
Summary: This blesses the `Layout` and `theme` components and exposes them from `flipper-plugin`, so that they can be used in (public) Sandy plugins. Also marked old abstractions as going to be deprecated.

Reviewed By: cekkaewnumchai

Differential Revision: D24503560

fbshipit-source-id: a8f384667b8f66e3b9f00771a123fe5c9d755eb3
2020-10-27 05:21:23 -07:00
Edward Yerburgh
8a31e984b3 Use QPL-managed QPLCore and PigeonClient (#1612)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1612

* Use the QPL-managed QPLCore and PigeonClient.

**Facebook:**

js-shared/qpl and js-shared/pigeon-client are maintained by QPL in xplat/js-shared. I've updated the Metro config and tsconfig to allow the packages to be imported without breaking the open-source version.

Reviewed By: passy

Differential Revision: D24358369

fbshipit-source-id: 7f13d6c99d8ca6ebcd0e66bf0e5f25069370cce7
2020-10-26 02:29:09 -07:00
Michel Weststrate
5731e3a155 Scrolling improvements
Summary:
Split container had a convenient property `scrollable`, that automatically applies a Scroll container to the main content.

But I noticed it leads to bad design choices because it is so convenient. So sometimes scrolling would be unnecessarily in two directions because of this.

Or, since the scroll container wraps around the whole content, toolbars would scroll out of view. By forcing scrolling to be put explicitly in the component tree, we encourage plugin developers to think about where they actually want to have that scroll, and in which direction.

Also added options to use the Container padding properties on ScrollContainer, which is great since we can keep the scrollbars outside the padding, and apply it to the content only, to prevent an accidental mistake where people would put a scroll container in a padded container, that would put the scrollbar inside the padding.

Reviewed By: cekkaewnumchai

Differential Revision: D24502546

fbshipit-source-id: 524004a1c5f33a185f9b959251b72875dd623cb3
2020-10-23 06:46:15 -07:00
Michel Weststrate
30f5f0b59a Small design system simplifications
Summary:
So far we distinguished `Layout.Container` from `Layout.Vertical`, but they did almost exactly the same, so figured to unify them, so smaller API ftw :) Normal containers put children vertical, and if you want to use horizontal, use Layout.Horzontal

Also simplified code in Layout file a little bit.

Fixed issue I split container where the main container didn't go "underneath" the fixed container

Reviewed By: cekkaewnumchai

Differential Revision: D24502547

fbshipit-source-id: 517db3692749e670cda8f0cd7cb1c807df818b4d
2020-10-23 06:46:15 -07:00
Michel Weststrate
26e040ea73 Layout fix in searchable actions
Summary: Tiny fix were horizontally aligned items were accidentally allowed to shrink by default.

Reviewed By: cekkaewnumchai

Differential Revision: D24501856

fbshipit-source-id: 30ad3987a744b14b41993ed27db9edadd420f0df
2020-10-23 06:46:15 -07:00
Chaiwat Ekkaewnumchai
402ea2fc14 Convert to Shared Preference Plugin to Sandy
Summary:
per title

In addition, this diff adds `startUnactivated` option to allow setting up `onSend` mock implementation.

Reviewed By: mweststrate

Differential Revision: D24477989

fbshipit-source-id: f913574ebacdd436e8511baa43744249a014e90b
2020-10-23 06:22:02 -07:00
Chaiwat Ekkaewnumchai
467a6b16fb Add Notification View
Summary:
This stack tries to migrate notification system to Sandy.

This diff contains on the view; other functionalities aren't working. Also, some of the views will be implemented as functionalities are added.

Reviewed By: mweststrate

Differential Revision: D24390370

fbshipit-source-id: 8e11a01d9462934ff1fadf411e7e8f57ca7ef078
2020-10-23 04:35:14 -07:00
Pascal Hartig
2c88ca3d18 Upgrade flow to 0.131
Summary: Actually, things only start to break in 132.

Reviewed By: mweststrate

Differential Revision: D24480958

fbshipit-source-id: c7003459647d06cbcdf639505fa0779183923a3b
2020-10-23 04:22:07 -07:00
Pascal Hartig
8d6502b5d7 Upgrade Flow to 0.130
Summary:
This should give us some headroom. There are some incompatibilities and bugs in newer versions,
so only bumping this one which is compatible.

Reviewed By: mweststrate

Differential Revision: D24480863

fbshipit-source-id: ec21b937bf44686e49a71aeb38063d996d2cbff4
2020-10-23 04:22:07 -07:00
Timur Valiev
957ae9d7ca small Searchable table refactoring
Summary: export filterRowsFact so we can reuse it. it's needed in diffs above

Reviewed By: SimoneCasagranda

Differential Revision: D24445819

fbshipit-source-id: 1c9ca363419c7e34f53e65b77764a49235e259e2
2020-10-22 13:16:47 -07:00
Anton Nikolaev
d4debc4185 Use dotenv for dev mode customisation
Summary: Allow using of .env file to pass env vars to be used in dev mode. Currently this allow to configure defaults for enabling fast refresh, automatic opening of dev tools and plugins to load.

Reviewed By: passy

Differential Revision: D24398938

fbshipit-source-id: 30a5d86b7906a7723a404cf84a1b8d50ae497dbc
2020-10-22 11:35:53 -07:00
Anton Nikolaev
2d9cf5a905 Option to load only specific plugins in dev mode
Summary: Currently we load all the plugins even if they are not required in dev mode, e.g. when you are developing a specific plugin. This diff adds an env var and command-line option to specify exact list of plugins to load. This makes dev mode startup faster and consume less memory.

Reviewed By: passy

Differential Revision: D24394146

fbshipit-source-id: 42a78c1ffb2632e657c2411e34e9c80fff18df3a
2020-10-22 11:35:53 -07:00
Michel Weststrate
966d748ace Some fixes in rendering legacy plugins
Summary:
Some exploratory testing on all iOS and Android plugins, to see how they behave inside Sandy, and fixed some layout glitches (some were also present without Sandy)

General fixes:
* Introduced some niceties like searchbox resizing properly, and toolbars wrapping automatically in Sandy, rather than buttons becoming invisible
* Containers don't grow anymore by default, but take size of contents
* ScrollContainer child is now a Layout.Vertical. Layout.Vertical should be used as default container everywhere (e.g. Tabs, Panels) in the future
* Fixed layout issue if a split container had only 1 visible child
* DetailsSidebar now scrolls vertically by default
* Details sidebar would sometimes render content in-place rather than in the reserved area
* AppSelector dropdown and Plugin list will now properly ellipse (...) if there is not enough space

Plugin fixes:
* Long database / table names in Database plugin would break layout

Also fixes https://github.com/facebook/flipper/issues/1611

Reviewed By: passy

Differential Revision: D24454188

fbshipit-source-id: c60c867270900a1d4f28587d47067c6ec1072ede
2020-10-22 09:41:11 -07:00
Michel Weststrate
4f7294c96d Add unit tests for selection changes and plugin list computation
Summary: Tests to verify the more complex selection logic resulting from the Metro device exception. Also verifies the logic that computes the available plugins

Reviewed By: nikoant

Differential Revision: D24445555

fbshipit-source-id: 70110c4470e6aa1356e814aa40744b65c21cad89
2020-10-22 09:41:11 -07:00
Michel Weststrate
99dfeacdf8 useMemo -> useMemoize
Summary:
I love useMemo, and the memoized functions are in principle easy to testable since deps are known

But in practice they aren't as they close over their deps, preventing hoisting. So I now use a small `useMemoize` utility that encourages me to write them in a testable manner.

Applied this to the PluginList, and it makes it imho cleaner to read. Also, testing is now much easier as demonstrated in the next diff.

Reviewed By: nikoant

Differential Revision: D24445556

fbshipit-source-id: e156dbd4b8623eb1b90650e174b69a0ec868d2da
2020-10-22 09:41:11 -07:00
Michel Weststrate
c55be74426 Be able to select Metro plugins
Summary:
This adds the ability in AppInspect to work with Metro and plugins.

Metro remains a weird and hardcoded edge case, as we show it as part of another device. So a few things to notice:
- Metro does not have it's own entry in the device/app dropdown
- When selecting a metro plugin, the surrounding context (selected main device / app) remains, but you will notice that the device dropdown switches to 'React Native'. This is intentional to reflect that we are talking to React Native in general, and not necessarily to the device / app shown in the context.

Reviewed By: nikoant

Differential Revision: D24422267

fbshipit-source-id: 239aa71b5c01e19bdda53a930ad9fa8af13b8d4a
2020-10-22 09:41:11 -07:00
Michel Weststrate
8a7323b9f8 Render plugin list
Summary:
This diff adds the rough navigation to open pugins, there are some rough egdes still, and tests will be added later, but wanted to keep diffs small, and land the feature early to get some initial dogfooding going on early.

Note that we now also show all disabled plugins to help people with trouble shooting.

Reviewed By: nikoant

Differential Revision: D24418411

fbshipit-source-id: 1402d69efe2e52bc2c81336cfb4f4c9928ea4d80
2020-10-22 09:41:11 -07:00
Evgen Filatov
2c6c7fb46c (flux stores) 5. make "logs" tab look nicer
Summary:
This diff implement few things:
* Logs tab for plugin
* Sending new state for each action is expensive, that is why flipper side receive only diffs and uses `getStateFromLogItem` to calculate new state
* fixed `keys` in `DataInspector.tsx` which caused `DataInspector` become unresponsive

{F340648998}

Differential Revision: D23021619

fbshipit-source-id: 17490c25f7b86faf9e574a612996563aac18525e
2020-10-22 01:42:36 -07:00
Evgen Filatov
6e54ac9bab (flux stores) 3. connected FluxLogger to flipper
Summary:
The bridge between Flipper and AMA has been established in previous diff. The goal of this diff - is to actually send data to flipper

{F340648834}

Differential Revision: D22999433

fbshipit-source-id: 72b6ad57bcaa9c0318879a224508397f70e3bc76
2020-10-22 01:42:36 -07:00
generatedunixname89002005306973
0f23f409ab Flipper Release: v0.63.0
Summary: Releasing version 0.63.0

Reviewed By: nikoant

Differential Revision: D24423408

fbshipit-source-id: 0bc12c49d8bf77d8dbf9688adb07dc176b210548
2020-10-20 11:13:12 -07:00
Paco Estevez Garcia
1be2f8c987 Immutable picker
Summary: Disables the picker if the selection isn't editable

Differential Revision: D24419005

fbshipit-source-id: 433229a23db7fac947f574110326f5bf0dc51bc3
2020-10-20 10:50:18 -07:00
Paco Estevez Garcia
d733f8131f Immutable timeline
Summary:
Removes the "Set current" button if the timeline isn't editable

Note that the styling does weird stuff to colors when a field is set as not editable

Differential Revision: D24419006

fbshipit-source-id: 84dcee2e04d5ed7ebb3dc0255e99d1756f195284
2020-10-20 10:50:18 -07:00
Anton Nikolaev
38ef16aeeb Upgrade jest and babel
Summary: Metro update already uppgraded half of babel libraries and jest update required updating some others, so here I just updated all babel-related and jest-related packages using `yarn upgrade-interactive` so their versions matched

Reviewed By: mweststrate

Differential Revision: D24421484

fbshipit-source-id: e22a1a8cbc36435253b8d92adadd2439d669e811
2020-10-20 09:45:07 -07:00
dependabot[bot]
35a433d1a3 Bump metro from 0.60.0 to 0.63.0 in /desktop (#1606)
Summary:
Bumps [metro](https://github.com/facebook/metro) from 0.60.0 to 0.63.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.63.0</h2>
<ul>
<li>[fix] Change initialisation logo and text from RN to Metro</li>
</ul>
<h2>Release v0.62.0</h2>
<ul>
<li>[feature] Add onBundleBuilt to ServerOptions</li>
</ul>
<h2>Release v0.61.0</h2>
<p>Contains all changes since 0.60.0:</p>
<ul>
<li>[Feature]: Add support for blockList and array of regexs</li>
<li>[Fix]: Change order of imports to be the same as in source files</li>
<li>[Feature]: Add new secureServerOptions option to runServer</li>
<li>[Feature]: Add inline-requires option</li>
<li>[PetPeeve]: Metro server =&gt; Metro</li>
</ul>
<p>See <a href="https://github.com/facebook/metro/compare/0.60.0...0.61.0">0.59.0...0.60.0</a> for a full list of changes.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b9bacd51d0"><code>b9bacd5</code></a> Metro release v0.63.0</li>
<li><a href="c106b6540e"><code>c106b65</code></a> Change initialisation logo and text</li>
<li><a href="be719b29c0"><code>be719b2</code></a> remove redundant deprecated-utility setting from flow configs</li>
<li><a href="9236feba99"><code>9236feb</code></a> Turn off template literal and shorthand properties transform for hermes-canary</li>
<li><a href="6b82e8443c"><code>6b82e84</code></a> Create a <code>metro-runtime</code> module</li>
<li><a href="18883f6caa"><code>18883f6</code></a> Fix up package.json files.</li>
<li><a href="921b73e4d0"><code>921b73e</code></a> Remove autogenerated table of contents (deprecated in docusaurus v2)</li>
<li><a href="eb9b02572b"><code>eb9b025</code></a> Update configuration page with examples</li>
<li><a href="00a5a6d8d6"><code>00a5a6d</code></a> Fix troubleshooting and help pages</li>
<li><a href="c73eaf88f8"><code>c73eaf8</code></a> Update docusaurus version</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.60.0...v0.63.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.60.0&new-version=0.63.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1606

Reviewed By: passy

Differential Revision: D24392103

Pulled By: nikoant

fbshipit-source-id: 6d816629f55e04852d6737f9960fa61d7e83cee8
2020-10-20 08:54:17 -07:00
Michel Weststrate
29e528115d Support 1 dimension scrolling
Summary: Added `axis` property to scroll container, to make scroll work in one direction, and fill out the other one.

Reviewed By: cekkaewnumchai

Differential Revision: D24390943

fbshipit-source-id: 5767e753edfb947f43b3998e10d6cebf57f9b53b
2020-10-20 03:24:47 -07:00
Michel Weststrate
a2fac737f6 Render sidebar
Summary:
Restore sidebar functionality for Sandy plugins

Also needed to fix some circular dependency issues as fallout.

Reviewed By: cekkaewnumchai

Differential Revision: D24362215

fbshipit-source-id: 0a09ac35ba981322ae0793edc3aa79ffddf2ce73
2020-10-20 03:24:47 -07:00
Michel Weststrate
ba5f067320 Fix circular imports and lint against them
Summary: When trying to refactor some components, did once again run into circular imports that cause the flipper startup sequence to fail. Added linting rules to make sure this is much less likely to happen in the future, and fixed all resulting errors

Reviewed By: nikoant

Differential Revision: D24390583

fbshipit-source-id: 9b20cf6a4d3555dc68f0069c2950dd7162b17e67
2020-10-20 03:24:47 -07:00