Commit Graph

9227 Commits

Author SHA1 Message Date
Andrey Goncharov
b34718ac32 Extend docs
Reviewed By: antonk52

Differential Revision: D51305961

fbshipit-source-id: a4ca7365def6ebf43b84668f63887cc81f82fb36
2023-11-15 05:00:21 -08:00
Andrey Goncharov
f01568bf59 Prevent duplicate browser connection reporting
Reviewed By: lblasa

Differential Revision: D51347107

fbshipit-source-id: 14f4507835794d76b17f9a6891f22dbc0cc1a8f7
2023-11-15 04:22:11 -08:00
Andrey Goncharov
ed7a7f7bd0 Fix processExit
Summary: setTimeout should terminate process if graceful termination takes too long. Before, we scheduled the timer only *after* the graceful termination completes which does not make any sense

Reviewed By: lblasa

Differential Revision: D51346673

fbshipit-source-id: b5adadbcf474a8c66839e1fc70bcc6482c47635e
2023-11-15 03:46:46 -08:00
Lorenzo Blasa
6ccae92918 PWA for development
Summary: This was not possible in the past because the entry points for dev and production were different. This is no longer the case.

Reviewed By: antonk52

Differential Revision: D51346250

fbshipit-source-id: fc482a9d90352ea4e897092e7670920f148fa274
2023-11-15 03:45:25 -08:00
Lorenzo Blasa
6b54bd3173 Remove no longer needed index.web.dev.html
Summary: This is a duplicate, is not needed, causes confusion.

Reviewed By: aigoncharov

Differential Revision: D51307091

fbshipit-source-id: 4d55d727ea5f20100ecd15ad6e23aa0c01722524
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
f1b35ca592 Make HTML entry points identical
Summary: Make both prod and dev HTML entry points identical.

Reviewed By: aigoncharov

Differential Revision: D51307116

fbshipit-source-id: 5aea8e455d623aba260e3e37a2c549ebc67dd3b0
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
65d2ce7ed5 Move dev socket
Summary: Not entirely sure what the use of this socket is, but it can definitely be defined inside flipper-ui-browser instead.

Reviewed By: aigoncharov

Differential Revision: D51307090

fbshipit-source-id: 36eb336536e8672fb0b2bcf12dad31c7fbc00a39
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
af3f11521b Remove probably duplicated logs
Summary: These logs only available on debug but we already have these logs coming from the actual used socket, so remove.

Reviewed By: aigoncharov

Differential Revision: D51307089

fbshipit-source-id: 32e3eada42fa54b429df0bfcdd936d24cebaf0cb
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
067693f3c8 Standard message between prod and dev
Summary: These two texts were different, they should be the same for consistency.

Reviewed By: aigoncharov

Differential Revision: D51307086

fbshipit-source-id: a71fb7e6cf072df73e7f9fb386245f266984900b
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
11ec4c3107 Remove unused css
Summary: This CSS was unused, so remove.

Reviewed By: aigoncharov

Differential Revision: D51307093

fbshipit-source-id: a978d76fca7cfb07c96180c4ece0b1bdf1087894
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
7de92cb34a Config set from server
Summary: Instead of having duplicate configs defined on our HTML. Move the config definition to the server.

Reviewed By: aigoncharov

Differential Revision: D51307092

fbshipit-source-id: 68f4afc918cf191b3a15b3981429c5a05d5df8df
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
9166939214 Rename constants
Summary: After the move, let's rename the constants to make them match our code standards.

Reviewed By: aigoncharov

Differential Revision: D51307087

fbshipit-source-id: 4e44e956fd88abd3e8359fe94fa4e31d17f61a55
2023-11-14 10:53:09 -08:00
Lorenzo Blasa
49abb4dd41 Move constants to flipperConfig
Summary: Recently we have added a few constants to be used by our main entry point. This change moves them to a central place: flipperConfig.

Reviewed By: aigoncharov

Differential Revision: D51307088

fbshipit-source-id: 09f0ef0e69e2067ce5c8501367629eeec7523858
2023-11-14 10:53:09 -08:00
Luke De Feo
0889a0e02d Tooltip for node type icon
Reviewed By: aigoncharov

Differential Revision: D51307310

fbshipit-source-id: 9a522928102de6a28c0307568451acaed969edc5
2023-11-14 08:40:48 -08:00
Anton Kastritskiy
6c4c579f27 Increase max width for resizable sidebar
Reviewed By: LukeDefeo

Differential Revision: D51305977

fbshipit-source-id: 03fbdba01d01aaecdd182538aed64ae396818f4d
2023-11-14 08:14:37 -08:00
generatedunixname89002005306973
b633766199 Flipper Snapshot Bump: v0.238.1-SNAPSHOT
Summary: Releasing snapshot version 0.238.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D51298284

fbshipit-source-id: 51f30bd24af2bb2a40b3e4d87cd7acb7e9bbe4ce
2023-11-14 06:28:51 -08:00
generatedunixname89002005306973
ed80151768 Flipper Release: v0.238.0
Summary: Releasing version 0.238.0

Reviewed By: aigoncharov

Differential Revision: D51298282

fbshipit-source-id: ed64ff1a72194f6f4de0a87a8e05a2de83e29cc1
2023-11-14 06:28:51 -08:00
Andrey Goncharov
9910807826 Fix power search for slogs
Reviewed By: antonk52

Differential Revision: D51232391

fbshipit-source-id: 6501f60ee4168c62d1d4efefcfcc698d4954e7ac
2023-11-14 06:28:11 -08:00
Anton Kastritskiy
f6445fea43 Check if Android Studio is installed
Summary:
Since Android Studio is technically not required, I made this check optional.
Though, these steps will gurantee that android env will work for an engineer who opened flipper for the first time

Reviewed By: lblasa

Differential Revision: D51267272

fbshipit-source-id: f30e58f322ea080b00a27ae86b871df2b39e1bb9
2023-11-14 04:29:59 -08:00
Anton Kastritskiy
d88cf41a24 Always write ANDROID_HOME and ANDROID_SDK_ROOT
Summary:
When flipper starts it writes to both env vars the value from settings. This is needed for subprocesses to have access to them.

The problem with the check for both env vars is
- In prod environment applications does not have access to them
- In dev, when developers launch flipper from terminal (`yarn run flipper-server`) it picks up these env vars if they are set which can cause different behaviour in dev and prod

To make flipper work more deterministic, for users and us. I removed this check and now we always write to these env vars what the user has provided in flipper settings or the default.

Reviewed By: lblasa

Differential Revision: D51266495

fbshipit-source-id: cf3adfd4ba83a733a30b5b0b29c270b32ff3a61a
2023-11-14 02:54:59 -08:00
Lorenzo Blasa
bc77dcf326 Simplify shutdown logic
Summary:
The previous logic aimed to reuse an existing server during bootstrap if the launched version was higher than the running one. This is no longer required or wanted.

## Risk assessment: LOW
### Rationale
It is extremely rare to launch Flipper whilst already having another instance running. This can happen during development, but it is extremely rare in production.

Launcher (singleton) launches Server (singleton).
Launcher can be executed multiple times and this will not create newer server instances.

If anything, if we are unable to kill any other instance, whatever that may be, continue. This is to cover the cases where a shutdown may have been acknowledged but the process is still shutting down.

Reviewed By: antonk52

Differential Revision: D51232901

fbshipit-source-id: 8b8b85f4bac68f5670b1878e827871f78dc68999
2023-11-13 12:51:45 -08:00
Anton Kastritskiy
1199e1f667 Update settings location to reflect new nav bar
Reviewed By: elboman

Differential Revision: D51257953

fbshipit-source-id: f19d2a1343276ee066b422e85b71e4d0a8e7bdb9
2023-11-13 08:26:13 -08:00
Anton Kastritskiy
cb485613e4 Internal Xcode install instruction
Reviewed By: elboman

Differential Revision: D51257660

fbshipit-source-id: 6cf213135f1070def3e62e936d6147b15749b7de
2023-11-13 08:26:13 -08:00
Luke De Feo
9dea899701 use new api for enum
Summary: Also fixed time column

Reviewed By: aigoncharov

Differential Revision: D51255567

fbshipit-source-id: 70a708a0e502eeaf1e51b8ace41dc588b9c0543d
2023-11-13 06:02:32 -08:00
Luke De Feo
437e67cd7f Remove uneeded operators from simplified config
Summary:
The single value == / contains are covered by the setlike oper /ators.

Less operators is better as less overwhelming. Plus with the group operators you can add futher options or'ed togther which is a complain from the user.

Reviewed By: aigoncharov

Differential Revision: D51255253

fbshipit-source-id: 72f909319fd3d8034ebe4725a5a5254ecfeb074b
2023-11-13 06:02:32 -08:00
Luke De Feo
4ada8b9322 Summary:
Make as manything as inferred enum as possible

changelog: [Logs] Improve power search config to populate dropdown for level, PID & Tag

Reviewed By: aigoncharov

Differential Revision: D51199644

fbshipit-source-id: 383b61abca5d91a8e318bbfb1aac7d3852074167
2023-11-13 04:43:05 -08:00
Andrey Goncharov
a400eb2872 Finalize log stream before exiting process
Reviewed By: antonk52

Differential Revision: D51229230

fbshipit-source-id: 0e7f657a170eb8602ade9abf1db1976c5b51dc3f
2023-11-11 08:21:12 -08:00
Anton Kastritskiy
0cbd640e5c expand on ios doctor suggestions
Summary:
this should help to address support posts like this one

https://fb.workplace.com/groups/flippersupport/posts/1724631861350798

Reviewed By: potomak

Differential Revision: D51203549

fbshipit-source-id: 097faeb6c9d506bc1fa2ac4602cba95e99a4e2cb
2023-11-10 09:54:08 -08:00
Anton Kastritskiy
45157c3675 Change order of ios checks
Summary:
Current order is confusion, the new order better reflects order at which users gets started with iOS

1. Install Xcode
2. Point Xcode-select at most recent xcode version
3. Install SDK
4. Accept Xcode SDK license
5. check idb health

Reviewed By: lblasa

Differential Revision: D51202202

fbshipit-source-id: da39acf7ef325889c2288b3941cef0ca803356cd
2023-11-10 09:54:08 -08:00
Anton Kastritskiy
b7a4741e40 remove all mentions of metro from flipper-ui-core
Summary: All functionality was about selecting plugins

Reviewed By: lblasa

Differential Revision: D51200129

fbshipit-source-id: edc33c2b989eabec2ca4a7e285f92c50950977ed
2023-11-10 09:34:52 -08:00
Anton Kastritskiy
5269800738 remove metro button
Reviewed By: lblasa

Differential Revision: D51199560

fbshipit-source-id: ebd844a57b0b30859b186361136cc8a2f897d9f2
2023-11-10 09:34:52 -08:00
Andrey Goncharov
9ca6f01c40 Use simplified enum config for network plugin
Reviewed By: LukeDefeo

Differential Revision: D51203032

fbshipit-source-id: fc2a9a1dcd55ca05381037743622b5aa9b45f24f
2023-11-10 09:08:28 -08:00
Andrey Goncharov
cd9db40e4f Support occasionally stringified null and undefined in enums
Reviewed By: LukeDefeo

Differential Revision: D51202685

fbshipit-source-id: 74d0a3d7ed956f3fafc393f180b30cd2fcc55384
2023-11-10 09:08:28 -08:00
Andrey Goncharov
2d28ca2c37 Support enum label inferral for simplified config
Reviewed By: LukeDefeo

Differential Revision: D51199436

fbshipit-source-id: c611f0d5a21d7500447342d3e2a5e12c55e9b67d
2023-11-10 09:08:28 -08:00
Anton Kastritskiy
2d253b1387 fix displayed error in virtual device picker
Summary: Error thrown from server is serialiased that is a string, not instance of Error

Reviewed By: LukeDefeo

Differential Revision: D51201870

fbshipit-source-id: 833818789a50a21d3d27e0388635e0e2b7470c9d
2023-11-10 08:03:34 -08:00
Anton Kastritskiy
e5f6ad0ca6 default adb path
Summary:
As I was setting up a new mac I had to change this setting in flipper settings.

From a few android people that I've spoken to no one could answer me if the old one is still used.

Ideally we should infer this during the first time flipper starts

- `/opt/android_sdk` current default
- `$HOME/Library/Android/sdk` adb from Android Studio
- `$HOME/fbsource/third-party/toolchains/android-sdk` adb that is always available in fbsource

Reviewed By: lblasa

Differential Revision: D51120929

fbshipit-source-id: edb2a58b9c9f37465ea2fc5493975dd427d5523b
2023-11-10 08:03:34 -08:00
generatedunixname89002005306973
b08e6feb44 Flipper Snapshot Bump: v0.237.1-SNAPSHOT
Summary: Releasing snapshot version 0.237.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D51199541

fbshipit-source-id: 97420b530bee02d2721af752a13dcd8020ada369
2023-11-10 06:50:40 -08:00
generatedunixname89002005306973
91efcce5c5 Flipper Release: v0.237.0
Summary: Releasing version 0.237.0

Reviewed By: aigoncharov

Differential Revision: D51199543

fbshipit-source-id: 4579641a9c113cd14127db69a180e76358b68de9
2023-11-10 06:50:40 -08:00
Andrey Goncharov
a1070b8cea Add regex support
Reviewed By: LukeDefeo

Differential Revision: D51198464

fbshipit-source-id: 445cc47f90c2730f3b0728e5bf667330274d103d
2023-11-10 04:34:09 -08:00
Anton Kastritskiy
d023bcc42e remove shortcuts
Reviewed By: aigoncharov

Differential Revision: D51159922

fbshipit-source-id: fbb59b416f92b9156c74a12247da8d0df07f1a4e
2023-11-10 04:33:02 -08:00
Andrey Goncharov
04b4bf7bdf Setup prefetcher during startup
Reviewed By: passy

Differential Revision: D51198236

fbshipit-source-id: 00781afda72258f2aee64a9d0481117979c49031
2023-11-10 04:11:35 -08:00
Andrey Goncharov
4b3f572205 Preserve previous error messages
Reviewed By: passy

Differential Revision: D51197113

fbshipit-source-id: 237c6f1f894cb4d758150ff2bddf14c104d3b381
2023-11-10 03:39:32 -08:00
Andrey Goncharov
8348d617d0 Fix token replacements
Reviewed By: lblasa

Differential Revision: D51196650

fbshipit-source-id: 184c104b32a1d619163c799ae70419e6aad23e98
2023-11-10 03:35:14 -08:00
Andrey Goncharov
6e19c4155c Track session length
Differential Revision: D51172955

fbshipit-source-id: d4f93564a94e232066347c945fa4798033dc0da1
2023-11-09 14:34:52 -08:00
Andrey Goncharov
8ef29c8160 Embed auth token into HTML
Summary:
Auth token used be injected in the manifest file. Instead, have the server injected into the main HTML page.

The main driver to this change are:
- Simplify
- There are instances in which for some reason reading/writing the token from the manifest fails. This will address that problem.

Reviewed By: lblasa

Differential Revision: D51160521

fbshipit-source-id: 4626fd8f56bc8b61182a53a5d9cf5acad1e723bc
2023-11-09 14:05:43 -08:00
Lorenzo Blasa
69378c4b09 Add logs for early exit when writing token to manifest
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D51154908

fbshipit-source-id: 0c04ee50d07db1478ec5a77faa6d6157b7c9960b
2023-11-09 09:08:33 -08:00
Andrey Goncharov
d54bd7c3ba Refactor browser connection performance tracking
Reviewed By: lblasa

Differential Revision: D51158256

fbshipit-source-id: 17e020dd3c26ac73bf2cf0ceb4c664638c6778e9
2023-11-09 08:25:28 -08:00
Andrey Goncharov
54217f2c79 Use simplified power search config
Reviewed By: lblasa

Differential Revision: D51116200

fbshipit-source-id: a73036020649c06cb5afeb78d9c219a77dac7d4a
2023-11-09 05:08:16 -08:00
Andrey Goncharov
b5cb7fcce2 Support simplified power search config
Summary: It is quite cumbersome to list all of the operators. Much simpler to use a predefined set of power search operators we set up for each specific filed type

Reviewed By: lblasa

Differential Revision: D51116029

fbshipit-source-id: 5dd0b7f4176097109666107dfc3cab996379b818
2023-11-09 05:08:16 -08:00
Andrey Goncharov
284dee0460 Extend default list of operators for unconfigured columns
Summary:
It does not make too much sense to keep the unknown value conversion behind a flag. It is relatively cheap. Let's do it for all strings.
Also, let's extend the list of default string operators

Reviewed By: lblasa

Differential Revision: D51115573

fbshipit-source-id: a62c08a90d8ddf6f23f59412c3fd981e19225e47
2023-11-09 05:08:16 -08:00