Commit Graph

952 Commits

Author SHA1 Message Date
generatedunixname89002005306973
ad8e8fbb24 Flipper Release: v0.66.0
Summary: Releasing version 0.66.0

Reviewed By: nikoant

Differential Revision: D25052024

fbshipit-source-id: 5ef39431905ca3bc2c4870bff2f8ae917ed1e81e
2020-11-18 03:13:31 -08:00
Pascal Hartig
008803b502 Don't redefine Tabs
Summary:
I don't quite know how this worked before but we had `Type` both as
a function and a type. I guess because types only exist in TS land it
was okay, but it was confusing nevertheless.

Reviewed By: nikoant

Differential Revision: D25026916

fbshipit-source-id: f4f0351bf7eeec33ef760433157b3713054d9dc7
2020-11-18 02:53:07 -08:00
Anton Nikolaev
32ca27f4f7 Fix assigning unique numbers to builds
Summary: Just rolling back a part of D24782300 (dce7422ba6) where I've accidently removed using of unique number because did not understood how it is passed and wrongly decided it is not needed.

Reviewed By: passy

Differential Revision: D25027458

fbshipit-source-id: f623732c161bca01859f91444c2a0ed211a5fad6
2020-11-17 11:51:18 -08:00
Chaiwat Ekkaewnumchai
2c9219f99a Add State to Notification Component
Summary:
This diff covers notification items to show data stored in the state as well as add button functionality to plugins.

This diff doesn't cover notification search, clear, and setting, which will be covered in next diffs

Reviewed By: mweststrate

Differential Revision: D24986742

fbshipit-source-id: d42cfe8112881a7f0d2158cbce267a4d7c344305
2020-11-17 05:38:13 -08:00
John Knox
41c7e023a9 Enable limited use of iOS devices on non Mac devices
Summary:
Context: https://fb.workplace.com/groups/flippersupport/permalink/1005193786627946/

I believe we can land this without knowing that it works, because iOS support is still disabled by default for non mac devices - you have to enable it in settings to switch it on.

Reviewed By: passy

Differential Revision: D24893757

fbshipit-source-id: c9db515a7807c94a0d5e509017dd4e1796d24f6d
2020-11-17 04:03:43 -08:00
Michel Weststrate
c6e51fe73c Moved sections plugin into fb/
Summary: See https://github.com/facebook/flipper/issues/1680, the sections plugin was exposed publicly, even though we don't have a publicly available client plugin

Reviewed By: passy

Differential Revision: D24993552

fbshipit-source-id: 788ecc29ec64048b3077dea89e492ddbf1ea7d84
2020-11-17 02:42:13 -08:00
dependabot[bot]
acd2cf25ec Bump @algolia/client-search from 4.5.1 to 4.6.0 in /desktop (#1682)
Summary:
Bumps [algolia/client-search](https://github.com/algolia/algoliasearch-client-javascript) from 4.5.1 to 4.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/releases">algolia/client-search's releases</a>.</em></p>
<blockquote>
<h2>4.6.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md">algolia/client-search's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="da500fb2be"><code>da500fb</code></a> chore: release v4.6.0 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1217">https://github.com/facebook/flipper/issues/1217</a>)</li>
<li><a href="c3f5d7200e"><code>c3f5d72</code></a> chore: update bundlesize</li>
<li><a href="4348b3887b"><code>4348b38</code></a> fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>)</li>
<li><a href="f6e9e5620c"><code>f6e9e56</code></a> fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>)</li>
<li><a href="5207d68ff6"><code>5207d68</code></a> chore(TypeScript): avoid ts-ignore (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1190">https://github.com/facebook/flipper/issues/1190</a>)</li>
<li><a href="f82bd48684"><code>f82bd48</code></a> chore: migrate release process to Ship.js (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1210">https://github.com/facebook/flipper/issues/1210</a>)</li>
<li><a href="50b78a3e7f"><code>50b78a3</code></a> feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>)</li>
<li>See full diff in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@algolia/client-search&package-manager=npm_and_yarn&previous-version=4.5.1&new-version=4.6.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/1682

Reviewed By: passy

Differential Revision: D24994065

Pulled By: mweststrate

fbshipit-source-id: 3b4b12a5540e611edc879cc2525dee811e73955c
2020-11-17 02:39:13 -08:00
dependabot[bot]
bc7aacc229 Bump @typescript-eslint/experimental-utils from 4.4.0 to 4.7.0 in /desktop (#1683)
Summary:
Bumps [typescript-eslint/experimental-utils](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/experimental-utils) from 4.4.0 to 4.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases">typescript-eslint/experimental-utils's releases</a>.</em></p>
<blockquote>
<h2>v4.7.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.6.1...v4.7.0">4.7.0</a> (2020-11-09)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [array-type] parenthesize ReadonlyArray fix (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2747">#2747</a>) (<a href="83385ac351">83385ac</a>)</li>
<li><strong>eslint-plugin:</strong> [no-extra-non-null-assertion] false positive with non-nullable computed key (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2737">#2737</a>) (<a href="e82698c0ec">e82698c</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> add rule <code>no-confusing-void-expression</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2605">#2605</a>) (<a href="c8a4dadeab">c8a4dad</a>)</li>
<li>support TS4.1 features (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2748">#2748</a>) (<a href="2be354bb15">2be354b</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2583">#2583</a></li>
</ul>
<h2>v4.6.1</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.6.0...v4.6.1">4.6.1</a> (2020-11-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [consistent-indexed-object-style] fix wrong autofix behaviour with generics (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2722">#2722</a>) (<a href="73d97130af">73d9713</a>)</li>
<li><strong>eslint-plugin:</strong> [no-shadow] ignore global module augmentation (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2729">#2729</a>) (<a href="d8c67a564a">d8c67a5</a>)</li>
</ul>
<h2>v4.6.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.5.0...v4.6.0">4.6.0</a> (2020-10-26)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [method-signature-style] correct fixer for overloads in an object literal type (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2708">#2708</a>) (<a href="0763913c4a">0763913</a>)</li>
<li><strong>eslint-plugin:</strong> [method-signature-style] don't auto-fix interfaces within namespaces (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2678">#2678</a>) (<a href="e01204931e">e012049</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-string-starts-ends-with] Check negative indices in the second position for slice (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2696">#2696</a>) (<a href="66e9c6e29f">66e9c6e</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [ban-types] support banning <code>[]</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2704">#2704</a>) (<a href="ef8b5a7e09">ef8b5a7</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2582">#2582</a></li>
<li><strong>eslint-plugin:</strong> add <code>no-unnecessary-type-constraint</code> rule (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2516">#2516</a>) (<a href="880ac753b9">880ac75</a>)</li>
<li><strong>eslint-plugin:</strong> add extension rule <code>space-infix-ops</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2593">#2593</a>) (<a href="343d20db23">343d20d</a>)</li>
</ul>
<h2>v4.5.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.4.1...v4.5.0">4.5.0</a> (2020-10-19)</h1>
<h3>Bug Fixes</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/experimental-utils/CHANGELOG.md">typescript-eslint/experimental-utils's changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.6.1...v4.7.0">4.7.0</a> (2020-11-09)</h1>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/experimental-utils</p>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.6.0...v4.6.1">4.6.1</a> (2020-11-02)</h2>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/experimental-utils</p>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.5.0...v4.6.0">4.6.0</a> (2020-10-26)</h1>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/experimental-utils</p>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.4.1...v4.5.0">4.5.0</a> (2020-10-19)</h1>
<h3>Features</h3>
<ul>
<li><strong>typescript-estree:</strong> add flag EXPERIMENTAL_useSourceOfProjectReferenceRedirect (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2669">#2669</a>) (<a href="90a5878450">90a5878</a>)</li>
</ul>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.4.0...v4.4.1">4.4.1</a> (2020-10-12)</h2>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/experimental-utils</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c473780db9"><code>c473780</code></a> chore: publish v4.7.0</li>
<li><a href="fb1d9b162a"><code>fb1d9b1</code></a> chore: publish v4.6.1</li>
<li><a href="5de66142f2"><code>5de6614</code></a> chore: publish v4.6.0</li>
<li><a href="5225a76852"><code>5225a76</code></a> chore: publish v4.5.0</li>
<li><a href="90a5878450"><code>90a5878</code></a> feat(typescript-estree): add flag EXPERIMENTAL_useSourceOfProjectReferenceRed...</li>
<li><a href="c41dbe56e0"><code>c41dbe5</code></a> chore: publish v4.4.1</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.7.0/packages/experimental-utils">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/experimental-utils&package-manager=npm_and_yarn&previous-version=4.4.0&new-version=4.7.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/1683

Reviewed By: passy

Differential Revision: D24994058

Pulled By: mweststrate

fbshipit-source-id: 9bc3e65a6a928aac63ea50b2a8627a0a83642d21
2020-11-17 02:14:12 -08:00
dependabot[bot]
b66ce5d2dd Bump @types/babel__core from 7.1.10 to 7.1.12 in /desktop (#1686)
Summary:
Bumps [types/babel__core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/babel__core) from 7.1.10 to 7.1.12.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/babel__core">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/babel__core&package-manager=npm_and_yarn&previous-version=7.1.10&new-version=7.1.12)](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/1686

Reviewed By: passy

Differential Revision: D24993992

Pulled By: mweststrate

fbshipit-source-id: f4fde9c6940c9e159ae06ce5d1fd8319e8e57e4e
2020-11-17 01:49:40 -08:00
Michel Weststrate
17ff06c085 Minor padding fix
Summary: per title

Reviewed By: jknoxville

Differential Revision: D24993266

fbshipit-source-id: 42d1718a4f111505cf69d1accc7d7f7cee9285a9
2020-11-16 13:10:33 -08:00
Michel Weststrate
d5557ef8de Documented so far undocumented top level APIs
Summary: Per title

Reviewed By: passy

Differential Revision: D24992066

fbshipit-source-id: a9aa351600d46a67b605e8555efb30d42ffc2d9b
2020-11-16 13:10:33 -08:00
Michel Weststrate
45db64f0d0 Make sure that limited top-level exports are exposed from flipper-plugin
Summary: This prefixes APIs of `flipper-plugin`, that are used by Flipper, but should not be used by plugins directly, with `_`. Also added tests to make sure we are always intentional when extending the exposed APIs

Reviewed By: passy

Differential Revision: D24991700

fbshipit-source-id: ed3700efa188fca7f5a14d5c68250598cf011e42
2020-11-16 13:10:33 -08:00
Michel Weststrate
cc438e60ad Update public docs to use Sandy
Summary: This updates the docs of Flipper to use Sandy, rather than `FlipperPlugin` class. Restructured the docs a bit as a result.

Reviewed By: passy

Differential Revision: D24991285

fbshipit-source-id: 66d5760c25cf9cf3983515433dfd64348d51db3d
2020-11-16 13:10:32 -08:00
Michel Weststrate
da6d6593a5 Update seammamals plugin to Sandy
Reviewed By: nikoant

Differential Revision: D24951251

fbshipit-source-id: 5510c2777d232fe4290f6b248b736c80306fb44e
2020-11-16 13:10:32 -08:00
Michel Weststrate
dc82ec2885 flipper-pkg template will now use sandy
Summary:
This diff updates plugin scaffolding by using Sandy and closely following the internal Scarf templates (see D24949452, D24949452)

By using `flipper-plugin`, it is now also possible to write unit tests for a plugin, and the default infra for that is generated (babel / jest)

For now there is still a dependency on `flipper` to support fancy components not yet available in Sandy, this will be updated in the future: T79632585

Changelog: `flipper-pkg init` now uses the new Sandy plugin infrastructure ant Ant.design component system

Reviewed By: nikoant

Differential Revision: D24950080

fbshipit-source-id: afc5e7ac728b20cb84fdbbdcb76cd45968736c01
2020-11-16 13:10:32 -08:00
Michel Weststrate
33e527f39a Add onUnhandledMesssage handler
Summary: This diff adds the `client.onUnhandledMessage` handler, to be able to handle messages for which we don't know the names upfront. Some existing plugins that only send one kind of message can benefit from this, as can generic plugins, like the createTablePlugin

Reviewed By: passy

Differential Revision: D24949453

fbshipit-source-id: 0fed81e28aee350632c09ee3bb834f306dc8b100
2020-11-16 13:10:32 -08:00
dependabot[bot]
e1fc9a423d Bump flipper-client-sdk from 0.0.2 to 0.0.3 in /desktop (#1668)
Summary:
Bumps [flipper-client-sdk](https://github.com/facebook/flipper) from 0.0.2 to 0.0.3.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/facebook/flipper/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=flipper-client-sdk&package-manager=npm_and_yarn&previous-version=0.0.2&new-version=0.0.3)](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/1668

Reviewed By: mweststrate

Differential Revision: D24981564

Pulled By: passy

fbshipit-source-id: 55431dd6f5ecf6bbb52324890a7efdb28b10350e
2020-11-16 11:12:23 -08:00
dependabot[bot]
b88899f8f7 Bump @types/inquirer from 6.5.0 to 7.3.1 in /desktop (#1685)
Summary:
Bumps [types/inquirer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/inquirer) from 6.5.0 to 7.3.1.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/inquirer">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/inquirer&package-manager=npm_and_yarn&previous-version=6.5.0&new-version=7.3.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/1685

Reviewed By: passy

Differential Revision: D24993998

Pulled By: mweststrate

fbshipit-source-id: bca428a99b361950ae2af4c16e079e4f48461968
2020-11-16 10:16:25 -08:00
John Knox
2be022663e Improve invalid android sdk message
Reviewed By: nikoant

Differential Revision: D24993553

fbshipit-source-id: de2044aeac45fa139eef82b2e6785c461b8cfe5a
2020-11-16 09:41:47 -08:00
Chaiwat Ekkaewnumchai
d00cb84ad9 Sync Flipper Library Version
Summary: The plugin seems to miss the train to version 0.65. This diff gives it a ride to the current version

Reviewed By: nikoant

Differential Revision: D24950948

fbshipit-source-id: 3132a3baf0a41d8ec0de5cf8c55c0561126b038f
2020-11-13 07:24:47 -08:00
John Knox
797fd0517f Replace ITSR GK with a new one
Summary:
Michel discovered that the ITSR GK has been dialled down completely since the last bug.

Coming to re-enable it I discovered a bug that has been introduced since then, so have fixed that, but we can't just ramp up the original GK because the current version of flipper will crash if ITSR is used.

So instead, I'm leaving the current GK ramped down, and replacing it with a new one, which is safe to ramp up.

This will mean ITSR is only enabled on versions from the next release onwards.

Reviewed By: nikoant

Differential Revision: D24922822

fbshipit-source-id: 8a6990fd5130bd046c24b0da757492b37e4040f2
2020-11-13 01:20:49 -08:00
Michel Weststrate
dcdec2608e Start simulator app if not already started
Summary:
Before this change, launching a simulator would ony show the simulator if the simulator process itself was already running. This makes sure that opening a simulator also works from a closed state

Changelog: Automatically start an iOS simulator to launch a device when none is running yet

Reviewed By: nikoant

Differential Revision: D24919363

fbshipit-source-id: 45039330710cf81aa73222967d667964bb01f42a
2020-11-12 16:32:57 -08:00
Michel Weststrate
c9a278fb0f Use predefined icons for Facebook family apps
Summary:
Ideally, we want to fetch app Icons from the device, but for now, we can at least for Facebook owned apps we can use a hardcoded set of icons, which probably even looks better.

For ` Lite` apps, the colors of the icon and background are reversed, which makes both variations recognizable.

Reviewed By: jknoxville

Differential Revision: D24920161

fbshipit-source-id: 5220093fb3a443ae535faa4c346a2029de9cbbd5
2020-11-12 15:19:43 -08:00
Michel Weststrate
dca419ee24 Prompt for login by default
Summary:
This aligns behaviour with non-sandy behaviour of login: Prompt for login on startup if the user isn't yet signed in.

Logic is based on https://www.internalfb.com/intern/diffusion/FBS/browse/master/xplat/sonar/desktop/app/src/chrome/UserAccount.tsx?commit=1fc905fdd1cd&lines=94

Reviewed By: jknoxville

Differential Revision: D24922397

fbshipit-source-id: b4bab9c109a1054c0e260599d28320699c47dfda
2020-11-12 15:04:41 -08:00
John Knox
9d101263a0 Put PopoverProvider inside scope of Store Provider
Summary:
Many UI components (such as Button) rely on the redux store being present in the context.

So to use these components freely in popovers, the popover provider has to be within the store provider, not outside of it.

This moves it, along with the context menu and tooltip providers for the same reason.

Has the effect of fixing the ITSR dialog, which had a button inside a popover.

Reviewed By: mweststrate

Differential Revision: D24922493

fbshipit-source-id: e15540ac49795875b1cf86d6c66ec0591dc374ef
2020-11-12 10:03:59 -08:00
Michel Weststrate
229f7bd036 Add papercuts support to the support form
Summary: For groups that have a papercuts entry, the support form will now link to them. This will hopefully increase the amount of feedback we get.

Reviewed By: nikoant

Differential Revision: D24921296

fbshipit-source-id: c6d07a10838a7abb1c70e8d61197a7b339f611bc
2020-11-12 07:30:03 -08:00
Michel Weststrate
b66f452271 Keep Navigation plugin alive even when disabled
Summary:
Navigation plugin is a special cause that will remain connected and process messages directly even when disabled, this is to make sure the bookmarks feature keeps working even when the plugin is not enabled.

Changelog: [Sandy][Navigation] on Android, the currently active deeplink of the application will now be shown in the sidebar

Reviewed By: jknoxville

Differential Revision: D24890375

fbshipit-source-id: eb5e4141740e0436396cea5a7aae24337f2e903e
2020-11-12 04:17:29 -08:00
Michel Weststrate
273b895e30 Support auto completion on discovered bookmarks and filling out params
Summary:
This diff adds support for finding appPatterns (not sure how the feature is called) in the device, and auto completing on it.

Also improved the styling of bookmark sections.

This diff also adds support of showing a dialog in which params an be filled out if needed.

The behavior around optional arguments seems buggy, as in, no dialog will show up, but since I didn't want to change the logic around this unilaterally, left it as-is for now.

Updated the dialog to Ant so that the renderReactRoot utility could be used safely

Reviewed By: cekkaewnumchai

Differential Revision: D24889855

fbshipit-source-id: 6af264abec2e9e5b921ef7da6deb1d0021615e9e
2020-11-12 04:17:29 -08:00
Michel Weststrate
5118727cb7 Add bookmarks section to AppInspect
Summary:
This diff adds support for the navigation plugin bookmarks to the appinspect tab.

Support for path discovery, and path params will be added in a next diff.

Features:
* click a bookmark and navigate to it
* sync bookmark state and uri with navigation plugin
* manually enter a path and navigate to it by using <ENTER>

Reviewed By: cekkaewnumchai

Differential Revision: D24620250

fbshipit-source-id: 14b393a5456b4afeef69444d2120c8f01686e602
2020-11-12 04:17:29 -08:00
Michel Weststrate
661bea1d5b Convert Navigation plugin to Sandy
Summary:
Converted the Navigation plugin to Sandy, and updated Locations bookmark accordingly.
This is a prerequisite step of supporting the bookmarkswidgetin the new AppInspect tab.

Updated LocationsButton accordingly, and overal simplified implementation a bit; locationsbutton now reuses the logic of the NavigationPlugin, rather than reimplemting it. This reduces code duplication and also makes sure the state between plugin and location button stays in sync.

Made sure that search providers are derived and cached rather than stored, again simplifying logic

That being said, the navigation plugin is buggy, but all these things failed before this diff as well:
* No events happening when using iOS, despite the plugin being enabled. But these seems to be a long time know issue, looks like it was never implemented
* Not sure if the parameterized bookmarks is working correctly
* screenshots not always happening at the right time (but fixed a race condition where the wrong bookmark might get updated)
* Locations button doesn't show up if the navigation plugin is supported but not enabled (will try to fix in next diff)

Would be great if bnelo12 could do some exploratory testing to verify what ought to be working, but currently isn't.

Reviewed By: cekkaewnumchai

Differential Revision: D24860757

fbshipit-source-id: e4b56072de8c42af2ada0f5bb022cb9f8c04bb47
2020-11-12 04:17:29 -08:00
Michel Weststrate
ba541e76dc Fix slowly disappearing NUX element
Summary: This issue was reported in the dogfooding group. https://fb.prod.workplace.com/groups/748354712423318/permalink/759865114605611/

Reviewed By: jknoxville

Differential Revision: D24918536

fbshipit-source-id: 7c353dfe1230fa98964216a35e9679a90f398e1d
2020-11-12 04:12:40 -08:00
generatedunixname89002005306973
f04c7a1768 Flipper Release: v0.65.0
Summary: Releasing version 0.65.0

Reviewed By: nikoant

Differential Revision: D24884910

fbshipit-source-id: 6aa59c57c9d372046d71048513db322c03c72b57
2020-11-11 08:17:41 -08:00
Michel Weststrate
1157976eef Expose more meta information for plugins
Summary: expose `appName`, `appId` and `device` to Sandy plugins. Will be used in next diff to migrate navigation plugin

Reviewed By: cekkaewnumchai

Differential Revision: D24857253

fbshipit-source-id: 03ac3d376d5d1950bcf3d78386a65ce167b517e3
2020-11-11 07:58:55 -08:00
Michel Weststrate
9b4e7e873c Make client -> device connection synchronous
Summary:
devices not always being readily available is causes a lot of complication in the api,
figured to resolve devices first before construction clients,
since clients not attached to a device are shown uncategorized anyway, making them practically un-interactable.
For more background info, see following chat.

{F344388883}

This diff will make it possible to only expose a synchronous api in Sandy

n.b. didn't update Navigation plugin, as that is done in a next diff

Reviewed By: jknoxville

Differential Revision: D24858332

fbshipit-source-id: 8339f831fbbc9c219add56a199364fde67adafc7
2020-11-11 07:58:55 -08:00
John Knox
fd8065eb7a Sort headers when displaying them
Summary: It's easier to scan the same header value of multiple requests when it's in roughly the same place for each one.

Reviewed By: mweststrate

Differential Revision: D24885172

fbshipit-source-id: 7be02903d2f9f79c8ba618e57c74169392f6244b
2020-11-11 03:48:41 -08:00
Anton Nikolaev
dce7422ba6 Pass full version number to release shell scripts
Summary: Scripts now accept full version instead of only patch part of it.

Reviewed By: jknoxville

Differential Revision: D24782300

fbshipit-source-id: 1c454beb9640a5b38669fe39eab642245b0f0f91
2020-11-09 11:24:23 -08:00
Michel Weststrate
ce5783f14d Make sure Changelog sheet shows up
Summary: Make sure that changelog is shown when using Sandy

Reviewed By: jknoxville

Differential Revision: D24832099

fbshipit-source-id: 6999dfcb55976104db476834446c13322f4b2402
2020-11-09 09:24:13 -08:00
Michel Weststrate
c02d5341f9 Enable Sandy by default if part of GK
Summary:
Inverted the condition of checking if Sandy is enabled, so by default it is enabled if user is part of the GK.

This will make it more frictionless for people joining the dogfooding group and increases the chances we receive feedback :)

Reviewed By: jknoxville

Differential Revision: D24830075

fbshipit-source-id: d20dacd9e6c2dd2387a94b8a972252f29d0dab0e
2020-11-09 08:24:28 -08:00
Michel Weststrate
670be012b2 Kill Flow support
Summary:
* Removed Flow compilation step
* Removed all `flow` annotations
* Removed all FlowFixMe's
* Removed flow typings for Flipper
* Left flow transpilation (stripping) in babel, in case there is any external user using Flow in his plugin
* Left `eslint-plugin-flowtype` dependencies, as `eslint-config-fbjs` requires it

Reviewed By: passy

Differential Revision: D24755545

fbshipit-source-id: 9c0a7910657fd1cba88294e041bf2bfdf7b565bf
2020-11-09 08:24:28 -08:00
Michel Weststrate
543a0e53ac Temporarily remove bookmarks section
Summary: This removes the mocked bookmarks section (which is being reimplemented in D24620250), so that early adopter don't see a non-working piece of UI

Reviewed By: passy

Differential Revision: D24827181

fbshipit-source-id: 9759f069bdbcc1efe3f1ecb56954ee539bbca1f0
2020-11-09 07:23:29 -08:00
Michel Weststrate
532f151c4c Enable support form for Flipper Support
Reviewed By: passy

Differential Revision: D24826802

fbshipit-source-id: cbf6a20db8a861505e9e2ace81b8a91981bdafda
2020-11-09 07:23:29 -08:00
Michel Weststrate
c9b08695d5 Make sure out-of-contents rendering is supported in Sandy
Summary: For RN Debugger an ugly hack is used that roars its head now again; to make sure that the embedded debugger state isn't lost when switching to a different plugin, the chrome devtools are rendered _outside_ the domNode where they should normally appeared, and made invisible rather than removed when becoming invisible. Since at this moment this is the only place where we apply the trick, figured for now to condone it, rather than making a neater abstraction out of it (or kiling it all together)

Reviewed By: passy

Differential Revision: D24786771

fbshipit-source-id: 726617899bc620fc8b9db677d9413b31d5ad7653
2020-11-09 07:23:29 -08:00
Michel Weststrate
2b0e93a063 Introduce NUX element
Summary:
allow-large-files

This diff introces the `NUX` element that can be wrapped around any other element to give a first-time usage hint.

Hint dismissal is stored by taking a hash of the hint contents, and scoped per plugin.

Users can reset the 'read' status in the settings page

Example usage:

```
<NUX
  title="Use bookmarks to directly navigate to a location in the app."
  placement="right">
  <Input addonAfter={<SettingOutlined />} defaultValue="mysite" />
</NUX>
```

Reviewed By: nikoant

Differential Revision: D24622276

fbshipit-source-id: 0265634f9ab50c32214b74f033f59482cd986f23
2020-11-06 08:23:42 -08:00
Michel Weststrate
b8b9c4296a Fix NPE in DataDescription
Summary: Fixed NPE found during exploratory testing Layout Inspector

Reviewed By: nikoant

Differential Revision: D24783042

fbshipit-source-id: 38d76d677941bcfe8ecfa2e165ed4ea421c32edf
2020-11-06 06:25:14 -08:00
Michel Weststrate
e92145d2fd Removed ex-employees as PoC
Summary:
When creating the plugin overview (https://docs.google.com/spreadsheets/d/181jKpsUHO3q8I1G-bMcu-O7Hr3f4GCDVXKMVY2beOuQ/edit?usp=sharing) found some plugins with inactive points of contact

Per title, having no PoC entry makes it more clear there is none, rather than having an ex-employee in there that can't be reached

Reviewed By: nikoant

Differential Revision: D24783043

fbshipit-source-id: a852f87f42350476558bc9fc67cb3ad427268a2f
2020-11-06 06:25:14 -08:00
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