Commit Graph

496 Commits

Author SHA1 Message Date
Kevin Strider
b38591a35c features docs
Summary:
Remove reference to limitation of an API to a particular platform or app.

We show in Flipper whether the plugin is compatible or not. For example, if an iOS device is connected, for plugins that don't support iOS, Flipper marks them as disabled and show a message.

Reviewed By: lblasa

Differential Revision: D36241811

fbshipit-source-id: 4f936279c8dd616fc95a4e6c3e149a0b74b98bd6
2022-05-09 05:46:04 -07:00
Kevin Strider
706dae0585 overview.mdx (Features - Network)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36197861

fbshipit-source-id: b73787f04892d3f76938929ef84943f2031657e1
2022-05-06 07:44:46 -07:00
Kevin Strider
dc3d84b573 overview.mdx (Features - Sandbox)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36198283

fbshipit-source-id: 499133cc7265488203a248da2d1e519fc23a0d19
2022-05-06 07:44:02 -07:00
Kevin Strider
6269b71896 overview.mdx (Features - Navigation)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36197599

fbshipit-source-id: 6fad2066d64f1f191b32639e1f36c24e103a91fb
2022-05-06 07:41:46 -07:00
Kevin Strider
89c0421517 overview.mdx (Features - Shared Preferences Viewer)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: mweststrate

Differential Revision: D36198043

fbshipit-source-id: 961d9b535f0869ae3db3bbdfcbc33be43773edd6
2022-05-06 07:34:09 -07:00
Flipper Bot
4b07c0f9d9 Flipper Release: v0.145.0
Summary: Releasing version 0.145.0

Reviewed By: cekkaewnumchai

Differential Revision: D36168545

fbshipit-source-id: 4cb68eb9c8c80a0018c2a617ce0704fd18ff0b47
2022-05-06 05:14:39 -07:00
Kevin Strider
d87fdafc9f overview.mdx (Features - Layout)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D35898254

fbshipit-source-id: 67e3f3e344faf105f5a8f393c60441d6af3d62aa
2022-04-27 08:38:20 -07:00
Kevin Strider
d31fe669a0 overview.mdx (Features - Images)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D35897472

fbshipit-source-id: 4b3853cd805c8714c83a8d227395dec8e3ff888f
2022-04-27 05:09:11 -07:00
Kevin Strider
eea566f35a overview.mdx (Features - Leak Canary)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D35899228

fbshipit-source-id: 4ade5b28f1634e792fcf4582fe163d02e2f4fab4
2022-04-27 04:39:32 -07:00
Flipper Bot
cd7e8bd8d7 Flipper Release: v0.144.0
Summary: Releasing version 0.144.0

Reviewed By: passy

Differential Revision: D35960718

fbshipit-source-id: a2fc470a831f1788ce4fa2be23c758a1c205f0bb
2022-04-27 03:51:35 -07:00
Lorenzo Blasa
0327282313 Fixes an issue with no database selected
Summary:
^

Not exactly sure how to reproduce the issue. Having said that:
- A database id is a non-zero number (1..n)
- If there's no selected database and/or there's no databases, then selectedDatabase is '0', which is an invalid database id.
- It is safer to check if the selected database id falls within bounds before attempting to obtain the tables from it.

From Logview, if the database id is '0', which is invalid, then we attempt to access a database at index -1 (database[selectedDatabase - 1]) which is definitely invalid. The returned object is undefined and hence the error.

Changelog: Fixes an issue on the databases plugin when there is no selected database.

Reviewed By: mweststrate

Differential Revision: D35810827

fbshipit-source-id: 4c9f112eebcd0aa3fcd5df316749f48f3922381c
2022-04-22 03:59:00 -07:00
Flipper Bot
94758c1204 Flipper Release: v0.143.0
Summary: Releasing version 0.143.0

Reviewed By: lblasa

Differential Revision: D35775016

fbshipit-source-id: a0c3bd46547f7a561e1de775796b93ea9cf3071e
2022-04-20 10:26:59 -07:00
Andrey Goncharov
bd7a20d851 Enable Profiler
Summary: Show tab bar in React DevTools to allow switching to Profiler

Reviewed By: nikoant

Differential Revision: D35747309

fbshipit-source-id: ca7e65fdd30261aabc5f05fe10b451c115a92b7f
2022-04-19 07:52:32 -07:00
Kevin Strider
82c59515b1 databases (Features)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D35579752

fbshipit-source-id: c06ac9a812b244a9ace5c829df5c347d450f5e3b
2022-04-13 02:46:19 -07:00
Kevin Strider
567fb5d623 databases (setup)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D35579365

fbshipit-source-id: cb04b5e839b3d4ae74c4a20dd4a2fadd853d4181
2022-04-13 02:44:11 -07:00
Kevin Strider
466ed1badd logs (features)
Summary: Restyle of the page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: nikoant

Differential Revision: D35581050

fbshipit-source-id: 8ebe9a18e997653c2bb5062150f0de9cf9741116
2022-04-13 01:50:39 -07:00
Kevin Strider
e79b0fd96f crash_reporter (features)
Summary: Restyle of the page, including changes to spelling, grammar, lins checks, and structure (where relevant).

Reviewed By: jknoxville

Differential Revision: D35578704

fbshipit-source-id: 65a36631af2369e6483db05f139431d043638c65
2022-04-12 09:38:07 -07:00
Flipper Bot
c82f6434ee Flipper Release: v0.142.0
Summary: Releasing version 0.142.0

Reviewed By: nikoant

Differential Revision: D35426156

fbshipit-source-id: 831e74f5ce53c69582a6d11aff81647e989bd5b0
2022-04-06 06:13:31 -07:00
Flipper Bot
571658e603 Flipper Release: v0.141.0
Summary: Releasing version 0.141.0

Reviewed By: nikoant

Differential Revision: D35245058

fbshipit-source-id: a04893f3e98b86063616672c37fb6e57a8d8c1a3
2022-03-31 07:08:27 -07:00
Andrey Goncharov
ba9a80545d Support globally installed React DevTools
Summary:
- Support loading globally installed DevTools

Background:
1. Initially, I wanted to use react-devtools-core as before. react-devtools-core standalone contains quite a few imports of node.js APIs. After [a conversation with Brian](https://fb.workplace.com/groups/react.devtools/permalink/3131548550392044), I pivoted to react-devtools-inline
2. Technical design doc of react-devtools-inline integration: https://docs.google.com/document/d/1STUSUhXzrW_KkvqSu7Ge-rxjVFF7oU3_NbwzimkO_Z4
3. We support usage of globally installed devtools. Code of react-devtools-inline is not ready to be used by the browser as is. We need to bundle it and substitute React and ReactDOM imports with the globals.
4. As we can't pre-compile what users install globally, we need to bundle global devtools on demand,
5. I tried re-using our Metro bundling pipeline initially, but gave up after fighting it for 2 days. Included, `rollup` instead.
6. Size of a `tgz` archive with a plugin is 2.1MB

allow-large-files

Reviewed By: mweststrate

Differential Revision: D34968770

fbshipit-source-id: 352299964ccc195b8677dbda47db84ffaf38737b
2022-03-31 04:01:33 -07:00
Andrey Goncharov
68aec1df60 Decapitate React DevTools
Summary:
Changelog: Migrate from react-devtools-core to -react-devtools-inline

Technical design doc: https://docs.google.com/document/d/1STUSUhXzrW_KkvqSu7Ge-rxjVFF7oU3_NbwzimkO_Z4

At this point, React DevTools doe snot support globally installed DevTools. Only the bundled version. The support for the globally installed DevTools comes in the subsequent diffs along with on-the-fly transpilation.

Reviewed By: mweststrate

Differential Revision: D34926472

fbshipit-source-id: fde1d4cf386adfbf8a8581ee5a54e950d2cb34ef
2022-03-31 04:01:33 -07:00
Andrey Goncharov
1f83b4b414 Migrate to React 18
Summary:
Sadly, we have to use the experimental version of React to decapitate React Devtools.
See https://fb.workplace.com/groups/react.devtools/posts/3135684459978453/?comment_id=3135711763309056&reply_comment_id=3135760513304181

On the bright side, Replay.io and Code Sandbox also use experimental React without any problem.

Reviewed By: lblasa

Differential Revision: D34926473

fbshipit-source-id: 5cd63cc065c2535f0583464c7b5e37891dadaf14
2022-03-31 04:01:33 -07:00
Lukas Kurucz
f193362ac6 chore: bump react-devtools-core to 4.24.1 (#3542)
Summary:
Related to this issue: https://github.com/facebook/react/issues/23307

## Changelog

bump react-devtools-core to 4.24.1

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

Test Plan: // bvaughn

Reviewed By: passy

Differential Revision: D35211366

Pulled By: mweststrate

fbshipit-source-id: 890d18e87ba07e140c1c49857d02410767c6c17d
2022-03-30 03:33:42 -07:00
Lorenzo Blasa
cfdb363ab4 UI preview of selected element
Summary:
This is a prototype for view preview within Flipper.
If enabled, a preview of the selected element is rendered in the attribute inspector.

Changelog: Add view preview/snapshot for the Layout plugin on Android.

Reviewed By: mweststrate

Differential Revision: D35009246

fbshipit-source-id: a442ff7f57093f463016811f0f451b52f579b448
2022-03-28 06:51:53 -07:00
Lorenzo Blasa
aed7e7e6f2 UI preview of selected element
Summary:
This is a prototype for view preview within Flipper for iOS (Android next).

If enabled, a preview of the selected element is rendered in the attribute inspector.

Changelog: Add view preview/snapshot for the Layout plugin on iOS.

Reviewed By: antonk52

Differential Revision: D34990372

fbshipit-source-id: 1984514fbf59041ad236008a8db10569c5fc5f94
2022-03-28 05:17:23 -07:00
Flipper Bot
c7b99f27fa Flipper Release: v0.140.0
Summary: Releasing version 0.140.0

Reviewed By: mweststrate

Differential Revision: D35073921

fbshipit-source-id: 42da1ef7c9db0309957090debb71a22ff3873918
2022-03-23 07:35:55 -07:00
Flipper Bot
717a0df258 Flipper Release: v0.139.0
Summary: Releasing version 0.139.0

Reviewed By: aigoncharov

Differential Revision: D34921180

fbshipit-source-id: 4ca22ea22900d6a8811491ff9f932b3855acbc80
2022-03-16 11:02:36 -07:00
Brian Vaughn
a916bf4c58 React DevTools 4.24.0
Summary:
https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md

Changelog:
[General][Changed] - Upgraded react-devtools-core dependency to 4.24.0

Reviewed By: lunaruan

Differential Revision: D34798578

fbshipit-source-id: ce3b09023c98a9282cce92ef9661d6cb578455e1
2022-03-10 16:38:39 -08:00
Flipper Bot
6bf158f0df Flipper Release: v0.138.0
Summary: Releasing version 0.138.0

Reviewed By: lblasa

Differential Revision: D34749057

fbshipit-source-id: 45b01c5a8830c626e81fc15cdbf81dc7134c04d8
2022-03-09 05:27:16 -08:00
Andrey Goncharov
6c74f2dd18 Set device features on device initialization
Summary:
1. Identify if device supports screenshots/screen recording when it is created.
2. Disable screen recording/screenshot buttons when they are not supported

Reviewed By: passy

Differential Revision: D34611133

fbshipit-source-id: 82ad2d67e4af482d9becf7995187667b5d99bc36
2022-03-04 02:00:23 -08:00
Flipper Bot
f2e60ab6cb Flipper Release: v0.137.0
Summary: Releasing version 0.137.0

Reviewed By: passy

Differential Revision: D34577711

fbshipit-source-id: fc0ceb7676d1f7a8f5d1e271d78b489c61919bf6
2022-03-02 07:41:24 -08:00
Flipper Bot
e1746932ce Flipper Release: v0.136.0
Summary: Releasing version 0.136.0

Reviewed By: jknoxville

Differential Revision: D34414615

fbshipit-source-id: 7239b27687b1af22cf26597e0d1fca138f9f9c7f
2022-02-23 08:22:34 -08:00
Flipper Bot
4e1ad10440 Flipper Release: v0.135.0
Summary: Releasing version 0.135.0

Reviewed By: aigoncharov

Differential Revision: D34269502

fbshipit-source-id: fe99fb7959778c97052045450ca5fce26a348043
2022-02-16 05:52:58 -08:00
Erkka Marjakangas
c973f4eba0 Add outgoing payload size to flipper network plugin
Summary:
Flipper network plugin does not show request payload size at all, only the response.

I was trying to use flipper to check the compression ratio and overall analytics log size, but wasn't able to it, so fixed the network plugin

Reviewed By: lblasa

Differential Revision: D34062808

fbshipit-source-id: f4d4395eece9d41380b8ac6f834a014315c5db66
2022-02-14 10:21:34 -08:00
Flipper Bot
4b0f002e5d Flipper Release: v0.134.0
Summary: Releasing version 0.134.0

Reviewed By: passy

Differential Revision: D34211185

fbshipit-source-id: 82709ff43324fc1aa9c7d0ae1a85a13386188f5e
2022-02-14 07:49:52 -08:00
Flipper Bot
60c353e16e Flipper Release: v0.133.1
Summary: Releasing version 0.133.1

Reviewed By: aigoncharov

Differential Revision: D34143395

fbshipit-source-id: e1df1abee6ac46a33a383f6350e7529f329b1c56
2022-02-10 08:06:31 -08:00
Flipper Bot
47f41b83af Flipper Release: v0.133.0
Summary: Releasing version 0.133.0

Reviewed By: nikoant

Differential Revision: D34104731

fbshipit-source-id: ea198388d852e4bc3fbed5e4a517cc07d117ca89
2022-02-09 08:47:38 -08:00
Michel Weststrate
d0d0b68e0b Fixes NPE in page.columns
Summary: From stack trace seems that we don't always get columns from the plugin, in which case we can't display anything

Reviewed By: lawrencelomax

Differential Revision: D33981285

fbshipit-source-id: 0d6bf2d9364f7dac93e2179e372308da51699bd3
2022-02-04 01:15:41 -08:00
Harold Martin
cdb72db5a9 Fix LeakCanary plugin UI, Upgrade LC dependency and make it compile only (#3367)
Summary:
**Currently, the Leak Canary plugins is broken, see this screenshot (unable to expand):**
<img width="1359" alt="Screen Shot 2022-01-29 at 2 06 33 PM" src="https://user-images.githubusercontent.com/745166/151679662-9d8e8eb6-c19c-4008-9821-1c2c1af92351.png">

**This fix repairs and improves the UI:**
<img width="1350" alt="Screen Shot 2022-01-29 at 2 06 03 PM" src="https://user-images.githubusercontent.com/745166/151679677-7965604c-dd04-4ee5-bc8e-d53a82da1bd7.png">

## Changelog

- Fixes UI to enable showing leak trace
- Upgrades LackCanary dependency from 2.6 to 2.8.1
- Makes Kotlin and LC `compileOnly` dependencies in order to prevent conflict for the users
- Updates documentation

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

Test Plan:
See demo at https://github.com/hbmartin/leakcanary/tree/flipper-demo/leakcanary-android-sample

**Static Docs Preview: flipper**
|[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D33915179/V3/flipper/)|

|**Modified Pages**|

Reviewed By: passy

Differential Revision: D33915179

Pulled By: cekkaewnumchai

fbshipit-source-id: 9698dba23ab475c8cd84e4c222dfc41712b05a1e
2022-02-03 01:37:28 -08:00
Flipper Bot
34d2a5fa59 Flipper Release: v0.132.0
Summary: Releasing version 0.132.0

Reviewed By: mweststrate

Differential Revision: D33939899

fbshipit-source-id: 54617c126600230b41e45bed6cea449b67b81503
2022-02-02 04:10:35 -08:00
Anton Kastritskiy
05a3bb69dc rename left ts files to tsx and ban ts file extension
Summary: mass files rename

Reviewed By: passy

Differential Revision: D33890304

fbshipit-source-id: c057ac9fe87dd7659597c85d640619b93e1ff0e6
2022-02-01 12:38:45 -08:00
Flipper Bot
65bb2a1bc1 Flipper Release: v0.131.1
Summary: Releasing version 0.131.1

Reviewed By: cekkaewnumchai

Differential Revision: D33871323

fbshipit-source-id: f5f5b02ec9fdad303fe60673618b461ef3fa26f1
2022-01-29 11:32:40 -08:00
Flipper Bot
1fee833de6 Flipper Release: v0.131.0
Summary: Releasing version 0.131.0

Reviewed By: cekkaewnumchai

Differential Revision: D33814533

fbshipit-source-id: fde9830a063c99c5735cc66a0a2a614905c4335d
2022-01-27 04:45:18 -08:00
Flipper Bot
66478d3e11 Flipper Release: v0.130.0
Summary: Releasing version 0.130.0

Reviewed By: cekkaewnumchai

Differential Revision: D33788026

fbshipit-source-id: bed50ad4001a40d899c673547dac16c8aef8aa1d
2022-01-26 07:51:52 -08:00
Brian Vaughn
639df5c81a React DevTools 4.22.1 -> 4.23.0
Summary:
Update `react-devtools-core` and `react-devtools` dependencies for RN, VSCode, Flipper, etc.

`js1 upgrade react-devtools -v 4.23.0`

# Changelog:

[General][Changed] - Upgraded react-devtools-core dependency to 4.23.0

Reviewed By: lunaruan

Differential Revision: D33752754

fbshipit-source-id: 81d123e058d5660b3b7c34823d15272b34d6c0b6
2022-01-25 18:23:06 -08:00
Andrey Goncharov
3349cb514f Remove stale fs-extra dep from crash reporter plugin
Reviewed By: mweststrate

Differential Revision: D33740272

fbshipit-source-id: 6b1033a67a12a456301a2a7f8bdb9d7eab2f717c
2022-01-24 07:45:46 -08:00
Andrey Goncharov
0bb2b1680a Remove stake fs-extra dep from cpu plugin
Reviewed By: antonk52

Differential Revision: D33740271

fbshipit-source-id: d64e684957714271286034edf3a2aa5ea9e404f3
2022-01-24 07:45:46 -08:00
Flipper Bot
ed2a643737 Flipper Release: v0.129.0
Summary: Releasing version 0.129.0

Reviewed By: lblasa

Differential Revision: D33655352

fbshipit-source-id: e783d5962b1ceb2e82df699ca52342e6176c837c
2022-01-20 04:56:21 -08:00
Flipper Bot
65111a7ecc Flipper Release: v0.128.4
Summary: Releasing version 0.128.4

Reviewed By: passy

Differential Revision: D33585348

fbshipit-source-id: 67a69573b1d4524abe1c643598e438133ee7c048
2022-01-14 09:49:48 -08:00
Flipper Bot
bb22657f81 Flipper Release: v0.128.3
Summary: Releasing version 0.128.3

Reviewed By: passy

Differential Revision: D33583540

fbshipit-source-id: 44c68d5cbb76ba93330fc9b648ab8c8bd9f506d8
2022-01-14 07:47:27 -08:00