Commit Graph

9012 Commits

Author SHA1 Message Date
Andrey Goncharov
a27f4580a3 Add string_set_contains_any_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230134

fbshipit-source-id: aa8c4494e707dfbf70568517a50c1f5803fce32a
2023-09-14 04:48:12 -07:00
Andrey Goncharov
17903c22f4 Add string_not_matches_exactly operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230141

fbshipit-source-id: 7dc7bfa06ab413642385c63b1eb25ef2ef69ef43
2023-09-14 04:48:12 -07:00
Andrey Goncharov
113e2a90ad Add string_matches_exactly operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230149

fbshipit-source-id: 7d66733d0ff311a82f9bc5673a2fb204d3ae6a9a
2023-09-14 04:48:12 -07:00
Andrey Goncharov
3206649a29 Add string_not_contains operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230139

fbshipit-source-id: 23d0f9f8f50906c940764e3e9e5382ead9be9d35
2023-09-14 04:48:12 -07:00
Andrey Goncharov
ceac388eed Add string_contains operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49226934

fbshipit-source-id: 12d43334e87b0fb502173143d5a19a48cd2fc9ee
2023-09-14 04:48:12 -07:00
Andrey Goncharov
589937bc8f Add boilerplate for data table power search config and processors
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49230144

fbshipit-source-id: d6e6dfb340fd23c8655e331869600cb474c8e8bc
2023-09-14 04:48:12 -07:00
Andrey Goncharov
f897ab9487 Add DataTable wirh PowerSearch integrated
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D49225985

fbshipit-source-id: ea121c88f4f2275bb15b116858951a8bd2f43cc3
2023-09-14 04:48:12 -07:00
Andrey Goncharov
af73cbb669 Add power search config to data table column config
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D48866308

fbshipit-source-id: 72ed7eb1401e44722d9bb9e680d6fa5d558b8eed
2023-09-14 04:48:12 -07:00
Andrey Goncharov
cb5b3d9f28 Create a separate DataTableWithPowerSearch component
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: lblasa

Differential Revision: D48866151

fbshipit-source-id: c35fa7adb878b7d85782edd37591e2983a96b66a
2023-09-14 04:48:12 -07:00
Lorenzo Blasa
2b4c631652 Certificate and token generation fixes
Summary:
A few things need to be done which are on this change:

- Certificate generation should execute as an atomic operation, hence, it needs to be synchronised.
- Do not generate client token as part of certificate generation. This causes a deadlock now.
- Add more logs for troubleshooting

Reviewed By: aigoncharov

Differential Revision: D49269624

fbshipit-source-id: 071a8e5b895198730b7d914cc4622837e9094e2f
2023-09-14 04:15:18 -07:00
Lorenzo Blasa
cf599f9c3c Move launch further down, temporarily
Summary: Attempt to fix an ongoing issue whereas there's a race condition generating certificates

Reviewed By: passy

Differential Revision: D49237915

fbshipit-source-id: 2383b20cb6ba786166d5e70206b5fff846ed1211
2023-09-13 11:52:46 -07:00
generatedunixname89002005306973
58c891b1d2 Flipper Snapshot Bump: v0.217.1-SNAPSHOT
Summary: Releasing snapshot version 0.217.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D49227619

fbshipit-source-id: 7e0bdb048f825905f310a88de77892e0b5ae254c
2023-09-13 06:56:59 -07:00
generatedunixname89002005306973
879c57fb34 Flipper Release: v0.217.0
Summary: Releasing version 0.217.0

Reviewed By: lblasa

Differential Revision: D49227620

fbshipit-source-id: ac587ecb7f4821d55d123f99c16336e74e276fd4
2023-09-13 06:56:59 -07:00
Lorenzo Blasa
e80843d433 Modal visible -> open
Summary: The `visible` prop is marked as deprecated in favour of `open`

Reviewed By: passy

Differential Revision: D49226821

fbshipit-source-id: 4a4a7d03a1c8ff860c4e4cd02e19071185a8554e
2023-09-13 05:19:13 -07:00
Pascal Hartig
860af1eff7 Fix duplicate key for emulator launcher
Summary: Shows up in the console as a warning. Easy to fix.

Reviewed By: lblasa

Differential Revision: D49189263

fbshipit-source-id: 40428434803db708789811352b76004549d8c086
2023-09-13 04:07:14 -07:00
Lorenzo Blasa
4cdbfff7fb Remove useless tag
Summary: ^

Reviewed By: antonk52

Differential Revision: D49193961

fbshipit-source-id: a51bd8b274a7f6f3bf3cdd7d3ff665430bf7bc3a
2023-09-13 04:06:58 -07:00
Lorenzo Blasa
3292945887 Launch should be blocking and at a later stage
Summary: This should be a blocking call and done later as it depends on the FlipperServerConfig to be set.

Reviewed By: antonk52

Differential Revision: D49193650

fbshipit-source-id: 4f74ca5de30b7f992880bbb9032792fd713203b7
2023-09-13 04:06:58 -07:00
Lorenzo Blasa
dd6cef66f6 Do not log token
Summary: Don't log it, otherwise it may end up in Scuba, we don't want that.

Reviewed By: antonk52

Differential Revision: D49187133

fbshipit-source-id: 38d4ea0801a9abbc463c23340e23f8b55e0d22f3
2023-09-13 04:06:58 -07:00
Lorenzo Blasa
93d94c9fc3 More logs around certificates and token generation
Summary: Useful for triaging defects

Reviewed By: passy

Differential Revision: D49186779

fbshipit-source-id: 743746444ce6e28753434a63d1bee2989cf4f66a
2023-09-13 04:06:58 -07:00
Anton Kastritskiy
a52757aadf include validating @types/* packages' major version in flipper lint ci
Summary: `lint` is already called by CI. No further work is needed.

Reviewed By: LukeDefeo, passy

Differential Revision: D49188675

fbshipit-source-id: 731c21567af329fab4125869bcbea8cc9561a5d3
2023-09-12 08:26:22 -07:00
Anton Kastritskiy
cb4446d76c speed up verifying types deps by parallizing
Summary: read pacakge.json files asyncronosly to speed up script execution

Reviewed By: LukeDefeo, passy

Differential Revision: D49188676

fbshipit-source-id: 55c1eeb8f62c6b3760f2a037592807c7b00af01d
2023-09-12 08:26:22 -07:00
Pascal Hartig
cd392929e0 FLIPPER_DISABLE_KEYTAR env var to use in-memory impl
Summary: Changelog: FLIPPER_DISABLE_KEYTAR env var can be used to force in-memory implementation

Reviewed By: lblasa

Differential Revision: D49183501

fbshipit-source-id: 4ce886303678485673750417b09f272dd3f66623
2023-09-12 04:21:41 -07:00
Lorenzo Blasa
b60a8537ff README cleanup
Summary: Making a few changes to make the information more accurate

Reviewed By: antonk52

Differential Revision: D49152177

fbshipit-source-id: c6dee089a6e30b96c3b8258ef56bebd6eeefaa56
2023-09-12 03:55:37 -07:00
Pascal Hartig
423e06e83b Kill start-dev-server
Summary:
No idea why we have two but this seems unused.

1) https://www.internalfb.com/code/fbsource/[36aa14748056fd22d453685a0ba85817e0059497]/xplat/sonar/desktop/scripts/start-flipper-server-dev.tsx
2) https://www.internalfb.com/code/fbsource/[36aa14748056fd22d453685a0ba85817e0059497]/xplat/sonar/desktop/scripts/start-dev-server.tsx

Reviewed By: lblasa

Differential Revision: D49183502

fbshipit-source-id: 1d685c402bdd366f9da9facc92c6265eb85e34ad
2023-09-12 03:15:41 -07:00
Lorenzo Blasa
a5a3e0494a Better installation wizard
Summary: A few improvements to the installation wizard.

Reviewed By: antonk52

Differential Revision: D49145069

fbshipit-source-id: 1aadd85e1d187bd61983a0b4201b530cbdbf509a
2023-09-11 07:12:20 -07:00
Pascal Hartig
777632b841 Add logging and fallback for failing vpnless requests
Summary:
If a requests fails due to lack of allow-listing or other incompatibilities, we will now fall back to VPN mode while logging an error that will hopefully end up at the plugin owner.

For this, there's a new `vpnMode` option on every request that can also be used to enforce a particular type.

There's a lot of verbose logging that's turned off by default but very handy when debugging. Also potentially useful for plugin authors that are looking into request issues.

Reviewed By: lblasa

Differential Revision: D49023365

fbshipit-source-id: 755393063e379587feda9ae13973877780a1d987
2023-09-11 03:28:06 -07:00
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