Commit Graph

333 Commits

Author SHA1 Message Date
Pascal Hartig
22c0eaa5cd Clean up update server
Reviewed By: lblasa

Differential Revision: D48433744

fbshipit-source-id: 749868e00e17af02040a8e2c164631e295deae65
2023-08-21 03:03:30 -07:00
Lorenzo Blasa
ce13ee426f Open file import
Summary: This change only adds the PWA as capable of handling files with the ".flipper" extension.

Reviewed By: aigoncharov

Differential Revision: D48353437

fbshipit-source-id: fd78942ac4dffb7d26d5ca5be826290018465b93
2023-08-17 13:46:08 -07:00
Lorenzo Blasa
007cdfee76 Enable flipper import/export
Summary: These two functions were not enabled for the browser experience.

Reviewed By: antonk52

Differential Revision: D48315991

fbshipit-source-id: 2944a386d9de8a06b043305e7ceb8a6c41e11209
2023-08-14 11:33:06 -07:00
Lorenzo Blasa
ff6f98fc0d Import File implementation
Summary: Implementation was missing for the browser. This provides a default implementation.

Reviewed By: aigoncharov

Differential Revision: D48311198

fbshipit-source-id: fd067600f571234e0fbccfb90853b62f175ff8fb
2023-08-14 11:33:06 -07:00
Lorenzo Blasa
bdbf5794ee Remove [conn] from log
Summary: Not really a connectivity related log, so removed [conn] from it.

Reviewed By: passy

Differential Revision: D48266546

fbshipit-source-id: e384301d6301940366b594b4bc612349cc2264ce
2023-08-11 14:16:21 -07:00
Lorenzo Blasa
9e2615cd80 Better troubleshoot guide to kill existing running instance
Summary: Combine the two used commands as will make things easier for our users.

Reviewed By: passy

Differential Revision: D48266474

fbshipit-source-id: 1ee5c568ff001dc5ba3f11e21b09a2a6ab430ac7
2023-08-11 14:16:21 -07:00
Anton Kastritskiy
9cceca6d7e Move notifications into a modal and remove app inspect
Summary: Also removing topLevelSelection as it is no longer used in flipper

Reviewed By: aigoncharov

Differential Revision: D48069386

fbshipit-source-id: 6e4cdd6aab67d2cd30ac1884118703520125bf84
2023-08-07 03:54:28 -07:00
Anton Kastritskiy
08371d3a6b Move troubleshooting guide into a modal
Reviewed By: aigoncharov

Differential Revision: D48066773

fbshipit-source-id: 05aca8c75aa30325e1a8c5f31301db1e89ec25af
2023-08-07 03:54:28 -07:00
Anton Kastritskiy
60419c54f2 Flipper logs displayed in a modal
Summary: This is a continuation of flipper redesign. Next diff will mov notification and connectivity into modals as well

Reviewed By: LukeDefeo

Differential Revision: D48066573

fbshipit-source-id: 3b4a22462221d8da13b07ad1738e05de849e00c4
2023-08-07 03:54:28 -07:00
Luke De Feo
9ed2b801a0 Make screen recording state more obvious
Summary: Feedback from support group said it wasnt clear when recording was on

Reviewed By: antonk52

Differential Revision: D48027414

fbshipit-source-id: db61a9806da285610e8f550ceff5af4d7b7acb47
2023-08-03 04:16:22 -07:00
Lorenzo Blasa
5debb4cae8 Troubleshoot by killing debugging bridge
Summary: Add an option to kill the debugging bridge directly within Flipper.

Reviewed By: antonk52

Differential Revision: D47990786

fbshipit-source-id: 30cd8ca1d55e8b2ade03700d884e5d849a2dadbf
2023-08-02 07:56:17 -07:00
Lorenzo Blasa
a8d96b8d87 Tabs activeKey prevents switching tabs
Summary: Using `activeKey` was preventing switching tabs. Use `defaultActiveKey` instead.

Reviewed By: antonk52

Differential Revision: D47989530

fbshipit-source-id: c4e545a8ed96bb1797778ca7b8c0973a3370a43b
2023-08-02 07:56:17 -07:00
Lorenzo Blasa
a21f730c2d Better lsof to find process
Summary:
The previous recommendation doesn't always holds true. There are reported cases in which a process is listening to the specified port yet is not being listed by the lsof command as advised.

The command below seems to work better.

    sudo lsof -i :52342

Reviewed By: antonk52

Differential Revision: D47989269

fbshipit-source-id: ea216de00ef6edc90de58e9d3fe3a0579a171fea
2023-08-02 07:56:17 -07:00
Lorenzo Blasa
fb469faa1d Details styling
Summary: STDOUT and STDERR can overflow the panel. This change creates a container for these two panels which should keep content within their boundaries.

Reviewed By: antonk52

Differential Revision: D47952711

fbshipit-source-id: 394390ae6b6a12329fe0eea1fc9948a7261b11bf
2023-08-01 06:59:08 -07:00
Lorenzo Blasa
2b56289490 Sidebar only visible when necessary
Summary: Sidebar should only show if the entry requires one. In this case, only shell commands have details to be displayed in the sidebar.

Reviewed By: antonk52

Differential Revision: D47952535

fbshipit-source-id: ae657032504dbb80900a534d2d357c9316b67cd9
2023-08-01 06:59:08 -07:00
Lorenzo Blasa
7e9228985b Show command details
Summary: This is the most basic visualiser for command details.

Reviewed By: antonk52

Differential Revision: D47917006

fbshipit-source-id: 7654a3c6e416346548b45dbc72ca4a1838bea787
2023-08-01 03:45:05 -07:00
Lorenzo Blasa
f63c749e0e Panel for Raw Details
Summary: ^

Reviewed By: antonk52

Differential Revision: D47915946

fbshipit-source-id: 3455da38d8862d6a2faff34fa7324da44c5acc08
2023-08-01 03:45:05 -07:00
Lorenzo Blasa
9ba93ad26b Connectivity Logs moved outside from TroubleshootingHub
Summary: Move it to its own space.

Reviewed By: antonk52

Differential Revision: D47914495

fbshipit-source-id: 8d655a8f0fc9ed87adbb4c31dfb04e72aa6f5770
2023-07-31 07:02:16 -07:00
Lorenzo Blasa
778eaf2038 Overdue refactor for TroubleshootingHub
Summary: It's troubleshooting in general, not only connectivity. So rename and refactor accordingly.

Reviewed By: antonk52

Differential Revision: D47914411

fbshipit-source-id: 658563bfd33427f11fe9f7660b0985fc3f013866
2023-07-31 07:02:16 -07:00
Lorenzo Blasa
d83f3fddb2 Fix active tab
Summary: ^

Reviewed By: antonk52

Differential Revision: D47914264

fbshipit-source-id: 36a6615092d799f925e74cb3422d8daa80b4fc33
2023-07-31 07:02:16 -07:00
Lorenzo Blasa
aaa0a01c6b Notification refactor for consistency
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D47873882

fbshipit-source-id: 9bfb17b1ecadc3489645b456d6760fc217af7759
2023-07-28 12:06:11 -07:00
Lorenzo Blasa
df374d4de2 Display connection troubleshoot notification
Summary: Reuse the function that was refactored on previous diff.

Reviewed By: antonk52

Differential Revision: D47873752

fbshipit-source-id: 71e12cd34d1826080487297e308450cb2a2a5c26
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
9dea1266a7 Refactor connection notification
Summary:
Extract notification creation from inside the existing function.

This will be reused to display connection notifications from the server event.

Reviewed By: antonk52

Differential Revision: D47873728

fbshipit-source-id: c01dc93dfef28135ecf7e77e92d4d517af082125
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
1f53c167ab Dedicated connectivity troubleshoot notification
Summary:
There's a generic notification server event.

This change introduces a new notification server event dedicated for connection troubleshoot.

The difference is, this notification will have a button to troubleshoot the issue. Additionally, in the future, we may even be able to add a payload so that we can troubleshoot the exact problem.

Reviewed By: antonk52

Differential Revision: D47873697

fbshipit-source-id: 28843a08836d0054909f6b9ab7a88b14b8a1b868
2023-07-28 10:25:17 -07:00
Lorenzo Blasa
3bef18ff81 Server state error notification key
Summary: ^

Reviewed By: antonk52

Differential Revision: D47869306

fbshipit-source-id: 38a8170a87f1774b8cb421d1ca4145a8e86d4067
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
4dc63261ff EADDRINUSE notification key
Summary: ^

Reviewed By: antonk52

Differential Revision: D47869281

fbshipit-source-id: 35982dbfd674762d2fcd8bd74b99c538307c23b1
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
d64af25eac Server error notification key
Summary: Add key for server error notifications as to prevent duplicates.

Reviewed By: antonk52

Differential Revision: D47869240

fbshipit-source-id: 7c826ab07a8f92bd053200786ed990ad78bbfa67
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
176301979a Open connectivity troubleshoot if unable to find device
Summary: If the notification is shown, allow engineers to switch to the connectivity troubleshooting view as it may highlight where the problem is.

Reviewed By: antonk52

Differential Revision: D47869154

fbshipit-source-id: f4154bb230d891dc4ac108b5acbe7e6541ffed1a
2023-07-28 07:22:21 -07:00
Lorenzo Blasa
7cb91807d3 Set tab active keys and active tab
Summary: ^

Reviewed By: antonk52

Differential Revision: D47868895

fbshipit-source-id: 381e704a7d1d2d1d67c1b4cf2bf482996927b783
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
1b5b4e94f2 Remove GK
Summary:
The intention was to fine tune everything, internally, before making it available.

Because we can immediately benefit from having it, for troubleshooting, then remove the GK

Reviewed By: LukeDefeo, antonk52

Differential Revision: D47868827

fbshipit-source-id: 4d6356081a4abeea8912f20aad065523e7183da8
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
2c310690d1 Remove sidebar title
Summary: ^

Reviewed By: antonk52

Differential Revision: D47868788

fbshipit-source-id: 0e8c4a224140d9c8f1ff91ce282112919ad650bd
2023-07-28 05:34:45 -07:00
Lorenzo Blasa
b1b056485c Top level selection moved to reducer
Summary:
Intention of this change is to simplify and standardise the way top level selection is done.

Top level selection is now part of the state, and thus setting it is done in the reducer instead.

Reviewed By: antonk52

Differential Revision: D47844742

fbshipit-source-id: 8e5aad8975f0046b85098b988cca40228316c249
2023-07-28 04:40:45 -07:00
Lorenzo Blasa
63ed9d7324 Unable to find device notification key
Summary: Add a key such that the same notification does not appear again for the same device/app.

Reviewed By: antonk52

Differential Revision: D47835045

fbshipit-source-id: 78237b4102aa199ebea23b7c5726b567fc4de91e
2023-07-28 04:40:45 -07:00
Lorenzo Blasa
2fd94048fb Fixes an issue with selection by refactoring
Summary: Refactor was going to happen, but it was required at this stage as to fix a selection problem.

Reviewed By: LukeDefeo

Differential Revision: D47831239

fbshipit-source-id: 87ce6250721f6d3df3e826e779409625ddc85660
2023-07-27 04:36:24 -07:00
Lorenzo Blasa
9a2ff5d88d Add sidebar to visualise entry details
Summary: Follow-up from previous diff. Details can be visualised.

Reviewed By: antonk52

Differential Revision: D47797513

fbshipit-source-id: 9a560e3c7da1c9ceffd421ac2670559fdb255204
2023-07-26 09:17:28 -07:00
Lorenzo Blasa
8fc56925a9 Make connectivity log entries selectable
Summary: Once an item is selected, more details can be shown to our users.

Reviewed By: antonk52

Differential Revision: D47797390

fbshipit-source-id: 1bf98f81df32d103f7c0fc332f819507dcf84cc2
2023-07-26 09:17:28 -07:00
Lorenzo Blasa
c3a40ab0ab Clear connectivity logs button
Summary: Add the option to clear the connectivity logs.

Reviewed By: antonk52

Differential Revision: D47797301

fbshipit-source-id: ce9414f3057cab367d34524717c83bfbf0703c0c
2023-07-26 08:16:47 -07:00
Lorenzo Blasa
fa1c2db026 Exchange medium always visible
Summary: ^

Reviewed By: antonk52

Differential Revision: D47797219

fbshipit-source-id: ec643abce429157ca54eb1253d658117cc759565
2023-07-26 08:16:47 -07:00
Luke De Feo
d52eeffb86 Add ability to favourite virtual devices
Summary:
With a lot of virtual devices it can be confusing to remember which one contains your builds. This allows user to favourite certain ones to avoid this

Changelog: Added ability to favourite emulators / simulators in the launch virtual devices dialog

Reviewed By: mweststrate

Differential Revision: D47724521

fbshipit-source-id: aaec56608ad6ba23634797315f6f9fd77fc8b258
2023-07-25 07:28:03 -07:00
Luke De Feo
a0d6c9a1b8 Fix alignment of logs badge
Reviewed By: mweststrate

Differential Revision: D47720737

fbshipit-source-id: fb4d5ea646bbc5ee2090f28a477e539bd599c02a
2023-07-25 07:28:03 -07:00
Luke De Feo
83ecb4e256 Rework user profile button
Summary:
1. fixed state when no connectivity by using a disabled button, now its styled correctly, (before it was tiny)
2. No need to show the user profile button as its own icon since log in is forced by flipper, so move log out into the more menu

Reviewed By: mweststrate

Differential Revision: D47720740

fbshipit-source-id: c7531a2a2897627c2627080179fd77adfed5c30c
2023-07-25 07:28:03 -07:00
Luke De Feo
d0e8114962 Improve sidebar buttons
Summary:
1. improved the disabled state, no longer shows persistant border
2. made the right sidebar button always visible again since the disabled state is less distracting
3. Made the toggle state be on when the side bar is open
4. Fixed issue where where it would say toggled when sidebar not visible
5. Shortened the names to be less verbose

Reviewed By: mweststrate

Differential Revision: D47720739

fbshipit-source-id: df27e688c7a66e8dee07c4db675851c4355b41db
2023-07-25 07:28:03 -07:00
Luke De Feo
7a5ad8a92d Elevate alerts above troubleshoot
Summary: Similar treatment to troubleshoot problem

Reviewed By: lblasa

Differential Revision: D47720741

fbshipit-source-id: 6875988a9a0763cb4ed473d6e8522581fc27bef3
2023-07-25 07:28:03 -07:00
Luke De Feo
e0da5332d4 Elevante troubleshoot menu so badge appears on top of more
Reviewed By: mweststrate

Differential Revision: D47720738

fbshipit-source-id: 8f1539ad22d87b32277770003241299142d96a03
2023-07-25 07:28:03 -07:00
Lorenzo Blasa
8f87e27609 Add console logs and messages to Hub
Summary: ^

Reviewed By: passy

Differential Revision: D47665331

fbshipit-source-id: d7cf838899be1871999bf086a4a7c3721b307fd1
2023-07-21 09:28:28 -07:00
Anton Kastritskiy
7b06daa913 hide "toggle r.sidebar" instead of disabling it
Reviewed By: LukeDefeo

Differential Revision: D47669377

fbshipit-source-id: 4bac4e8778576f69405c449021a438eff88b6abf
2023-07-21 07:51:43 -07:00
Michel Weststrate
af5b9532ec Don't throw on timeouts during client connection.
Summary: Timeout exceptions while connection to new clients where rethrown but catched nowhere. Probably this warning should be handled more gracefully, but this at least moves it to warn rather than spawning our monitoring on transient issues

Reviewed By: passy, antonk52

Differential Revision: D47665050

fbshipit-source-id: ad51808d12e9f4de318d4426933ecb3787839b7c
2023-07-21 04:18:02 -07:00
Lorenzo Blasa
4d092f75dd Connectivity Hub has tabs with logs and environment check
Summary:
^

Code will be refactored in future diffs.

Reviewed By: antonk52

Differential Revision: D47629563

fbshipit-source-id: a4af7beecb41bd141ccd350b2edece4af3de6022
2023-07-20 06:01:01 -07:00
Lorenzo Blasa
2958d9d8cb SetupDoctorScreen non-modal option
Summary:
The Setup Doctor screen was hard-set into a modal window. Instead, make this an optional that defaults to yes.

This will allow the usage of the screen in non-modal container.

Reviewed By: antonk52

Differential Revision: D47629528

fbshipit-source-id: c5248df1358f1b14775b90c9bf12fd63b8885caf
2023-07-20 06:01:01 -07:00
Lorenzo Blasa
f566fed761 Only show left sidebar toggle if there is a sidebar
Summary:
^

Not all selections have a left sidebar. If the current selection doesn't have one, it doesn't make sense to have the toggle sidebar button, so hide it.

Reviewed By: LukeDefeo

Differential Revision: D47593545

fbshipit-source-id: 940d59536e26bd1ab341d2038df431c67e0a5442
2023-07-20 04:48:20 -07:00