Commit Graph

551 Commits

Author SHA1 Message Date
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
generatedunixname89002005306973
9bccaf3951 Flipper Release: v0.82.0
Summary: Releasing version 0.82.0

Reviewed By: mweststrate

Differential Revision: D27328585

fbshipit-source-id: 720bc154078611295664a34a567299a94a790711
2021-03-25 09:36:13 -07:00
Michel Weststrate
ba8232f30d Move DetailSidebar to flipper-plugin
Summary: This moves `<DetailSidebar>` component to `flipper-plugin` and documents it. No semantic changes.

Reviewed By: passy

Differential Revision: D27234575

fbshipit-source-id: 74640602d718f84ad999f5dac0420089796ed7fb
2021-03-23 12:56:17 -07:00
Ranjith
0bf786544a Update leak-canary-2-plugin.mdx (#2085)
Summary:
Update the LeakCanary 2 plugin version in LeakCanary 2 plugin doc

While adding the version as in the doc, the import statements didn't work. Upon checking the maven repo, I found out that the latest version is `0.81.0`. Updating to the latest version helps

## Changelog
Updated LeakCanary 2  plugin docs to include the latest plugin version

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

Test Plan: Not necessary

Reviewed By: mweststrate

Differential Revision: D27265598

Pulled By: passy

fbshipit-source-id: 2f82689c1f075c2f9cff8bae2831c9780a3db697
2021-03-23 11:01:41 -07:00
generatedunixname89002005306973
779e89db1d Flipper Snapshot Bump: v0.81.1-SNAPSHOT
Summary: Releasing snapshot version 0.81.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D27114448

fbshipit-source-id: badb996da2603a1b1ecaaa87598b8a997e000aa3
2021-03-17 04:48:28 -07:00
generatedunixname89002005306973
0293a2a5fb Flipper Release: v0.81.0
Summary: Releasing version 0.81.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D27114449

fbshipit-source-id: bcf89ccb61aedc7413d4031da42b10971e3808fa
2021-03-17 04:48:28 -07:00
Michel Weststrate
7093a932f8 expose client.writeTextToClipboard
Summary: per title

Reviewed By: priteshrnandgaonkar

Differential Revision: D27044508

fbshipit-source-id: 8af99f66ec8203b76ccb3d880e1a184193a389c7
2021-03-16 15:03:48 -07:00
Michel Weststrate
4e2383cdb0 Introduce showNotification API
Summary: Introduced `showNotifcation` to the Sandy API.

Reviewed By: jknoxville

Differential Revision: D27012001

fbshipit-source-id: d3f237910a478400b0f925f0362af485c96072bb
2021-03-16 15:03:47 -07:00
Michel Weststrate
be25df6490 Documented createDataSource, DataSource & DataSourceView
Summary: Per title

Reviewed By: nikoant

Differential Revision: D26978363

fbshipit-source-id: b3cfeda0fb0f6556e1ba9041325ae080cba69a7b
2021-03-16 15:03:47 -07:00
Michel Weststrate
d73f6578a7 Support linkify-ing urls
Summary:
Changelog: The new logs plugin will linkify urls and pretty print json-like messages

This implements one of our top papercuts (see linked task), and the WP request over here: https://fb.workplace.com/groups/flipperfyi/permalink/902949260471370/. Partially addresses

https://github.com/facebook/flipper/issues/1162
https://github.com/facebook/flipper/issues/1010
https://github.com/facebook/flipper/issues/2029

Reviewed By: nikoant

Differential Revision: D26947007

fbshipit-source-id: be0fdb476765905ae6b63bd8799c9c6093014de3
2021-03-16 15:03:47 -07:00
Michel Weststrate
11eb19da4c Introduce column filters
Summary:
Beyond a search across all columns, it is now possible to specific columns for specific values:

* for a row to be visible, all active column filters need to be matched (e.g. both a filter on time and app has to be satisfied)
* if multiple values within a column are filtered for, these are -or-ed.
* if no value at all within a column is checked, even when they are defined, the column won't take part in filtering
* if there is a general search and column filters, a row has to satisfy both

Filters can be preconfigured, pre-configured filters cannot be removed.

Reseting will reset the filters back to their original

Move `useMemoize` to flipper-plugin

Merged the `ui/utils` and `utils` folder inside `flipper-plugin`

Reviewed By: nikoant

Differential Revision: D26450260

fbshipit-source-id: 11693d5d140cea03cad91c1e0f3438d7b129cf29
2021-03-16 15:03:44 -07:00
Michel Weststrate
86ad413669 Initial logs with datasource / datatable setup
Summary:
First rudementary setup of DataTable component that follows a data source. Initially used react-virtuose library, but it performed really badly by doing expensive layout shifts and having troublesome scroll handling. Switched to react-virtual library, which is a bit more level, but much more efficient, and the source code is actually understandable :)

Features:
- hook up to window events of datasource
- high and low prio rendering, based on where the change is happening (should be optimized further)
- sticky scrolling support
- initial column configuration (custom rendering, styling, columns etc will follow in next diffs)

Reviewed By: nikoant

Differential Revision: D26175665

fbshipit-source-id: 224be13b1b32d35e7e01c1dc4198811e2af31102
2021-03-16 15:03:43 -07:00
Michel Weststrate
0dc1abdac4 Initial DataSource setup
Summary:
For context see https://fb.workplace.com/notes/470523670998369

This diff introduces the DataSource abstraction, that can store records. If a key is set a key -> record mapping is stored, to make it easy to update existing records using `upsert`, without knowing their exact index.

Internal storage will be slightly altered in upcoming diffs, so don't pay to much attention to that part.

Reviewed By: nikoant

Differential Revision: D25953337

fbshipit-source-id: 1c3b53a2fcf61abaf061946be4af21d2aecc6c6d
2021-03-16 15:03:42 -07:00
generatedunixname89002005306973
ac1f5c1008 Flipper Snapshot Bump: v0.80.1-SNAPSHOT
Summary: Releasing snapshot version 0.80.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D26979912

fbshipit-source-id: 92a539b26bf8fa176d06f15537ba81e751736e24
2021-03-11 08:45:13 -08:00
generatedunixname89002005306973
59204328c3 Flipper Release: v0.80.0
Summary: Releasing version 0.80.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D26979913

fbshipit-source-id: a309ac59160d2464931f06b978f535c7c712bf08
2021-03-11 08:45:12 -08:00
John Knox
b6fc2f0651 Fix duplicate route to setup/leak-canary-plugin
Summary:
Noticed this when building the site. Shame it only warns and doesn't fail the build.
Just fixing it while I'm here.

{F479009268}

Reviewed By: nikoant

Differential Revision: D26911725

fbshipit-source-id: 6440a4b8aee4a6bc053ae771a3b148fd70ffc298
2021-03-09 05:43:29 -08:00
John Knox
11879c127b Add portal troubleshooting instructions
Summary: Adds an internal section for portal troubleshooting

Reviewed By: passy

Differential Revision: D26847795

fbshipit-source-id: b12bef20b2f832c4264cfd5cafcced414575b82b
2021-03-05 10:32:35 -08:00
generatedunixname89002005306973
b95058421d Flipper Snapshot Bump: v0.79.2-SNAPSHOT
Summary: Releasing snapshot version 0.79.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D26820463

fbshipit-source-id: 9edf2e986fb69db4448a3edad7740b6daf3630b7
2021-03-04 12:03:50 -08:00
generatedunixname89002005306973
85e5c33265 Flipper Release: v0.79.1
Summary: Releasing version 0.79.1

Reviewed By: passy

Differential Revision: D26820464

fbshipit-source-id: 8ca29bca6b011159e158c43806760f2a2056fc0b
2021-03-04 12:03:50 -08:00
Pascal Hartig
a4e457306c Add note about duplicate FBJNI classes
Summary:
Not sure if I made this clearer or even more confusing,
but it's a try.

Reviewed By: mweststrate

Differential Revision: D26781610

fbshipit-source-id: d68b30ffe6b24d537473c2d85b2b74f425068a96
2021-03-03 10:33:01 -08:00
Michel Weststrate
4799ea4f09 Documented how to opt out from flipper on iOS
Summary: More docs. Addresses https://github.com/facebook/flipper/issues/1326, https://github.com/facebook/flipper/issues/1215 and probably more

Reviewed By: jknoxville

Differential Revision: D26778514

fbshipit-source-id: dcadbad8f53f483d14e7fc54199756a697095309
2021-03-03 07:23:12 -08:00
generatedunixname89002005306973
ae59333c0e Flipper Snapshot Bump: v0.79.1-SNAPSHOT
Summary: Releasing snapshot version 0.79.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D26776797

fbshipit-source-id: 15e1312c28a5a62264088217947fe88413cad4f0
2021-03-03 06:12:35 -08:00
generatedunixname89002005306973
47ff03fb96 Flipper Release: v0.79.0
Summary: Releasing version 0.79.0

Reviewed By: nikoant

Differential Revision: D26776798

fbshipit-source-id: 0e85fbad5024c7a794af71098a6b7d4953f4de34
2021-03-03 06:12:35 -08:00
Michel Weststrate
effd334f98 Improve iOS troubleshooting guide
Summary: Added some pointers for everyone who is as iOS noobish as me.

Reviewed By: priteshrnandgaonkar

Differential Revision: D26777687

fbshipit-source-id: 1ba3bb08b5a7b3a3ba937176d4c4c9b5e765a977
2021-03-03 05:05:05 -08:00
Harold Martin
4d8be35d1a Add plugin for LeakCanary 2 (#1959)
Summary:
Add plugin for LeakCanary 2 as requested various times: https://github.com/facebook/flipper/issues/1379 https://github.com/facebook/flipper/issues/832  https://github.com/square/leakcanary/issues/1777

## Changelog

* Adds a leakcanary2 plugin for Android
* Adds support for leakcanary2 to existing desktop plugin

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

Test Plan:
* Docs updated to show new implementation
* Should old leakcanary plugin in sample be replaced?

Reviewed By: mweststrate

Differential Revision: D26691637

Pulled By: passy

fbshipit-source-id: 5e236fa6cc124f0720a6b21b5ee7c117ccf96fbf
2021-03-01 09:11:37 -08:00
generatedunixname89002005306973
7f975b82bd Flipper Snapshot Bump: v0.78.1-SNAPSHOT
Summary: Releasing snapshot version 0.78.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D26692600

fbshipit-source-id: a000de95171db28f86896b11ab02446450e1b0a5
2021-02-26 13:15:34 -08:00
generatedunixname89002005306973
31d0acc4b5 Flipper Release: v0.78.0
Summary: Releasing version 0.78.0

Reviewed By: mweststrate

Differential Revision: D26692601

fbshipit-source-id: edc7e1c91f613344e02772cf53c8868aa3a8cf4a
2021-02-26 13:15:34 -08:00
generatedunixname89002005306973
2253d158f3 Flipper Snapshot Bump: v0.77.1-SNAPSHOT
Summary: Releasing snapshot version 0.77.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D26632433

fbshipit-source-id: e3698caee5f58e919a10d1683c1074e6b8028629
2021-02-25 01:37:17 -08:00
generatedunixname89002005306973
5591d2c1d6 Flipper Release: v0.77.0
Summary: Releasing version 0.77.0

Reviewed By: mweststrate

Differential Revision: D26632434

fbshipit-source-id: 8448cb3257c23ca2a79728349f8d5af93ec4788c
2021-02-25 01:37:17 -08:00
Pascal Hartig
d7e584627a Update testing-rn instructions
Summary: `install` is now ambiguous because of some new plugins we've added.

Reviewed By: mweststrate

Differential Revision: D26633940

fbshipit-source-id: 62369ba76cced905350e62b7782619811b7284a0
2021-02-24 07:29:30 -08:00
John Knox
08b594db5c Upgrade static docs plugin
Summary:
Upgrade the static docs plugin.

You no longer need to import OssOnly and FbInternalOnly in markdown files, so removed those imports too.

Reviewed By: passy

Differential Revision: D26580059

fbshipit-source-id: 2763de2f5fbef41ec2ac7f7bdd147418badb78b6
2021-02-22 09:17:44 -08:00
Anton Nikolaev
1433dd4b73 Flipper Snapshot Bump: v0.76.1-SNAPSHOT
Summary: Releasing snapshot version 0.76.1-SNAPSHOT

Reviewed By: muraziz

Differential Revision: D26515192

fbshipit-source-id: aca77266825bbe5dffcc2642ad4ee563104e1653
2021-02-19 02:58:32 -08:00
Anton Nikolaev
208e899b4f Flipper Release: v0.76.0
Summary: Releasing version 0.76.0

Reviewed By: jknoxville

Differential Revision: D26515193

fbshipit-source-id: 38d547195a2d1e214e6f31a990c1d9e3f7869869
2021-02-19 02:58:32 -08:00
Anton Nikolaev
1c898bd2da Device plugin management (5/n): Docs
Summary: Updated docs to mention the new way of specifying device plugins compatibility metadata.

Reviewed By: mweststrate

Differential Revision: D26424203

fbshipit-source-id: 313e15ee54a8877c95850a37a13c5684b3c165f0
2021-02-16 10:50:19 -08:00
generatedunixname89002005306973
11548c9cd6 Flipper Snapshot Bump: v0.75.2-SNAPSHOT
Summary: Releasing snapshot version 0.75.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D26422940

fbshipit-source-id: 00bb4b5cc947679acf4dbfd7556984653c806891
2021-02-12 05:14:57 -08:00
generatedunixname89002005306973
0633e5bfd7 Flipper Release: v0.75.1
Summary: Releasing version 0.75.1

Reviewed By: passy

Differential Revision: D26422941

fbshipit-source-id: 655a898289c877b44a9c7bd3e359dcf045688988
2021-02-12 05:14:57 -08:00
Pascal Hartig
061ca274fd Add docs for new Android release
Summary:
Tried to give as much context here not just for how it works but also
how to set it up. For other projects and if we need to redo something.

Reviewed By: mweststrate

Differential Revision: D26400452

fbshipit-source-id: 9b41fd1a36c45554c7a7b562b73b4b9753f7ecfe
2021-02-12 04:36:10 -08:00
Pascal Hartig
af9475bca1 Update JCenter reference in the docs
Summary: Still need to update the actual release doc. That's next.

Reviewed By: mweststrate

Differential Revision: D26399883

fbshipit-source-id: 87c27b254f4def07810a99fd0e1c817b6afb967e
2021-02-12 04:36:10 -08:00
generatedunixname89002005306973
eb95708acd Flipper Snapshot Bump: v0.75.1-SNAPSHOT
Summary: Releasing snapshot version 0.75.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D26368797

fbshipit-source-id: 8d24b0099fcd967bea8dab7728c6263358b2c995
2021-02-10 08:16:13 -08:00
generatedunixname89002005306973
48a6235d26 Flipper Release: v0.75.0
Summary: Releasing version 0.75.0

Reviewed By: passy

Differential Revision: D26368798

fbshipit-source-id: e0d1d23023c6f0fb66ff675ccd61758722e4ebd7
2021-02-10 08:16:13 -08:00
Michel Weststrate
bb529411b5 Expose current connection status to Sandy plugins
Summary:
Introduced `isConnected` flag on device and plugin client to reflect whether a connection is still available for the plugins, or that they have been disconnected.

Potentially we could expose the (readonly) `connected` state atom for this as well, or an `onDisconnect` event for device pugins, to create a responsive UI, but there might be no need for that, in which case this suffices.

Reviewed By: nikoant

Differential Revision: D26249346

fbshipit-source-id: b8486713fdf2fcd520488ce54f771bd038fd13f8
2021-02-09 04:16:24 -08:00
generatedunixname89002005306973
e8e205a91f Flipper Snapshot Bump: v0.74.1-SNAPSHOT
Summary: Releasing snapshot version 0.74.1-SNAPSHOT

Reviewed By: jknoxville

Differential Revision: D26253174

fbshipit-source-id: b5fe3e0738c25f3580d721223e79ddfe386229f4
2021-02-04 09:46:44 -08:00