Commit Graph

9114 Commits

Author SHA1 Message Date
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
Sash Zats
21d86c09af Preload accessibility framework if not already loaded
Summary:
It looks like there are some edge cases when app did not load private accessibility framework (probably if it never set any accessibility values?)

This diff makes calls to accessibility hierarchy safer and ensures to preload framework if available

Reviewed By: lblasa

Differential Revision: D49501064

fbshipit-source-id: b46216b58bf6c9c63f900e199fea035e3262afb2
2023-09-21 10:14:43 -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
796fb161dc Flipper Snapshot Bump: v0.221.1-SNAPSHOT
Summary: Releasing snapshot version 0.221.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D49500419

fbshipit-source-id: 5ffb1fad04a81d9031c96bea2e52f74b038deb34
2023-09-21 08:37:28 -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
Luke De Feo
3b8e03e94d fix open source
Summary: these constants are not in the latest release and has broken the build

Reviewed By: adityasharat

Differential Revision: D49455455

fbshipit-source-id: d84b3d214907de197e166130d1c8911a5e0db3c2
2023-09-21 05:10:03 -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
550b49e690 Capture accessibility hierarchy and package it for the sonar plugin
Summary: In this diff we load and call a private API enabling voiceover hierarchy and pass it over via existing channel when client is in the accessibility mode

Reviewed By: lblasa

Differential Revision: D49393813

fbshipit-source-id: 437af1131547218cd52f4a56797707411787d7cf
2023-09-20 12:41:38 -07:00
Sash Zats
3f0e1f76d5 Send and receive current debugger mode
Summary:
Make sure mobile client and sonar desktop app keep debugger mode in sync

Desktop client listens to available modes and currently selected mode which is what we use here.

Later we can tweak the logic to try to restore last mode if desktop or mobile clients crash / disconnect etc

Reviewed By: lblasa

Differential Revision: D49384358

fbshipit-source-id: 5bc1f4240253b68a746dfa5feba4b352f4e261a2
2023-09-20 12:41:38 -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
Luke De Feo
c3ad4f7180 Send warning when bloks tree not prepared
Summary: Give the user something actionable when tree is not ready due to flipper connected check failing

Reviewed By: lblasa

Differential Revision: D49455254

fbshipit-source-id: 8869cacde5b65260f4615f5ba2ba34f967d7d27f
2023-09-20 05:45:30 -07:00
Luke De Feo
a033f96725 Add support for warnings from client
Summary:
THis is useful for bloks where fliper needs to be open before hand,

We might also be able to replace some of the annoying notification bubles with these sleeker inline warnings

Reviewed By: lblasa

Differential Revision: D49454977

fbshipit-source-id: fca4fbd3258a68d93c75655cfff247adfa3e6bb2
2023-09-20 05:43:49 -07:00
Andrey Goncharov
a35708989c Add metrics
Reviewed By: antonk52

Differential Revision: D49455605

fbshipit-source-id: 00b4de3106d2497b43708623c410ca262e931059
2023-09-20 05:39:33 -07:00
Andrey Goncharov
fc5fa4a349 Fix styles of non-interactive elements
Summary: Make non-interactive elements non-focusable and disable hover styles for them

Reviewed By: LukeDefeo

Differential Revision: D49455532

fbshipit-source-id: a047e1a149ab4131feef70b80a4995b455441701
2023-09-20 05:39:33 -07:00
Andrey Goncharov
f3bff735cc Simplify search term renderer matching
Summary: Each search term renderer handles its "editing" state internally now. As a result, we can simplify switch-case

Reviewed By: antonk52

Differential Revision: D49454252

fbshipit-source-id: 297ce73f53772b0112ed338c6aac0583f3807ec8
2023-09-20 04:36:57 -07:00
Andrey Goncharov
e031032b93 Make date term editable
Reviewed By: lblasa

Differential Revision: D49453947

fbshipit-source-id: b6959c6ac74d8966e21fb91f7dcbdf186253b93b
2023-09-20 04:36:57 -07:00
Andrey Goncharov
e180a1ed4b Make float term editable
Summary: For the purposes of the demo I added power search config for a float field to the summary field

Reviewed By: lblasa

Differential Revision: D49452844

fbshipit-source-id: 26aaadd07a1a8a67dfcf3cb9d8e487f8f4ee2214
2023-09-20 04:36:57 -07:00
Andrey Goncharov
31e93ff3fe Make integer term editable
Summary: For the purposes of the demo I added power search config for an integer field to the summary field

Reviewed By: lblasa

Differential Revision: D49452729

fbshipit-source-id: 78b8fdccfd799a0f71f652d90d10e11db237cbae
2023-09-20 04:36:57 -07:00
Andrey Goncharov
b3fe4c9650 Make enum term editable
Reviewed By: lblasa

Differential Revision: D49452483

fbshipit-source-id: e9bef3c5499a91231f6025e403c132b924491def
2023-09-20 04:36:57 -07:00
Andrey Goncharov
09cb48a3e3 Make string term editable
Summary:
At the end of the stack we are going to unify two branches of the switch-case in PowerSearchTerm.tsx.
Each search term is going to handle the finalized and "editing" mode internally

Reviewed By: lblasa

Differential Revision: D49451975

fbshipit-source-id: 587ba332d1fbfbaefb368e37965543575e64062f
2023-09-20 04:36:57 -07:00
Lorenzo Blasa
0540d240c0 Remove usage of server enabled
Summary: Used last year to GK server usage. This is obsolete so is safe to remove.

Reviewed By: ivanmisuno

Differential Revision: D49414625

fbshipit-source-id: 9eeff932c59c90dff829e4c6c83bad43a0fd74e3
2023-09-20 04:10:39 -07:00
Lorenzo Blasa
f897203a32 Better name for showing troubleshooting steps
Summary: Better name for toggling troubleshoot/main UI

Reviewed By: antonk52

Differential Revision: D49411916

fbshipit-source-id: 1e5bd4e3e5742abef1fca41349bc8b16cf1229bf
2023-09-20 04:10:39 -07:00
Lorenzo Blasa
a32f5e7544 More connectivity debug logs
Summary:
Whenever there is an issue, I always find myself adding these logs.

Instead of keep doing that, reuse the existing FLIPPER_DEBUG_LOG definition as a way of enabling/disabling the verbose logs very easily.

Reviewed By: ivanmisuno

Differential Revision: D49227973

fbshipit-source-id: d053df6668b1dda6f6782e8ef7d844c82945f126
2023-09-20 04:05:06 -07:00
Pascal Hartig
b808c4f9df Display fresco image on demand (#5160)
Summary:
[android][sample] Display fresco image on demand

Pull Request resolved: https://github.com/facebook/flipper/pull/5160

Reviewed By: antonk52

Differential Revision: D49411927

Pulled By: passy

fbshipit-source-id: 05d83d49df56f1e7eced2ce35d29880c9876b524
2023-09-20 03:55:40 -07:00
Andrey Goncharov
1163769b83 Change layout for power search enabled data table
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49411939

fbshipit-source-id: 0ca8b69ac7eaad1ece88caa5a220203fe54ad946
2023-09-19 08:19:25 -07:00
Andrey Goncharov
f6ffbfe3e2 Fix filtering bugs
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49411941

fbshipit-source-id: 530b0abcbba57e2503da4641d17fd1a507955b45
2023-09-19 08:19:25 -07:00
Andrey Goncharov
6f38ecfd01 Add enum_is_nullish_or operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410975

fbshipit-source-id: 5f97e055107dfb72d14825b5d697cea71b9bf81a
2023-09-19 08:19:25 -07:00
Andrey Goncharov
e6f1e7a74f Add enum_set_is_nullish_or_any_of operator
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410967

fbshipit-source-id: 699e620ce1076793597702711758809fc149389e
2023-09-19 08:19:25 -07:00
Andrey Goncharov
a6fdc127a2 Simplify SearchTerm
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410971

fbshipit-source-id: 5651dd1745aaf2efc96bae6a6b36cadad00d5c36
2023-09-19 08:19:25 -07:00
Andrey Goncharov
9d4ce0586d Support setting initial power search expression
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410966

fbshipit-source-id: 2dcdb4495275dfdca7920af26bbfea4fb95ac419
2023-09-19 08:19:25 -07:00
Andrey Goncharov
ba812eaea6 Fix empty filter bug
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410974

fbshipit-source-id: 4845f32e6be6375e113053b7123df6e78b44b269
2023-09-19 08:19:25 -07:00
Andrey Goncharov
e5b2f693a3 Setup power search
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410972

fbshipit-source-id: 35cea0f033c16748e0ceb0921dee8276787fb1a6
2023-09-19 08:19:25 -07:00
Andrey Goncharov
3022b8ddb1 Simplify data table power search config for each column
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49410973

fbshipit-source-id: d8854eefaf1901c4984300df955a15c77c03505e
2023-09-19 08:19:25 -07:00
Andrey Goncharov
3b75b6994b Allow disabling power search for certain columns
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49373658

fbshipit-source-id: 872bd6ecdce9c3ed7934f86f1954efdff76185b9
2023-09-19 08:19:25 -07:00
Andrey Goncharov
c75c377818 Expose DataTable and DataTableManager
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349842

fbshipit-source-id: 927dc817e09d830feab9ba3e5e566ddb17fe1ad0
2023-09-19 08:19:25 -07:00
Andrey Goncharov
a86c8b412f Remove search history from context menu
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49410968

fbshipit-source-id: a5160bb5d392f3884d46a3a390aa9e274d0230ea
2023-09-19 08:19:25 -07:00
Andrey Goncharov
d09dde724b Add search icon
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349828

fbshipit-source-id: 45a9917366236dda6c2409c30a4800cfe53dbd56
2023-09-19 08:19:25 -07:00
Andrey Goncharov
54a93c03aa Compute power search config from columns
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49349521

fbshipit-source-id: 49f8059bdbfbcc316b79eb633ec54d957f16548d
2023-09-19 08:19:25 -07:00
Andrey Goncharov
8cea5be59d Add min width for term finder
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349523

fbshipit-source-id: a9b9a14a74f9c32e094936e4bd38bef8f34e4c2c
2023-09-19 08:19:25 -07:00
Andrey Goncharov
f86dba951b Fix Searchbar styles
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49349522

fbshipit-source-id: fa37cd0dcca291788834e76df3d4475842df8d48
2023-09-19 08:19:25 -07:00
Andrey Goncharov
54085eb79f Add context menu
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276995

fbshipit-source-id: 83c1346c6c5869c2608b73b11d40f7f55a7a694b
2023-09-19 08:19:25 -07:00
Andrey Goncharov
bad3dfa20a Hide filter buttons
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276686

fbshipit-source-id: 5bfea4b7ef87b8d71aa4cb5a1dc3f9a94ea420f0
2023-09-19 08:19:25 -07:00
Andrey Goncharov
9dbd6f7732 Allow TableHead hide filter button
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49276687

fbshipit-source-id: dfa2a51e3bfa84ad3e39b6a4b3a4e279cf63c1d5
2023-09-19 08:19:25 -07:00
Andrey Goncharov
de5f9bc32a Add bolirplate for power search integration
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: LukeDefeo

Differential Revision: D49272248

fbshipit-source-id: ad6d88568f40bd698faed4c3fc0fc55efd93f5f3
2023-09-19 08:19:25 -07:00