Commit Graph

624 Commits

Author SHA1 Message Date
Michel Weststrate
d2095d5937 Update to pure Sandy and update custom docs
Summary: Per title

Reviewed By: priteshrnandgaonkar

Differential Revision: D28991625

fbshipit-source-id: cab9cf59d1d053e2f8a47c588cb05abc44a527cc
2021-06-09 07:26:57 -07:00
Michel Weststrate
a0c872dd38 Update setup and createTable tutorial to 100% Sandy
Summary:
The current desktop plugin tutorial was outdated as it has several steps that are now automated, and still referred to old APIs. This has been updated now.

Additionally left the intermediate code of the tutorial in the plugin, but splitting `index.tsx` into `index_table.tsx` and `index_custom.tsx` (which will be updated in the next diff)

Clarified the tutorial page labels a little bit to show that 3 pages are covering the Desktop plugin development process.

Changelog: Updated the Desktop plugin tutorial

Reviewed By: jknoxville

Differential Revision: D28990029

fbshipit-source-id: a06a7a774ceca3daf10f8e8fbd4e03191dbfd1cc
2021-06-09 07:26:57 -07:00
Michel Weststrate
0ba08150f6 Document example plugin to demo bidi communcation
Summary: per title. As follow up for previous diff

Reviewed By: fabiomassimo

Differential Revision: D28965865

fbshipit-source-id: 440c8143ac44011d895b3f194cabe7c69c51af72
2021-06-09 07:26:57 -07:00
Pritesh Nandgaonkar
9210567685 Update CK to 0.31 everywhere
Summary: Thisi diff updates the CK version to > 0.31 everywhere. It also removes direct CK dependency on SampleSwift, as it doesn't use CK directly.

Reviewed By: fabiomassimo

Differential Revision: D28898898

fbshipit-source-id: 77d4cece79a0a4a51e7ac27b3ec68283740cd0b2
2021-06-04 07:35:07 -07:00
priteshrnandgaonkar
87a5c5dc1b Automated: Update Podfile.lock (#2409)
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/2409

Reviewed By: passy

Differential Revision: D28896423

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 2758592dad6c0597a6bc3a05e8173f7f00f5593b
2021-06-04 04:12:45 -07:00
Harold Martin
62967314c1 Update Protobuf support (#2381)
Summary:
**Update protobuf library with new support for `enum` and `oneof` types**

## Changelog

- Update plugin code for library API changes and other cleanup
- Add instructions to readme

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

Test Plan: see demo app at https://github.com/hbmartin/protobuf_java_to_protobufjs

Reviewed By: priteshrnandgaonkar

Differential Revision: D28831035

Pulled By: passy

fbshipit-source-id: 46e196293330b615394606bd3486ea47ad6a0630
2021-06-02 12:04:24 -07:00
Flipper Bot
178d76bc84 Flipper Snapshot Bump: v0.92.1-SNAPSHOT
Summary: Releasing snapshot version 0.92.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D28829241

fbshipit-source-id: ddd436c49cee2377c220d40b11268a3318aec004
2021-06-02 08:29:18 -07:00
Flipper Bot
d45046f111 Flipper Release: v0.92.0
Summary: Releasing version 0.92.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D28829240

fbshipit-source-id: 6e90f3e50dbcb152109cbc5fa5ac3ff9d3c23a08
2021-06-02 08:29:18 -07:00
acton393
33cd114056 update ios-native.mdx (#2348)
Summary:
as 0.74.0 or higher version  deploy iOS  is 10.0 or higher version

## Changelog

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

Reviewed By: nikoant

Differential Revision: D28831107

Pulled By: passy

fbshipit-source-id: 37763431f4ad39e3039358e7a0e1c031ac753ea7
2021-06-02 06:41:10 -07:00
Fazekas Dániel
87f739607e docs: update network-plugin.mdx android (#2368)
Summary:
Flipper network plugin does not work without the above added lines.

Without the added lines, the network plugin simply does not work on Android with Flipper version 0.91.0. I found this solution in your example react-native project. This should be stated in the docs.

## Changelog

This should not be stated in changelog.

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

Test Plan: There is no code.

Reviewed By: passy

Differential Revision: D28714451

Pulled By: nikoant

fbshipit-source-id: 81583fcf590e1c603d67bcb649067393455549cc
2021-05-27 03:15:32 -07:00
Flipper Bot
313baafded Flipper Snapshot Bump: v0.91.3-SNAPSHOT
Summary: Releasing snapshot version 0.91.3-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D28638215

fbshipit-source-id: a6c05fd37bcce58ad139684247e3bd65713a81e2
2021-05-24 06:52:10 -07:00
Flipper Bot
0305947ca2 Flipper Release: v0.91.2
Summary: Releasing version 0.91.2

Reviewed By: nikoant

Differential Revision: D28638216

fbshipit-source-id: 282edcbfb954e65f4a8559445856b01929578619
2021-05-24 06:52:10 -07:00
Flipper Bot
066ddbcb41 Flipper Snapshot Bump: v0.91.2-SNAPSHOT
Summary: Releasing snapshot version 0.91.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D28546236

fbshipit-source-id: 537518100535affac63e93b149f4116e3141dc5d
2021-05-19 13:16:05 -07:00
Flipper Bot
e277ca9b05 Flipper Release: v0.91.1
Summary: Releasing version 0.91.1

Reviewed By: passy

Differential Revision: D28546238

fbshipit-source-id: 9dee4ccbbe647e99a2f590a48a7671af6bad5b73
2021-05-19 13:16:05 -07:00
Pritesh Nandgaonkar
15454ceec7 Update Boost iOSX dep and make it work for arm and i386 for sims (#2341)
Summary:
This diff updates and adds the boost ios podspec in flipper repo. This new boost dep works for Arm and i386 archs for simulator too.

This diff also updates our GH Action to remove i386 from excluded archs. Still arm64 is kept as non M1 mac machines do not have arm swift symbols for arm simulator. And since all our CI is on non M1, it is required.

It also takes care of https://github.com/facebook/flipper/issues/2268
## Changelog

- Update the boost dep
- Update the GH action

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

Test Plan: CI

Reviewed By: mweststrate

Differential Revision: D28537004

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 474ccec674d0edf5fa7b792b15a326e0f139d977
2021-05-19 11:15:13 -07:00
Flipper Bot
f0dc199d38 Flipper Snapshot Bump: v0.91.1-SNAPSHOT
Summary: Releasing snapshot version 0.91.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D28536897

fbshipit-source-id: a3a2906439b9080188c5991610dbbb9db7a7e314
2021-05-19 06:55:43 -07:00
Flipper Bot
610d250129 Flipper Release: v0.91.0
Summary: Releasing version 0.91.0

Reviewed By: nikoant

Differential Revision: D28536898

fbshipit-source-id: 343d3eab79449713ad7ce75887ab28564e7167b8
2021-05-19 06:55:43 -07:00
Pritesh Nandgaonkar
d8539102d9 Update documentation for flipper iOS getting started
Summary: This diff updates the installation instruction for iOS with a warning.

Reviewed By: passy

Differential Revision: D28475964

fbshipit-source-id: 02362b58abb1fb8360cde0a9848461a18b93eb47
2021-05-17 15:16:19 -07:00
Flipper Bot
3e55ccf42f Flipper Snapshot Bump: v0.90.3-SNAPSHOT
Summary: Releasing snapshot version 0.90.3-SNAPSHOT

Reviewed By: passy

Differential Revision: D28447386

fbshipit-source-id: 1ae0dc5ebb2cde54f53eff4094569a19f7c78bc7
2021-05-14 13:41:51 -07:00
Flipper Bot
877de95ca9 Flipper Release: v0.90.2
Summary: Releasing version 0.90.2

Reviewed By: passy

Differential Revision: D28447388

fbshipit-source-id: 7c7e943d3199c592f09eec617571a4cdfecbb4b5
2021-05-14 13:41:51 -07:00
Flipper Bot
580f4c7048 Flipper Snapshot Bump: v0.90.2-SNAPSHOT
Summary: Releasing snapshot version 0.90.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D28441601

fbshipit-source-id: 6494c88cb782a8c6e93d7b6262a67876efbe7891
2021-05-14 07:34:52 -07:00
Flipper Bot
ba3e4500e8 Flipper Release: v0.90.1
Summary: Releasing version 0.90.1

Reviewed By: passy

Differential Revision: D28441602

fbshipit-source-id: c4d1798e493bcd43617b896d1faba9e943b35635
2021-05-14 07:34:52 -07:00
Flipper Bot
24342dd6f4 Flipper Snapshot Bump: v0.90.1-SNAPSHOT
Summary: Releasing snapshot version 0.90.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D28424373

fbshipit-source-id: a3abf68c15668be4b12f9519ba08714be3539032
2021-05-13 15:33:42 -07:00
Flipper Bot
0a3b817429 Flipper Release: v0.90.0
Summary: Releasing version 0.90.0

Reviewed By: mweststrate

Differential Revision: D28424374

fbshipit-source-id: 1ce8cde0fff12cdb6ff973d6824e065d6b735079
2021-05-13 15:33:42 -07:00
Flipper Bot
5d93a64ef6 Flipper Snapshot Bump: v0.89.1-SNAPSHOT
Summary: Releasing snapshot version 0.89.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D28408534

fbshipit-source-id: 90d68c25ca8d76f72f4258b08ba8a7d4c54b4400
2021-05-13 02:16:10 -07:00
Flipper Bot
b8177afbc7 Flipper Release: v0.89.0
Summary: Releasing version 0.89.0

Reviewed By: mweststrate

Differential Revision: D28408535

fbshipit-source-id: 602c6c6f416393e294fdaa10b24071d97f3ac0c2
2021-05-13 02:16:10 -07:00
Michel Weststrate
ab17bbd555 Allow using global devTools
Summary:
Currently Flipper embeds the React devTools, and as a result the version of the React devTools is strictly coupled to the Flipper version. This is troublesome when connecting to (slightly) older React Native versions, that use a different version of the tools. That results in errors like this one:

{F615263497}

This diff introduces a feature to use globally installed devTools instead of the embedded ones, giving users the flexibility to pick their own version.

{F615263580}

This addresses

https://fb.workplace.com/groups/flippersupport/permalink/1125669971246993/
https://github.com/facebook/flipper/issues/2250
https://github.com/facebook/flipper/issues/2224

Changelog: [React DevTools] It is now possible to switch between the embedded and globally installed version of the React DevTools. This will enable the React DevTools to connect to older RN versions. Fixes #2250, #2224

Reviewed By: passy

Differential Revision: D28382586

fbshipit-source-id: a5386a5043933acda5aab2db74078bf7ceb105ca
2021-05-12 14:21:53 -07:00
Michel Weststrate
9e978cad76 Bump react-devtools-core upward for compatibility
Reviewed By: passy

Differential Revision: D27850934

fbshipit-source-id: 0b03b110accce7aa522f3e18edba8c316f9d00d8
2021-05-07 09:04:03 -07:00
priteshrnandgaonkar
ee9995c0f1 Automated: Update Podfile.lock (#2274)
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/2274

Reviewed By: mweststrate

Differential Revision: D28257051

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 24968618eb036e55cd704790d37c21fa9496a59b
2021-05-06 14:21:09 -07:00
Flipper Bot
0468b65946 Flipper Snapshot Bump: v0.88.1-SNAPSHOT
Summary: Releasing snapshot version 0.88.1-SNAPSHOT

Reviewed By: cekkaewnumchai

Differential Revision: D28253699

fbshipit-source-id: 540963c423ce4f641a709d82bc849f0972d19283
2021-05-06 05:03:03 -07:00
Flipper Bot
52fbd9a8a0 Flipper Release: v0.88.0
Summary: Releasing version 0.88.0

Reviewed By: cekkaewnumchai

Differential Revision: D28253701

fbshipit-source-id: 968406eae58e93aee1d605d736bff77c703c31fc
2021-05-06 05:03:03 -07:00
Michel Weststrate
23402dfff6 Convert network plugin to Sandy
Summary:
converted the network plugin to use DataSource / DataTable. Restructured the storage to contain a single flat normalised object that will be much more efficient for rendering / filtering (as columns currently don't support nested keys yet, and lazy columns are a lot less flexible)

lint errors and further `flipper` package usages will be cleaned up in the next diff to make sure this diff doesn't become too large.

The rest of the plugin is converted in the next diff

Reviewed By: nikoant

Differential Revision: D27938581

fbshipit-source-id: 2e0e2ba75ef13d88304c6566d4519b121daa215b
2021-05-06 04:27:59 -07:00
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