Commit Graph

674 Commits

Author SHA1 Message Date
Michel Weststrate
8d7caa9dd4 Introduce Dialog.alert
Summary: Introduce `Dialog.alert` to show users a FYI message, and be able to wait for it to be handled, as utility around several `Modal` utilities.

Reviewed By: jknoxville

Differential Revision: D29875484

fbshipit-source-id: 5d2ea83e486631ac18a81800b467f97dfaac6d34
2021-08-10 13:24:23 -07:00
Michel Weststrate
b757bff9f6 Document the new deeplink format [2/n]
Summary:
Added docs on how to use deeplink.

Note that not all features are implemented yet.

Reviewed By: fabiomassimo

Differential Revision: D29845044

fbshipit-source-id: 835fba8ce97c2106d160f347675e11d1ed749fba
2021-08-10 13:24:23 -07:00
facebook-flipper-bot
1a7e3b9b00 Automated: Update Podfile.lock (#2664)
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/2664

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

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

Reviewed By: passy

Differential Revision: D30156476

Pulled By: nikoant

fbshipit-source-id: 04d3ea60a59fc2fe0507319bd6261376388ec31a
2021-08-06 04:02:35 -07:00
Flipper Bot
57b340bf79 Flipper Snapshot Bump: v0.102.1-SNAPSHOT
Summary: Releasing snapshot version 0.102.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D30131830

fbshipit-source-id: 543c9fdac0f166b008f8f626f61d4c593bfc4aba
2021-08-05 09:43:40 -07:00
Flipper Bot
7b577f77c8 Flipper Release: v0.102.0
Summary: Releasing version 0.102.0

Reviewed By: nikoant

Differential Revision: D30131831

fbshipit-source-id: 05ffa592f0ae9e123dffed6a3c8c5c0e22daacf4
2021-08-05 09:43:40 -07:00
facebook-flipper-bot
798239507a Automated: Update Podfile.lock (#2662)
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/2662

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

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

Reviewed By: nikoant

Differential Revision: D30131497

Pulled By: passy

fbshipit-source-id: f321dc0187da2660f585d5f3d47531d7aa19d818
2021-08-05 07:11:13 -07:00
Flipper Bot
ab2988dd67 Flipper Snapshot Bump: v0.101.1-SNAPSHOT
Summary: Releasing snapshot version 0.101.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D30098057

fbshipit-source-id: a01d34ef7926dac6f07fc0b00467135c4b0ecf55
2021-08-04 07:37:17 -07:00
Flipper Bot
5dbb0b7a24 Flipper Release: v0.101.0
Summary: Releasing version 0.101.0

Reviewed By: lblasa

Differential Revision: D30098058

fbshipit-source-id: f6e6ed1942a30e492e66ed42aec6dc35d1cddd24
2021-08-04 07:37:17 -07:00
Pascal Hartig
4f3ee3ea57 Bump gradle-maven-publish-plugin from 0.16.0 to 0.17.0
Summary:
From the changelog:

> Removed the deprecated uploadArchives and installArchives tasks. Use publish and publishToMavenLocal instead.

Made the necessary changes to docs and scripts.

Reviewed By: nikoant

Differential Revision: D29752895

fbshipit-source-id: 6e96c7ea9b26be2acb40b9089cb361837ab10a1b
2021-07-29 09:35:04 -07:00
Ananya Arun
cfc9e07fe2 Fix broken link
Summary: Fixed a broken link in the troubleshooting page of flipper.

Reviewed By: passy

Differential Revision: D29986130

fbshipit-source-id: 2e771a511afa23e4c1e11aa3817c854eff56bcab
2021-07-29 04:56:41 -07:00
facebook-flipper-bot
c2812a92ee Automated: Update Podfile.lock (#2637)
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/2637

Reviewed By: passy

Differential Revision: D29962132

Pulled By: cekkaewnumchai

fbshipit-source-id: 98cb91e790a80eac9ca530856f909e0a744e40d0
2021-07-28 09:02:41 -07:00
Flipper Bot
06d45247b4 Flipper Snapshot Bump: v0.100.1-SNAPSHOT
Summary: Releasing snapshot version 0.100.1-SNAPSHOT

Reviewed By: cekkaewnumchai

Differential Revision: D29958233

fbshipit-source-id: 8c9038110cb3574ecfe0fd90b7a16c3912018869
2021-07-28 04:05:49 -07:00
Flipper Bot
dd880b3ba9 Flipper Release: v0.100.0
Summary: Releasing version 0.100.0

Reviewed By: cekkaewnumchai

Differential Revision: D29958236

fbshipit-source-id: d1dabc4537b9691196d61d9c1a200cf6c8a86725
2021-07-28 04:05:49 -07:00
facebook-flipper-bot
64c5fd2448 Automated: Update Podfile.lock (#2613)
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/2613

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

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

Reviewed By: muraziz

Differential Revision: D29857462

Pulled By: nikoant

fbshipit-source-id: f498f00b6a8fb0c631c27088509be1b3ffdbe3f3
2021-07-23 04:06:24 -07:00
Flipper Bot
afe7f8e1fb Flipper Snapshot Bump: v0.99.1-SNAPSHOT
Summary: Releasing snapshot version 0.99.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D29815218

fbshipit-source-id: 5100bbbb9c19fa49ab4d1a0b45d510acdf2d0a4a
2021-07-22 06:08:57 -07:00
Flipper Bot
c0b0a9f04e Flipper Release: v0.99.0
Summary: Releasing version 0.99.0

Reviewed By: nikoant

Differential Revision: D29815217

fbshipit-source-id: c0597dedcd15b04c7091bf22807e5b8dbca90f97
2021-07-22 06:08:56 -07:00
Michel Weststrate
62674da74e Introduce Spinner and Dialog.loading
Summary: Per title

Reviewed By: nikoant

Differential Revision: D29790505

fbshipit-source-id: 7c995be59418ffd4c337eb8d1905bd2f2466e5cd
2021-07-22 04:17:45 -07:00
Michel Weststrate
f74029699f Introduce Dialog abstraction
Summary: Introduce convenience abstractions to make it easier to manage dialogs imperatively, by promisyfying common dialog abstractions.

Reviewed By: jknoxville, nikoant

Differential Revision: D29790462

fbshipit-source-id: c092c15cf569ec353b9c1042f25cd67e6c76db01
2021-07-22 04:17:45 -07:00
facebook-flipper-bot
4953444ceb Automated: Update Podfile.lock (#2599)
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/2599

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

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

Reviewed By: mweststrate

Differential Revision: D29752884

Pulled By: passy

fbshipit-source-id: ca8456fe519e093ca3a7c428d3c0b20aa39c19c7
2021-07-19 07:30:47 -07:00
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