Commit Graph

655 Commits

Author SHA1 Message Date
Michel Weststrate
d23ccfcd44 Restore copy on text
Summary:
Some folks were missing the copy as text ManagedTable used to have, so introduced both the options to either copy as text (visible columns or custom copy handler) or as JSON

Changelog: It is now possible to both copy as text or as JSON from data tables

Reviewed By: jknoxville

Differential Revision: D29712096

fbshipit-source-id: 27bd2e869a247bd0896ce2774c08651123fd531d
2021-07-16 03:43:36 -07:00
Pascal Hartig
b8e67b9e04 Edit troubleshooting.mdx using inpage editor
Summary:
Just wanted to give this a try. Fixed Flipper capitalization inconsistencies.

*This diff has been automatically generated by the inpage editor*

Differential Revision: D29711275

fbshipit-source-id: 8302220b87c504b4f1ccc422aa05c1c559809cbb
2021-07-15 10:12:35 -07:00
Michel Weststrate
2b6cb0ac3a Enable configuring OnDemand for testing
Summary: While working on D29694696, noticed it is tricky to test against an OnDemand, as the URL format is pretty specific and authentication flow uses an unrelated URL base constant. Introduced `FB_ONDEMAND` env var to make testing easier. If this is a common scenario we could consider making it a setting in the long run.

Reviewed By: timur-valiev

Differential Revision: D29694707

fbshipit-source-id: 747ceb80c95c3bdf0276497c41c9ff5ed9a198f2
2021-07-15 01:54:20 -07:00
Michel Weststrate
5dbd3bd414 Make getFlipperLib generally available, and use it to decouple opening links from Electron
Summary:
This stack reduces our direct dependency on Electron, for example by exposing our own API to open links.

Also exposing `getFlipperLib` as API from `flipper-plugin`, so that these utility methods are available outside plugin contexts as well.

Reviewed By: timur-valiev

Differential Revision: D29661689

fbshipit-source-id: 0c0523326eeb0d9d8fbe3e03c4609327bb53596b
2021-07-15 01:54:20 -07:00
Flipper Bot
2b236c6114 Flipper Snapshot Bump: v0.98.1-SNAPSHOT
Summary: Releasing snapshot version 0.98.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D29693625

fbshipit-source-id: 9f77ae5024a5d2c0779edb59595ea669b09e861f
2021-07-14 08:23:53 -07:00
Flipper Bot
5da8fca2e4 Flipper Release: v0.98.0
Summary: Releasing version 0.98.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D29693626

fbshipit-source-id: 31e5bc8d48c2c3e208022e57e6ce564e79d7329e
2021-07-14 08:23:53 -07:00
Flipper Bot
e346c79ffd Flipper Snapshot Bump: v0.97.1-SNAPSHOT
Summary: Releasing snapshot version 0.97.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D29592757

fbshipit-source-id: 7c88474c8be5b0776951d01b54212e5e2d302fd7
2021-07-09 05:23:02 -07:00
Flipper Bot
1b36e33a25 Flipper Release: v0.97.0 (#2579)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2579

Releasing version 0.97.0

Reviewed By: jknoxville

Differential Revision: D29592758

fbshipit-source-id: 28ae9682c041afc29ee7b524eaa67167b9711baa
2021-07-09 05:23:01 -07:00
Flipper Bot
c3a9217732 Flipper Snapshot Bump: v0.96.2-SNAPSHOT
Summary: Releasing snapshot version 0.96.2-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D29517058

fbshipit-source-id: cae90ea8e9da4a794d98cb7b932594b2002a768b
2021-07-01 07:45:44 -07:00
Flipper Bot
1e8db937c1 Flipper Release: v0.96.1
Summary: Releasing version 0.96.1

Reviewed By: nikoant

Differential Revision: D29517059

fbshipit-source-id: a484862db5280897a17be415b36a9e7900de6737
2021-07-01 07:45:44 -07:00
Michel Weststrate
25373a3089 Introduce localStorage support to createState
Summary:
Per title.

Feature will be used in several plugins in next diffs.

Differential Revision: D29514456

fbshipit-source-id: c12427c2a7c53fa01cd1c7f429be8611be55496d
2021-07-01 07:20:32 -07:00
facebook-flipper-bot
78df309d16 Automated: Update Podfile.lock (#2544)
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/2544

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

|[Site Preview: flipper](https://our.intern.facebook.com/intern/staticdocs/eph/D29499361/V2/flipper/)

Reviewed By: priteshrnandgaonkar

Differential Revision: D29499361

Pulled By: nikoant

fbshipit-source-id: 8052bdfd86c55cfe890849ba31a6f7020b45f298
2021-07-01 05:34:33 -07:00
Flipper Bot
0593a86fc0 Flipper Snapshot Bump: v0.96.1-SNAPSHOT
Summary: Releasing snapshot version 0.96.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D29487011

fbshipit-source-id: cb98a0b3663cc8ecd464ec8894071e7e57c11210
2021-06-30 09:08:28 -07:00
Flipper Bot
f8996a35cd Flipper Release: v0.96.0
Summary: Releasing version 0.96.0

Reviewed By: nikoant

Differential Revision: D29487010

fbshipit-source-id: 37445bf8d448f2a71a16fbf0dbf37a5c6737a602
2021-06-30 09:08:28 -07:00
Anton Nikolaev
039d3a4a08 Move plugin docs to plugin folders
Summary: Moved plugin documentation and related assets to plugin folders, fixed links and configured redirects where required. Now these docs are used for both showing docs in Flipper and generating Flipper docs website.

Reviewed By: passy

Differential Revision: D29465567

fbshipit-source-id: 3ec4240b215b0d5baea5154f64266a9ba7ead3a5
2021-06-29 17:40:38 -07:00
Anton Nikolaev
e4fb2907fd Auto-generate plugin docs
Summary:
This diff changes the way on how plugin documentation is produced. Instead of keeping plugin documentation together with other docs, we will now keep it together with plugin code. There are multiple advantages of such solution:
1. We are generating docs for every plugin in a standartised way so all of them looks similar. We can also use plugin metadata for generation as well (e.g. take title, icon, oncall name etc from package.json).
2. Standartised plugin docs make it possible to build docs both for websites (public and internal) and for embedding into Flipper.
3. It will hopefully incentivise authors to write docs as they will be a part of plugin "package".
4. We can scaffold documentation template using scarf to further incentivise filling it.

Reviewed By: jknoxville

Differential Revision: D29378053

fbshipit-source-id: 66ea48dc9ba225fabfb256ae6a10f8c81eef6f5f
2021-06-29 13:02:05 -07:00
Michel Weststrate
279f3c41b7 Introduce shallow serialization
Summary:
Changelog: [Flipper] Improve serialisation mechanism format & speed

The default serialisation mechanism used by Flipper to serialise plugin states is very flexible, taking care of maps, sets, dates etc. However, it is also really slow, leading to issues like in the related tasks, and work arounds like D17402443 (98bc01618f) to skip the whole process for plugins.

This diff changes the serialisation mechanism to have a better trade off between speed and convenience: For now we will only apply the smart serialisation for objects living at the _root_ of the serialised object, but it won't be applied recursively.

This sounds like a dangerous change, but works well in practice:
* I went through all `persistedState` and `createState` definition (the types), and the idea that complex types like Map and Set only live at the root of the persisted state holds up nicely. That makes sense as well since plugins typically store literally the same data as that they have received over the wire, except that they put it in some maps, sets etc.
* I introduced `assertSerializable` that only runs in dev/test, which will check (recursively, but without all the cloning) to see if a tree is indeed serialisable.
* The fact that by swapping this mechanism rarely existing unit test for exportData needed changes proves that the assumption that only roots are relevant generally upholds (or that plugin authors don't write enough tests ;-)).
* I verified that popular plugins still import / export correctly (actually *more* plugins are exportable now than before, thanks to sandy wrapper introduced earlier)

Reviewed By: jknoxville

Differential Revision: D29327499

fbshipit-source-id: 0ff17d9c5eb68fccfc2937b634cfa8f4f924247d
2021-06-29 08:04:22 -07:00
priteshrnandgaonkar
2f47928524 Automated: Update Podfile.lock (#2535)
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/2535

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

|[Site Preview: flipper](https://our.intern.facebook.com/intern/staticdocs/eph/D29455139/V2/flipper/)

Reviewed By: jknoxville

Differential Revision: D29455139

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 10eb515430f4ce16e7ab600e12ef68bdbb7614fb
2021-06-29 07:11:40 -07:00
Pritesh Nandgaonkar
4464fe6bd3 Bump flipper pod versions
Summary: Bump flipper version and podfile locks

Reviewed By: passy

Differential Revision: D29393051

fbshipit-source-id: f40fd6e8d8bfe835479bb0e72c53ce82988bd26b
2021-06-26 06:39:36 -07:00
Flipper Bot
db787d5d42 Flipper Snapshot Bump: v0.95.1-SNAPSHOT
Summary: Releasing snapshot version 0.95.1-SNAPSHOT

Reviewed By: cekkaewnumchai

Differential Revision: D29330363

fbshipit-source-id: a090a2f7f7de48f3a5bb7472a4261540d5b23f96
2021-06-23 08:19:22 -07:00
Flipper Bot
01db303a6e Flipper Release: v0.95.0
Summary: Releasing version 0.95.0

Reviewed By: cekkaewnumchai

Differential Revision: D29330364

fbshipit-source-id: 19226a166731841fcba91ce6a6da09204c38ced9
2021-06-23 08:19:22 -07:00
facebook-flipper-bot
fba61e5681 Automated: Update Podfile.lock (#2475)
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/2475

Reviewed By: passy

Differential Revision: D29193502

Pulled By: mweststrate

fbshipit-source-id: 2da351bf1408208e3cdf8c65b4dfbafb5d0b1179
2021-06-17 04:16:35 -07:00
Flipper Bot
073f0984c0 Flipper Snapshot Bump: v0.94.2-SNAPSHOT
Summary: Releasing snapshot version 0.94.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D29166260

fbshipit-source-id: 41eeed752354583d2bf3cc55b985bafc5a55a611
2021-06-16 11:04:59 -07:00
Flipper Bot
f6184fd8aa Flipper Release: v0.94.1
Summary:
Releasing version 0.94.1

This is OSS-only.

Reviewed By: passy

Differential Revision: D29166261

fbshipit-source-id: d27bd79c14296519e7c90f138131458b2a5e77e2
2021-06-16 11:04:59 -07:00
Flipper Bot
ded060291f Flipper Snapshot Bump: v0.94.1-SNAPSHOT
Summary: Releasing snapshot version 0.94.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D29159752

fbshipit-source-id: 9712c9c23518671983dbdf61639ee6d3a579194b
2021-06-16 06:14:50 -07:00
Flipper Bot
48883c8f87 Flipper Release: v0.94.0
Summary: Releasing version 0.94.0

Reviewed By: mweststrate

Differential Revision: D29159753

fbshipit-source-id: 45f62b93e037811ecc7223a6a35273cb8f39663d
2021-06-16 06:14:50 -07:00
Michel Weststrate
f7732ed4fd Insert a proper flipper-plugin version
Summary:
`flipper-pkg init` would always introduce `flipper-plugin` peer with version `latest`. Since that can never be checked against the current flipper version, it always generated a warning. Updated the init process to take the version the plugin was generated with as base version instead.

Note that in the test the version will always display as 0.0.0, will double check after release that the proper version will show up when running from npx, but don't see a reason why not (famous last words)

Reviewed By: nikoant, priteshrnandgaonkar

Differential Revision: D28992531

fbshipit-source-id: c32aad1650f575f790c2e04d089104b7a616d26f
2021-06-10 04:45:18 -07:00
facebook-flipper-bot
02d80526e3 Automated: Update Podfile.lock (#2435)
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/2435

Reviewed By: fabiomassimo

Differential Revision: D29000395

Pulled By: jknoxville

fbshipit-source-id: 6bec3497db6cb162852bf7f6f8467d22f3f5b7b6
2021-06-09 12:10:18 -07:00
Flipper Bot
276a93d8f4 Flipper Snapshot Bump: v0.93.1-SNAPSHOT
Summary: Releasing snapshot version 0.93.1-SNAPSHOT

Reviewed By: fabiomassimo

Differential Revision: D28988466

fbshipit-source-id: 2f9b4e91fe2de3ea6c0710cd2f15561739c543cf
2021-06-09 07:47:54 -07:00
Flipper Bot
5cc83b35a4 Flipper Release: v0.93.0
Summary: Releasing version 0.93.0

Reviewed By: fabiomassimo

Differential Revision: D28988465

fbshipit-source-id: ad57ba98a0400affa6c47a097357fc57dcba48fb
2021-06-09 07:47:54 -07:00
Michel Weststrate
fac991b538 Document createTablePlugin
Summary: Per title

Reviewed By: priteshrnandgaonkar

Differential Revision: D28991859

fbshipit-source-id: 1af38d8922157b1613e43d987871e664d8e6f5ba
2021-06-09 07:26:57 -07:00
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