Commit Graph

674 Commits

Author SHA1 Message Date
Luke De Feo
0e11eaabb3 Finishing touches
Summary:
A few comments in my rewrite stack got missed, I am addressing them here.
In addition react testing library has been hoisted to the root module in the project and been made available to all sub modules

Reviewed By: mweststrate

Differential Revision: D37712339

fbshipit-source-id: 60984c3d16bd535b0c489570907f097c7d80f634
2022-07-11 05:15:25 -07:00
Flipper Bot
6b4c1db5fa Flipper Release: v0.153.0
Summary: Releasing version 0.153.0

Reviewed By: cekkaewnumchai

Differential Revision: D37643063

fbshipit-source-id: df67aee39ca41887e4c8358a618b4c37338c501b
2022-07-06 04:06:55 -07:00
Flipper Bot
939f69b4fc Flipper Release: v0.152.0
Summary: Releasing version 0.152.0

Reviewed By: mweststrate

Differential Revision: D37515159

fbshipit-source-id: 559c8961da1156fd61c299eec5d3bc9a8e84fa9e
2022-06-29 08:56:59 -07:00
Flipper Bot
f7048b470e Flipper Release: v0.151.1
Summary: Releasing version 0.151.1

Reviewed By: aigoncharov

Differential Revision: D37458556

fbshipit-source-id: a14704cce3358c5fd3dbd4b7ebf9c32a59183d49
2022-06-27 10:22:47 -07:00
Flipper Bot
25cfd062bf Flipper Release: v0.151.0
Summary: Releasing version 0.151.0

Reviewed By: nikoant

Differential Revision: D37340692

fbshipit-source-id: 0b058ffbf3de3ec17232953d94bfd5eba92348c0
2022-06-23 08:18:15 -07:00
Dawid Cieslak
8e784f2579 convert plugin 'sandbox's UI to use ant.design
Summary:
Bootcamp task:
I’m removing the remaining UI components imported from ‘flipper’ and replacing with new ones from ‘antd’.
I’m also attempting to polish 🇵🇱 the UI and UX of the plugin:

UI:
- Selecting one of the listed sandboxes and custom URL lead to the same action -> align all components together

UX:
- Sometimes loading sandboxes takes time, and it’s not clear for the user what’s happening -> add a loading indicator
- At first the input field was a bit confusing to me -> add more labels to explain the purpose of visible components
- It’s not always clear what happened after requesting a sandbox change -> the result of all actions is now confirmed with the small 'popup' notification.

I don't have any experience with web frontend, so if something is terribly wrong below - don't be afraid to point it out :)

Before/After:

{F745958473}

Reviewed By: mweststrate

Differential Revision: D37343946

fbshipit-source-id: 3dbdd213ffd5540dc7a418c1590eb956ef4c6715
2022-06-22 11:35:10 -07:00
Andrey Goncharov
fd380a4c1e Use BaseDevice from flipper-frontend-core in flipper-ui-core
Summary: Use BasDevice definition from flipper-frontend-core in flipper-ui-core and remove the redundant definition from flipper-ui-core

Reviewed By: lblasa

Differential Revision: D37234785

fbshipit-source-id: 6e768090a197c1d2c49cb1cd573acea12fb65d24
2022-06-20 12:18:40 -07:00
Andrey Goncharov
ef5fa275a3 Use AbstractClient from flipper-frontend-core in fliper-ui-core
Summary: This stack attempts to start using flipper-frontend-core from flipper-ui-core. Currently, flipper-frontend-core contains lots of copy-pasted code from flipper-ui-core.

Reviewed By: lblasa

Differential Revision: D37139198

fbshipit-source-id: 042db7492c550e10ea72c32fd15001c141bf53f9
2022-06-20 12:18:40 -07:00
Flipper Bot
06ddb08406 Flipper Release: v0.150.0
Summary: Releasing version 0.150.0

Reviewed By: lblasa

Differential Revision: D37236953

fbshipit-source-id: 36cd4fd8842b898f7cba1f03ab2c72d20e2b42ce
2022-06-17 11:37:49 -07:00
Flipper Bot
ad19b51069 Flipper Release: v0.149.0
Summary: Releasing version 0.149.0

Reviewed By: passy

Differential Revision: D36999205

fbshipit-source-id: 9bf6df029e3d359c166f21bd12f158a2d19b6516
2022-06-09 10:32:12 -07:00
Andrey Goncharov
2f2a101094 Deprecate kaios-big-allocations
Reviewed By: passy

Differential Revision: D36809144

fbshipit-source-id: ea04ddb2ed9d6114baa6586577f3e7ddd8b8bbf4
2022-06-07 04:00:02 -07:00
Flipper Bot
5971d603bf Flipper Release: v0.148.0
Summary: Releasing version 0.148.0

Reviewed By: jknoxville

Differential Revision: D36805039

fbshipit-source-id: 8d97ba973c57de4558fc6aaa0a546dbac1ee08cd
2022-06-06 06:25:38 -07:00
Flipper Bot
04400fd22e Flipper Release: v0.147.1
Summary: Releasing version 0.147.1

Reviewed By: aigoncharov

Differential Revision: D36759784

fbshipit-source-id: 27c04809b8b6efaea96e96f79e4d2079a9162799
2022-05-30 06:18:15 -07:00
Flipper Bot
19a5a8e9c7 Flipper Release: v0.147.0
Summary: Releasing version 0.147.0

Reviewed By: aigoncharov

Differential Revision: D36658611

fbshipit-source-id: 74137e1c5c1f5be5dc45c28ed74aa016001db070
2022-05-25 09:56:02 -07:00
Andrey Goncharov
e639055fc4 Enable headless mode for the tic-tac-toe plugin
Reviewed By: passy

Differential Revision: D36517761

fbshipit-source-id: 0db933d825434da90e814054db531038ea93d610
2022-05-23 03:38:23 -07:00
Flipper Bot
8bbc3fda69 Flipper Release: v0.146.1
Summary: Releasing version 0.146.1

Reviewed By: aigoncharov

Differential Revision: D36543493

fbshipit-source-id: 0eaf1e3c4cb51440aa8d22cbe721dc44938c9246
2022-05-20 08:46:00 -07:00
Andrey Goncharov
a7b148fcc2 Refactor tic-tac-toe plugin to Sandy architecture
Summary:
CHANGELOG: Refactor tic-tac-toe plugin to Sandy architecture

Sandy architecture unblocks using the plugin in a headless mode. Eventual goal - platy tic-tac-toe form a terminal

Reviewed By: passy

Differential Revision: D36513795

fbshipit-source-id: 5a967a325cfb52cc3ae72840240b22b0a4e8f031
2022-05-19 09:13:33 -07:00
Flipper Bot
47238f0d7d Flipper Release: v0.146.0
Summary: Releasing version 0.146.0

Reviewed By: nikoant

Differential Revision: D36473300

fbshipit-source-id: 076031a8acef8d37fd71a8832ba2bd4918a3e724
2022-05-18 10:11:13 -07:00
Kevin Strider
d511cd0980 setup.mdx (setup - Sandbox)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: lblasa

Differential Revision: D36372379

fbshipit-source-id: 5bf1e93f7901c9ceec9a06c4d9c46a2b06fb201c
2022-05-13 05:28:01 -07:00
Kevin Strider
1d552972db setup.mdx (setup - Network)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: lblasa

Differential Revision: D36348417

fbshipit-source-id: 4e32ff6c2ce25ebcb403f203809dccb5d10ea01d
2022-05-13 03:48:28 -07:00
Kevin Strider
280f5fda15 setup.mdx (setup - Shared Preferences Viewer)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36349176

fbshipit-source-id: 079aeb8462bcdf71501e8f49636327f16a4ea18c
2022-05-13 03:35:31 -07:00
Kevin Strider
02d9d4ec7c setup.mdx (setup - Navigation)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36348092

fbshipit-source-id: 18c0647a799d45660bb4b935343e1445aa602606
2022-05-13 03:28:51 -07:00
Kevin Strider
e07de9ef43 setup.mdx (setup - LeakCanary)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36344933

fbshipit-source-id: 87fe56d24b0591b471b4f36c2dda5bb989db7e5c
2022-05-13 03:28:35 -07:00
Kevin Strider
21dfeca756 setup.mdx (setup - Databases)
Summary: Add reference to Features page

Reviewed By: passy

Differential Revision: D36344280

fbshipit-source-id: ef6df2fd647f30bddf53d3c00ea0fa09e54583d6
2022-05-13 02:48:47 -07:00
Kevin Strider
aa172f2c77 setup.mdx (setup - Layout)
Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant).

Reviewed By: passy

Differential Revision: D36344857

fbshipit-source-id: f332a1e3422fb7e19d175a305d51b9b34e279e2a
2022-05-13 02:41:20 -07:00
Kevin Strider
16a0a27672 setup.mdx (SetUp - Crash Reporter and Images)
Summary:
Restyle of pages, including changes to spelling, grammar, links, and structure (where relevant):

Crash Reporter
Images

Reviewed By: lblasa

Differential Revision: D36316967

fbshipit-source-id: aa91459f858e650cb7195436f94239e630373747
2022-05-12 07:54:19 -07:00
Maninder Singh
996132afbd Migrate 'Sandbox' plugin to Sandy API
Summary:
As part of an ongoing effort to migrate Flipper plugins to new Sandy arch, this diff aims to help by migrating the 'Sandbox' Plugin.

Most of the changes were straightforward, as in, could be done by following this excellent migration guide : https://www.internalfb.com/intern/staticdocs/flipper/docs/extending/sandy-migration/

Only thing which caused few issues was the "onready" behaviour. In the old pattern, the 'init' method used to get executed on every render. So it was ok to check for "isconnected" prop there.

Now the 'plugin' method is only executed once => and since the device might not be connected then, the "onReady" method (which is equivalent to old 'init' method) didn't work.

To fix this => the init method has been replace with "onConnect".

Reviewed By: lblasa

Differential Revision: D36284538

fbshipit-source-id: 4b2bf74c6d11625e4bd784fbb29fd270158a41ff
2022-05-12 06:27:22 -07:00
Andrey Goncharov
7b31a1c6b6 Add headless-demo plugin and its usage example
Summary:
Next steps:
1. Refactor it TS for consistency
2. Remove it in favor of tic-tac-toe integration

Reviewed By: mweststrate

Differential Revision: D36102002

fbshipit-source-id: 7dc930f67bed636159a2ec433d7405ab6ee09f97
2022-05-10 05:13:24 -07:00
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