Commit Graph

2291 Commits

Author SHA1 Message Date
Pritesh Nandgaonkar
ae825db691 Strictify info.tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D17284107

fbshipit-source-id: 61d4f192664c769ca80a266799fba14e1c1cb235
2019-09-10 10:36:14 -07:00
Pritesh Nandgaonkar
b75a3dc56b Strictify index.tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D17265679

fbshipit-source-id: 664f92f803a44dd485fb7078b59c88e95998decf
2019-09-10 10:36:14 -07:00
Pascal Hartig
428f6b4fc1 Make androidDevice strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282814

fbshipit-source-id: ebf4293c973e8c866fa3c2c5cb8f0f6b42b8ae01
2019-09-10 10:33:25 -07:00
Pascal Hartig
4f6bae7cbf Make AndroidDevice strict
Summary:
Relies heavily on types (not) defined in other modules,
so right now it's mostly sprinkling more `any`s in.

My type declaration is based on `dts-gen` output and some
manual fixes. This is the same level as the old flow-typed
definition we had.

Reviewed By: jknoxville

Differential Revision: D17282739

fbshipit-source-id: 0e5015d3b61044615a03c50fefade908041310a8
2019-09-10 10:33:24 -07:00
Pascal Hartig
c2e2915471 Make Client strict
Summary:
Could use a closer look. *Shouldn't* change semantics,
but there are some assumptions baked into the code
which I don't fully grasp.

Reviewed By: jknoxville

Differential Revision: D17282310

fbshipit-source-id: af8e6bcd188bd12180a7b2eeafee7ced4f44d1aa
2019-09-10 10:33:24 -07:00
Pascal Hartig
b19f08ba54 Fix promisify-child-process use
Summary: Per title. Somehow both typecheck, but importing the module like this doesn't work.

Reviewed By: jknoxville

Differential Revision: D17285507

fbshipit-source-id: 40a38db5dfb52213e0407f8bda83f2ebad5c50c7
2019-09-10 09:43:44 -07:00
Pritesh Nandgaonkar
d8cd69666e Strictify exportData.tsx
Summary: As per title.

Reviewed By: jknoxville

Differential Revision: D17269583

fbshipit-source-id: efb67acade677f26ce3d2a547d0ab97329d80196
2019-09-10 08:50:28 -07:00
Pritesh Nandgaonkar
a492ddaae8 Strictify server.tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D17267564

fbshipit-source-id: d99fe62cc22fa3664d5aa6d4770d864fdd212ef4
2019-09-10 07:47:16 -07:00
Pritesh Nandgaonkar
72a8b8967d Strictify connections.tsx
Summary: As per title

Reviewed By: danielbuechele

Differential Revision: D17259633

fbshipit-source-id: 5180785d0542871da31cf9a07a57dcc68d98ff81
2019-09-10 07:47:15 -07:00
Pascal Hartig
23eaa74a85 Disable openssl for folly libevent builds too
Summary:
This has been tripping up the release builds, luckily caught by
Circle: https://circleci.com/gh/facebook/flipper/1480

Reviewed By: jknoxville

Differential Revision: D17282130

fbshipit-source-id: a17adb18bc75e4fa5d645a062343622167785fa6
2019-09-10 07:33:36 -07:00
Mihaela Ogrezeanu
fc2b8db8cf Show full event name in sidebar
Summary: Show info about the event which triggered a new changeset generation; in case of a state update, also show the name of the method which triggered the state update.

Reviewed By: pasqualeanatriello

Differential Revision: D17162202

fbshipit-source-id: ebf218f8ce71799e4dd452f54b1621af7f83cc51
2019-09-10 06:56:41 -07:00
Mihaela Ogrezeanu
0c307b7c27 Use state update attribution
Summary: Use the string sent from the client to show which section triggered a state update.

Reviewed By: pasqualeanatriello

Differential Revision: D17162190

fbshipit-source-id: a72eea1c6fc0fba851028aa050f0c6772a590e8d
2019-09-10 06:56:41 -07:00
Mihaela Ogrezeanu
e05a3bdeca Add state update attribution
Summary:
Show the section which triggered the state update in the tree hierarchy.
We can't use the attribution param that was being passed from SectionTree because it contains the key of the section, not the global key.

Reviewed By: pasqualeanatriello

Differential Revision: D17161730

fbshipit-source-id: bae5e509c378ffdf210acac6564212c873c5855b
2019-09-10 06:56:40 -07:00
John Knox
9624c803a1 Render predefined comments
Summary: These strings be provided by the api.

Reviewed By: passy

Differential Revision: D17282133

fbshipit-source-id: a818f915c0a21f84894a6073d2cc08669647caaa
2019-09-10 06:46:10 -07:00
Daniel Büchele
e9aaf5d445 fix persistedPluginState
Summary: The persistedState of the Layout (and potentially other plugins) wasn't updated. It turned out that the updated state value never got passed to `setPluginState`, but accidentally when adding a type declaration, the `Object` constructor was passed as value to the state.

Reviewed By: jknoxville, passy

Differential Revision: D17282822

fbshipit-source-id: 6fc64960ee2405ea5a705504969c36a27ac62f2c
2019-09-10 06:10:38 -07:00
Pascal Hartig
80f26eaa82 Make IOSDevice strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17260434

fbshipit-source-id: 7f1c28ed1cb7fc0127a01957767f4430cf770bf2
2019-09-10 05:43:25 -07:00
Pascal Hartig
71e2369b41 Make createTablePlugin strict
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17259739

fbshipit-source-id: a7d36482fc334fd05780fef56ebe3b2a981c2ac5
2019-09-10 05:43:25 -07:00
John Knox
ce51458eb8 Say thanks :)
Summary: And also increase the time-to-disappear from 1s to 1.5s.

Reviewed By: passy

Differential Revision: D17281904

fbshipit-source-id: df0f3e1a40949f5a518bf05d89b6ac0ecf92c5bb
2019-09-10 05:37:19 -07:00
Viktor Patrushev
f3691bec7b Converted QPL plugin to TypeScript
Summary: Converted QPL plugin to TypeScript

Reviewed By: danielbuechele

Differential Revision: D17184095

fbshipit-source-id: 2a841bd8bc746cab70e6a03b0ccc8ffbdbda43c6
2019-09-10 04:12:26 -07:00
Mihaela Ogrezeanu
9156c7c2c8 Bump Litho versio to 0.31.0 in Flipper
Reviewed By: passy

Differential Revision: D17262976

fbshipit-source-id: 789bb3c9174fd7a243d44c14d55daa6a0e66d382
2019-09-10 02:54:31 -07:00
Pascal Hartig
71bb121ab8 Make dispatcher/plugins strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17258265

fbshipit-source-id: 875d434120422c782074d4c345f765684533e399
2019-09-09 10:24:44 -07:00
Pascal Hartig
c506cc57b1 Make dispatcher/application.tsx strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17258139

fbshipit-source-id: d1ab484e981b2802a22c2fc92ac52c75970ee3d2
2019-09-09 09:58:34 -07:00
Pascal Hartig
962bd03785 Upgrade Gradle
Summary: One of the last releases before 6.0 with more deprecation warnings.

Reviewed By: jknoxville

Differential Revision: D17259063

fbshipit-source-id: c31e9dc46071deae601489cc51d9af0d569d270d
2019-09-09 08:50:52 -07:00
Pascal Hartig
a29f2c3b10 Make iOSContainerUtility strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17259181

fbshipit-source-id: 5167be6cbf23b42d0f79246dae22f4e4a9417339
2019-09-09 08:39:35 -07:00
Pascal Hartig
b90200e2aa Replace child-process promise version
Summary:
This one is in TS, so we get types for free.
`promisify` makes it rather awkward to work with overloaded
functions like `spawn`, so there's still value in having
a proper library for this.

Reviewed By: jknoxville

Differential Revision: D17204471

fbshipit-source-id: 3d07edfe2bb8c1e4c4f3134b53a0c4a0d9be383b
2019-09-09 07:04:54 -07:00
Pascal Hartig
4d7e776672 Refactor BaseDevice constructor
Summary: OS must always be defined.

Reviewed By: jknoxville

Differential Revision: D17204398

fbshipit-source-id: 0d84111c382af623843a41360bcb472394daf3f1
2019-09-09 07:04:54 -07:00
Pascal Hartig
dbab2d1d6d Add types for which
Summary:
Used by

src/dispatcher/androidDevice.tsx
src/chrome/DevicesButton.tsx

Reviewed By: jknoxville

Differential Revision: D17204335

fbshipit-source-id: 40fa266d7301d2ddceea8b884f26b3e4741d7797
2019-09-09 07:04:54 -07:00
Pascal Hartig
c91b778fc0 Make dispatcher/notifications.tsx strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17204312

fbshipit-source-id: 23a3b5144545db9c165fc853ece40bb5025391e6
2019-09-09 07:04:53 -07:00
Pascal Hartig
76e857041c Make dispatcher/tracking.tsx strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17204302

fbshipit-source-id: 10b6add125bb6b500122c0a7a30eb8ed223a7ad8
2019-09-09 07:04:53 -07:00
Pascal Hartig
a60bcf7aca Make fb-stubs/Logger.tsx strict
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17204281

fbshipit-source-id: c694aed012c30cc325fe507723476a3e6bc43e83
2019-09-09 07:04:53 -07:00
John Knox
b71ae59545 TableNativePlugin
Reviewed By: passy

Differential Revision: D17258701

fbshipit-source-id: 0d622e63cc028969c9c6d51c5aa2cc8977aac151
2019-09-09 06:54:37 -07:00
John Knox
c8c027150a SeaMammals/index.tsx
Reviewed By: passy

Differential Revision: D17258652

fbshipit-source-id: 0c7931c3e5a619cb8d06703aaf9e276458ef38f4
2019-09-09 06:54:37 -07:00
John Knox
6aab0bd826 Make plugin.tsx strict
Reviewed By: danielbuechele

Differential Revision: D17228192

fbshipit-source-id: 74e5edf9dfd3260a3463e57a16d1f9c8c0399137
2019-09-09 06:54:37 -07:00
John Knox
6e8b31e2ed PluginContainer.tsx
Reviewed By: passy

Differential Revision: D17258340

fbshipit-source-id: 26ce421345f6152efe7da07daf649395e299af14
2019-09-09 06:54:36 -07:00
Pascal Hartig
96d9c9638c Update README.md (#541)
Summary:
Fix indentation for the ToC
Pull Request resolved: https://github.com/facebook/flipper/pull/541

Reviewed By: danielbuechele

Differential Revision: D17257799

Pulled By: passy

fbshipit-source-id: 7ac402f4cadd287536f3f25578116084316831fc
2019-09-09 06:38:35 -07:00
Pritesh Nandgaonkar
566f2bf96e Do not use custom serializer for all the plugins
Summary:
This diff solves the problem where the export for the graphql plugin was super super super sloooooowwww...... The reason being that the graphql plugin had chunky graphql responses which were json blob which was being serialized by our custom serializer. Instead of serializing those with custom serializer we can directly serialize them as they won't have any map's, sets, classes etc.

This diff adds the two static functions on the plugin which will provide the serialized and deserialized object for the persistedstate. As the plugin knows the structure of its state it can optimize the serialization and deserialization of its data.

This change solves the slow export issue and makes it blazing fast..... 🏎

Bug:

{F206550514}

Reviewed By: danielbuechele

Differential Revision: D17166054

fbshipit-source-id: 058b903c03c12c9194702162c46763ef5b5e7283
2019-09-09 06:13:39 -07:00
Ivelin Rachev
9ebf5346df Convert Flipper plugin "mobileboost" to TypeScript
Summary: Bugfix for Tab.tsx + implicitly typed react vizualized

Reviewed By: danielbuechele

Differential Revision: D17205342

fbshipit-source-id: 48d29c583f0790af46f3d9c8d0280015b58d56aa
2019-09-09 03:51:22 -07:00
James Kao
975af8fa43 Change default deviceId for MacOS
Summary: It appears the certificate provider is generating a deviceId which is then sent down to the flipper client to store (under CONNECTION_CONFIG_FILE). For MacOS, this ends up being "unknown". Yet when we attempt to connect to the flipper app, it expects empty string. This diff ensures that for MacOS, we're not sending down "unknown" for the client to store into its config file.

Reviewed By: danielbuechele

Differential Revision: D17190130

fbshipit-source-id: e0d9825f1f0330a03bcb3cf8d606d5bd9fcc1d7f
2019-09-06 11:20:42 -07:00
John Knox
8fff3fcf59 Apply some styles
Summary: It looks a lot better now, but the input is only single line, so entering more than one line would not be good right now.

Reviewed By: danielbuechele

Differential Revision: D17210091

fbshipit-source-id: 9313b6a67731cfa944394962cdc09be915a07720
2019-09-06 08:32:48 -07:00
John Knox
be22cc711a Use API to get prompt values
Summary: To keep it in sync with the JS implementation.

Reviewed By: danielbuechele

Differential Revision: D17208786

fbshipit-source-id: 8d89f33bfef22317266a0ad1e0c5689540d54f9e
2019-09-06 08:32:48 -07:00
John Knox
612cfd81ae Change feedback to use ITSR
Summary:
This isn't ready to release yet, it's still behind a GK so noone will see it.
There has been no styling applied to the popover so it looks bad but is fully functional.

What it also doesn't have yet:
* Get the prompt text from the API (including the predefined selectable comments)
* Check with the server whether it should pop up proactively, it's completely passive at the moment.

Reviewed By: passy

Differential Revision: D17206158

fbshipit-source-id: f1734f3d6bc555c860ebbaad7515d4675e1700cb
2019-09-06 08:32:48 -07:00
Ram N
4204562fee Add FlipperKitReactPlugin to podspec
Reviewed By: danielbuechele

Differential Revision: D7277601

fbshipit-source-id: 7a6c3dc1c94715a93f4bd34c9eb90282dcc69184
2019-09-06 07:29:25 -07:00
John Knox
b4c1d1942a Make File > Open more self-explanatory
Summary:
Yesterday I saw someone try to open the xcode executable with the File > Open function.

This made me realise it's not clear what this is for, and you might think it can open all kinds of things.

Reviewed By: danielbuechele

Differential Revision: D17225496

fbshipit-source-id: 893360a1f450a8db25be34fce6c288e8db8f9626
2019-09-06 04:14:58 -07:00
Daniel Büchele
98b4071242 react-docgen for TypeScript
Summary: Update react-docgen to support TypeScript

Reviewed By: passy

Differential Revision: D17204178

fbshipit-source-id: 408ce5569a253c9a836f65bd9a9f289cc82b5175
2019-09-05 07:43:11 -07:00
Roman Gorbunov
eff95991c6 Moving SKHighlightOverlay
Summary: Moving FlipperKitLayoutPlugin/FlipperKitPluginUtils/SKHighlightOverlay to shared folder, so Layout and WorkingRange plugins can depend on it

Reviewed By: kevin0571

Differential Revision: D17156396

fbshipit-source-id: 3f17371f2ab4818924d61e6cfb243f60ad1f2892
2019-09-05 07:31:23 -07:00
Pascal Hartig
26c9bf3853 Flipper Bump: v0.23.7-SNAPSHOT
Summary: Back to snapshots.

Reviewed By: danielbuechele

Differential Revision: D17204024

fbshipit-source-id: 7fdc71f0c8011d6f400321a0369a7252540d04f7
2019-09-05 06:15:33 -07:00
Pascal Hartig
17d48d92b0 Flipper Release: v0.23.6
Summary:
**Highlights**

1. Windows builds should publish on the release page now.
2. We have x86_64 support on Android.
3. React DevTools are now publicly available.

Reviewed By: danielbuechele

Differential Revision: D17204023

fbshipit-source-id: 41aaa1c884e1f251216423a8b08cec6e8802fd80
2019-09-05 06:15:33 -07:00
Benjamin Elo
a90422bf2f Added additional parameters for logging
Summary:
The navigation plugin supports logging of a date and the class name. This addition adds that support.

I have kept the previoius method which I will remove once  I update the fb4a navigation plugin integration.

Reviewed By: danielbuechele

Differential Revision: D17202996

fbshipit-source-id: eac95328a6e2278c3a27ca608b9b675c8efe4528
2019-09-05 05:59:55 -07:00
Benjamin Elo
4e71d9b1ea Removed flow-types file
Summary: This completes the navigation plugin ts migration by removing the flow types file.

Reviewed By: passy

Differential Revision: D17181605

fbshipit-source-id: b4931d28664e990c37dea229a7fe3f52685e5ee7
2019-09-05 05:49:30 -07:00
Daniel Büchele
ffd4a29bba VirtualList
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181140

fbshipit-source-id: 0b67a744c7fa5d3ef3aad9212e52d1397d873d4d
2019-09-05 04:42:38 -07:00