Commit Graph

3933 Commits

Author SHA1 Message Date
Lorenzo Blasa
1f2a7f9391 Log HTTP server errors
Summary: Currently, we are not interested in these errors. Let's add some logging as a way of knowing if they take place and why.

Reviewed By: antonk52

Differential Revision: D49828378

fbshipit-source-id: f741a45e1ba9892aa54dca85f97bcc419e0b5e25
2023-10-02 08:52:40 -07:00
Andrey Goncharov
72e6ba2705 Add dedicated operators to handle seriazable objects
Reviewed By: lblasa

Differential Revision: D49828114

fbshipit-source-id: 6846ce7360697806a6a770c1c6f864d162eee528
2023-10-02 08:27:37 -07:00
Andrey Goncharov
010de365fa Allow using whole row for power search
Reviewed By: lblasa

Differential Revision: D49827828

fbshipit-source-id: 93219146ba59074be305eb9a963550223a5abd18
2023-10-02 08:27:37 -07:00
Andrey Goncharov
c27f9c7916 Fallback for empty titles
Summary: Some columns set title to an empty string

Reviewed By: lblasa

Differential Revision: D49826852

fbshipit-source-id: 3661394323dade813295420a1186d9297a8be153
2023-10-02 08:27:37 -07:00
Andrey Goncharov
3c09ac8b2b Enable power search as default experience for users passing GK
Reviewed By: antonk52

Differential Revision: D49822508

fbshipit-source-id: f280f0032a6292fbc8c73a36a8b47e35ffb4e7fd
2023-10-02 08:27:37 -07:00
Andrey Goncharov
84bb47655e Hide unknown value processing behind a GK
Reviewed By: antonk52

Differential Revision: D49822509

fbshipit-source-id: 2228883f8ef16013a63c0d6d69697e32b55cec68
2023-10-02 08:27:37 -07:00
Andrey Goncharov
76918ae4fe Handle unknown values when adding power search to unconfigured columns
Reviewed By: antonk52

Differential Revision: D49822513

fbshipit-source-id: a9c5c6ddc91ac6e7284af045ec673144d9c64906
2023-10-02 08:27:37 -07:00
Andrey Goncharov
4165a1b272 Handle unknown values in string operators
Reviewed By: antonk52

Differential Revision: D49822510

fbshipit-source-id: 4fc22df7af282e93af28bb0e69f70acd805e620b
2023-10-02 08:27:37 -07:00
Andrey Goncharov
8a591a7855 Support handleUnknownValues in default operators
Summary: We treat every column without the power search config as if it contains strings. Sometimes that might bite us, for instance, when the column contains an object.

Reviewed By: lblasa

Differential Revision: D49822511

fbshipit-source-id: 18dadb5abe624fae510663fc26668b2b594899c3
2023-10-02 08:27:37 -07:00
Andrey Goncharov
446147b9fe Split SimpleOperatorConfig
Reviewed By: lblasa

Differential Revision: D49822512

fbshipit-source-id: 82fc6a72cd5ff3b5f9d577baea49367b4f2521fd
2023-10-02 08:27:37 -07:00
Lorenzo Blasa
b4b2f93662 Use RN-only icon on Welcome screen
Summary: ^

Reviewed By: antonk52

Differential Revision: D49827650

fbshipit-source-id: 82e202137dd3e8365c4898e583226410b8ea3645
2023-10-02 08:14:41 -07:00
Lorenzo Blasa
526112a795 Update RN-only icon
Summary: Update asset

Reviewed By: antonk52

Differential Revision: D49827100

fbshipit-source-id: ead5774a3628a5ce2e5ac5d29ec3837386d8758e
2023-10-02 08:14:41 -07:00
Lorenzo Blasa
026d28944c Set RN-only icon for Electron build
Summary:
^

Use this icon for release builds.

Reviewed By: antonk52

Differential Revision: D49823791

fbshipit-source-id: 49bd64e2a630a9ae8bd4c9bf35809526863df202
2023-10-02 05:06:03 -07:00
Lorenzo Blasa
9b283bc729 Add RN-only icon
Summary: Not in use in this diff, but it will be for next diffs.

Reviewed By: antonk52

Differential Revision: D49823258

fbshipit-source-id: 364414d7c37a14c6a166b33b9229e6f874f7f146
2023-10-02 05:06:03 -07:00
Lorenzo Blasa
0d4c9030ff Unsupported modal
Summary: Show an unsupported modal for Electron builds (FB employees only)

Reviewed By: antonk52

Differential Revision: D49770083

fbshipit-source-id: 3616dce3206e976f2fdccd834b2c57748f19fcb0
2023-10-02 05:06:03 -07:00
Lorenzo Blasa
58fe45fc23 No update checkes
Summary: No need to check for updates on Electron builds.

Reviewed By: antonk52

Differential Revision: D49821903

fbshipit-source-id: d836e4254bbe793921bb4a627220fee961c1c402
2023-10-02 05:06:03 -07:00
Lorenzo Blasa
df8a68b7f1 Do not delegate to Launcher
Summary: For the last stable Electron version, do not delegate to Launcher.

Reviewed By: antonk52

Differential Revision: D49821835

fbshipit-source-id: 0a80627cd1da312447b7d98d0351aa8faf2bae89
2023-10-02 05:06:03 -07:00
Luke De Feo
4d7b017430 Use antd icon
Summary:
the glyph isnt working and need to get it fixed asap

changelog: UIDebugger fix icon for litho event timeline tab

Reviewed By: ivanmisuno

Differential Revision: D49780805

fbshipit-source-id: 832746237a43552171cd8e0bd3063318159279dd
2023-09-29 11:21:05 -07:00
Luke De Feo
a748a1c2a2 Accessibility mode tweaks
Summary:
The run through indexes could be cut off when they were elements that touched the left edge of the screen.

If label was complete obscured when it was on the top left

Also index 0 was missing

changelog: UIDebugger: improvements to iOS Accessibility mode

Reviewed By: zats

Differential Revision: D49704398

fbshipit-source-id: cb069857a9175f2c1a8157f41fe6d83fb96f795d
2023-09-29 09:03:38 -07:00
Lorenzo Blasa
cb86f0f90b Log download/unpack errors
Summary: ^

Reviewed By: ivanmisuno

Differential Revision: D49637030

fbshipit-source-id: 0e9925bd435e7843a57d6a8917f8da4e5e35640c
2023-09-27 03:34:01 -07:00
Luke De Feo
708db9003a Fix broken icon
Summary: it isnt showing up in prod,

Reviewed By: lblasa

Differential Revision: D49639706

fbshipit-source-id: 952a4580ecb102f8a765d63c702e80ae384b88a7
2023-09-26 09:38:07 -07:00
Lorenzo Blasa
7048c470b2 Add flipper-server tag to log
Summary: ^

Reviewed By: passy

Differential Revision: D49594331

fbshipit-source-id: 9bf8c65274a92d6f505c92572135b5f803b4a336
2023-09-26 08:47:43 -07:00
Lorenzo Blasa
d971820609 Improve node export
Summary: ^

Reviewed By: antonk52

Differential Revision: D49634301

fbshipit-source-id: a7e27d3f370a17f5eb3740772f572135e586e0c7
2023-09-26 04:38:59 -07:00
Lorenzo Blasa
6e97e73cf1 Better shutdown
Summary: ^

Reviewed By: ivanmisuno

Differential Revision: D49593599

fbshipit-source-id: 196e98653cc0cdda4fdf11e366e5d3ab5debe6e2
2023-09-25 09:59:24 -07:00
Lorenzo Blasa
1c4224d716 Running/shutdown utilities
Summary: Create utilities to check for existing running instances and shutdown.

Reviewed By: ivanmisuno

Differential Revision: D49593321

fbshipit-source-id: 10acdb4f340f2f24f9ebd3203153906b34623178
2023-09-25 08:46:43 -07:00
Lorenzo Blasa
c1b0d9d753 Export node as JSON
Summary:
There has been multiple requests to incorporate an export to plain text functionality for a while.

This diff adds it.

It will export a node and optionally its chidren as JSON.

Reviewed By: antonk52

Differential Revision: D49596476

fbshipit-source-id: 3681bc0c2d02e1ea64ff589e0e272f6d54ad0524
2023-09-25 08:44:37 -07:00
generatedunixname89002005306973
6b9adfe130 Flipper Release: v0.222.0
Summary: Releasing version 0.222.0

Reviewed By: lblasa

Differential Revision: D49593015

fbshipit-source-id: 9fd4b4f42134f2fb244ddeabff6b83748151e36a
2023-09-25 06:30:50 -07:00
Lorenzo Blasa
9e98391151 Publish server dmg to release artifacts
Summary: ^

Reviewed By: passy

Differential Revision: D49544230

fbshipit-source-id: 908a5d7c759bcbcef34c262ab588500fc87cb463
2023-09-25 03:59:38 -07:00
Luke De Feo
a4933373b5 accessability toggle button
Summary:
Should be more discoverable

changelog: UIDebugger accessibility mode for iOS launched, look for icon to the right of the search bar

Reviewed By: zats

Differential Revision: D49547952

fbshipit-source-id: 3befdffedb34907d9824bb66b86e20fd4a1a42ff
2023-09-25 02:02:26 -07:00
Luke De Feo
10d5a2933a handle error when device disconected
Summary: Log views were being generated, this seems like a reasonable solution.

Reviewed By: zats

Differential Revision: D49547368

fbshipit-source-id: 575dd81a7c9b9a831d1dfb46088c2f5e1d731f22
2023-09-25 02:02:26 -07:00
Lorenzo Blasa
7d77be1c9d Remove 'exec' debug logs
Summary: These are quite verbose even when debugging, so remove.

Reviewed By: ivanmisuno

Differential Revision: D49538582

fbshipit-source-id: 089027390a825dde3d3d53b67e3f920f2f1f75f2
2023-09-22 10:36:43 -07:00
Lorenzo Blasa
ddf348faa5 Immediately close server if no clients are connected
Summary: ^

Reviewed By: ivanmisuno

Differential Revision: D49539483

fbshipit-source-id: ffbcffe0f0b0f31bc26ba5881b30ae27960c283e
2023-09-22 10:31:15 -07:00
Anton Kastritskiy
a37b04737c Move default actions and extra actions next to the search
Summary: Having default and extra actions at the bottom is not actionable. Users are used to haveing table controls on the top.

Reviewed By: LukeDefeo, aigoncharov

Differential Revision: D49538205

fbshipit-source-id: 724a31dc44de79cb0e09efae48dd2135450b34ae
2023-09-22 08:25:24 -07:00
Lorenzo Blasa
b8950a2298 Kill with -9 flag
Summary: There are reports in which kill as is doesn't kill the process. Using the '-9' flag does, so update troubleshoot message.

Reviewed By: LukeDefeo

Differential Revision: D49537427

fbshipit-source-id: a062c92528589cecf0f41e1c344c5d0ae1c3345d
2023-09-22 08:17:48 -07:00
Lorenzo Blasa
1d29e06b76 Use better API to return JSON from endpoint
Summary: ^

Reviewed By: antonk52

Differential Revision: D49537411

fbshipit-source-id: d5cabcf1c22d57fc47e1e80cbf0edb70effee308
2023-09-22 08:17:48 -07:00
Lorenzo Blasa
bdf5065f10 Expose info endpoint
Summary:
Expose an endpoint to retrieve server environment information.

We can use version information and process number to aid engineers with troubleshooting Flipper.

Reviewed By: antonk52

Differential Revision: D49537325

fbshipit-source-id: 511fe4441638f91cd35f13706ceeeb515051416b
2023-09-22 08:17:48 -07:00
Lorenzo Blasa
db07297e2d Create DMG
Summary: Add an option to archive the server build inside a DMG.

Reviewed By: antonk52

Differential Revision: D49504225

fbshipit-source-id: 3c34e6f0e4c9a685d36771199a6e20394f68baef
2023-09-22 07:14:52 -07:00
Andrey Goncharov
bb35c7cbb9 Fix intern graph request override return
Reviewed By: passy, lblasa

Differential Revision: D49538074

fbshipit-source-id: bab45624f8115ca5df38510d3c4330fbe2ec7550
2023-09-22 06:34:11 -07:00
Pascal Hartig
fcd21111a0 Do not prefer ipv4 dns results
Summary: This is the default from Node 17 onwards and should unblock problems we're seeing on some people's machines.

Reviewed By: lblasa

Differential Revision: D49415859

fbshipit-source-id: c15ab82e69db4916838228324a9739c95f3562f3
2023-09-22 06:25:35 -07:00
Anton Kastritskiy
412b05ad8d fix lint CI check on windows
Reviewed By: lblasa

Differential Revision: D49503462

fbshipit-source-id: c047e72edda644d42cf4454a3a8b2023eca8d2ea
2023-09-21 10:36:50 -07:00
Anton Kastritskiy
947cc819e3 remove unneccessary console.log
Reviewed By: lblasa

Differential Revision: D49502424

fbshipit-source-id: 674eb165871da43427ea5605b4aa74ec3297dd33
2023-09-21 09:43:22 -07:00
Luke De Feo
eb86eb910f quieten some errors
Summary:
message format has changed slightly
T164418118

Reviewed By: lblasa

Differential Revision: D49502179

fbshipit-source-id: 205ebf5bfe444fb0ce768fa635f9de5371d82a03
2023-09-21 08:50:36 -07:00
Luke De Feo
2ff91170e0 increase highlight time and random colours for event monitoring
Summary:
1. makes it easier to tellwhen a parent and child hightlight together
2. Longer times means you have more time to click it and see

changelog: UIDebugger event debugger - increased highlight time. Nodes get random highlight color

Reviewed By: lblasa

Differential Revision: D49501954

fbshipit-source-id: 9456c00e0df77c40934eb95b4b48b566c7715181
2023-09-21 08:50:36 -07:00
generatedunixname89002005306973
d4aed4eb30 Flipper Release: v0.221.0
Summary: Releasing version 0.221.0

Reviewed By: lblasa

Differential Revision: D49500418

fbshipit-source-id: 3e9acccf130782aff2bca2c4f4cfaf8537158acd
2023-09-21 08:37:28 -07:00
Lorenzo Blasa
b856180530 Use HTTP shutdown instead
Summary: Use the newly exposed HTTP shutdown API. It is simpler.

Reviewed By: antonk52

Differential Revision: D49499264

fbshipit-source-id: 2d81db1d1a66c0b7550ee1245e51d8f1a8671aa6
2023-09-21 06:59:22 -07:00
Lorenzo Blasa
6df27824b7 Expose HTTP shutdown API
Summary: Expose the shutdown API via the HTTP server.

Reviewed By: ivanmisuno

Differential Revision: D49496840

fbshipit-source-id: df2045edc89e9feabe74b4b513f973d137323d0f
2023-09-21 06:09:19 -07:00
Lorenzo Blasa
1db90f9187 Fix bug preventing display of PWA wizard
Summary: ^

Reviewed By: LukeDefeo

Differential Revision: D49496590

fbshipit-source-id: 912be66e3c6c7ef5aaf356815a43439c43d78b24
2023-09-21 05:10:57 -07:00
Andrey Goncharov
f4a286d9c7 Override intern graph calls in flipper-ui-core
Summary:
> "Hi, kids, do you like violence?"

Alrighty, in flipper-frontend-core we have the **base** implmenetation of flipperLib (the thing exposed to the plugins). This base implementation is never used directly by the plugins, rather it is shared code used by the  real consumers - flipper-ui-core (regular Flipper with UI) and flipper-server-companion (the thing that allows hosting plugins on the server).
These real consumers actually run the plugins and expose flipperLib to the plugins.
In flipper-ui-core we have a more sophisticated logic of calling the intern graph - we check for VPN connection and authn. Therefore, to expose the same way of handling intern graph requests we **override** intern graph calls provided by flipper-frontend-core.
*Ideally*, we should move checking for VPN connection and authn to flipper-frontend-core, but currently it is a lot of effort for very little gains:
1. flipper-frontend-core does not have a notion of a user
2. Even if we move the authn-related logic there the only real consumer of that effort if flipper-server-companion that is used only by UIQR (which in its turn is barely used in the headless mode and do not require authn-related logic).

Thus, we just override intern graph request on the flipper-ui-core side since it is the simplest and the most impactful thing to do at the moment.

Reviewed By: LukeDefeo

Differential Revision: D49494922

fbshipit-source-id: 6f1d521af7ca5bd50549b7bc328d6b8fcab98389
2023-09-21 03:15:10 -07:00
Sash Zats
60364eadca Add runthrough index for accessibility mode
Summary:
In accessibility mode it is important to be visually aware of the order of the elements on the screen aside from the list on the left

To enable this let's show the indices on the elements
Voice over assumes single continuous list of objects so it is okay to pass index of children we should never have nested lists in accessibility mode

Reviewed By: lblasa

Differential Revision: D49440400

fbshipit-source-id: e6878b4b33952053823451ad76993259f0794067
2023-09-20 11:37:12 -07:00
Sash Zats
1c3720fd5c Add ui-debugger modes
Summary:
## This diff: Add debugger mode infrastructure

We want to enable infrastructure allowing adding modes in the future without branching client and plugin code

This infra allows for the client to send a message informing flipper about the supported modes (following diffs)

Currently broadcasting mode change event over to the client

Reviewed By: lblasa

Differential Revision: D49385860

fbshipit-source-id: 2db6f65064d1ff7e1f57b2da93c3ed195400fb7f
2023-09-20 11:37:12 -07:00