Commit Graph

8630 Commits

Author SHA1 Message Date
Fúlvio Abrahão de Paula
a0510ad1bf Implement getTableInfo command.
Reviewed By: lblasa

Differential Revision: D48266744

fbshipit-source-id: 79f2fd3c4718d6bf7be4a0538ec0d1eb92503eb7
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
453b8f7b96 Implement getTableStructure command.
Reviewed By: lblasa

Differential Revision: D48191484

fbshipit-source-id: 6838590f4e10b4613074e9e9d112a62d4688f739
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
ce85f44a33 Create commands data models and add ObjectMapper.
Reviewed By: lblasa

Differential Revision: D48188172

fbshipit-source-id: 10c99250f993c71976c693a691586385d111a4fd
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
9db2c74632 Implement databaseList command and Add MockDatabaseDriver.
Reviewed By: lblasa

Differential Revision: D48172577

fbshipit-source-id: 10d6301041b3a4b3ab83b19e9afd3eac7ad7004c
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
fea326be79 Implement similar structure we have in Java plugin.
Reviewed By: lblasa

Differential Revision: D48172579

fbshipit-source-id: b2127507b04cdb85f426313e71405a81103e42bd
2023-08-14 11:07:07 -07:00
Fúlvio Abrahão de Paula
3003330067 Create initial databases plugin structure.
Reviewed By: lblasa

Differential Revision: D48172580

fbshipit-source-id: d000329c2fe8ebc12f59e3165861b1e8033ddbbe
2023-08-14 11:07:07 -07:00
David Vacca
76341a0215 Fix NoSuchMethodError when calling FbReactApplicationBaseSonarUtil.startSonarClient
Summary:
This diff is fixing a NoSuchMethodError when calling FbReactApplicationBaseSonarUtil.startSonarClient.

This is causing catalyst Android app to not start.

This was caused by D47468613, which changed the signature of the method

Reviewed By: cortinico

Differential Revision: D48275730

fbshipit-source-id: 4693c299dbd3b6a9ad58a1439bddd9e4bfb8bdf5
2023-08-14 09:54:54 -07:00
Pascal Hartig
29f072fc75 ACTUALLY disable dokka builds (#5005)
Summary:
This should hopefully unblock our Android builds for real this time. I didn't realise that the AGP itself seems to ship with a version of Dokka, so just removing the import didn't actually address the problem we were seeing.

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

Test Plan:
```
./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false
```

This now succeeds.

Reviewed By: jknoxville

Differential Revision: D48312784

Pulled By: passy

fbshipit-source-id: f049e089a511726857f544386fe13dcb50fb2971
2023-08-14 06:34:51 -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
github-actions[bot]
84987b888b Automated: Update Podfile.lock (#5000)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: lblasa

Differential Revision: D48268231

Pulled By: passy

fbshipit-source-id: 9f28d68aeeca2c921a9298cbfad7c13e261b6900
2023-08-11 12:08:42 -07:00
Andrey Goncharov
359392a44c Match isProduction definitions
Summary:
Match isProduction definition in flipper-common and flipper-server/src/index.tsx.

Without it, PWA never quits after all clients disconnect because Flipper Launcher does not set NODE_ENV to production currently (changed in the next diff)

Reviewed By: LukeDefeo, lblasa

Differential Revision: D48265768

fbshipit-source-id: 59e4660cb57da20b606562144c47c65276999d6c
2023-08-11 10:56:38 -07:00
Lorenzo Blasa
b5ed57b7d0 Remove UDS and thus the need for a proxy server
Summary: This change removes the UDS support and thus the need for having a proxy server.

Reviewed By: antonk52

Differential Revision: D48265244

fbshipit-source-id: c76bb4afba63959ddd17901b3887aa278b000beb
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
7f3f1c0507 TCP is the only option so remove unused branches
Summary: As TCP is the only option, remove all branches.

Reviewed By: passy

Differential Revision: D48265093

fbshipit-source-id: 174527f05d8a841797fd95256e77fdeb9b2e6ad5
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
47b718d104 Remove TCP option as it will be the only option
Summary: UDS will be removed. The first step would be to remove the TCP optionality.

Reviewed By: passy

Differential Revision: D48264741

fbshipit-source-id: ca9e1b68be61e99240e95bcd4f26f2db63a64005
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
bdc2d5f6eb If there are no connected clients, shutdown immediately
Summary: Instead of delaying the shutdown by a set timer, immediately shutdown.

Reviewed By: antonk52

Differential Revision: D48264571

fbshipit-source-id: 5e6556f2ecafb7cf9a19b3075e72f2be1abf9f95
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
f93da44ee5 Remove idb device polling record
Summary:
If listing devices is successful, then don't record the event
as this is triggered every X amount of seconds.

Reviewed By: antonk52

Differential Revision: D47995681

fbshipit-source-id: 2d0fa68fd7b9c4ce74bad9e8cc0296691d9b8880
2023-08-11 08:19:51 -07:00
Andrey Goncharov
3b99e386a2 Fix comment
Reviewed By: LukeDefeo

Differential Revision: D48191671

fbshipit-source-id: 6978e831f48ffe4e8a8c6e71b819205cb3868966
2023-08-09 14:15:33 -07:00
generatedunixname89002005306973
8749145664 Flipper Snapshot Bump: v0.211.1-SNAPSHOT
Summary: Releasing snapshot version 0.211.1-SNAPSHOT

Reviewed By: ivanmisuno

Differential Revision: D48185751

fbshipit-source-id: 4190086bd4545ff09dd278c61c5b152cb3a65a80
2023-08-09 09:23:44 -07:00
generatedunixname89002005306973
22f67e389f Flipper Release: v0.211.0
Summary: Releasing version 0.211.0

Reviewed By: ivanmisuno

Differential Revision: D48185752

fbshipit-source-id: 9e81f1e869e86194e8d90d83a3a988c778bb22e4
2023-08-09 09:23:44 -07:00
Andrey Goncharov
2834d3300a Track filtering and searching for data table
Reviewed By: mweststrate

Differential Revision: D48116067

fbshipit-source-id: 2dee2cfd68a23e1153b3f10ff229009777e936da
2023-08-09 08:01:44 -07:00
Luke De Feo
b30f7492cd Add connection listeners and framework events
Summary: Infra that will be used to capture litho framework events

Reviewed By: lblasa

Differential Revision: D47951601

fbshipit-source-id: 1dd756dc872d474f2872ff8cac1fd6aa3697e42b
2023-08-08 11:43:05 -07:00
Hamdullah Shah
0fdd901297 DataDescriptor BigInt
Summary: The `DataDescriptionType` accepts the `BigInt` type but it doesn't render. Added the `case` for that and reuse the `NumberValue` tag for it.

Reviewed By: aigoncharov

Differential Revision: D48152012

fbshipit-source-id: 32ebc8a37df34d57b40c7ecdad331c547415b335
2023-08-08 09:50:08 -07:00
Pascal Hartig
24cfd74252 Remove dokka plugin (#4995)
Summary:
[gradle] Remove dokka plugin
This is currently breaking our jetpack-compose build and blocks the entire release
as a consequence: https://github.com/facebook/flipper/issues/4970

There are all sorts of workarounds but they require changing the java target
which could have other downstream consequences: https://github.com/Kotlin/dokka/issues/2956

We don't actually rely on these artefacts at all, so it's probably safe to just disable this.

Closes https://github.com/facebook/flipper/issues/4970

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

Test Plan: ./gradlew publishToMavenLocal

Reviewed By: antonk52

Differential Revision: D48062872

Pulled By: passy

fbshipit-source-id: aef0696d5ac83dd50bcbb96b0552f9b222f5a566
2023-08-07 11:18:54 -07:00
github-actions[bot]
25ff271633 Automated: Update Podfile.lock (#4994)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: mweststrate

Differential Revision: D48112730

Pulled By: passy

fbshipit-source-id: 1429d64dc5c200a8af3eb162702cf81e1c9af72a
2023-08-07 10:56:27 -07:00
generatedunixname89002005306973
48f7f2a913 Flipper Snapshot Bump: v0.210.2-SNAPSHOT
Summary: Releasing snapshot version 0.210.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D48112783

fbshipit-source-id: 028a67f14456bea110d2eab65e15fa6ff766501d
2023-08-07 09:21:54 -07:00
generatedunixname89002005306973
1b0a5f4320 Flipper Release: v0.210.1
Summary: Releasing version 0.210.1

Reviewed By: passy

Differential Revision: D48112784

fbshipit-source-id: 8a6303e7cfeabd2b7f13a48be9c5f8bb0c0f5616
2023-08-07 09:21:54 -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
generatedunixname89002005306973
a5ead5036b Flipper Snapshot Bump: v0.210.1-SNAPSHOT
Summary: Releasing snapshot version 0.210.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D47994317

fbshipit-source-id: 0da5a04ee1ee3be39bb26f4dab9252ab9de3d009
2023-08-02 09:48:04 -07:00
generatedunixname89002005306973
f81eb544fa Flipper Release: v0.210.0
Summary: Releasing version 0.210.0

Reviewed By: lblasa

Differential Revision: D47994316

fbshipit-source-id: 24559a57d58a769f6e578cf344135522e4e7c9be
2023-08-02 09:48:04 -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
4e998ac083 Get OS by inspecting command
Summary: Commands can be idb or adb. If no ClientQuery is provided, set the OS accordingly.

Reviewed By: antonk52

Differential Revision: D47990745

fbshipit-source-id: 3e38b6ecb0a8ea21e584c1d6eff6feb53dd2cfab
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
2c24ec9f5d Add OS to record
Summary: OS will become useful later on, add it.

Reviewed By: antonk52

Differential Revision: D47989161

fbshipit-source-id: 3615544051b163b77f87e5c52e6ac9cae8c478d4
2023-08-02 07:56:17 -07:00
Lorenzo Blasa
d43173a8df adb kill-server
Summary: Introduce a new command to allow killing adb

Reviewed By: antonk52

Differential Revision: D47988522

fbshipit-source-id: bb4f17faa7f9b31b9d42e45c0ce39b3f5d98f4b3
2023-08-02 07:56:17 -07:00
Luke De Feo
af7c1c7e74 Dont allow focusing leaf node
Summary: This mode is useless for leaves

Reviewed By: aigoncharov

Differential Revision: D47949539

fbshipit-source-id: 7f3ae6652ad696e9f550fe5b8f2298a1a3eff329
2023-08-01 10:32:29 -07:00
Luke De Feo
9932d28b2f Optimize wireframe mode
Summary: I noticed a slow down when using key board controls as this would change the selection. this adds the optimization back when wireframe mode == All

Reviewed By: antonk52

Differential Revision: D47949836

fbshipit-source-id: a08e5608c159d23b8a0afed419724c02231718d6
2023-08-01 10:32:29 -07:00
Luke De Feo
4e7ca39168 Tweaks to tree UI
Summary:
Made rows smaller so you get to see more content
Monospace font

Reviewed By: antonk52

Differential Revision: D47949839

fbshipit-source-id: f8935e233838ff35acf8c1ab14bcf9b8f2153ab4
2023-08-01 10:32:29 -07:00
Luke De Feo
eaf5b4c246 Dont kill flipper server when no clients connect and is dev
Summary: This is quite annoying and causes may un needed reboots of flipper server while developing

Reviewed By: antonk52

Differential Revision: D47949842

fbshipit-source-id: c2f18e16a4933e4209e74f51978cb7d05b80ee11
2023-08-01 10:32:29 -07:00
Luke De Feo
09042ec5d6 Make non visible views non opaque
Summary: On certain apps there are a lot of views that have zero size and this isnt clear from the tree view. This will help

Reviewed By: lblasa

Differential Revision: D47917167

fbshipit-source-id: 180ef1cf34c3735acfd54d3498db9d29f759d959
2023-08-01 10:32:29 -07:00
Luke De Feo
1cf0527a51 Double click to expand or collapse in tree
Reviewed By: aigoncharov

Differential Revision: D47949838

fbshipit-source-id: be7208633cee13579eaa20d3b0bfaa4380a4e399
2023-08-01 10:32:29 -07:00
Luke De Feo
795d1de10d Dont auto expand nodes
Summary:
Rather than automatically collapsing siblings when using the visualiser instead we take a different approach:
1. The tree starts out fully collapsed
2. Every time you click on the visualiser we expand it and its ancestory chain to expanded nodes.

This is exactly how the Dom inspector works. The previous approach of constantly collapsing all siblings when uinsg the visualiser felt too intrusive and taking control from the user. The option is still there but only in the context menu

Some ultilities around autocollapsing nodes were removed as they dont make sense anymore that we now send complete frames

Changelog: UIDebugger Tree starts collapsed and expands as you click from the visualiser

Reviewed By: aigoncharov

Differential Revision: D47949843

fbshipit-source-id: 4381d22b12874dde5a89267572bee95f084380e3
2023-08-01 10:32:29 -07:00
Luke De Feo
ce1fdfdf19 Added context menu items for collapsing and expanding nodes
Summary:
Added 3 context menu items:
- expand recursive
- collapse recursive

These are self explanatory.

I also collapse non ancestors. This collapses everything except your direct ancestor path to the root. Quite useful to refocus the tree on a node

Changelog: UIDebugger - added  context menu items for exanding and collapsing the tree.

Reviewed By: aigoncharov

Differential Revision: D47949840

fbshipit-source-id: 6eebba182fe2092fbf5f0db0ec5ff728c3900424
2023-08-01 10:32:29 -07:00
Luke De Feo
129c848b78 Fixed bug where target mode would contain parents of hit nodes
Summary: The idea of the hit test is to return the deepest children that hit an element and not their parents. Due to this bug we were actually returning every other node all the way up to the root resulting in way to many hit nodes for target mode

Reviewed By: lblasa

Differential Revision: D47949837

fbshipit-source-id: d3391b4a700ab0be4c3b21dde5f13452f90c887b
2023-08-01 10:32:29 -07:00
Luke De Feo
fb503a0a2f Add wireframe mode control
Summary:
This allows you to control how the wire frames are drawn, useful when there are lots of overalpping wireframes

Changelog: UIDebugger - Added wireframe mode control, useful when lots of overlapping wireframes

Reviewed By: aigoncharov

Differential Revision: D47949841

fbshipit-source-id: 72de7d085ca433557107ab0cc6e4399220836d9f
2023-08-01 10:32:29 -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