Commit Graph

9024 Commits

Author SHA1 Message Date
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
Andrey Goncharov
16b3edacb1 Track final loading event
Reviewed By: lblasa

Differential Revision: D50121103

fbshipit-source-id: 1f67bf475b6b7b68db3d63dab5a05cccde4c121b
2023-10-10 06:51:13 -07:00
Andrey Goncharov
aea57a44a2 Track render of sandy container
Reviewed By: lblasa

Differential Revision: D50121105

fbshipit-source-id: 0aa74afe1da069fa28bdd3cf26df8e0cbcefd320
2023-10-10 06:51:13 -07:00
Andrey Goncharov
7597b2c826 Track root render
Reviewed By: lblasa

Differential Revision: D50121104

fbshipit-source-id: 7f3560fe67f3a84e21fe7819a7f3a0b889716cc9
2023-10-10 06:51:13 -07:00
Andrey Goncharov
a90ff51e2c Track store rehydrated
Reviewed By: lblasa

Differential Revision: D50121107

fbshipit-source-id: f2548a4303bd7ce5a38c32eb76f50c440201b397
2023-10-10 06:51:13 -07:00
Andrey Goncharov
6f7027bccd Add ui performance tracker
Reviewed By: lblasa

Differential Revision: D50121106

fbshipit-source-id: 54650de65e11c80ea776eafd85cdd5b7749a4fd4
2023-10-10 06:51:13 -07:00
Anton Kastritskiy
5a5a509d4d fallback to handle plugins as commonjs if dynamic import fails
Summary: This should help us to make flipper more reliable and avoid failing loading plugins if they are loaded from cache(old ones)

Reviewed By: lblasa

Differential Revision: D50081726

fbshipit-source-id: edef9999ad44660331153a082e15c6f3f5de9b05
2023-10-10 03:37:21 -07:00
Anton Kastritskiy
76cb3190fd correct stack traces in flipper ui
Reviewed By: ivanmisuno

Differential Revision: D50015828

fbshipit-source-id: 09da568db0dd75c4a07e4ff23704b81149444b75
2023-10-10 03:37:21 -07:00
Anton Kastritskiy
c4a1c90a1e ESM plugin bundles
Summary:
This change will allow us to display correct stack traces in flipper UI as well as send them to scuba.

Currently correct stack traces are only displayed in the console and we do not have access to them.

Reviewed By: ivanmisuno

Differential Revision: D50015827

fbshipit-source-id: 2a60315dd5c06b2635ce0414f612ff1fdca0e489
2023-10-10 03:37:21 -07:00
Lorenzo Blasa
4554e27eca Add '-' to comment
Summary: ^

Reviewed By: antonk52

Differential Revision: D50077998

fbshipit-source-id: d21b11c62798df934b0fa72eaf96c6a82f7f9436
2023-10-09 05:36:24 -07:00
Lorenzo Blasa
b898e349a2 Remove unused replace arg
Summary:
There used to be a flag to control whether we wanted to replace an existing running instance.

No longer in use so safe to delete.

Reviewed By: antonk52

Differential Revision: D50077975

fbshipit-source-id: 8d7bad1f85e4520fd006cdcabe6e9899468688cc
2023-10-09 05:36:24 -07:00
Lorenzo Blasa
b11a85c4b3 Server error and endpoint metrics
Summary: Better than using logs.

Reviewed By: antonk52

Differential Revision: D50012506

fbshipit-source-id: 2f0e9bf8cb7282d35dc5619e620d005b96663fd5
2023-10-06 08:26:09 -07:00
Lorenzo Blasa
66dac8112b Aggregated startup ms
Summary: ^

Reviewed By: antonk52

Differential Revision: D50012359

fbshipit-source-id: f71f57e1493e6f9f662e9af24a0f8d0ae1229b1b
2023-10-06 08:26:09 -07:00
generatedunixname89002005306973
4ff6fe3050 Flipper Snapshot Bump: v0.225.1-SNAPSHOT
Summary: Releasing snapshot version 0.225.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D50008888

fbshipit-source-id: abe12e39c636f6016ca8bf1dc347e390def61fae
2023-10-06 05:18:19 -07:00
generatedunixname89002005306973
c90751e0f1 Flipper Release: v0.225.0
Summary: Releasing version 0.225.0

Reviewed By: lblasa

Differential Revision: D50008889

fbshipit-source-id: b6b8b4118383e30a3f4cb74286316e9662ea860e
2023-10-06 05:18:19 -07:00
Lorenzo Blasa
33962d4fa4 Get token before opening
Summary:
Get the authentication token before an open as either browser or PWA.

There could be cases whereas the PWA gets launched first before the token is exported to the manifest and thus it makes it not possible to connect on a first launch.

Reviewed By: antonk52

Differential Revision: D50004992

fbshipit-source-id: d58b7a75dcb9aaf7fadd3e3c3a773581441f9d92
2023-10-06 03:26:14 -07:00
Lorenzo Blasa
f11052cffd Log if token is obtained from manifest
Summary: ^

Reviewed By: antonk52

Differential Revision: D50004785

fbshipit-source-id: c8809c1ff5b6b32722e9df2d7e4002be533f615d
2023-10-06 03:26:14 -07:00
Lorenzo Blasa
e8aad89b0b Set unresponsive timeout
Summary: Set a timeout period to become ready. It is better to kill the server if not ready, than keeping it alive.

Reviewed By: antonk52

Differential Revision: D50004605

fbshipit-source-id: be1d2c022c634ece059fc03eb6faea695431ba95
2023-10-06 03:26:14 -07:00
Lorenzo Blasa
541570c8ab Add client logs for different stages
Summary: ^

Reviewed By: antonk52

Differential Revision: D49973541

fbshipit-source-id: 3bac97fb22586cc49e74dd5deceeb5310a1385bc
2023-10-05 22:42:37 -07:00
generatedunixname89002005306973
5b114524d9 Flipper Snapshot Bump: v0.224.1-SNAPSHOT
Summary: Releasing snapshot version 0.224.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D49969019

fbshipit-source-id: 65f288d175dd0685e56dcf9609ef9f24ed716c96
2023-10-05 22:39:45 -07:00
generatedunixname89002005306973
36ad271cd7 Flipper Release: v0.224.0
Summary: Releasing version 0.224.0

Reviewed By: lblasa

Differential Revision: D49969020

fbshipit-source-id: 0ef4b2ef6cb101ada06e27c4a804f356aa5f39a3
2023-10-05 22:39:45 -07:00
Lorenzo Blasa
36495fca34 Change style of button when clicked
Summary: Change style of the button once disabled.

Reviewed By: antonk52

Differential Revision: D49960254

fbshipit-source-id: 048fc3b8cc78d7f2a5b167bee30d664344cbe90d
2023-10-05 15:57:23 -07:00
Lorenzo Blasa
118e5edd24 Do not use preload response
Summary: Always use the server

Reviewed By: antonk52

Differential Revision: D49952286

fbshipit-source-id: 52d2141d5c082e11dfd991534c8213886f526c6a
2023-10-05 12:30:33 -07:00
Lorenzo Blasa
f21bb817e0 Change button title when clicked
Summary: Change the button title when clicked.

Reviewed By: mweststrate

Differential Revision: D49954493

fbshipit-source-id: 3d689effc0cc5587ab8a07901b66139577b21837
2023-10-05 08:04:34 -07:00
Lorenzo Blasa
4b078a4472 Revert RN-only
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D49953166

fbshipit-source-id: b08a09b89e3b857f633e62bbc5b63064c3657aa4
2023-10-05 07:14:03 -07:00
Lorenzo Blasa
c05fe8cb53 Track unable to listen cases
Summary: Track whenever the server is unable to bind to the specified port.

Reviewed By: antonk52

Differential Revision: D49951304

fbshipit-source-id: 971d7c324f27c287036707d21bb51d26acbd6615
2023-10-05 05:48:34 -07:00
Lorenzo Blasa
9fa5671ab0 Remove unused metric
Summary: ^

Reviewed By: antonk52

Differential Revision: D49951285

fbshipit-source-id: 7f3c4e5458dea6875c67b6acbcf2d53b40ea9afa
2023-10-05 05:48:34 -07:00
Lorenzo Blasa
d9ad2a8932 Remove troubleshoot from here
Summary:
Simplify how messages (state updates) are shown in Flipper UI.

This main change was introduced as a way to show the 'Start' server button whenever we were in a disconnected state. This is not as simple as the server may be restarting or the client may be even have reset the WS connection. Hence you the experience where this UI is shown and immediately dismissed.

This UI is only ever shown if at one point the server was alive, period. So, in this case, either the server becomes available again OR the user quits the PWA/tab/browser and launches again.

IMHO, this is a better experience that totally assuming the server is dead.

In a next iteration, we can be more clever and have a timeout such that if after a set period of time the server doesn't become online, then we show a button to start (or force kill) the server.

Reviewed By: aigoncharov

Differential Revision: D49915698

fbshipit-source-id: 03fcc150ed1f1303d1d727c82a71eb32616208e8
2023-10-05 04:37:16 -07:00
Lorenzo Blasa
0e90873096 Do not block for device manager to become ready
Summary:
^

Also, if an error happens, do not swallow it, rethrow.

Reviewed By: passy

Differential Revision: D49912780

fbshipit-source-id: 30451110d8c5776e2b0826d6e924ab5fe98cd7e2
2023-10-05 04:37:16 -07:00
Lorenzo Blasa
80fc8eb4ed Hide troubleshoot if a message needs to be shown
Summary: Also remove the suppress error usage as is it was never used.

Reviewed By: aigoncharov

Differential Revision: D49910876

fbshipit-source-id: 7267eaddadb73ab2b6e2aab0045157271ceed427
2023-10-05 04:37:16 -07:00
Pascal Hartig
a4515acc0f Upgrade docusaurus
Summary: $title

Reviewed By: antonk52

Differential Revision: D49907484

fbshipit-source-id: 9107c0e99fb4e8965c8ff4e2db8697bde627bc15
2023-10-05 04:10:43 -07:00
Andrey Goncharov
82487be96e Handle paste
Summary: When a user pastes anything, it is treated as an input for a search through the entire row

Reviewed By: lblasa

Differential Revision: D49948975

fbshipit-source-id: 2dd23d4ee0819623549d88eb077c7b2d2fdf604f
2023-10-05 03:54:29 -07:00
Andrey Goncharov
c8fc3e6b82 If not option is matched, treat it as a whole row search predicate
Summary: See prev diffs

Reviewed By: lblasa

Differential Revision: D49948976

fbshipit-source-id: 177fd4b90449c78975b6a21c50a781789425b34e
2023-10-05 03:54:29 -07:00
Andrey Goncharov
c4fbd10e68 Allow handling arbitrary text
Summary:
When a user enters any arbitrary text, we will treat as an input for the search through the entire row.
Based on feedback from https://fb.workplace.com/groups/flippersupport/permalink/1703929480087703/

Reviewed By: lblasa

Differential Revision: D49911868

fbshipit-source-id: 4c569e4b01e468f0ca112ea4b00fe143b30bed2a
2023-10-05 03:54:29 -07:00
Andrey Goncharov
0346dc1120 Add an predicate to search a whole row
Summary:
Allow users to search through the entire row.
Based on feedback from https://fb.workplace.com/groups/flippersupport/permalink/1703929480087703/

Reviewed By: lblasa

Differential Revision: D49911869

fbshipit-source-id: 7bb9816c91b9168d657314b289e3ecc3c237c8d8
2023-10-05 03:54:29 -07:00
Lorenzo Blasa
53eb06a781 Exit if unable to listen at port
Summary: If we are unable to bind to the specified port, exit process.

Reviewed By: passy

Differential Revision: D49908107

fbshipit-source-id: 6d76f3d661ec61867be5307c756e372a7b20a9f6
2023-10-04 05:37:12 -07:00
Lorenzo Blasa
40939e1ae5 Get MacOS dock icon
Summary:
The icon was not shown in the past as it was indefinitely bouncing on the dock.

This is fixed now by asynchronously initiating the Node server process and then waiting until it becomes ready.

Reviewed By: passy

Differential Revision: D49907976

fbshipit-source-id: cdeaa578be42d9f5308e2e0df50872858b8248c3
2023-10-04 05:37:12 -07:00