Commit Graph

9260 Commits

Author SHA1 Message Date
Lorenzo Blasa
450e6f2d7c Fixes an issue whereas server configuration is not yet set
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50470060

fbshipit-source-id: cc59ac7cace092addbf48dfa16219983bd129cb0
2023-10-19 13:57:36 -07:00
Anton Kastritskiy
64d97998fd fix prod icons
Summary:
Previously we had requested non existing icons. This fixes missing icons on pixel dense screens (macbook pro, 4k screens).

I could add x4, x5 icons as well. Though they are no better than x3. Even x3 is pretty raterized. Ideally we should be serving icons with higher resolution and scaling them down instead of doing this. Even better use SVG icons which we do not have.

Reviewed By: LukeDefeo

Differential Revision: D50454271

fbshipit-source-id: cda90972abb56069e160ddefdc6de460c49d06c0
2023-10-19 07:25:40 -07:00
Luke De Feo
ee7f12ef85 Add message when traversal has error
Summary: By sending a message to the desktop we can report to log view and inform the user what happened

Reviewed By: lblasa

Differential Revision: D50369853

fbshipit-source-id: b4852d736232477261bfdf6f94c9395ce29cceaf
2023-10-19 03:33:42 -07:00
generatedunixname89002005306973
da903b8bc5 Flipper Snapshot Bump: v0.229.1-SNAPSHOT
Summary: Releasing snapshot version 0.229.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50444272

fbshipit-source-id: 5913d464a68c5c9b1bbffc9b8bd4f51c6e09d7f9
2023-10-19 03:12:05 -07:00
generatedunixname89002005306973
a0ffacb6b6 Flipper Release: v0.229.0
Summary: Releasing version 0.229.0

Reviewed By: lblasa

Differential Revision: D50444276

fbshipit-source-id: cb7a962db5bf891787c07626d1eb3dbe5a6c0817
2023-10-19 03:12:05 -07:00
Lorenzo Blasa
f6de499171 Export to manifest on get
Summary:
Every time the token is returned, export it to the manifest.

This covers the case in which the token found in the manifest has already expired.

Reviewed By: antonk52

Differential Revision: D50419458

fbshipit-source-id: 8eefa0e97e234985b34f824190b208bf74e2d8ec
2023-10-18 12:28:06 -07:00
Lorenzo Blasa
82f0c0eb9e Remove Specs directory (#5222)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/5222

No longer used and hasn't been updated in 2+ years.

Reviewed By: LukeDefeo

Differential Revision: D50409395

fbshipit-source-id: 4d64f31cce457737c6954834107a73dd6d1103bd
2023-10-18 12:12:59 -07:00
Anton Kastritskiy
53e44da116 automatic update for docusaurus-plugin-internaldocs-fb@1.16.2
Reviewed By: lblasa

Differential Revision: D50408568

fbshipit-source-id: 068675c51049cb24fd69417e3bd0f7820d558b5e
2023-10-18 09:57:42 -07:00
Anton Kastritskiy
30100989f4 fix tabs + localStorage
Summary:
Key fix is
```diff
-    'Tabs:' + localStorageKeyOverride ?? keys.join(','),
+    'Tabs:' + (localStorageKeyOverride ?? keys.join(',')),
```

Previously it worked like `('Tabs:' + localStorageKeyOverride) ?? keys.join(','),` which always evaluated to `"Tabs:undefined"`. This means that all tabs that were not using localStorageKeyOverride were reusing the same localstorage key. If you open some tabs with A, B, and C tabs. And open tab B. Then open other tabs with D, E, and F. No tab would be selected as the default value would be B.

The second part it extracing keys from `items` prop instead of children.

Reviewed By: lblasa

Differential Revision: D50411422

fbshipit-source-id: 30f70c4347649f29e8c8ff1f2f38fdca7e826198
2023-10-18 09:33:48 -07:00
Lorenzo Blasa
8b24560bc0 Verify token before return
Summary: If the token has already expired, generate another one.

Reviewed By: aigoncharov

Differential Revision: D50410431

fbshipit-source-id: 108a3b344a1bcafd93a8d9bc94cba5c133d099d7
2023-10-18 08:53:46 -07:00
generatedunixname89002005306973
f10ea61ffc Flipper Snapshot Bump: v0.228.1-SNAPSHOT
Summary: Releasing snapshot version 0.228.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50407781

fbshipit-source-id: cd2eb1084e2a7899b57267ad5a7364103f3c0678
2023-10-18 06:50:02 -07:00
generatedunixname89002005306973
f12fc5c983 Flipper Release: v0.228.0
Summary: Releasing version 0.228.0

Reviewed By: lblasa

Differential Revision: D50407780

fbshipit-source-id: b015e08f21fc4f0182e8a6589785e772505163f1
2023-10-18 06:50:02 -07:00
Anton Kastritskiy
b9952410b3 xcode-select copiable command
Reviewed By: ivanmisuno

Differential Revision: D50383695

fbshipit-source-id: 094c0477e44180591b479468fd365959e485da8a
2023-10-18 05:55:23 -07:00
Anton Kastritskiy
683fbfd6fb doctor result can display copiable CLI commands
Reviewed By: lblasa, ivanmisuno

Differential Revision: D50383150

fbshipit-source-id: 201f239cc7d69bd03011ec817156163f9f6ed653
2023-10-18 05:55:23 -07:00
Andrey Goncharov
a0a9465c0b Fix dark theme support
Reviewed By: lblasa

Differential Revision: D50406262

fbshipit-source-id: eda5c73efcd50dbe572cab078d3c04a4cd845601
2023-10-18 04:15:05 -07:00
Andrey Goncharov
3d4b36f14e Hide emulator loading page for disabkled platforms
Reviewed By: lblasa

Differential Revision: D50405264

fbshipit-source-id: c051414ad3b269cf2bc145aa4da13c20517edb36
2023-10-18 04:12:21 -07:00
Lorenzo Blasa
65fef5fbc3 Remove token from URL query string
Summary: This can be provided as an override, but is not needed for regular usage.

Reviewed By: antonk52

Differential Revision: D50405097

fbshipit-source-id: 7238f99ef08bfdf5c7adda0e8c3294341ae86e89
2023-10-18 03:40:59 -07:00
Anton Kastritskiy
b6560e1c74 check xcode-select is using the latest major version available
Reviewed By: mweststrate

Differential Revision: D50369254

fbshipit-source-id: 140a044ca55ec1f445b38e02c7df13cb667d89c6
2023-10-17 16:01:08 -07:00
Anton Kastritskiy
73862c9408 refine typescript type of tryExecuteComand
Summary: You can now descriminate based on `hasProblem`. Thus removing asserting operator

Reviewed By: LukeDefeo

Differential Revision: D50366398

fbshipit-source-id: a16a5419ce946831bd2d1624b1baa75c89a47aa3
2023-10-17 16:01:08 -07:00
Vitalii Ganzha
1a6e0ef42e Update FlipperPlugin C++ code so it can be compiled for Windows
Summary:
I am working in Horizon Worlds and I would like to integrate Flipper with HzW app.
Currently FlipperPlugin C++ code won't compile on Windows since it uses Linux-only headers like `netdb.h` and `sys/fcntl.h`, I posted here and looks like it is not currently supported: https://fb.workplace.com/groups/flippersupport/posts/1704837183330266

The problem seem to be in only in `FlipperConnectionEndpointVerifier.cpp`, and I'm updating it to make it compatible with Windows.

Also apparently there's some issue with `#include` of few files and namespaces, leading to "struct redefinition" errors where `#pragma once` does not help https://fb.workplace.com/groups/474291069286180/posts/25313067014981908/

Solving it with manual #define

Reviewed By: lblasa

Differential Revision: D50337573

fbshipit-source-id: affdf1aee2b9dfe615227827fedf324a5f17d8b0
2023-10-17 09:49:11 -07:00
Andrey Goncharov
7040e56185 Add loader while waiting for an emulator to start
Reviewed By: lblasa

Differential Revision: D50367884

fbshipit-source-id: cdc7c408bf2eb4ea3f7f4f03c27ca72e8bbe2947
2023-10-17 09:27:30 -07:00
Andrey Goncharov
cc76a21d80 Add more tracking data for UI startup
Reviewed By: lblasa

Differential Revision: D50365803

fbshipit-source-id: b6a601e7bf987738400a86be6814de7cafd50d3d
2023-10-17 08:28:02 -07:00
Lorenzo Blasa
17103ce1fa If failure, track client type
Summary: Add client type information to client errors

Reviewed By: aigoncharov

Differential Revision: D50365929

fbshipit-source-id: f1544b3974c5dfa4fc9b3b6229d6ebb6334dc0d9
2023-10-17 08:05:53 -07:00
generatedunixname89002005306973
51c8881fc7 Flipper Snapshot Bump: v0.227.1-SNAPSHOT
Summary: Releasing snapshot version 0.227.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50327904

fbshipit-source-id: 183239129828174249eda9782995e5e1aec3538e
2023-10-16 11:31:18 -07:00
generatedunixname89002005306973
56c0cee119 Flipper Release: v0.227.0
Summary: Releasing version 0.227.0

Reviewed By: lblasa

Differential Revision: D50327905

fbshipit-source-id: 0d47229ec2d8710a5a07d8581ae86e77815ecef5
2023-10-16 11:31:18 -07:00
Lorenzo Blasa
833e4f0422 Remove non-existent entry from tsconfig.json
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50304142

fbshipit-source-id: c1d0d06b30ebdf10b20341d926efbd6a8c8eaa63
2023-10-16 10:22:55 -07:00
Andrey Goncharov
ee7736caee Add a more complex logger to Flipper UI Browser
Reviewed By: passy, lblasa

Differential Revision: D50223987

fbshipit-source-id: 108e1753b555c7d7b32d3fc2408c2f8efcbadb4d
2023-10-16 09:27:50 -07:00
Lorenzo Blasa
8a11043f37 Release build integration
Summary: This is the immediate follow-up from the previous diff which aims to integrate the MacOS app into our release build script, meta only.

Reviewed By: antonk52, aigoncharov

Differential Revision: D50301369

fbshipit-source-id: 23a4842666c3a7aa9616c6237e16b71bae87ba36
2023-10-16 08:35:48 -07:00
Andrey Goncharov
9ab0e84b1b Bring back transmitting server logs to the client
Reviewed By: lblasa

Differential Revision: D50263610

fbshipit-source-id: 652970f95ad50998c4c2f3f0e48cfce5a2d64cc1
2023-10-16 05:44:07 -07:00
Lorenzo Blasa
fe7a839b14 TokenProvider can fail if the server is offline
Summary: If the server is offline, the fetch request will fail and this was not properly handled.

Reviewed By: antonk52

Differential Revision: D50299455

fbshipit-source-id: dab8336dedaf93db049dc703a23f9e33935212be
2023-10-15 12:57:59 -07:00
Pascal Hartig
d40ccc8786 Update flipper-runtime icon in server app bundle
Summary: Changelog: When requesting Keychain Access, you will now see "flipper-runtime" instead of a generic "node" process.

Reviewed By: lblasa

Differential Revision: D50261830

fbshipit-source-id: ef6fd7d5099c4ff7370f0401a5de3fde1659f1f3
2023-10-13 09:01:21 -07:00
Michel Weststrate
8f056646d9 Back out "auto start server"
Summary:
Original commit changeset: 2c11e80429a2

Original Phabricator Diff: D50074673

lblasa got reports it doesn't always work (possibly permission issues)

Reviewed By: lblasa

Differential Revision: D50259755

fbshipit-source-id: 1cd5f92c4e6e40a06340ecfebea01b899ac1cc85
2023-10-13 07:54:20 -07:00
Lorenzo Blasa
6468665116 Improve device listing
Summary: Do not use mutex for device listing.

Reviewed By: antonk52

Differential Revision: D50265112

fbshipit-source-id: 9b3bf4f9351e28dfb6366b6b787ec8b466b9bc47
2023-10-13 07:50:25 -07:00
Pascal Hartig
c80be9960a Use fetch() to download node
Summary: This is more reliable and follows redirect which we need for GitHub downloads.

Reviewed By: antonk52

Differential Revision: D50263976

fbshipit-source-id: d001b6eb460510b0b673ea66651e7c39cac3092f
2023-10-13 07:18:10 -07:00
Pascal Hartig
0cb5331c31 Fix spurious server build error on MacOS
Summary:
Copying files will randomly fail with something akin to

```
Error: Cannot copy '../acirb/bin/acorn' to a subdirectory of itself, '../acorn/bin/acorn'.
```

See https://github.com/jprichardson/node-fs-extra/issues/708

Reviewed By: antonk52

Differential Revision: D50263977

fbshipit-source-id: 39091ef57b79c692ec89e7a250595509839e2af8
2023-10-13 07:18:10 -07:00
Andrey Goncharov
20038cdd80 Start Flipper HTTP server even if app server fails to start
Summary:
**Issue**
From passy:
when one of the app server ports is occupied, Flipper PWA is stuck at the loading screen

Reviewed By: passy

Differential Revision: D50261985

fbshipit-source-id: 8ce90cd6d515c26a824645f642dacbe92e7f4105
2023-10-13 04:24:10 -07:00
Pascal Hartig
0134b66f37 Save node binary with name flipper-runtime
Summary:
As discussed with lblasa. This solves a few issues:

- Confusing names in `ps` and Activity Monitor related to Flipper.
- Permission requests for the Keychain from "node" lead users to deny it.
- Seeing "node" as allowed apps for an entry in Keychain is confusing.

Reviewed By: lblasa

Differential Revision: D50232337

fbshipit-source-id: 3bc92aae0ca31d1a80582fb8a794bbc64fc2f2e5
2023-10-13 03:31:11 -07:00
Anton Kastritskiy
436203161d Change process title to flipper-runtime
Summary:
Even though node docs state

> Assigning a value to process.title might not result in an accurate label within process manager applications such as macOS Activity Monitor or Windows Services Manager.

Locally this worked for me on M1 machine. Will test on intel as well.

Reviewed By: lblasa

Differential Revision: D50228844

fbshipit-source-id: 69937ded7da259e05335df50332ea114ff566f21
2023-10-12 15:37:23 -07:00
Andrey Goncharov
0e664d274a Track browser connections
Reviewed By: lblasa

Differential Revision: D50225630

fbshipit-source-id: 31842fcde494ec05edf2458396d466239397d2c8
2023-10-12 15:16:11 -07:00
Lorenzo Blasa
77d67c24db Retry and UX improvements when listing simulators
Summary:
If we fail to obtain simulators, retry.

Also, display platform title regardless.

Reviewed By: antonk52

Differential Revision: D50223890

fbshipit-source-id: 7d8176521ad6bf75044fe4e3ef6a6e369bed2358
2023-10-12 09:17:26 -07:00
Lorenzo Blasa
db4d15ed05 URL and Token provider
Summary:
Use an URLProvider paired with a token provider for attempts to establish a websocket connection.

This gives extra flexibility whenever a token is not available or changes as the ReconnectingWebSocket will call the URLProvider after each unsuccessful connection.

Reviewed By: antonk52

Differential Revision: D50220329

fbshipit-source-id: f53993a90c9c0f64bf213019b6b8af5fa818048d
2023-10-12 04:29:13 -07:00
Lorenzo Blasa
8cc35d74ef Server fs log shouldn't be JSON
Summary:
The logs written to the file shouldn't be JSON.

It just makes it hard to read and there's no tool to process this either.

Instead, write the logs as seeing in the console for easier reading.

Reviewed By: antonk52

Differential Revision: D50219806

fbshipit-source-id: a07fb53a10b36e1a3c2992a133b8c0c818bd816b
2023-10-12 04:29:13 -07:00
Michel Weststrate
0c701eeffb auto start server
Summary:
This will automatically invoke the "Start" button if Flipper detect it is offline, to automate that step. It will do so only once

(safe for the reload logic that also triggers on server errors, not sure if that was intentionally?)

Reviewed By: lblasa

Differential Revision: D50074673

fbshipit-source-id: 2c11e80429a2c4ed0e43e62cb2f6057fad5eb410
2023-10-11 11:46:23 -07:00
generatedunixname89002005306973
f1fc7fafd5 Flipper Snapshot Bump: v0.226.1-SNAPSHOT
Summary: Releasing snapshot version 0.226.1-SNAPSHOT

Reviewed By: antonk52

Differential Revision: D50173835

fbshipit-source-id: 891abd4289c5181f56a76f767e3a6441f3e178b8
2023-10-11 11:13:10 -07:00
generatedunixname89002005306973
3e721d15af Flipper Release: v0.226.0
Summary: Releasing version 0.226.0

Reviewed By: antonk52

Differential Revision: D50173834

fbshipit-source-id: 4cab7655169d7429d0ba9bb54a4a89ea4df3eccf
2023-10-11 11:13:10 -07:00
Andrey Goncharov
a3383f1f6d Add power search docs
Reviewed By: antonk52

Differential Revision: D50170852

fbshipit-source-id: 36b07d70ab136cc3e0165473c784bf14f0bff302
2023-10-11 07:32:32 -07:00
Anton Kastritskiy
2edcb29e46 Back out "ESM plugin bundles"
Summary:
Original commit changeset: 2a60315dd5c0

Original Phabricator Diff: D50015827

Reviewed By: lblasa

Differential Revision: D50168201

fbshipit-source-id: 3430c37b0aa6a5e3a5ec35fb4c54f01899236173
2023-10-11 04:21:54 -07:00
Anton Kastritskiy
114a60d510 Back out "correct stack traces in flipper ui"
Summary:
Original commit changeset: 09da568db0dd

Original Phabricator Diff: D50015828

Reviewed By: lblasa

Differential Revision: D50168198

fbshipit-source-id: 0fe22ac881365cfe6d1d21babbcddc6f1fae314b
2023-10-11 04:21:54 -07:00
Anton Kastritskiy
9f22952ef2 Back out "fallback to handle plugins as commonjs if dynamic import fails"
Summary:
Original commit changeset: edef9999ad44

Original Phabricator Diff: D50081726

Reviewed By: passy, lblasa

Differential Revision: D50168200

fbshipit-source-id: ba96101bc63409af8ec81857efa81e5aeeb0e3cb
2023-10-11 04:21:54 -07:00
Anton Kastritskiy
04a26d2574 automatic update for docusaurus-plugin-internaldocs-fb@1.16.1
Reviewed By: nikoant

Differential Revision: D50087935

fbshipit-source-id: 1ae7c52c87b731d84e64bdea75f8b7f901a1def3
2023-10-10 14:26:03 -07:00