Commit Graph

315 Commits

Author SHA1 Message Date
Michel Weststrate
33a91b5e0f Fix tabs offset
Summary: Tabs have a weird negative offsite in the mobile config section (they have everywhere by default, to escape their containers in a mac-style but it does hide them in this specific case)

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448191

fbshipit-source-id: 792daa5a3ef1aa91df730bd185124076471e42d3
2019-11-13 08:36:55 -08:00
Michel Weststrate
f2d12f1025 Fixed a bunch of prettier errors after upgrading
Summary: prettier upgrade uncovered more errors

Reviewed By: passy

Differential Revision: D18474908

fbshipit-source-id: b1553000fb3386f2bbd9defdd3332618e4b9c867
2019-11-13 08:36:54 -08:00
Michel Weststrate
93655d39b8 Fix more react warnings
Summary: Fixing random React errors as I encountered them.

Reviewed By: jknoxville

Differential Revision: D18397950

fbshipit-source-id: cb73fcd6cd9aac2cd53c982e5a58760be12a10ca
2019-11-11 05:11:04 -08:00
Michel Weststrate
9a8e267f2a Fixed React key warnings in Layout inspector
Summary: Fixed some React key warnings

Reviewed By: passy

Differential Revision: D18394993

fbshipit-source-id: 804b8e2cb8525253e2ef8120b621dcb98af0e3e5
2019-11-08 04:37:01 -08:00
Pritesh Nandgaonkar
994546b24a Setup of the bug creation screen
Summary: This diff sets up the create form for the new support request project. The current screen is very basic. I will be iterating through it in the upcoming diffs.

Reviewed By: passy

Differential Revision: D18327464

fbshipit-source-id: af01fc10f68a135f32f0ae98551986852019e8aa
2019-11-06 10:46:12 -08:00
Adam Ernst
6e8de457e7 Remove last traces of ComponentScript from Flipper
Summary: Bye bye ComponentScript.

Reviewed By: d16r

Differential Revision: D18330173

fbshipit-source-id: 8181e9cf082d299790ae3ceaffcc7417dc8190aa
2019-11-05 13:21:02 -08:00
Michel Weststrate
3cee927674 Introduce favorite plugins
Summary: This diff lands improved sidebar navigation. The old functionality to order plugins based on last-recently-used, and cropping at 5 items has been removed. Instead, items can be starred and their position will be fixed. Together with the app switcher introduced this should lead to a cleaner, stabler, and more customizable UI.

Reviewed By: jknoxville

Differential Revision: D18299401

fbshipit-source-id: 29b7eb3a4130933c637f7c81834558bf738d5bf0
2019-11-05 09:14:46 -08:00
Anton Nikolaev
faaf8c4f32 Search full request details
Summary: Simple implementation of searching through request/response body on "network" tab

Reviewed By: passy

Differential Revision: D18268026

fbshipit-source-id: 39386d2d6ec50b47c3ca3dec976821282b51636f
2019-11-01 06:55:21 -07:00
Gijs Weterings
96162f40cb Layout plugin: Add option to Expand/collapse recursively
Summary:
Uses a slightly modified version of the deep expansion. In testing, there were a few issues due to the function in Inspector::onElementExpanded is essentially a toggle. I added an optional parameter to override this toggle behavior for child elements, and also flipped the order of root and child actions during collapsing, as the child state otherwise didn't persist properly (due to the component being unmounted, would be my guess?) This change should be non-breaking to other uses of the method that don't use the `deep: true` parameter
close https://github.com/facebook/flipper/issues/223

Reviewed By: passy

Differential Revision: D18225057

fbshipit-source-id: 53e840f07bf648249b5a4b36d115918dba215ff8
2019-10-31 08:41:27 -07:00
Pritesh Nandgaonkar
ef43878286 Add Marketing Bar for Flipper Support Form
Summary: This diff shows marketing bar for support feature when someone inspects the litho view. Once it is inspected it will shown for the rest of the time till the plugin is unmounted.

Reviewed By: jknoxville

Differential Revision: D18086347

fbshipit-source-id: cb906614f571e8ece2293b028f809d1aa5c211e5
2019-10-23 10:40:03 -07:00
Michel Weststrate
3b1429b8b0 Add global error bubble
Summary: Improved the display of error messages. Where previously only one error message could be displayed (quite obtrusively), with this change multiple errors can now be displayed and stack traces and further info can be hidden.

Reviewed By: passy

Differential Revision: D18036569

fbshipit-source-id: 2bc3dfa7a5196f931370a6e6dbf27c55b6cfb2bf
2019-10-22 08:48:16 -07:00
John Knox
4a8a4aabb6 Purify Glyph component
Summary: A significant proportion of CPU time when doing a target selection in the layout plugin, was spent rendering Glyphs. They shouldn't really be doing anything expensive in render, but since they already are, this will make sure they don't re-render unnecessarily.

Reviewed By: passy

Differential Revision: D17906723

fbshipit-source-id: ece143f65fd46d8582e21455732049368f301186
2019-10-14 07:49:52 -07:00
Pascal Hartig
874e590b96 Upgrade eslint and prettier
Summary: Not a fan of the long lines, but if that's where prettier is going, let's roll with it.

Reviewed By: jknoxville

Differential Revision: D17905599

fbshipit-source-id: c4232d46d2ec0b7c743f6afd8349106c85f013b9
2019-10-14 05:27:27 -07:00
Andres Suarez
0675dd924d Tidy up Flipper license headers [1/2]
Reviewed By: passy

Differential Revision: D17863711

fbshipit-source-id: 259dc77826fb803ff1b88c88529d7f679d3b74d8
2019-10-11 13:46:45 -07:00
John Knox
7dd6f9a81f ToggleButton: Return component instead of fragment
Summary:
This should be an encapsulated component, not returning the building blocks of one.
So I'm changing the default to return a single component that contains the fragment previously returned.

Now elements appear side by side, are vertically aligned, and onClick works on the label as well, by default. This doesn't break anything in any of the uses inside the flipper code base, because only one used a label (regex search in Searchable.tsx), and these properties are all desirable there.

This could potentially break any plugins that aren't included in the flipper codebase, if they already have a label and don't layout the elements side by side. There are probably no such cases.

Reviewed By: passy

Differential Revision: D17810386

fbshipit-source-id: 588d7ed3243a9f0e5bcad805a3480393c031ff55
2019-10-10 05:21:40 -07:00
John Knox
8e5b69164a Grey-out disabled buttons
Summary:
For "primary" and "danger" buttons, you previously couldn't see any difference between disabled and enabled ones.
This fixes that by greying them out when disabled.

Reviewed By: passy

Differential Revision: D17738031

fbshipit-source-id: 82e16b8881f3d404aafae8a7837151090bb6bbee
2019-10-07 08:51:06 -07:00
Pritesh Nandgaonkar
d310027d88 Fix toggle switch bug when Flipper's width is small
Summary:
Bug:

{F214979227}

Reviewed By: passy

Differential Revision: D17763781

fbshipit-source-id: 21890caee796ac0df6f39e618a762c44955dd647
2019-10-07 07:43:58 -07:00
Hilal Alsibai
447e918607 Make copying an element list out its attributes instead of a useless id
Summary: When copying elements from the layout inspector its much more useful to copy all associated attributes rather than just the name and an implementation detail id.

Reviewed By: jknoxville

Differential Revision: D17727520

fbshipit-source-id: 8ac1828059cc10f7f9faf0bdc72eb3d57c881121
2019-10-03 03:40:51 -07:00
Assaf Gelber
34d96fa262 Fix documentation on options property in Select
Summary: Just updating the apparently copy-pasted comment about the `options` prop.

Reviewed By: passy

Differential Revision: D17567256

fbshipit-source-id: ed4ff93ad42ef8bdcadb5371fe11ae90dba47ca3
2019-09-25 01:41:15 -07:00
Daniel Büchele
735aee7682 Add Tabs container
Summary: Adding an additional style for tabs on top of a container, similar to the ones used in macOS

Reviewed By: passy

Differential Revision: D17450843

fbshipit-source-id: 6b58c2aa290e0221d917e60bb3ac0751f77ea1ce
2019-09-19 02:34:17 -07:00
Pascal Hartig
2fcd0cbcac Convert logs plugin to TypeScript
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17184173

fbshipit-source-id: c7a055544ee4d9e07e5685fa84669d68fd68bf31
2019-09-16 09:14:09 -07:00
Pascal Hartig
cbbe32b9b9 Remove FlowFixMe's from TypeScript
Summary: This diff was a joy to draft.

Reviewed By: jknoxville

Differential Revision: D17344676

fbshipit-source-id: 0694d0393fa243edef61408ecfee92912fbbfa32
2019-09-12 10:20:08 -07:00
John Knox
b71ae59545 TableNativePlugin
Reviewed By: passy

Differential Revision: D17258701

fbshipit-source-id: 0d622e63cc028969c9c6d51c5aa2cc8977aac151
2019-09-09 06:54:37 -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
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
Daniel Büchele
4850da6a72 ViewWithSize
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181146

fbshipit-source-id: a0f8cab121c5fefd505cba4166122c1ce191e6c2
2019-09-05 04:42:38 -07:00
Daniel Büchele
f34c8ba9fe Tooltip
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181144

fbshipit-source-id: c48de5718f1a917c2eebd6b5913a43ce62b9b0a1
2019-09-05 04:42:38 -07:00
Daniel Büchele
e29563cfca ToggleSwitch
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181148

fbshipit-source-id: 959a01fd61950ddb263c3b9c44c9069d19541c36
2019-09-05 04:42:38 -07:00
Daniel Büchele
cfd4793d05 Textarea
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181150

fbshipit-source-id: 5de7f4d971c988bdaf18ae281a0e76ba99b67648
2019-09-05 04:42:37 -07:00
Daniel Büchele
3bdc4a2b8d Text
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181142

fbshipit-source-id: df82f234061735e62f15a18e6b738c9e9e398807
2019-09-05 04:42:37 -07:00
Daniel Büchele
244df345f4 Tabs
Summary: fixing ts-strict errors

Reviewed By: passy

Differential Revision: D17181149

fbshipit-source-id: 43b12336e6467e0b134087fdabfd21f414741188
2019-09-05 04:42:37 -07:00
Chaiwat Ekkaewnumchai
7055deff7e Button.tsx
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17165021

fbshipit-source-id: 6a8cb9f6167efc4c3105c38854d7b6b8fd931be9
2019-09-05 04:38:59 -07:00
Daniel Büchele
9ba36e2795 ManagedTable
Summary: fixing ts-strict errors

Reviewed By: jknoxville

Differential Revision: D17181143

fbshipit-source-id: b25cf07f3aad61e451fdb5e274faeaea62474f2d
2019-09-05 04:03:19 -07:00
Chaiwat Ekkaewnumchai
f4bb0f987f DataDescription
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17174253

fbshipit-source-id: d2ad87954a4fe49626f35234c2a9db180093fc54
2019-09-05 03:36: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
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
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