Commit Graph

8786 Commits

Author SHA1 Message Date
Lorenzo Blasa
2ad789d14e UIDConnectionListener
Summary:
Add a connection listener similarly to the one used on Android.

The usage at this point will come from framework events as a means to control when to capture the events or not.

Reviewed By: ivanmisuno

Differential Revision: D49092691

fbshipit-source-id: d004f7ff5d1a254ad5f9c7f207d485afcb7ac54a
2023-09-11 03:13:43 -07:00
Pascal Hartig
0900a2a41d Export android plugin to OSS (#5109)
Summary:
Changelog: UI Debugger is now available for Litho in Open Source

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

Remove the stub, replace with the real thing.

Reviewed By: lblasa

Differential Revision: D46859213

fbshipit-source-id: 74c59a53d1d22e046254f4bca202da17a0b0e5d8
2023-09-08 04:02:48 -07:00
Lorenzo Blasa
d4065aba12 Loading timeout set to a second
Summary: Push the timeout to one second. Users are not going to mind if we try to load after a second but they can mind if they see their tab attempt to reload several times a second.

Reviewed By: ivanmisuno

Differential Revision: D49054898

fbshipit-source-id: 132168a1d6d381f76500bcc9c0a00e05ef0c541b
2023-09-07 06:28:23 -07:00
Adam Cmiel
a64d493875 - xplat sonar (#5091)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/5091

https://developer.apple.com/documentation/foundation/nsstring/1497289-stringwithcstring

[Changelog]:[Fixed] Remove usage of deprecated stringWithCString function

Reviewed By: lblasa

Differential Revision: D48692608

fbshipit-source-id: 683d6f8656fe6183cb02faab6261f1b6a61cc3a2
2023-09-06 13:09:09 -07:00
generatedunixname89002005306973
0f7e9a0888 Flipper Snapshot Bump: v0.216.1-SNAPSHOT
Summary: Releasing snapshot version 0.216.1-SNAPSHOT

Reviewed By: mweststrate

Differential Revision: D49006714

fbshipit-source-id: dcf490fe9470b4a48b9f7d77c6c154d878f3367b
2023-09-06 06:34:16 -07:00
generatedunixname89002005306973
21a61119ba Flipper Release: v0.216.0
Summary: Releasing version 0.216.0

Reviewed By: mweststrate

Differential Revision: D49006715

fbshipit-source-id: 3fedc1c62d9eee8d810eddc681de3a7f490b7a9d
2023-09-06 06:34:16 -07:00
Luke De Feo
aab84d3fb9 Use new antd apis for framework events
Summary: No more warnings.

Reviewed By: antonk52

Differential Revision: D48964070

fbshipit-source-id: 4f9b9affb04b8bc355b0687c9bc9c7273e469d78
2023-09-05 10:01:17 -07:00
Anton Kastritskiy
f2ef26cd9a bump fs-extra types
Summary: `recursive` was dropped in when [dropping](https://github.com/jprichardson/node-fs-extra/issues/886) node v10

Reviewed By: aigoncharov

Differential Revision: D48780242

fbshipit-source-id: 29349590a7f14da85fe8df28b20d9b418e7a8b1d
2023-09-05 07:17:06 -07:00
Sinan Erdinç
d04abff530 Fixed Typo (#5102)
Summary:
A typo in the settings page has been fixed.

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

Reviewed By: ivanmisuno

Differential Revision: D48948584

Pulled By: passy

fbshipit-source-id: 2469a25d2deb7c6c128f7d88a68fd5d147aad428
2023-09-05 03:30:26 -07:00
github-actions[bot]
ad9aa07532 Automated: Update Podfile.lock (#5108)
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/5108

Reviewed By: ivanmisuno

Differential Revision: D48948580

Pulled By: passy

fbshipit-source-id: eb3cbd1a0856c08ea6a5e443e567404fdd694a98
2023-09-05 03:25:19 -07:00
Anton Kastritskiy
4439411d29 bump or ignore types packages
Reviewed By: LukeDefeo

Differential Revision: D48782825

fbshipit-source-id: 00c46fa609847272b48f8f4476291666e9251c95
2023-09-04 14:52:34 -07:00
Anton Kastritskiy
4ec84ca7fb allow ignoring packages for @types/* major version compatability
Reviewed By: LukeDefeo

Differential Revision: D48779653

fbshipit-source-id: ddea9730d1066212bfa7933df7f6a2c178e49766
2023-09-04 03:42:29 -07:00
Luke De Feo
8d0f3b2967 Use new drop down api for wireframe mode
Reviewed By: lblasa

Differential Revision: D48910673

fbshipit-source-id: 74a1ca0fc096d4619d281a2ed4175c5d90e551a4
2023-09-04 02:19:53 -07:00
Luke De Feo
b336ed38fa Update context menu for new ant design api
Summary:
Mostly mechanical change from jsx to object based api. However some changes:

1. Managed to get rid of UIDebugger context menu item. its now possible to listen to when any context menu is clicked

2. The construction code is cleaner. no more mutable arrary and pushing, its just a big spliced literal

3. Had to change how the ide function worked. It is  dynamic and used react query hook to update the number of items. Added a callback to recreate this behaviour.

Reviewed By: aigoncharov

Differential Revision: D48910165

fbshipit-source-id: 9a71f5ecd302e6ff72194f83a13839f78e9b0796
2023-09-04 02:19:53 -07:00
generatedunixname89002005306973
32ef1bd565 Flipper Snapshot Bump: v0.215.2-SNAPSHOT
Summary: Releasing snapshot version 0.215.2-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D48911164

fbshipit-source-id: 96b545206d57c71780bd3f88512fa3705808aec2
2023-09-01 11:16:02 -07:00
generatedunixname89002005306973
b30449af40 Flipper Release: v0.215.1
Summary: Releasing version 0.215.1

Reviewed By: aigoncharov

Differential Revision: D48911165

fbshipit-source-id: 1ca438b9c49c5cfb707b603f42d5b6fc8fb140b7
2023-09-01 11:16:02 -07:00
Andrey Goncharov
d80a7a45b6 Fix growing tab height
Reviewed By: antonk52

Differential Revision: D48908996

fbshipit-source-id: 6eb0a53f32d0130661c3e2c161063e87ab3ff884
2023-09-01 10:08:04 -07:00
Andrey Goncharov
93e19aba40 Fix growing Tabs
Reviewed By: antonk52

Differential Revision: D48908704

fbshipit-source-id: b5f761ef2c3b81f0c7e4a36a8122a10957a96ebd
2023-09-01 10:08:04 -07:00
Andrey Goncharov
0ce8fe6625 Fix Tabs
Reviewed By: lblasa

Differential Revision: D48908416

fbshipit-source-id: 1e8b0d84b313fe10629d6ff16162294fa5cb395c
2023-09-01 10:08:04 -07:00
Anton Kastritskiy
806d684ddc Script to verify @types/* versions
Summary:
We recently raised a concern that for some packages types/* version is different than the package we are using. This can cause runtime errors as typescript can suggest usage that no longer reflects current API of a library. To combat this issue we decided to add a CI check to verify that major versions of types and a libriary match.

This script will be refined if in the next few diffs

Reviewed By: LukeDefeo

Differential Revision: D48779652

fbshipit-source-id: 2a826ba9d00565563553f04cd809ae0638db6282
2023-09-01 09:54:49 -07:00
Pascal Hartig
42b95c21eb Disable Fresco integration for now (#5101)
Summary:
[android][sample] Disable Fresco integration for now
There's currently a startup crash

https://gist.github.com/passy/3f6b5935d8f9171ea0d3d915857b9786

We'll need to wait for a new Fresco release. In the meantime, let's comment this out so we can still use the rest of the app.

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/5101).
* __->__ https://github.com/facebook/flipper/issues/5101
* https://github.com/facebook/flipper/issues/5100

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

Reviewed By: lblasa

Differential Revision: D48863903

Pulled By: passy

fbshipit-source-id: 0cb9c6050cf70a989b11ca60b3019ebab104279f
2023-09-01 09:43:21 -07:00
Anton Kastritskiy
38e64156a8 new antd tabs API
Reviewed By: lblasa

Differential Revision: D48902684

fbshipit-source-id: 73a7b80b6b223067a7e79d2b6f4cab18943b8214
2023-09-01 04:54:35 -07:00
Lorenzo Blasa
819c75c126 Verify server certificates before returning existing token
Summary:
If the server certificates have expired, then the returned token will no longer be valid as soon as the certificates are renewed.

So, validate this before returning any existing token.

This was not an issue before, as launching used to be the last step during bootstrapping.

Reviewed By: antonk52

Differential Revision: D48902334

fbshipit-source-id: 2458aa0df806db245994ee742f42bff47a533e23
2023-09-01 04:52:09 -07:00
Lorenzo Blasa
4e7a6a70cc Server shutdown only if no errors
Summary:
The socket will close as the endpoint is terminating the connection.

Status code 1000 and 1001 are used for normal closures. Either the connection is no longer needed or the endpoint is going away i.e. browser navigating away from the current page.

WS RFC: https://www.rfc-editor.org/rfc/rfc6455

Reviewed By: LukeDefeo

Differential Revision: D48896696

fbshipit-source-id: 22070ae34b7f35d35589db06108feb718e73e866
2023-09-01 03:25:26 -07:00
generatedunixname89002005306973
43c549ee74 Flipper Snapshot Bump: v0.215.1-SNAPSHOT
Summary: Releasing snapshot version 0.215.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D48865066

fbshipit-source-id: a9e6ff63d93229bf23a2ca8e5b94ac6238f80ee8
2023-08-31 06:35:49 -07:00
generatedunixname89002005306973
20ecc02c79 Flipper Release: v0.215.0
Summary: Releasing version 0.215.0

Reviewed By: lblasa

Differential Revision: D48865068

fbshipit-source-id: a6e37bdc5790e0e1de64c2b467f02df9ec18bfd6
2023-08-31 06:35:49 -07:00
Lorenzo Blasa
aec376a09a Open an existing window if there is one
Summary:
Before this change, opening deep-links or importing files would open new windows.

Instead, just use an existing window if there is one.

Documentation: https://developer.chrome.com/docs/web-platform/launch-handler/

Reviewed By: lawrencelomax

Differential Revision: D48865950

fbshipit-source-id: 80c3fb58f1fcc3b8ace00fd9241bf1e374c8345e
2023-08-31 06:04:32 -07:00
Lorenzo Blasa
cc9b62ec47 Need to copy loading.html
Summary: Need to copy this resource too from the static directory.

Reviewed By: aigoncharov

Differential Revision: D48864174

fbshipit-source-id: 0f3bfe9608bb9d48ec1cfb7243b3f0701d2fd8cf
2023-08-31 03:59:24 -07:00
Pascal Hartig
e4f480236e Bump litho to 0.48.0 (#5100)
Summary:
[android] Bump litho to 0.48.0

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

Reviewed By: adityasharat

Differential Revision: D48863388

Pulled By: passy

fbshipit-source-id: 29daa1edbe1887429b2014543e5a7c99bd76cb47
2023-08-31 03:25:06 -07:00
generatedunixname89002005306973
108204ae31 Flipper Snapshot Bump: v0.214.1-SNAPSHOT
Summary: Releasing snapshot version 0.214.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D48834385

fbshipit-source-id: 7c5905c7ca716c0abe0b37cc3668de4e1adb16d8
2023-08-30 13:29:50 -07:00
generatedunixname89002005306973
43db3d561d Flipper Release: v0.214.0
Summary: Releasing version 0.214.0

Reviewed By: lblasa

Differential Revision: D48834386

fbshipit-source-id: 74c46a0b57ae6dbf1a17fd7b9d958709868ee13a
2023-08-30 13:29:50 -07:00
Lorenzo Blasa
457767c7cc Ready needs to be able to handle asynchronous code
Summary:
A previous diff introduced the isReady state as to make it possible to serve HTML content sooner than we are ready.

This worked great on debugging. As I was testing a release, it was discovered that there was a race condition and the server was not ready when it was already handling upgrade events.

To solve this, I've added another state flag in the form of a promise.

This one, can be waited on. This is used then during upgrade events as we can safely wait until the server is ready to accept incoming connections before proceeding with the upgrade.

Problem is shown below:

{F1080003241}
{F1080003356}

Reviewed By: passy

Differential Revision: D48829453

fbshipit-source-id: e148a392bbe66dd91710e32871e270c8950e25c2
2023-08-30 09:52:00 -07:00
Pascal Hartig
072d618681 Use String.prototype.replaceAll in sourcemap removal script
Summary: Apply suggestion from D48605129 to have access to "modern" `replaceAll`.

Reviewed By: lblasa

Differential Revision: D48642120

fbshipit-source-id: 1e273fe5590e7b4a48c9176ef5f1afdab688b7d6
2023-08-30 09:14:07 -07:00
Andrey Goncharov
caf55f5b12 Support STRING_SET operator type
Summary:
Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Data table integration comes later

Reviewed By: lblasa

Differential Revision: D48648822

fbshipit-source-id: 74f92c0e818c4507fd6575f6a122d107373cfe0c
2023-08-30 07:26:35 -07:00
Andrey Goncharov
2affcbdfb1 Support ENUM_SET operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48648499

fbshipit-source-id: ee24ae15c1e6533398db0af79597388e473f97e7
2023-08-30 07:26:35 -07:00
Andrey Goncharov
e5147784a9 Polish spacing
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48644764

fbshipit-source-id: 1da41635f349da1d320c25175dd9a8d2b82d3c73
2023-08-30 07:26:35 -07:00
Andrey Goncharov
cb6dd36dc1 Support absolute date operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48644510

fbshipit-source-id: 0a1a382f3052c0e1e1f78ad6e8c51211fb78f9ce
2023-08-30 07:26:35 -07:00
Andrey Goncharov
7b9ddb617f Remove last search term on backspace press when term finder is empty
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48637890

fbshipit-source-id: fb952ffe1ab1a94d2bc465b89be6c62a71be9b9f
2023-08-30 07:26:35 -07:00
Andrey Goncharov
52a4051b15 Refine NO_VALUE renderer
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48637454

fbshipit-source-id: acc1926036e981c28ad678c2a3c1b7f0d5b9f992
2023-08-30 07:26:35 -07:00
Andrey Goncharov
857e2d2ead Support enum operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605906

fbshipit-source-id: d81243fbc8b33e366e9207f282ba42808cfab533
2023-08-30 07:26:35 -07:00
Andrey Goncharov
f9d5d713ef Support no_value operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605550

fbshipit-source-id: 3c555c5cf2928e2a87686dff4c68516338203197
2023-08-30 07:26:35 -07:00
Andrey Goncharov
f16ff8ade4 Remove extra operators
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605289

fbshipit-source-id: f3168a8db4532ddd368a96f013749e4abc627e0f
2023-08-30 07:26:35 -07:00
Andrey Goncharov
9bca358ab2 Support float operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605219

fbshipit-source-id: 9b919fe59278f77cdbbc036948eb04d585b25baa
2023-08-30 07:26:35 -07:00
Andrey Goncharov
143dce85f1 Support integer operator type
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48605154

fbshipit-source-id: 4662b61b217568e593f6b65c8b4dd1d99ea5606a
2023-08-30 07:26:35 -07:00
Andrey Goncharov
a9fb5d9863 Extract PowerSearchStringTerm
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48601912

fbshipit-source-id: 90f67f1ea19ef6ae8b5d92f26894af2ab20fa821
2023-08-30 07:26:35 -07:00
Andrey Goncharov
380e99400f Simplify config
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48600255

fbshipit-source-id: a57504519000fce4544f6875b2933cd5bcaedba3
2023-08-30 07:26:35 -07:00
Andrey Goncharov
e87ec62552 Remove ordering support for mvp
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48600046

fbshipit-source-id: 9ded79616a822759f0c74dd1e5c6ce6c120b8350
2023-08-30 07:26:35 -07:00
Andrey Goncharov
bee42f442e Expose external API
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599785

fbshipit-source-id: ae5835ece1299d26dcaeb3cb66668aa919900a85
2023-08-30 07:26:35 -07:00
Andrey Goncharov
a492b32bd3 Extract PowerSearchTermFinder
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599226

fbshipit-source-id: 29c5a8182312e5f8c09d78d5cc223ef65cfc841d
2023-08-30 07:26:35 -07:00
Andrey Goncharov
c9ab951e84 Extract PowerSearchTerm
Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU

Reviewed By: lblasa

Differential Revision: D48599166

fbshipit-source-id: 13b447b55408a8673928489312c4d22cf864c232
2023-08-30 07:26:35 -07:00