Commit Graph

1393 Commits

Author SHA1 Message Date
Daniel Büchele
b7933aef2e publish react plugin
Summary:
Publishing React Dev tools plugin:
- migrate to TS
- move iOS and JS part to public folder (Android was already)

Reviewed By: passy

Differential Revision: D17164782

fbshipit-source-id: 20ccba71d807df2d33fe5348a62c6ee7f78ae8ba
2019-09-05 03:19:47 -07:00
Chaiwat Ekkaewnumchai
7bb9ef4a37 elements-inspector/elements
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180489

fbshipit-source-id: 6ddc53f03fddf56494a18a7e1826ba4dd1e7e564
2019-09-05 03:16:03 -07:00
Chaiwat Ekkaewnumchai
158f7cba33 ResizeSensor
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17181422

fbshipit-source-id: 73b802ac339c7f7e474c9ee8f13b6aaa50884c97
2019-09-05 03:05:38 -07:00
Chaiwat Ekkaewnumchai
d7e3514d9b desktop-toolbar
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180448

fbshipit-source-id: 67459523fb7047c0580b5b7b3f116397e0ad9c42
2019-09-05 03:05:38 -07:00
Chaiwat Ekkaewnumchai
be3772bd16 Orderable
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17181370

fbshipit-source-id: 079a1a89f30665e4c86356ace299bd086819bcfb
2019-09-05 03:05:38 -07:00
Chaiwat Ekkaewnumchai
f6b371e2be DataPreview
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180388

fbshipit-source-id: 2375ce5eafbaac75cc789436c9ee1a199a233784
2019-09-05 03:02:05 -07:00
Chaiwat Ekkaewnumchai
e586c53393 Popover
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17181415

fbshipit-source-id: 8b30cc1fdd7d4410b3ca13775ffdea3cae6f9ba4
2019-09-05 03:02:04 -07:00
Chaiwat Ekkaewnumchai
6fb59607c0 elements-inspector/sidebar
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180511

fbshipit-source-id: d5c3b8b671d05e57002739f9e038670a6c895fd8
2019-09-05 03:02:04 -07:00
Chaiwat Ekkaewnumchai
c120896ac8 ModelOverlay
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180882

fbshipit-source-id: 4a51bbd90f0a46807888de63ac305a7395d74a61
2019-09-05 03:02:04 -07:00
Chaiwat Ekkaewnumchai
56b061d883 Input
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180572

fbshipit-source-id: 2c820b6c2aef7abf567c42f87de7864501a91c2d
2019-09-05 03:02:04 -07:00
Chaiwat Ekkaewnumchai
8ae170c034 FileList
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180529

fbshipit-source-id: 50258a17c34177317397af618b43f2d2f76fb3a2
2019-09-05 03:02:03 -07:00
Chaiwat Ekkaewnumchai
2d83de99c5 MarketTimeline
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180745

fbshipit-source-id: 0a42d5deba70ed0dfe5cd344dd5da6d2fd572999
2019-09-05 03:02:03 -07:00
Chaiwat Ekkaewnumchai
aa48e71c08 DataInspector
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17180390

fbshipit-source-id: 85fd4c2ad95a3be48df7dcbae9b77aee2578ae42
2019-09-05 02:59:18 -07:00
Daniel Büchele
ef2c6787fa convert Layout plugin
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17153997

fbshipit-source-id: 308a070b86430a9256beb93b4d3e5f8d5b6c6e52
2019-09-05 02:51:41 -07:00
Chaiwat Ekkaewnumchai
705ba8eaa8 Convert Flipper plugin "Network" to TypeScript
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17155509

fbshipit-source-id: 45ae3e2de8cd7b3cdf7271905ef7c318d4289391
2019-09-05 02:51:40 -07:00
Chaiwat Ekkaewnumchai
0a53cccb40 Convert Flipper plugin "Network" to TypeScript
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17155508

fbshipit-source-id: 2452b023dd3a5f0063e4b6b6294ed00670ec9022
2019-09-05 02:51:40 -07:00
Chaiwat Ekkaewnumchai
4781f04ca4 Convert Flipper plugin "Network" to TypeScript
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17053118

fbshipit-source-id: 1ad6e9db7e6338165070c782ab9e7d2d600a62b7
2019-09-05 02:51:40 -07:00
Daniel Büchele
1c817d2554 StackTrace
Summary: fixing ts-strict errors

Reviewed By: jknoxville

Differential Revision: D17181145

fbshipit-source-id: 6e4194373b5d3525f83e464ccdc159dbdc1953ac
2019-09-04 10:53:37 -07:00
Daniel Büchele
ff4a3be15b Select
Summary: fixing ts-strict errors

Reviewed By: jknoxville

Differential Revision: D17181147

fbshipit-source-id: eb8769536a27df17685a6dbd77f52d97e28e43a5
2019-09-04 10:53:36 -07:00
Daniel Büchele
02dfcc3cf7 FliterToken
Summary: fixing ts-strict errors

Reviewed By: jknoxville

Differential Revision: D17181141

fbshipit-source-id: c6c70ed2e76fbe4a3e7ee807ef1e2de2dad3eb55
2019-09-04 10:53:36 -07:00
Mihaela Ogrezeanu
d77b5f0062 Custom button for expand/collapse node in Tree
Summary: When clicking a node in the tree, currently it expands or collapses the subtree under it. This adds a chevron button which only handles the expansion functionality, and clicking on the label with the Section name will show info about that Section in the side panel.

Reviewed By: fabiomassimo

Differential Revision: D17165150

fbshipit-source-id: ac6b6c127b68274f53523b3ea62422ff96116e9b
2019-09-04 10:50:41 -07:00
Daniel Büchele
89f20e4f02 fix z-index
Summary: z-index for titlebar was not high enough to cover the modal sheet

Reviewed By: jknoxville

Differential Revision: D17165223

fbshipit-source-id: 5ae30b6e55a1f69d653db509a08a8aa80a6f10fd
2019-09-04 10:06:02 -07:00
Benjamin Elo
be6a99c8f9 Migrated plugins/navigation/index to TypeScript
Summary: Migrated plugins/navigation/index.js to plugins/navigation/index.tsx

Reviewed By: passy

Differential Revision: D17181195

fbshipit-source-id: da64547ff001cee2be2d728443a3c189785c51f3
2019-09-04 06:39:20 -07:00
Benjamin Elo
470c8ca65e Added a blue timeline line
Summary:
I've added in a timeline line. Getting the CSS for this to work perfectly was tricky, but in the end this result looks pretty good. I've opted for the unknown events to have a smaller circle.

Edit:

I have fixed the border radius issue with the img element:

{F206482232}

And Unknown events are better aligned:

{F206482255}

Reviewed By: jknoxville

Differential Revision: D17180819

fbshipit-source-id: c318d2721adde758494267095524961c796f7a54
2019-09-04 05:17:43 -07:00
John Knox
4d0ab98c57 Fix init.tsx types
Reviewed By: passy

Differential Revision: D17166152

fbshipit-source-id: b1f7071bd36b62276f1c077e49ebd7342a9ef3e4
2019-09-04 03:33:43 -07:00
John Knox
a04e9aa986 Fix NotificationsHub types
Reviewed By: passy

Differential Revision: D17167014

fbshipit-source-id: f7981c75252059c6eaa3518ca0fd9524f5039db6
2019-09-04 03:31:48 -07:00
John Knox
16457e2adb Add notNull filter with type guard
Summary: You need to use a type guard when narrowing types in a filter.

Reviewed By: danielbuechele

Differential Revision: D17163782

fbshipit-source-id: aa78bdd392653ebf1080a04e62e131b607e5181b
2019-09-04 03:31:47 -07:00
Benjamin Elo
df667027df Navigation Timeline UI overhaul.
Summary:
This is a UI ovehaul for the Navigation plugin, taking inspiration from the Notifications page in Flipper.

We now display a timestamp, open page and bookmark are more clearly identified, screenshots are organized more neatly, and parameters are displayed in a table.

If the class name of the ViewController is available, that will also be displayed.

Edit:

Adding in some of the requested changes.

Improved UI:
https://pxl.cl/K0h9

Scroll on opening a page:
https://pxl.cl/K0hQ

Reviewed By: danielbuechele

Differential Revision: D17161734

fbshipit-source-id: e5e054bf87f540964e90da3a798fd0c23df86540
2019-09-03 10:11:58 -07:00
Pritesh Nandgaonkar
61c033daaf Set up the infra to show the static screen
Summary:
This makes the implementation of static view generic. Right now the only non-plugin view which is shown is the WelcomeScreen. The implementation it is hardcoded. I want to make it generic, so that we can show the bug request screen too.

This diff sets the default value of the `staticView` to `WelcomeScreen`, which will be set to null when the `selectedDevice` is set. And viceversa, it will be assigned back to `WelcomScreen`, when the `selectedDevice` is set to `null`

Reviewed By: danielbuechele

Differential Revision: D16965734

fbshipit-source-id: 69d700184f44d4e5ab531f5f8fc0e23bafa07e72
2019-09-03 08:42:50 -07:00
Pascal Hartig
6f14bb7dfa Migrate LogWatcher to (strict) tsx
Summary: 1/2 for porting the DeviceLogs.

Reviewed By: danielbuechele

Differential Revision: D17156890

fbshipit-source-id: 4d2841b8f86fdb5f3a3c085482c37af79de4323a
2019-09-03 05:50:16 -07:00
Ivelin Rachev
f4fc96756a Convert Flipper plugin "DeviceCPU" to TypeScript
Summary: Migrate CPU plugin to use TypeScript

Reviewed By: danielbuechele

Differential Revision: D17072709

fbshipit-source-id: d9acf172af08d764216e7b79b79994199dc83f5c
2019-09-02 11:46:21 -07:00
Chaiwat Ekkaewnumchai
e3285c4f15 Convert Flipper plugin "Example" to TypeScript
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17047622

fbshipit-source-id: ff25bf4355bb42a0754b2b3304a6b5bdc3806909
2019-09-02 11:23:46 -07:00
Daniel Büchele
57fb3853ba remove generics from static methods
Summary:
Generics on static methods don't seem to work the way we are using them.
I looked into how react types getDerivedStateFromProps as this is a very similar concept, and they don't seem to type it at all. For that reason I've given up and just type the persistedState passed to our static methods as `Object`.

Reviewed By: passy

Differential Revision: D17152767

fbshipit-source-id: d9c2159be26fa341c5411dd0b40895d4c8ddf71e
2019-09-02 10:49:07 -07:00
Daniel Büchele
b924b14225 fix icon default size
Summary:
Logs plugin expected the default icons size to be 16 and therefor didn't set it explicitly. However, with the TS migration we lost the default size.
This adds back the default size for icons.

Reviewed By: jknoxville

Differential Revision: D17156747

fbshipit-source-id: a37f3a2bd189a56019aee1939618caf21122a397
2019-09-02 10:03:10 -07:00
Zoltán Gilián
9a9eda3da5 Expose internGraphAPIRequest
Summary: Needed to access the task attachment interngraph endpoint added in D17146262.

Reviewed By: danielbuechele

Differential Revision: D17146272

fbshipit-source-id: 6375a953d4b5389e05accb77f0242388c3e0254c
2019-09-02 09:27:03 -07:00
Benjamin Elo
ffb505ce4c Bookmarks UI overhaul
Summary: I've made some slight changes to how bookmarks are displayed in the app, and added the ability to remove them from the tab.

Reviewed By: danielbuechele

Differential Revision: D17154083

fbshipit-source-id: 587e1e0f6f79f461c92e4866f4a59608a6173ccb
2019-09-02 06:35:34 -07:00
Benjamin Elo
cfcd0f060c Migrated components/index to TypeScript
Summary: Migrated components/index.js to components/index.tsx.

Reviewed By: danielbuechele

Differential Revision: D17132215

fbshipit-source-id: 76e03f9b4a509ad9c8faac484dc5b0ba7d1574e1
2019-09-02 04:13:42 -07:00
Benjamin Elo
a615259961 Migrated SearchBar to Typescript
Summary: Migrated SearchBar.js to SearchBar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132221

fbshipit-source-id: ce1728bf06ba2a314c027e92456f947ab4781660
2019-09-02 04:13:41 -07:00
Benjamin Elo
10e90f3f57 Migrated Timeline to TypeScript
Summary: Migrated Timeline.js to Timeline.tsx

Reviewed By: danielbuechele

Differential Revision: D17132222

fbshipit-source-id: ffe5b74459d1f3ec48873a94a95c40e855aa45da
2019-09-02 04:13:41 -07:00
Benjamin Elo
d3023946da Removed ScollableFlexColumn component
Summary: This functionality already existed in FlexColumn by adding the prop grow.

Reviewed By: danielbuechele

Differential Revision: D17132219

fbshipit-source-id: d284f2c5e219beff743525abd344a8b9d1955d0b
2019-09-02 04:13:41 -07:00
Benjamin Elo
cdd7793428 Migrated SaveBookmarkDialog to TypeScript
Summary: Migrated SaveBookmarkDialog.js to SaveBookmarkDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132225

fbshipit-source-id: 34de69069197718055ec8cc31f539cd8e1aa5b2e
2019-09-02 04:13:40 -07:00
Benjamin Elo
0a9c4bdcf4 Migrated RequiredParametersDialog to TypeScript
Summary: Migrated RequiredParametersDialog.js to RequiredParametersDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132223

fbshipit-source-id: a4a592ba58b8c8b94b3106c3a2c0916b2776697f
2019-09-02 04:13:40 -07:00
Benjamin Elo
d957f45314 Migrated AutoCompleteSheet to TypeScript
Summary: Migrated AutoCompleteSheet from AutoCompleteSheet.js to AutoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17132216

fbshipit-source-id: 2ce269cbd5a77353002958650c25d7297cc4e99e
2019-09-02 04:13:40 -07:00
Benjamin Elo
7d0710a0c8 Migrated BookmarksSidebar to TypeScript
Summary: Migrated BookmarksSidebar.js to BookmarksSidebar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132218

fbshipit-source-id: 0e95201b5fe7c17e4acc93926325e953d8859d6c
2019-09-02 04:13:39 -07:00
Benjamin Elo
434ed4ec7d Migrated NavigationInfoBox to TypeScript
Summary: Migrated NavigationInfoBox,js to NavigationInfoBox.tsx

Reviewed By: danielbuechele

Differential Revision: D17132217

fbshipit-source-id: 9a9cd3c186efdcf7a8efc5eeaec608ff8cb4d6f1
2019-09-02 04:13:39 -07:00
Benjamin Elo
4c68750058 Migrated FavoriteButton to TypeScript
Summary: Migrated FavoriteButton.js to FavoriteButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132220

fbshipit-source-id: af1a3de4b272a57975486233f699e390677784fb
2019-09-02 04:13:39 -07:00
Benjamin Elo
36a8dfc1f6 Migrate IconButton to TypeScript
Summary: Migrated IconButton.js to IconButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132224

fbshipit-source-id: d4f14050385c7c25900e9a9d01f3b9a0dcff3a31
2019-09-02 04:13:39 -07:00
Benjamin Elo
a0696692e2 Migrated hooks/requiredParametes to TypeScript
Summary: Migrated requiredParameters.js to requiredParameters.tsx

Reviewed By: danielbuechele

Differential Revision: D17133609

fbshipit-source-id: 8926921481bf587b51a09c18eca71ca6132ad89a
2019-09-02 04:13:38 -07:00
Benjamin Elo
5877c1df96 Migrated hooks/autoCompleteSheet to TypeScript
Summary: Migrated autoCompleteSheet.js to autoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17133608

fbshipit-source-id: eba06c5add7687e013b8f0e2b430b359dbf1cb48
2019-09-02 04:13:38 -07:00
Benjamin Elo
950bbbf97d Migrate util/appMatchPatterns to TypeScript
Summary: Migrated appMatchPatterns.js to appMatchPatterns.tsx

Reviewed By: danielbuechele

Differential Revision: D17133610

fbshipit-source-id: 1a819e2b32a233372e08578352290eff1264ef43
2019-09-02 04:13:38 -07:00