Commit Graph

404 Commits

Author SHA1 Message Date
Anton Kastritskiy
4e10bb1b43 Back out "remove shortcuts"
Summary:
Original commit changeset: fbb59b416f92

Original Phabricator Diff: D51159922

Reviewed By: lblasa

Differential Revision: D51586735

fbshipit-source-id: 3317b590ec72e0040a67be41e74ddb5a72722598
2023-11-27 15:33:57 -08:00
Anton Kastritskiy
d8f507dba0 Back out "remove all mentions of metro from flipper-ui-core"
Summary:
Original commit changeset: edc33c2b989e

Original Phabricator Diff: D51200129

Reviewed By: lblasa

Differential Revision: D51586736

fbshipit-source-id: e81355f7a0f0533ebc47f4cfc6c40af4865dbad0
2023-11-27 15:33:57 -08:00
Anton Kastritskiy
244573abe3 Back out "remove metro button"
Summary:
Original commit changeset: ebd844a57b0b

Original Phabricator Diff: D51199560

Reviewed By: lblasa

Differential Revision: D51586734

fbshipit-source-id: dfb37d4a6f6bd03da96ab17cd4af8e43de2b0f07
2023-11-27 15:33:57 -08:00
Pascal Hartig
a9c5dd746a Store plugin ID
Summary:
We need the build ID from GraphQL to fetch the download VPN off-VPN.

Changelog: Plugin Marketplace now stores a unique ID per build

Reviewed By: LukeDefeo

Differential Revision: D51525419

fbshipit-source-id: d6740b3c4724d15cc996155b6e7581b0f16a9da6
2023-11-27 09:04:07 -08:00
Anton Kastritskiy
ce5527513e only simulators in "Virtual device"
Summary: Currently if you plug in a physical iOS device via USB, flipper will show it to you in "Virtual device menu". See "ak iphone mini" in the test plan. This diff ensures that we only show virtual device in this menu.

Reviewed By: lblasa

Differential Revision: D51588117

fbshipit-source-id: e2853a6b34ed3fe6d821a9c504b9ffd19e4074fa
2023-11-27 08:42:12 -08:00
Andrey Goncharov
72a92e1380 Shutdown Flipper when new version is downloaded
Reviewed By: passy

Differential Revision: D51527986

fbshipit-source-id: d4cf1ec82070821afff5c9cdee5a85cb1421a7ef
2023-11-23 04:08:07 -08:00
Anton Kastritskiy
387d546e77 inconsistent right padding
Summary: There is too much padding on the right wether right sidebar open or not, this fixes it

Reviewed By: lblasa

Differential Revision: D51428892

fbshipit-source-id: 6fa9b0c06ddf32c32d162a7fd2bd765e8996c00a
2023-11-17 10:06:47 -08:00
Andrey Goncharov
e225d9e1c3 Bring back RatingButton
Summary: Removed previously during redesign by mistake

Reviewed By: antonk52

Differential Revision: D51347837

fbshipit-source-id: d634ad4c8983271a3936f458cabb63f006a4bb0a
2023-11-17 03:34:58 -08:00
Andrey Goncharov
bfc4e959bc Export power search enabled components and types by default
Summary: Provides power search typings to all users by default

Reviewed By: LukeDefeo

Differential Revision: D51306600

fbshipit-source-id: c1f0d318d8b6953dd02af16d2c51abbf0e6e9590
2023-11-15 05:00:21 -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
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
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
d023bcc42e remove shortcuts
Reviewed By: aigoncharov

Differential Revision: D51159922

fbshipit-source-id: fbb59b416f92b9156c74a12247da8d0df07f1a4e
2023-11-10 04:33:02 -08:00
Anton Kastritskiy
99dbcfa079 casing convension
Summary:
[eslint-typescript/naming-convension rule docs](https://typescript-eslint.io/rules/naming-convention/)

Initially looked into it to enforce UPPER_CASE for top most constants like `const DELAY = 10` which is a standard in js ecosystem, which turned to be more difficuilt(we will still get there).

Turns out we had casing checks disabled for everything but typeLike names. What I did in this diff

- use default setting for eslint rule
    `✖ 9890 problems`
- with any propery names
    `✖ 8229 problems`
- without checking properies at all
    `✖ 3683 problems`
- without checking enum members
    `✖ 3231 problems`
- without checking object properties/methods
    `✖ 2978 problems`
- allowing PascalCase for variables
    `✖ 1657 problems
- allowing PascalCase for functions
    `✖ 975 problems
- not checking typeMethod and parameters
    `✖ 916 problems`
- allow double underscore before after variable
    `✖ 461 problems`
- allow snake_case variables
    `✖ 49 problems`

Fix remaining problems.

Future plans. Ban usage of PascalCase for variables that are not components

Reviewed By: LukeDefeo

Differential Revision: D50970193

fbshipit-source-id: d9f3abe6b02c9f7822598c8fa5382f58d067f70e
2023-11-03 06:16:18 -07:00
Lorenzo Blasa
fecaa8d974 Back out "Use isPWA utility function instead"
Summary:
Original commit changeset: 6bc0c942b3d9

Original Phabricator Diff: D50885337

There's an issue with the import, same reason we do:

```
require('flipper-ui-core').startFlipperDesktop(flipperServer);
```

Reviewed By: aigoncharov

Differential Revision: D50926125

fbshipit-source-id: 04e1b920bcecab9f245924907637b36dac312f1f
2023-11-02 04:28:14 -07:00
Lorenzo Blasa
1a98038979 Use isPWA utility function instead
Summary: As a follow-up from the utility created on the previous diff

Reviewed By: aigoncharov

Differential Revision: D50885337

fbshipit-source-id: 6bc0c942b3d96eb020ec15395f34d5794ba2ae15
2023-11-01 11:15:17 -07:00
Lorenzo Blasa
08e742ceff Utility to determine if client is PWA
Summary: This is currently used in multiple places, let's put it under utils.

Reviewed By: aigoncharov

Differential Revision: D50883125

fbshipit-source-id: ee161a035cd01ca73a2521f813c4b397aa647037
2023-11-01 11:15:17 -07:00
Lorenzo Blasa
f0023ea79d If there's an existing problem, show regardless
Summary:
Setup Doctor can be used to discover installation issues. I've seen numerous times when there's a setup issue but users didn't check / bother with using the tool.

Instead, if there's an issue, show the screen regardless.

Reviewed By: mweststrate

Differential Revision: D50642080

fbshipit-source-id: 10eb7a758a61765a5b06d398f5041897fff6280e
2023-10-27 03:12:03 -07:00
Lorenzo Blasa
3ed89a50bb RN-only icon
Summary: ^

Reviewed By: antonk52, aigoncharov

Differential Revision: D50557283

fbshipit-source-id: d869a3159c9c0b0b7e06ac04a1d51bbbe10f0970
2023-10-24 07:18:43 -07:00
Lorenzo Blasa
b3497a1642 Show unsupported modal for RN-only builds
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50557230

fbshipit-source-id: d1974771edba97ce99294b967c27e4ec76a6cf61
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
25245506c7 Only show changelog for headless builds
Summary: ^

Reviewed By: LukeDefeo, aigoncharov

Differential Revision: D50557155

fbshipit-source-id: 9f0990ded22ed18d01931ed3b2652498eb6b1abc
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
b306a5591e Title should show unsupported for Electron builds
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D50557114

fbshipit-source-id: c9235e71e64ee8f6ce35b8b5d3c00660e9d7fbbb
2023-10-24 05:51:06 -07:00
Lorenzo Blasa
4b915da47c Electron releases do not update indicator on the Navigation Bar
Summary: No need to show this for Electron releases. Also, this becomes important once we make the final Electron release.

Reviewed By: aigoncharov

Differential Revision: D50557052

fbshipit-source-id: 803a9c9ad21fbff39147ac06add74888b9ee4091
2023-10-24 05:51:06 -07:00
Andrey Goncharov
92ca5edaea Track number of loaded plugins
Reviewed By: lblasa

Differential Revision: D50556872

fbshipit-source-id: 2d841360f7081074afa025d0bad8c41d7b2db16e
2023-10-23 09:14:56 -07:00
Anton Kastritskiy
663380e721 mark unused vars as errors
Reviewed By: lblasa

Differential Revision: D50500690

fbshipit-source-id: 6f739fe25c232ecfe842337af4399681e85f6a13
2023-10-20 12:44:58 -07:00
Anton Kastritskiy
fd774a2d52 remove density mentions
Summary: removing dead code

Reviewed By: lblasa

Differential Revision: D50495989

fbshipit-source-id: 769f853b50bf6ec48705dbcec03977ec6a5bffa3
2023-10-20 07:23:34 -07:00
Anton Kastritskiy
a978c96987 large fb icons only, no density
Summary:
Currently we download a bunch of FB icons and we normally use the smallest one available.

In this diff I change the download logic so we try to download from the largest to the smallest icon and use the first one available. One the client we no longer provide the icon of the same size that is requested, instead we provide the only one we have which will typically be larger than needed. This is a good thing because

1. flipper is a local application and we do not need to worry about icons take up broadband and downloading
2. People have high density displayed

I also stopped using density(rest of related code removed in the next diff) for icons as it the icons themselves did not support it.

Reviewed By: lblasa

Differential Revision: D50495194

fbshipit-source-id: f569c2f3b8ee424a67c6d21136e7e113868b8f6a
2023-10-20 07:23:34 -07:00
Andrey Goncharov
aea77cc4da Hide PWA app from Spotlight
Reviewed By: LukeDefeo

Differential Revision: D50411182

fbshipit-source-id: 46c089c69aefb58f85a861c7898ee355f094e03c
2023-10-20 05:13:20 -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
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
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
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
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
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
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
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
4b078a4472 Revert RN-only
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D49953166

fbshipit-source-id: b08a09b89e3b857f633e62bbc5b63064c3657aa4
2023-10-05 07:14:03 -07:00
Pascal Hartig
4905446697 Update deps
Summary: Update a few selected patch-level deps.

Reviewed By: antonk52

Differential Revision: D49779877

fbshipit-source-id: 5f8da30a3802f4ca516ad20ac223cafce5120ba0
2023-10-03 10:58:10 -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
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
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
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