Commit Graph

592 Commits

Author SHA1 Message Date
Michel Weststrate
be3cdedf52 Some UI / docs fine-tuning
Summary: Added wash color option to Toolbar, made codeblocks transparent rather than gray & bordered, which looks cleaner

Reviewed By: passy

Differential Revision: D28119720

fbshipit-source-id: 9d1f4db5b39a91d9d117046bd5482726ac2f555d
2021-05-04 13:50:31 -07:00
Michel Weststrate
d903a862d2 Use DataTable as list base
Summary:
Changelog: Standardized DataList component

This diff standardizes the DataList component, by reusing the DataList. This is done to be able to take full advantage of all its features like virtualisation, keyboard support, datasource support, etc.

Also cleaned up DataTable properties a bit, by prefixing all flags with `enableXXX` and setting clear defaults

Reviewed By: passy

Differential Revision: D28119721

fbshipit-source-id: b7b241ea18d788bfa035389cc8c6ae7ea95ecadb
2021-05-04 13:50:31 -07:00
Michel Weststrate
5bf9541e05 Standardize CodeBlock component
Summary:
Code blocks are quite common in Flipper, and a bit verbose in Ant, so let's standardize!

Changelog: Standardize CodeBlock component

Reviewed By: passy

Differential Revision: D28117560

fbshipit-source-id: 5a5538a49b59ef40c814d22055fac56e7598cbbb
2021-05-04 13:50:31 -07:00
Michel Weststrate
dd7a9f5195 introduce onReady life-cycle
Summary: Flipper Sandy plugins didn't have an event to hook into that is run _after_ any state snapshot is loaded, which was needed by the graphQL plugin, as they do some post processing when a data snapshot is restored.

Reviewed By: passy

Differential Revision: D28189573

fbshipit-source-id: 4ef992f3fafc32787eab3bc235059f2c41396c80
2021-05-04 12:52:26 -07:00
Michel Weststrate
699343a9ca Fix bug causing archived devices trying to connect
Reviewed By: nikoant

Differential Revision: D28064540

fbshipit-source-id: 43f05c4348a33e9633751bb9f69cd8d17ddd13c4
2021-04-29 12:12:57 -07:00
GitHub
66320ef85e Automated: Update Podfile.lock (#2246)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/2246

Reviewed By: mweststrate

Differential Revision: D28090937

Pulled By: passy

fbshipit-source-id: 21913f74072788d18bc4343d9b23cf09d824ff90
2021-04-29 08:05:06 -07:00
Michel Weststrate
e26a8c5ad0 Provide standardised MasterDetail
Summary:
Noticed in reviews during the convertathon there is still quite some boilerplate in things that happen on the boundary of UI and plugin state, such as setting up menu entries and providing common functionality like clear, master/detail layout, etc.

This diff introduces the `MasterDetail` component, which takes a higher level approach by merely needing to provide the state atoms and desired features, and taking care of the wiring.

Applied it to createTablePlugin, to prove that going from `createTablePlugin` to `MasterDetail` will be a much smaller step now.

Verified on the funnel logger plugin

Reviewed By: passy

Differential Revision: D28090362

fbshipit-source-id: 146f8c315fea903901ad4e3e46711642f16cf0e6
2021-04-29 07:31:54 -07:00
Michel Weststrate
05bf55419f Introduce createTablePlugin
Summary: This diff exposes the createTablePlugin from flipper-plugin, so that createTablePlugin based plugins can be converted to Sandy as well

Reviewed By: jknoxville

Differential Revision: D28031227

fbshipit-source-id: 8e9c82da08a83fddab740b46be9917b6a1023117
2021-04-28 12:28:37 -07:00
Flipper Bot
fbcc5f98a4 Flipper Snapshot Bump: v0.87.1-SNAPSHOT
Summary: Releasing snapshot version 0.87.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D28055082

fbshipit-source-id: 62304160be4ff0861f0d1eacb6509cef8b3531a5
2021-04-28 06:58:22 -07:00
Flipper Bot
7f135722a9 Flipper Release: v0.87.0
Summary: Releasing version 0.87.0

Reviewed By: passy

Differential Revision: D28055084

fbshipit-source-id: 71cb9abbea0b43b56fd23baf7a728337a554ecbc
2021-04-28 06:58:22 -07:00
John Knox
808d173c89 Fix docs: Typography.Heading => Typography.Title
Summary:
Noticed this while migrating

Created from Diffusion's 'Open in Editor' feature.

Reviewed By: passy

Differential Revision: D28057969

fbshipit-source-id: a8b7c1159c13e666abc3bab54fafae302e18e8dd
2021-04-28 06:52:37 -07:00
Michel Weststrate
8e02b2ec10 Expose Toolbar from Sandy
Summary: Moved Toolbar to flipper-plugin. No further changes.

Reviewed By: nikoant

Differential Revision: D28027334

fbshipit-source-id: 35de13d87734ae3a8af037166945b1a669106274
2021-04-28 05:48:20 -07:00
Michel Weststrate
d26ea5fa46 Allow onExport handler to return nothing
Summary:
In many cases, the onExport handler doesn't try to customise the format, but merely fetch some additional information before creating an export.

By allowing the `onExport` handler to also return nothing, and instead merely update existing state, this case will be easier to express now;

Reviewed By: nikoant

Differential Revision: D28026558

fbshipit-source-id: 2b90b3e1ced6a6a5b42938b6f6b74b0eb9ceafc0
2021-04-27 14:53:40 -07:00
Anton Nikolaev
140cf38ffd Expose subscribe / unsubscribe functions from Atom
Summary: Allow subscribing to Atom state changes

Reviewed By: mweststrate

Differential Revision: D28027692

fbshipit-source-id: 24fd7ea16b013c364bbb1d25b30c48bc698db014
2021-04-27 09:31:11 -07:00
Michel Weststrate
37a7b16774 Introduce Tabs
Summary:
Ant'd tabs didn't allow for vertical fill out. Introduced our own tiny wrapper that has `grow` by default.

Also made sure the users last selection is remembered.

Reviewed By: cekkaewnumchai

Differential Revision: D28026345

fbshipit-source-id: 7703bc241cd1427336b7c917bdb5be9f56bba9b9
2021-04-27 08:13:16 -07:00
Michel Weststrate
fe10e9dcc2 Additional migration notes
Summary: Extended migration notes a bit based on feedback of the process so far

Reviewed By: passy

Differential Revision: D28025556

fbshipit-source-id: a3743a76c8a91b16cc3e669494de07baaa8199e6
2021-04-27 08:13:16 -07:00
Michel Weststrate
34e5e3a11a Fine tuning and docs for Panel
Summary: Better documentation for Panel. Fixes styling issue for uncollapsible panels

Reviewed By: passy

Differential Revision: D28025557

fbshipit-source-id: db0f9fd44f501fa36be3fc31ebbe7917d7c0a88c
2021-04-27 08:13:16 -07:00
Michel Weststrate
844abca78c Expose logger from client
Summary: The `logger` was currently only available in a React context, and not directly exposed from the `client` API as well. This diff fixes it. The infrastructure including test stubs were present already, so the change is minimal.

Reviewed By: nikoant

Differential Revision: D28010120

fbshipit-source-id: cdd09ed236f5d92d07005d4e5a699360596281e4
2021-04-27 01:43:42 -07:00
Michel Weststrate
c89d18fd68 Introduce DataList
Summary: Introduce the DataList component. Not feature complete yet, but core functionality is present so that people can use it during the convertathon. It is used to implement the route list in the network mock dialog

Reviewed By: priteshrnandgaonkar

Differential Revision: D27046716

fbshipit-source-id: a247ce7032b350b31bf55962ca4268e30f43471a
2021-04-27 01:43:42 -07:00
John Knox
13ce7741a6 Fix broken links
Summary: Noticed some broken links while converting plugins

Reviewed By: priteshrnandgaonkar

Differential Revision: D27997670

fbshipit-source-id: fd2715db010a042f749e0908b44a3fb3c6aa6f18
2021-04-26 08:29:12 -07:00
Michel Weststrate
c005753018 Expose Panel and useLocalStorageState
Summary: Expose a Panel api from Sandy, which is quite similar to the old one, except that it uses Antd, and it will remember the users closed / open preference through sessions, a much requested feature.

Reviewed By: nikoant

Differential Revision: D27966607

fbshipit-source-id: 9b18df377215c1e6c5844d0bf972058c8c574cbb
2021-04-23 09:29:59 -07:00
GitHub
e0c464b2fd Automated: Update Podfile.lock (#2195)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/2195

Reviewed By: mweststrate

Differential Revision: D27945986

Pulled By: passy

fbshipit-source-id: 9f73adbd09c14b68f42a917f5c8722422b50b3f5
2021-04-23 04:33:15 -07:00
Michel Weststrate
0e08b63ce3 Fix several links
Summary: Per discussion in parent diff, fixed the links to be idiomatic so that they work in both internal and public builds

Reviewed By: jknoxville

Differential Revision: D27963896

fbshipit-source-id: 35504b04e8975acc419be668804c5d7ad7aa2a16
2021-04-23 04:14:43 -07:00
Michel Weststrate
3af41bfdd1 Add migration guide to convert from classic to Sandy plugins
Summary: Added migration guide from classic to Sandy plugins

Reviewed By: passy

Differential Revision: D27908674

fbshipit-source-id: d4b5a0b45e314226825375d762902041f90c04c8
2021-04-23 01:55:54 -07:00
Flipper Bot
87cdd21951 Flipper Snapshot Bump: v0.86.1-SNAPSHOT
Summary: Releasing snapshot version 0.86.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D27905836

fbshipit-source-id: 188fcda87ea93e67547e62ac3d8b5fd23bdfa03a
2021-04-21 04:54:43 -07:00
Flipper Bot
bde0791818 Flipper Release: v0.86.0
Summary: Releasing version 0.86.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D27905837

fbshipit-source-id: 349b63a1f06d85b075d07b610179fd613da6bf52
2021-04-21 04:54:43 -07:00
Michel Weststrate
e29222fba7 Update and patch loading React DevTools
Summary:
When trying to run some React component performance profiles, the updates registered made absolutely no sense (components rerendering without any parent or other cause causing them to render etc). That turned out to be caused by having an outdated version of the React devTools in Flipper.

Sadly the newer version of the React DevTools didn't work with our current Electron version anymore. Some horrible hacking is needed to work around that.

To help with updating the tools in the future (they are by default cached forever on the local machine), I've introduced the `FLIPPER_UPDATE_DEV_TOOLS` variable.

The plugin loading work around is inspired by https://github.com/electron/electron/issues/23662#issuecomment-787420799

Reviewed By: passy

Differential Revision: D27685981

fbshipit-source-id: c35e49aff9b2457b63122eeee0d5c042ddd3b08b
2021-04-15 07:48:33 -07:00
Michel Weststrate
69de9bc92d Initial move to flipper-plugin
Summary:
This diff moves the core of ElementsInspector to flipper-plugin and decouples it from legacy design system and Electron, without any significant improvements or API changes yet, which will follow later.

Colors and docs will be added later in this stack.

Reviewed By: passy

Differential Revision: D27660300

fbshipit-source-id: 96abfa3b3174fa852cf04ae119c23c3d629fee74
2021-04-15 07:48:33 -07:00
Flipper Bot
b2adb8c80d Flipper Snapshot Bump: v0.85.1-SNAPSHOT
Summary: Releasing snapshot version 0.85.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D27766004

fbshipit-source-id: 3187c2984cf778160b4176e373d1d036c6ac1c1a
2021-04-14 09:49:45 -07:00
Flipper Bot
a792c146d6 Flipper Release: v0.85.0
Summary: Releasing version 0.85.0

Reviewed By: jknoxville

Differential Revision: D27766005

fbshipit-source-id: 25bdd6d0ad831e087e51529adc5e6c2b4fa43d57
2021-04-14 09:49:45 -07:00
Anton Nikolaev
5b0f7e8757 Docs on how to include fb-only parts into open-sourced plugins
Summary: Added docs on how to include fb-only parts into open-sourced plugins

Reviewed By: mweststrate

Differential Revision: D27678276

fbshipit-source-id: e0c3de8ed57a7d25f291e8e6ac15ed32812a0cbc
2021-04-09 08:57:15 -07:00
Anton Nikolaev
830e380127 Update public plugins location in docs
Summary: Updated docs after moving public plugins to "desktop/plugins/public". Additionally edited the pages related to plugins which were a bit outdated.

Reviewed By: jknoxville

Differential Revision: D27646670

fbshipit-source-id: 26499aff492db817156fecf20fa8358efc70ae8f
2021-04-09 05:22:01 -07:00
GitHub
b0815835d4 Automated: Update Podfile.lock (#2170)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/2170

Reviewed By: passy

Differential Revision: D27654278

Pulled By: nikoant

fbshipit-source-id: b5405196018d42d8e9d4d16fe3817955f46f8df1
2021-04-08 11:57:40 -07:00
Harold Martin
b0cbf39a1a Export protobuf definitions from Retrofit (#2084)
Summary:
https://github.com/facebook/flipper/pull/2080 enables storing protobuf definitions and displaying payloads in the network inspector plugin. However, describing those definitions in ProtobufJS format can be time consuming and error prone. This PR enables sending definitions from an entire Retrofit service with a single line.

## Changelog
* Adds a retrofit2-protobuf plugin

Pull Request resolved: https://github.com/facebook/flipper/pull/2084

Test Plan:
Used as a single line per service, ie:
`SendProtobufToFlipperFromRetrofit(baseUrl, PersonService::class.java)`

For more details see demo app in https://github.com/hbmartin/protobuf_java_to_protobufjs

Reviewed By: mweststrate

Differential Revision: D27507872

Pulled By: passy

fbshipit-source-id: 859d7636c9512de0abde0aa1dcb2e023851369cf
2021-04-07 13:31:23 -07:00
Flipper Bot
f28636b427 Flipper Snapshot Bump: v0.84.1-SNAPSHOT
Summary: Releasing snapshot version 0.84.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D27617438

fbshipit-source-id: 552172630e8040b9ba737c2b5740ea7cbd0e9e2c
2021-04-07 08:50:42 -07:00
Flipper Bot
ac70d35671 Flipper Release: v0.84.0
Summary: Releasing version 0.84.0

Reviewed By: nikoant

Differential Revision: D27617439

fbshipit-source-id: 8e4ca47eeddca8a8b46d051a7f70133dab04c3ac
2021-04-07 08:50:41 -07:00
Michel Weststrate
53c557f923 Move DataInspector to flipper-plugin
Summary:
This diff moves the rest of the DataInspector jungle to flipper-plugin. No actual improvements are made yet, but the code is decoupled from Electron and the legacy theming. For example by using Antd based context menus.

Note that `ManagedDataInspector` is now rebranded `DataInspector`, as that is the only variation that should (and is) used publicly.

For the interactionTracker removal, see next diff.

SearchableDataInspector will be addressed in a next diff

Reviewed By: passy

Differential Revision: D27603125

fbshipit-source-id: 188bd000260e4e4704202ce02c7fc98319f0bc22
2021-04-07 07:55:13 -07:00
Pritesh Nandgaonkar
6479c7e642 Add documentation for www certificate exchange
Summary: Adds documentation regarding www certificate exchange.

Reviewed By: jknoxville

Differential Revision: D27592932

fbshipit-source-id: 2284f77c6bf4fdd638588e2272598cb4ef370526
2021-04-06 09:09:05 -07:00
GitHub
ba6b381c01 Automated: Update Podfile.lock (#2147)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

Pull Request resolved: https://github.com/facebook/flipper/pull/2147

Reviewed By: passy

Differential Revision: D27499773

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 20012c59f51f2c02f202e9b1cc1ba18051ec90a3
2021-04-01 03:26:33 -07:00
generatedunixname89002005306973
51cf4fd2e2 Flipper Snapshot Bump: v0.83.1-SNAPSHOT
Summary: Releasing snapshot version 0.83.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D27468621

fbshipit-source-id: c9a2a6dfb2ca21f080d4e6e41fca5dc7b28aab4c
2021-03-31 10:20:17 -07:00
generatedunixname89002005306973
4aeb1e7293 Flipper Release: v0.83.0
Summary: Releasing version 0.83.0

Reviewed By: mweststrate

Differential Revision: D27468622

fbshipit-source-id: d245bb418d546e19ec09dfe11ec53964ceec85f1
2021-03-31 10:20:17 -07:00
Mathis Gardon
f25d189aa5 Support custom metro ports (#2050)
Summary:
Based on issue https://github.com/facebook/flipper/issues/1509 I needed a custom port for the metro server to pass to flipper.

## Changelog

introduce `METRO_SERVER_PORT` env variable to be able to customize default 8081 port on startup.

Pull Request resolved: https://github.com/facebook/flipper/pull/2050

Test Plan:
Tested with a locally built linux desktop app, this seems to work OK pour hermes debugging & RN logging.

React DevTools don't seem to find the running app, maybe there's a mapping to handle there too ?

Reviewed By: jknoxville

Differential Revision: D27339006

Pulled By: passy

fbshipit-source-id: b1700c4fe73f14bf4617e23583b2954012e0a5aa
2021-03-31 03:30:14 -07:00
generatedunixname89002005306973
a496e8323d Flipper Snapshot Bump: v0.82.3-SNAPSHOT
Summary: Releasing snapshot version 0.82.3-SNAPSHOT

Reviewed By: passy

Differential Revision: D27429066

fbshipit-source-id: 9e8a2284a93e1dc28809b3d1955c6947b23237b4
2021-03-30 06:01:32 -07:00
generatedunixname89002005306973
44c0dcad1e Flipper Release: v0.82.2
Summary: Releasing version 0.82.2

Reviewed By: passy

Differential Revision: D27429067

fbshipit-source-id: a4d2971cd9849d06ee7971e51acc31977b518e64
2021-03-30 06:01:32 -07:00
Steven Conaway
26aef92dc5 Add brew instructions for mac (#2108)
Summary:
Thought I'd add this to the getting started, since so many people end up downloading the release directly.

## Changelog

Added `brew` instructions for mac

Pull Request resolved: https://github.com/facebook/flipper/pull/2108

Test Plan: Just docs, so no testing needed

Reviewed By: mweststrate

Differential Revision: D27398664

Pulled By: passy

fbshipit-source-id: be9cc7007e7c5dc717aad60ec0591d4ca0d100cb
2021-03-29 10:11:51 -07:00
Michel Weststrate
d13d8edf23 Documented how to connect to physical iOS device
Summary: Updated outdated docs are reported in https://github.com/facebook/flipper/issues/1250

Reviewed By: priteshrnandgaonkar

Differential Revision: D27361276

fbshipit-source-id: 87bede49501d6ae7d2a9612b769e1e1c1d7803b1
2021-03-29 07:00:47 -07:00
Bartosz Kaszubowski
40e6cdebb1 improve docs code blocks highlighting (#2049)
Summary:
This PR adds missing Objective-C entry to the Docusaurus config, fixes Objective-C code blocks label and adds or replaces several code block labels to improve the currently highlighted blocks.

Prism in Docusaurus by default also includes syntax highlight for `jsx` and `tsx`, which improves the nodes and props highlight, so I have used those syntaxes in few places too.

I have also fixed one typo that I have spotted and my IDE made a cleanup of whitespaces in edited files.

## Changelog

* [website] improve docs code blocks highlighting

Pull Request resolved: https://github.com/facebook/flipper/pull/2049

Test Plan:
The changes have been tested running Flipper website on `localhost`.

## Preview

<img width="650" alt="Screenshot 2021-03-12 150934" src="https://user-images.githubusercontent.com/719641/110951135-fff20d00-8344-11eb-96db-1bdc82c8d5ea.png">

<img width="649" alt="Screenshot 2021-03-12 151022" src="https://user-images.githubusercontent.com/719641/110951268-2ca62480-8345-11eb-9d3b-1a48f1267776.png">

Reviewed By: priteshrnandgaonkar

Differential Revision: D27336599

Pulled By: passy

fbshipit-source-id: c2dfb3d8cad4675da0f5e1270cada1e56a0175c0
2021-03-29 02:46:11 -07:00
generatedunixname89002005306973
f12fd3314e Flipper Snapshot Bump: v0.82.2-SNAPSHOT
Summary: Releasing snapshot version 0.82.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D27360491

fbshipit-source-id: 189d3c3f985f463b4c9f084acc8c0ea314e7d39e
2021-03-26 07:16:55 -07:00
generatedunixname89002005306973
979c49b18d Flipper Release: v0.82.1
Summary: Releasing version 0.82.1

Reviewed By: passy

Differential Revision: D27360493

fbshipit-source-id: 683605461956d39fdc20560d3a045fd42325e5fb
2021-03-26 07:16:55 -07:00
generatedunixname89002005306973
49d763ad5a Flipper Snapshot Bump: v0.82.1-SNAPSHOT
Summary: Releasing snapshot version 0.82.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D27328584

fbshipit-source-id: ec58247c21e568496d4fb7f79ebb3198081003cd
2021-03-25 09:36:13 -07:00