Commit Graph

2798 Commits

Author SHA1 Message Date
greenkeeper[bot]
5f5cb64753 Update flow-bin to the latest version � (#763)
Summary:
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.115.0` to `0.117.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [mvitousek](https://www.npmjs.com/~mvitousek)
**License:** MIT

[Find out more about this release](https://github.com/flowtype/flow-bin).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/763

Reviewed By: passy

Differential Revision: D19621269

Pulled By: mweststrate

fbshipit-source-id: d213eeda19ba3715471f3843b38a8ae5d7a53713
2020-01-31 04:48:23 -08:00
Michel Weststrate
b45a38390b Remove old navigation from sidebar
Summary: Remove the old sidebar, since the new one has been rolled out fully

Reviewed By: jknoxville

Differential Revision: D19659945

fbshipit-source-id: d1592df98fe69ef07d88d3a40790768dee3ab11c
2020-01-31 04:27:30 -08:00
Michel Weststrate
a9baf67fff Make sure the sidebar selection scrolls into the current view
Summary: Fixes issue where the user would loose context if having a lot of apps open, and then opening a bug report

Reviewed By: priteshrnandgaonkar

Differential Revision: D19640759

fbshipit-source-id: cc3aa617d99aae1904999da98d12b8a3595f6fbe
2020-01-30 09:18:58 -08:00
Artem Pianykh
67c646069a Fix incorrect override of equals in FlipperArray, FlipperObject
Summary:
mityal implemented a new check for nullsafe to warn about potentially
incorrect overrides of `equals` method (not yet released).

While testing some other things I stumbled upon incorrect `equal`
overrides in Flipper, particularly not properly handling `null` param.

Reviewed By: passy

Differential Revision: D19639882

fbshipit-source-id: 7f9aec7270e89a906810807f6849628967047b2a
2020-01-30 07:17:09 -08:00
Michel Weststrate
c33dbce242 Fix styling of listview disabled items
Summary: Also improved some paddings

Reviewed By: passy

Differential Revision: D19640179

fbshipit-source-id: 44aa91d452fc857533c638e00d4fe9648592b6f2
2020-01-30 07:06:06 -08:00
Pritesh Nandgaonkar
40359a9b68 Added a radio button when Listview is used for single select
Summary: Added radio buttons when the listview enforces single selection

Reviewed By: mweststrate

Differential Revision: D19626710

fbshipit-source-id: 9220fad7b0825cac5ba39def4d5e85d671c61da7
2020-01-30 05:58:41 -08:00
Pritesh Nandgaonkar
6a54216f1a Add a status message when the selected client doesn't have graphql plugin
Summary: Adds a status message when the one deeplinks to support form and the selectedClient doesn't support GraphQL plugin.

Reviewed By: jknoxville

Differential Revision: D19602900

fbshipit-source-id: 98a45ead2659bb229f4a1301e918e02dca05fc66
2020-01-29 10:31:48 -08:00
Michel Weststrate
cd3a2f4f29 Update some deps, fixes #751, #766
Summary: Update the deps as proposed by greenkeeper, to check if they indeed break the build

Reviewed By: passy

Differential Revision: D19620346

fbshipit-source-id: 9e273012373f7091180d90c368a8193572b7155a
2020-01-29 08:30:54 -08:00
Pritesh Nandgaonkar
cfb8b367c5 Fix for the broken Layout plugin
Summary: Fixes the broken Layout plugin in wilde. Before this fix it will just show an empty screen in the layout plugin.

Reviewed By: jknoxville

Differential Revision: D19621517

fbshipit-source-id: e10078248b95b93c6b9c87ccf4508628b6ad86bb
2020-01-29 07:50:27 -08:00
Anton Nikolaev
3706ea05b3 Another small clarification for VSCode debugging instructions
Summary: A small clarification after the question 7964772f82 (comments)

Reviewed By: jknoxville

Differential Revision: D19619402

fbshipit-source-id: c392c492fe5e9cd46d46c93f617288ac0a4d02a5
2020-01-29 04:09:05 -08:00
Robin Giese
9699691eb6 Flipper: Fix exception in popup menus
Summary: When JavaScript fiction meets native interop reality, things get weird. Apparently some coordinates must be integer values.

Reviewed By: mweststrate

Differential Revision: D19606677

fbshipit-source-id: 88a6e8c465e59078b070b56b37eee571274c494a
2020-01-28 15:38:06 -08:00
John Knox
04b925259c Cache another icon
Summary: ^

Reviewed By: passy

Differential Revision: D19602641

fbshipit-source-id: c2dc99e1fa0ca5bfd0a28940ec661fee1ead47b7
2020-01-28 11:28:17 -08:00
John Knox
060e8c0e93 Fix 'Timed out waiting for device' error
Summary:
It looks like this timeout was firing every time, causing a misleading error.
Fixing by clearing it when the match is found.

Reviewed By: passy

Differential Revision: D19602640

fbshipit-source-id: b5d97e71a02a014b9498dd56371c1a48f8ae08eb
2020-01-28 11:28:16 -08:00
Pritesh Nandgaonkar
40ac443386 Deeplink support for graphql
Summary: This diff adds support for the deeplink of support form for graphql groups.

Reviewed By: mweststrate

Differential Revision: D19583680

fbshipit-source-id: fc4505dc5f46c701f1e43fc47ee094fb0aa15d42
2020-01-28 09:29:04 -08:00
Pritesh Nandgaonkar
e9dba5007a Update default plugin selection when selected group changes
Summary: This diff updates default plugin selected when group selection gets updated. This diff also makes sure that group selection is persisted when swtiching between different tabs.

Reviewed By: mweststrate

Differential Revision: D19578748

fbshipit-source-id: 6f401248fe32441e30cb5acbb9251e206866984a
2020-01-28 09:29:04 -08:00
Pritesh Nandgaonkar
0ffd080141 Group selection view
Summary:
Added a group selection view in the support form to select the group to post the support form in. Added two groups for GraphQL's android and iOS.
Also added a check to avoid selecting graphQL group unless GraphQL plugin is enabled.

Reviewed By: mweststrate

Differential Revision: D19538023

fbshipit-source-id: 022d592ae2aa17ed1e1b10a37b011ddc68df560a
2020-01-28 09:29:04 -08:00
Andrey Mishanin
67a1c27af2 Prepending root scope ID
Summary: Using just the scope identifier for the root component is not sufficient when it doesn't have a scope. Solve this by prepending the scope root identifier to the parent identifier.

Reviewed By: fabiomassimo

Differential Revision: D19600721

fbshipit-source-id: d90f9ffd7ae369c76316cebc4ef792626a4584b7
2020-01-28 08:27:38 -08:00
Anton Nikolaev
7964772f82 Added information about pre-requisite for debugging in VSCode
Summary: Added information that "Debugger for Chrome" extension is required to be able to debug in VSCode.

Reviewed By: passy

Differential Revision: D19599117

fbshipit-source-id: 7323fb59daae24fe6b914e9ddb450326b135ad2b
2020-01-28 06:14:20 -08:00
Zac Sweers
48d6ea4c30 Remove stetho (#762)
Summary:
## Summary

Resolves https://github.com/facebook/flipper/issues/607

This removes stetho dependencies directly in favor of just copying in the used classes. This removes the last non-androidx dependency from the project, and is useful as stetho appears to be unmaintained. The fresco stetho dependency appeared to be completely unused.

## Changelog

Remove stetho dependencies. It was unused other than a few utility methods, but came at the cost of preventing Flipper consumers from completely removing dependencies that hadn't updated to Androidx yet.
Pull Request resolved: https://github.com/facebook/flipper/pull/762

Test Plan: Existing tests still pass with no regressions. Functionally this should be no difference.

Reviewed By: jknoxville

Differential Revision: D19577969

Pulled By: passy

fbshipit-source-id: b277ddf97a9d2c846dd0b9227c02bb46c1ecd930
2020-01-28 05:24:30 -08:00
Michel Weststrate
bdd4516dc4 Track how much time people spend waiting for queues to be flushed
Summary: Added stats, so that we know how much people have to wait when opening plugin after we open the queue GK

Reviewed By: jknoxville

Differential Revision: D19598730

fbshipit-source-id: f955123f2bae5b870eada8f787385d6c0450453e
2020-01-28 05:07:22 -08:00
Anton Nikolaev
0ed95f2a99 Fix a typo in Debugging docs
Summary: Remote debugging port for Flipper is 9222

Reviewed By: passy

Differential Revision: D19598819

fbshipit-source-id: a749615027fbd0ab998e09f96803055305e4f9d1
2020-01-28 04:53:07 -08:00
greenkeeper[bot]
f0a3b5aeb9 Update mkdirp in group main to the latest version � (#757)
Summary:
## The dependency [mkdirp](https://github.com/isaacs/node-mkdirp) was updated from `0.5.1` to `1.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [isaacs](https://www.npmjs.com/~isaacs)
**License:** MIT

[Find out more about this release](https://github.com/isaacs/node-mkdirp).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/757

Reviewed By: mweststrate

Differential Revision: D19578531

Pulled By: passy

fbshipit-source-id: b31ca29fabf263978242af464882cc530ff6564d
2020-01-28 02:58:48 -08:00
Hilal Alsibai
c430fc3e18 Show window theme attributes when clicking on a window in the inspector
Summary: Currently we dont describe a `Window` object at all. Now we how the relevant theme data associated with the window.

Reviewed By: passy

Differential Revision: D19550049

fbshipit-source-id: 29903fb487b0be91d305f3b8d8fa7e4c3b3213e9
2020-01-27 12:49:43 -08:00
greenkeeper[bot]
53d0971540 Update cross-env to the latest version � (#759)
Summary:
## The dependency [cross-env](https://github.com/kentcdodds/cross-env) was updated from `6.0.3` to `7.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [kentcdodds](https://www.npmjs.com/~kentcdodds)
**License:** MIT

<details>
<summary>Release Notes for v7.0.0</summary>

<h1><a href="https://urls.greenkeeper.io/kentcdodds/cross-env/compare/v6.0.3...v7.0.0">7.0.0</a> (2020-01-25)</h1>
<h3>Features</h3>
<ul>
<li>update dependencies (<a href="https://urls.greenkeeper.io/kentcdodds/cross-env/issues/223" data-hovercard-type="pull_request" data-hovercard-url="/kentcdodds/cross-env/pull/223/hovercard">https://github.com/facebook/flipper/issues/223</a>) (<a href="4ec6f4009d">4ec6f40</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Drop Node 8 support</li>
</ul>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 1 commits.</p>
<ul>
<li><a href="4ec6f4009d"><code>4ec6f40</code></a> <code>feat: update dependencies (https://github.com/facebook/flipper/issues/223)</code></li>
</ul>
<p>See the <a href="67f21c3254...4ec6f4009d">full diff</a></p>
</details>

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/759

Reviewed By: mweststrate

Differential Revision: D19578528

Pulled By: passy

fbshipit-source-id: 0b3add4ae98fe7ff7d1ed9762a4c546c91b2b282
2020-01-27 09:04:59 -08:00
greenkeeper[bot]
ea74a5afbb Update mkdirp in group website to the latest version � (#758)
Summary:
## The dependency [mkdirp](https://github.com/isaacs/node-mkdirp) was updated from `0.5.1` to `1.0.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [isaacs](https://www.npmjs.com/~isaacs)
**License:** MIT

[Find out more about this release](https://github.com/isaacs/node-mkdirp).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/758

Reviewed By: mweststrate

Differential Revision: D19578530

Pulled By: passy

fbshipit-source-id: 3f7970875458904dc9bd74828328e5f436abacde
2020-01-27 09:02:47 -08:00
Anton Nikolaev
1b3ef5f68f Update Flipper Debugging docs
Summary: Updated "Debugging" page in Flipper docs: added instructions about debugging from Visual Studio Code and Google Chrome.

Reviewed By: mweststrate

Differential Revision: D19578864

fbshipit-source-id: c88c8278feb7c90fe77bde1d883c73079f2147f9
2020-01-27 07:45:16 -08:00
Michel Weststrate
31df1db74f introduce FPS graph to visualize slow UIs
Summary:
This diff creates a small FPS graph to be able to see where we slow down the app. This visualizes two things

1. The amount of FPS we render at (from tracking.fps).
2. If we were not able to render at all (due to the main thread being blocked fully), we interpolate the graph and draw it in red.

Reviewed By: nikoant

Differential Revision: D19579115

fbshipit-source-id: 2421d724c6d514986759bc9d68b92a5e4f51e401
2020-01-27 07:34:01 -08:00
John Knox
33ad41c98c Update welcome screen links
Summary: The welcome screen links were a bit out of date.

Reviewed By: nikoant

Differential Revision: D19578769

fbshipit-source-id: 69fc7977bd75ca4256043698350381a5f9d7fdb8
2020-01-27 07:23:45 -08:00
Michel Weststrate
6218b00e15 Fix issue where file / link export accidentally included support request details
Summary: When doing a Flipper trace export through the app menu (not the support form), the export still contained a support request details section, with the default data of a bug report. That doesn't make any sense and is confusing, so this change makes sure the report is only included if it is supported through the supportRequestForm

Reviewed By: passy

Differential Revision: D19499408

fbshipit-source-id: ff7a5333f2045f2465966dffa0c5fb03aaeaceb8
2020-01-27 07:22:32 -08:00
Michel Weststrate
82e65c68dc Make sure plugin name selections are displayed consistently with sidebar, [Flipper] Make sure plugins have the same name everywhere
Summary:
Not all plugin names are created equal in flipper. For example, plugins would bear different names in the sidebar and in the plugin selection when making a support request / flipper trace. Fixed this and also introduced a `getPluginTitle` utility that produces this name consistently.

Plugin listview now also sort their items consitently with the sidebar.

Probably also fixed an error in the flipper export screen, where a correct TS error was supressed.

Reviewed By: jknoxville

Differential Revision: D19499404

fbshipit-source-id: c5b23a170d41d96799eb7899e249f70778717d45
2020-01-27 07:22:32 -08:00
Anton Nikolaev
edd0e01a08 Added another missing icon
Summary: Just commiting another icon added by the script

Reviewed By: jknoxville

Differential Revision: D19578661

fbshipit-source-id: 9da953cec30d6ac1ea68312c060a8ce4c298fac0
2020-01-27 07:08:41 -08:00
Anton Nikolaev
68510b53bf Debugging in VSCode
Summary:
This diff enables debugging in VSCode. Debugging works for both Flipper core and plugin code. To start debugging:
1. yarn start
2. Go to "Debug and Run" tab in VSCode, select task "Attach to Running Renderer" and launch it (or just press F5).
{F227135377}
3. Debugger will be attached and all the breakpoints set in VSCode will be hit.

Reviewed By: passy

Differential Revision: D19578566

fbshipit-source-id: 609766471ad196a2ee8d4086ddb84b7af4ef05ef
2020-01-27 06:14:46 -08:00
Angus Holder
ac8bd8638a Enable using Ctrl+Return to execute a query in the database plugin (#761)
Summary:
Having a key shortcut to execute the query you're typing helps to speed up the edit-run cycle.

## Changelog

In the database SQL execution tab, you can now execute queries with Ctrl+Return instead of pressing the 'Execute' button.
Pull Request resolved: https://github.com/facebook/flipper/pull/761

Test Plan:
I typed a query into the textarea, and while it was focussed, press Ctrl+Return, and the query executed.

Mousing over the 'Execute' button displays a tooltip informing you of this keyboard shortcut.

![image](https://user-images.githubusercontent.com/7407345/73128700-31860880-3fcb-11ea-9a7c-28a55b46a151.png)

Reviewed By: mweststrate

Differential Revision: D19578527

Pulled By: passy

fbshipit-source-id: be131e44e293caa578d48e324fc43b457edb1e4e
2020-01-27 06:07:57 -08:00
Michel Weststrate
434d75f362 Always process messages for navigation plugin
Summary: For the navigation plugin we want to opt-out from the "enabled" and "process messages later" optimizations, because it's events should be immediately processed to reflect the changes in the topbar for navigation purposes

Reviewed By: jknoxville

Differential Revision: D19554297

fbshipit-source-id: 4bd49b5d1327feea6dea52e86d9dbc9d54a5dbee
2020-01-27 04:04:20 -08:00
Michel Weststrate
cedb9617c4 Fixed issue where the location bar wouldn't be updated if there are multiple connected clients
Summary: The location bar doesn't update if there are multiple connected client, if the client we are interested wasn't the first one. The cause of that is that the location bar picked the state of the *first* navigation plugin found, rather than the navigation plugin connected to the selected device and client

Reviewed By: jknoxville

Differential Revision: D19554293

fbshipit-source-id: 46f2a66aa6ba07b510f1f615943eeb6ef8d52622
2020-01-27 04:04:20 -08:00
Michel Weststrate
e9ff9addc6 Fixed broken navigation plugin
Summary: The navigation plugin threw exceptions, as the defaultPersisted state was not mixed into the already stored state, making some fields unreadable

Reviewed By: jknoxville

Differential Revision: D19554291

fbshipit-source-id: 57f045aa1eae10682e44d479b9aecb51f0391b9e
2020-01-27 04:04:20 -08:00
Michel Weststrate
23625f7a89 Change star concept to enabled
Summary:
The 'starring' concept of plugins no longer covers the meaning of 'starring', as unstarred plugins will no longer receive data from background plugins, not be available in support request forms due to a lack of data etc. So this diff renames the feature to 'enabled'.

Also fixed an issue where selecting a non-enabled plugin wouldn't show it in the sidebar if the additional plugins are collapsed.

To make disabled plugins more clear, they are . now always rendered in gray.

The toggle button now delays its effect for better visual feedback

- [x] update side bar styling
- [x] remove bottom bar warning
- [x] details screen
- [ ] only open connection for active plugins (will be done in a next diff)
- [x] check archived / imported devices
- [x] make sure device plugins work correctly
- [x] check without GK's

Reviewed By: jknoxville

Differential Revision: D19470326

fbshipit-source-id: 9160a3434287561f56b1b741d5ba282ab6063ea8
2020-01-27 04:04:19 -08:00
Pascal Hartig
604511715b Add missing copyright headers
Summary: Failing OSS requirements right now.

Reviewed By: nikoant

Differential Revision: D19557540

fbshipit-source-id: 18d0d68816e70492802f41472e15e1ed0cf35e31
2020-01-24 09:03:45 -08:00
John Knox
f773e97c5d cache another icon
Summary: Auto added by yarn start

Reviewed By: mweststrate

Differential Revision: D19554338

fbshipit-source-id: 48fe70f20ddefae9d8ea453b157ffbc11ec20601
2020-01-24 07:08:44 -08:00
Pascal Hartig
3d66df2d86 Cleanup 4/4
Summary: I think that's it. Some more minor changes and removing an unused BUCK file.

Reviewed By: mweststrate

Differential Revision: D19471282

fbshipit-source-id: ceb85111f03a41141dca0bdd445cda12dfbac1c4
2020-01-24 07:00:15 -08:00
Pascal Hartig
2ec539acb1 Cleanup 3/n
Summary: Same treatment for FlipperReactNativeJavaScriptPlugin.

Reviewed By: mweststrate

Differential Revision: D19471257

fbshipit-source-id: b51d92074ae411c089f0010057f2b61ef6500de0
2020-01-24 07:00:15 -08:00
Pascal Hartig
4e77b37831 Cleanup 2/n
Summary:
Some more minor cleanups that don't (well, barely) affect
semantics.

- Fix singleton management in multi-threaded environments.
- Remove double assignment.
- Make all things final where they can be.
- Use ugly Hungarian notation.
- Weaken some types.

Reviewed By: mweststrate

Differential Revision: D19471227

fbshipit-source-id: 18833c3fe940f51b8d4cb3948a63387b8cd9316c
2020-01-24 07:00:14 -08:00
Carmi Grushko
cbb8d97d86 Apply word-wrap:break-word; to detail values
Reviewed By: timur-valiev

Differential Revision: D19554394

fbshipit-source-id: c513c10c77420e74e8f8361440d4753bfc889248
2020-01-24 06:46:38 -08:00
Pascal Hartig
6864556912 Cleanup 1/n
Summary:
Making some changes to make this more idiomatic and abide by
the Flipper/FB standards. This one just removes some unused
variables and annotations.

Reviewed By: jknoxville

Differential Revision: D19470676

fbshipit-source-id: 4beb516f00228b1d33e4e1b42d9bc4f8c29af565
2020-01-24 05:02:07 -08:00
Pascal Hartig
0812568be1 Remove BUCK files
Summary: We won't use them so this is just dead weight that's going to break at some point.

Reviewed By: jknoxville

Differential Revision: D19470548

fbshipit-source-id: 3def22e6f5db2923d5551d7b6a3472cb4364186c
2020-01-24 05:02:06 -08:00
Anton Nikolaev
aab004aa15 Allow disabling iOS development in Settings
Summary:
Currently Android development can be disabled in Settings, but iOS development not. Because of this Doctor always shows warnings to Android-only developers who has no iOS SDK installed. This change makes it possible to disable "iOS development" option in the same way as we already had for Android.

Additionally I changed Doctor warning to show more specific message if only iOS or only Android checks are failed with suggestion to disable the failing platform if it is not required.

Reviewed By: jknoxville

Differential Revision: D19538070

fbshipit-source-id: 234d2c6cf21083f9d6aebd63418aed7f9a78e922
2020-01-23 13:37:03 -08:00
Anton Nikolaev
b625efee3d Doctor complains Android SDK is not installed
Summary:
There are complaints about Android SDK being reported as "not installed" when it is actually installed. To address them, I changed the way how we detect SDK and also added some minimal actionable feedback for each check.

The problem with the previous implementation of Android SDK check via "envinfo" is that the library uses "sdkmanager" tool under the hood, and this tool doesn't work on Java 9+. To fix this I'm changing the way how we assume SDK is installed to simple check for "adb" tool existence.

Actionable feedback is shown on Doctor report when you click to an item.

Reviewed By: jknoxville

Differential Revision: D19517769

fbshipit-source-id: 1c21f1bdcd05c7c0ae3f97b9c3454efa2c861d26
2020-01-23 13:37:02 -08:00
Pritesh Nandgaonkar
f61d578b26 Show tooltip when no plugins are selected
Summary: Shows tooltip when no plugins are selected. Before it used to select all the plugins

Reviewed By: jknoxville

Differential Revision: D19537054

fbshipit-source-id: 567b90f981a2a2ddcf68a1dce902db0a9d6214d2
2020-01-23 10:05:04 -08:00
Michel Weststrate
dc60d33b3a Make sure device plugins show up even when loaded after creating devices
Summary: The device.devicePlugins collection was not updated if new plugins were registered after creating a device. This diff fixes that.

Reviewed By: jknoxville

Differential Revision: D19536777

fbshipit-source-id: 11ed3c3383ae692ce74fd7a21704332fb319b9c4
2020-01-23 08:37:33 -08:00
Pritesh Nandgaonkar
032b594221 Refactor Listview to solve a bug
Summary:
There was a bug in ListView where the selected items where not getting updated.

Bug

In the following video I have selected Inspector and logs plugin from export drop down. When I click on litho support form it should select the default plugins which is Inspector, Mobile Config and Logs. But it only shows Inspector and Logs selected

{F226900949}

To fix it:

I call the callback `onChange` when the listview's row get updated, which will updates the props of the ListView component and hence rerendering it with updated selected rows.

Reviewed By: mweststrate

Differential Revision: D19518762

fbshipit-source-id: 39367590cbdc1d6f88afb467b17b71e13703bde3
2020-01-23 07:40:20 -08:00