Commit Graph

1291 Commits

Author SHA1 Message Date
Pascal Hartig
2e1dc7d40d Migrate ScribeLogger
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16691033

fbshipit-source-id: 19da8bea4032e33a9bd219476aa12e2154dc3103
2019-08-09 10:47:13 -07:00
Pascal Hartig
b42abcbb59 Migrate logger
Summary:
Removed defunct log filtering functionality, but we probably want to rebuild that.
Funny that tsc caught this as non functioning but Flow happily accepted it.

Reviewed By: danielbuechele

Differential Revision: D16690959

fbshipit-source-id: b079dd6faba83ca0c443d00cbb69c8ff95c4fa69
2019-08-09 10:47:12 -07:00
Pascal Hartig
e56d3a4c6d Migrate user
Summary: Migrate user and introduce a global declarations file.

Reviewed By: danielbuechele

Differential Revision: D16690480

fbshipit-source-id: be4e5218715dcae4b403b24cdbc2f3e89728dd59
2019-08-09 10:47:12 -07:00
John Knox
4afc417ea5 Convert iOSDevice dispatcher to TS
Summary: Convert iOSDevice dispatcher to TS

Reviewed By: passy

Differential Revision: D16690183

fbshipit-source-id: 629ac178e91b4774449503529df7e07cee6741c5
2019-08-09 09:05:10 -07:00
John Knox
6da09fa381 Convert plugins dispatcher to TS
Summary: Convert plugins dispatcher to TS

Reviewed By: passy

Differential Revision: D16689874

fbshipit-source-id: afdac7960e267ebed350fcb170795689bd327807
2019-08-09 09:05:10 -07:00
John Knox
9edfe88caa Convert notifications dispatcher to TS
Summary: Convert notifications dispatcher to TS

Reviewed By: danielbuechele

Differential Revision: D16689175

fbshipit-source-id: 7806d5452a57566ea3d6fdfd233a1679435e0103
2019-08-09 09:05:10 -07:00
Pritesh Nandgaonkar
c43beb53d1 Migrate dispatcher index to tsx
Summary: As per the title

Reviewed By: jknoxville, passy

Differential Revision: D16690303

fbshipit-source-id: fa78ea1e3f288249676d5a6423e5d0f0a6e427a4
2019-08-09 07:56:55 -07:00
Pritesh Nandgaonkar
86642816fb Migrate desktopDevice.js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16690092

fbshipit-source-id: bcb9a0e5a1e05849dd1f470fdd8d54b898f79695
2019-08-09 07:56:55 -07:00
Pritesh Nandgaonkar
c3807a6ba2 Migrate application from js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16690005

fbshipit-source-id: 8975da8aa7221b731358eacb4040f48198bf073b
2019-08-09 07:56:55 -07:00
Pritesh Nandgaonkar
03b5b133b8 Migrate androidDevice dispatcher from js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16689714

fbshipit-source-id: 1ff415a89b4ac91ffd4a23e8b50ec9fedfeea40e
2019-08-09 07:56:54 -07:00
Pritesh Nandgaonkar
0c0d595cbb Migrate WindowsDevice from js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16668705

fbshipit-source-id: 520981f2c1356a17561203f18e00f65a751ee8b8
2019-08-09 07:56:54 -07:00
Pritesh Nandgaonkar
2ed24c4a56 Migrate MacDevice from js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16668140

fbshipit-source-id: 109a7ce29a9dc3934673060e93741b96847dfa56
2019-08-09 07:56:54 -07:00
Pritesh Nandgaonkar
f408f3f949 Migrate the iOSDevice from js to tsx
Summary: As per the title.

Reviewed By: jknoxville

Differential Revision: D16668086

fbshipit-source-id: c246fcaf117802cf1d3c6b3959bf0d0c2761fdce
2019-08-09 07:56:53 -07:00
Pritesh Nandgaonkar
eb26a74327 Migrate AndroidDevice from js to tsx
Summary: As per the title

Reviewed By: jknoxville

Differential Revision: D16667269

fbshipit-source-id: d213f4ebacf8050ae55a8e3268909da8535f2d93
2019-08-09 07:56:53 -07:00
Pritesh Nandgaonkar
f26a28f6f6 Migrate ArchivedDevice from js to tsx
Summary: As per the title

Reviewed By: passy

Differential Revision: D16667144

fbshipit-source-id: 9fe923f8389feafa66d6bf6967217ce89ddbfaf2
2019-08-09 06:56:54 -07:00
Pritesh Nandgaonkar
47a55b0f26 Migrate BaseDevice from js to tsx
Summary: As per the title

Reviewed By: passy

Differential Revision: D16687261

fbshipit-source-id: a9d85424fb0a08fada7edd0355c356907518d366
2019-08-09 06:56:54 -07:00
John Knox
18f43daa04 Convert server dispatcher to TS
Summary: Convert file to TS

Reviewed By: passy

Differential Revision: D16687921

fbshipit-source-id: 246f5ff58030463889f8f230d120477ff90f04c7
2019-08-09 04:58:27 -07:00
John Knox
bb7e3d4837 Convert tracking dispatcher to TS
Summary: Convert file to TS

Reviewed By: passy

Differential Revision: D16687919

fbshipit-source-id: a2fb8a0ba5e0d5c42765e80311b39868b1e78244
2019-08-09 04:58:27 -07:00
John Knox
8f7c817d56 Convert types dispatcher to TS
Summary: Convert file to TS

Reviewed By: passy

Differential Revision: D16687880

fbshipit-source-id: d3d8712fa4298f8124717ae98239ed63d3282b12
2019-08-09 04:58:27 -07:00
John Knox
cff023150e Convert user dispatcher to TS
Summary: Convert file to TS

Reviewed By: passy

Differential Revision: D16687861

fbshipit-source-id: 5aa88b169b915bc1abd71d312f510073ea78b0c7
2019-08-09 04:58:26 -07:00
Pascal Hartig
c5be7c4a93 Migrate Prefetcher
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16686489

fbshipit-source-id: 35a2f871868e5c06e45a0820d9b5870f852ac1e3
2019-08-09 04:02:45 -07:00
Pascal Hartig
c5563be56b Migrate BugReporter
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16666761

fbshipit-source-id: 7dc1c21c5c9bdf56908af4e251de16dad14cae38
2019-08-09 04:02:45 -07:00
Pascal Hartig
3c2d9973e5 Migrate iOSContainerUtility
Summary: TSC actually found a type error here in `safeExec` which is nice.

Reviewed By: danielbuechele

Differential Revision: D16666740

fbshipit-source-id: 28a1ad12190d2351a48323f23c3a69947503625d
2019-08-09 04:02:45 -07:00
Pascal Hartig
5f3e84a96e Migrate LayoutInspectorSidebarExtensions
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16666703

fbshipit-source-id: cf16f9cdc97a739f0de52f31319e8061eea03c6f
2019-08-09 03:25:06 -07:00
Pascal Hartig
798d6d2ed4 Migrate constants
Summary: We can't `*`-export as the symbols are invisible but being explicit about this seems like a good improvement anyway.

Reviewed By: danielbuechele

Differential Revision: D16666637

fbshipit-source-id: 8f9a14ed41f4d8ad93b4bab8dd54f3b6c9e24824
2019-08-09 03:25:06 -07:00
Pascal Hartig
e602e1ccae Migrate config
Summary:
Very mechanical migration. No syntactic changes, only moves and
file name changes.

Reviewed By: danielbuechele

Differential Revision: D16665891

fbshipit-source-id: afb1f2418f55bf6c5370b8a2b1d2c35ac5986dc3
2019-08-09 03:25:05 -07:00
Pascal Hartig
36a1c0046c Migrate createPaste
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D16649018

fbshipit-source-id: c30d4ec390946e4b6de49ffeccc452d0a55c1e7a
2019-08-09 03:25:05 -07:00
Pascal Hartig
a314d1d930 Migrate ErrorReporter
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D16648552

fbshipit-source-id: 969c549594d76dca6552338a25f6ab7d8047d14d
2019-08-09 02:42:37 -07:00
Pascal Hartig
fc0966a133 Migrate GK
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D16647882

fbshipit-source-id: a5a7053379cd9468e1da9ab0ac2098be3443dda7
2019-08-08 14:32:20 -07:00
John Knox
3bfb7faf0a Convert plugin.js to plugin.tsx
Summary:
* Deletes plugin.js
* Adds plugin.tsx
* Adds plugin flow-typed module that has the old flow types

Reviewed By: passy

Differential Revision: D16668067

fbshipit-source-id: b2f0ce47c4cf7125b4e352821e921b97675d12a9
2019-08-08 12:06:11 -07:00
Daniel Büchele
5f53087c7e client server
Summary: Migrating Server, Client and UninitializedClient to TypeScript

Reviewed By: passy

Differential Revision: D16687855

fbshipit-source-id: 402e4dbcd5d283d3e280d4d8b312662829457886
2019-08-08 11:00:38 -07:00
Pritesh Nandgaonkar
53c1eee641 Change the implementation of fresco plugin on android
Summary: This updates the implementation of the export of the fresco plugin on the android side. Initially we used to send all the images info in one call, but its not scalable, as the images increase, the payload size of the rsocket can increase which will lead rsocket to drop messages. This diff updates the implementation of android side to match the one on the iOS side.

Reviewed By: passy

Differential Revision: D16627823

fbshipit-source-id: 563bf5fb20595c198b6447bb4e41f04af6e46644
2019-08-08 09:16:41 -07:00
Daniel Büchele
64cefd0f84 migrate redux store
Summary: Migrating redux stores to TypeScript

Reviewed By: passy

Differential Revision: D16579796

fbshipit-source-id: e3e507f17f1bdd57eb45e30cb0b28aaee6c4521c
2019-08-08 08:07:21 -07:00
Pascal Hartig
3ba42c412c rm assignDeep
Summary: Was about to convert this but appears to be unused.

Reviewed By: jknoxville

Differential Revision: D16709265

fbshipit-source-id: b444ceeb58178ecb282038f90e7009adb87f5926
2019-08-08 06:47:30 -07:00
Benjamin Elo
d9209113be Migrated UpdateIndicator
Summary: Migrated UpdateIndicator.js to UpdateIndicator.tsx

Reviewed By: passy

Differential Revision: D16668962

fbshipit-source-id: 32861327daa926b9dd53ff2c7c46ade164c09ccb
2019-08-08 06:03:25 -07:00
Benjamin Elo
48db6b7b58 Migrate UserAccount
Summary: Migrated UserAccount.js to UserAccount.tsx

Reviewed By: passy

Differential Revision: D16668833

fbshipit-source-id: 723f2c2d7e68cda0076dd46aebe4b8e6ba392c24
2019-08-08 06:03:25 -07:00
Benjamin Elo
7aaecf61ce Migrate WelcomeScreen
Summary: Migrated WelcomeScreen.js to WelcomeScreen.tsx

Reviewed By: passy

Differential Revision: D16667903

fbshipit-source-id: 86814d52175e611961733d608c34ef1cdbf8db1a
2019-08-08 04:00:58 -07:00
Benjamin Elo
d39ac338a4 Migrated AutoUpdateVersion to ts
Summary: Migrated AutoUpdateVersion.js to AutoUpdateVersion.tsx

Reviewed By: jknoxville

Differential Revision: D16667729

fbshipit-source-id: a8f05b39be412f9ece1d1e56961fd87c88deb76a
2019-08-08 02:36:36 -07:00
Chun-Ho Ng
fe56c8471c Frontend improvements for Databases plugin
Summary:
Specs here: https://fb.quip.com/aPPOAWMraRMT

Screenshots:
https://pxl.cl/Gngf
https://pxl.cl/Gngg
https://pxl.cl/Gngd
https://pxl.cl/GxQr
https://pxl.cl/Gngh
https://pxl.cl/Gngk
https://pxl.cl/Gngl
https://pxl.cl/Gngm

Reviewed By: quanturium

Differential Revision: D16266093

fbshipit-source-id: a5408b974875dcabcbd6055ccbb2818d0c1b25f6
2019-08-07 21:09:49 -07:00
Sidharth Guglani
d0a3cb5f74 Add button to navigate to Yoga Performance Plugin from Layout Inspector
Summary:
Add button in layout inspector to navigate to yoga performance plugin for analyzing a particular component.
We send component id in payload to yoga plugin which then uses to highlight the corresponding component in yoga plugin

Reviewed By: davidaurelio

Differential Revision: D16561301

fbshipit-source-id: 950fb3ea501283fec0a3036fb2796c178014f1f5
2019-08-07 06:17:24 -07:00
Pascal Hartig
6a43b0cc88 Revert D16648356: Migration of Basedevice from js to tsx
Differential Revision:
D16648356

Original commit changeset: 12954532acf9

fbshipit-source-id: 76754f427e7ccac0f0b0030c3a0af02d036c1a8b
2019-08-06 08:50:32 -07:00
Pritesh Nandgaonkar
3b31e54b6e Get all image data for iOS
Summary:
We just implemented the sending of the required metadata of the images plugin for the android, but not for iOS. Due to which we get the following error.

{F173807861}

I tried to implement `getAllImageData` first for iOS in which we send all the information in one message for the images plugin in iOS. But there were lot of images and due to which it exceeded the max payload of the rsocket. That is why I had to implement this bit for iOS in a little different way. We fetch all the image Ids first and then loop over it to get image data.

Due to this the android and iOS implementations are different. I plan to change the android part in the next diffs and make it similar to iOS, as it is more scalable.

Reviewed By: jknoxville

Differential Revision: D16606748

fbshipit-source-id: e98c2bd5db7ec247b45a7cde304d4f51053ea6fe
2019-08-06 06:59:08 -07:00
Pritesh Nandgaonkar
604e6d761f Migration of Basedevice from js to tsx
Summary: Converted BaseDevice from js to tsx

Reviewed By: passy

Differential Revision: D16648356

fbshipit-source-id: 12954532acf91930ab8c5f995bb94f6f9fe44015
2019-08-06 05:12:20 -07:00
Benjamin Elo
fe5df63d41 Added AppMatchPatterns provider to nav bar
Summary:
This commit adds the match patterns that were parsed from the app into the nav bar.

Planned for next commit: Alerting the user if they havn't filled in required parameters, and automatically excluding non-required parameters if not filled in.

Reviewed By: danielbuechele

Differential Revision: D16646774

fbshipit-source-id: 0f9130d659b6b635bfa1240dbd05c5956c6756ce
2019-08-06 03:10:47 -07:00
Benjamin Elo
c3b266c925 Parse match patterns from static directory into Flipper
Summary:
Here I parse in the match patterns belonging to the Facebook app into Flipper. In order to keep things generalized, we can add match patterns for other apps here also e.g. Instagram.

These functions are internal only, but I cannot hide them as we do not have dynamic imports. Instead, the match patterns file is hidden, and I plan to have the file read fail silently for external use.

Reviewed By: danielbuechele

Differential Revision: D16646444

fbshipit-source-id: c7978f61e5e9cfc137552777a9ed53b264184293
2019-08-06 03:10:47 -07:00
Benjamin Elo
5aadbde4b9 Added missing key props
Summary: This was an error appearing in the console that was bugging me. About how arrays of React nodes should have a key prop.

Reviewed By: passy

Differential Revision: D16646487

fbshipit-source-id: b61841c001eb4a93f0a071557b921ca7365e2ac3
2019-08-05 09:39:06 -07:00
Benjamin Elo
c45724a767 Pass selectedApp as prop to FlipperPlugin
Summary: I have found it neccessary to get the current app name for the Navigation plugin. This passes the current selectedApp as a prop into any FlipperPlugin.

Reviewed By: jknoxville

Differential Revision: D16645855

fbshipit-source-id: 996d41b1a0e939427e66fa0df172ce1a6471f686
2019-08-05 03:59:10 -07:00
Pascal Hartig
8b2009b2c7 Upgrade deps within range
Summary:
This is the result of a `yarn upgrade`. While this *shouldn't* break
anything, it easily can just as this broke the babel transform
because a previously transitively depended upon library was no
longer included.

It seems like a good idea to stay as close as possible to the upstream of all
the dependencies we have and with the release yesterday we now have one week to
check if the rest works as expected.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D16579807

fbshipit-source-id: f26d4536abd80f428e94b71e0fa98df612cbd809
2019-08-03 03:33:43 -07:00
Daniel Büchele
16e913a819 local icons
Summary:
Currently icons were always fetched remotely. We used a service worker to prefetch and cache some icons, that were critical to the UI.

In this diff, we are bundling icons at build time, with the app. In utils/icons.js we still specfify the list of icons which should be bundled. These are downloaded as part of the build step and bundled with the app. We are downloading the icons in 1x and 2x (the two most common pixel densities).

Reviewed By: jknoxville

Differential Revision: D16620764

fbshipit-source-id: 965a7793ad1f08aebb292606add00218429cdaf4
2019-08-02 09:00:00 -07:00
Zoltán Gilián
1717fba410 Add option to disable keyboard navigation in ManagedTable
Summary: This may be needed e.g. if there are multiple ManagedTables in the window.

Reviewed By: jknoxville, danielbuechele

Differential Revision: D16620862

fbshipit-source-id: 1880e9e6e8e9ece5f687b2768eae7c4f206f69da
2019-08-02 08:35:16 -07:00