Commit Graph

8577 Commits

Author SHA1 Message Date
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
Lorenzo Blasa
0ab1aeee78 ClientQuery optional for commands
Summary:
Some commands are run without a ClientQuery i.e. fetching devices.

Nevertheless, this can be provide insights when problems take place.

Reviewed By: antonk52

Differential Revision: D47795358

fbshipit-source-id: 0b7dc34475ae061f1b72843a087a798d305ed1c8
2023-07-26 08:16:47 -07:00
Lorenzo Blasa
544e49c097 Podspec and sample integration
Summary: Create podspec for UI Debugger and integrate with our iOS sample application.

Reviewed By: aigoncharov

Differential Revision: D47715973

fbshipit-source-id: a64444660ea9fb8a2c29fcafe1a44266e8daf414
2023-07-26 05:01:58 -07:00
Lorenzo Blasa
b5d51a047b Internal/External init
Summary:
UI Debugger initialisation is defined in two places. Internally, done inside:
    fb/FlipperKitUIDebuggerPluginInit.mm
OSS:
    FlipperKitUIDebuggerPluginInit.mm

Contents of `fb/` directory are not synced in OSS. OSS file is excluded internally as it doesn't use the XPlugins.

Reviewed By: aigoncharov

Differential Revision: D47759035

fbshipit-source-id: 3578be076525f05b530a0d129b5c37e48572d58e
2023-07-26 05:01:58 -07:00
Luke De Feo
60016e69f5 Remove Node id default impl
Summary: This is never identity hash code for declarative framework so this default impl is just a source of bugs, including this one.

Reviewed By: lblasa

Differential Revision: D47754625

fbshipit-source-id: 470aab084c82fa847f25116342021a79d52b7c67
2023-07-26 04:58:43 -07:00
generatedunixname89002005306973
6b1da22a26 Flipper Snapshot Bump: v0.208.1-SNAPSHOT
Summary: Releasing snapshot version 0.208.1-SNAPSHOT

Reviewed By: aigoncharov

Differential Revision: D47791661

fbshipit-source-id: e3fc95b261e76888226d16780407ba2a6fd4b68e
2023-07-26 04:32:34 -07:00
generatedunixname89002005306973
6962289ad9 Flipper Release: v0.208.0
Summary: Releasing version 0.208.0

Reviewed By: aigoncharov

Differential Revision: D47791662

fbshipit-source-id: 9a93f9d49c0fa9a3e1598e3f00f988a94cc1eea0
2023-07-26 04:32:34 -07:00
Luke De Feo
b47c88f2b5 Analytics for target mode
Reviewed By: antonk52

Differential Revision: D47757367

fbshipit-source-id: f6ce53a1edc3095a488097e304d3774b0702185b
2023-07-26 04:24:54 -07:00
Luke De Feo
c1a99a8a52 ONly show framework event monitoring where there are events
Reviewed By: antonk52

Differential Revision: D47757004

fbshipit-source-id: 44e0e6aff0213d3bf684652906abae28777cfe9e
2023-07-26 04:24:54 -07:00
Lorenzo Blasa
aba50889f2 Snapshot to use key window size if possible
Summary:
Use the application key window bounds if possible.
In the case where the application is not using the entire screen,
like in Split View on an iPad, the running application is
not using the entire screen thus the snapshot stretches to
fill the screen size which is incorrect.

Reviewed By: LukeDefeo

Differential Revision: D47793033

fbshipit-source-id: d6c7932d35bad13752713772d078f94bad530b09
2023-07-26 04:24:07 -07:00
Luke De Feo
f854e9f3f3 rename controls to tree controls and consistent button style
Reviewed By: mweststrate

Differential Revision: D47672437

fbshipit-source-id: 5ce237cfd300a481450411a0242410e01bcc5411
2023-07-26 03:22:38 -07:00
Luke De Feo
ab84bb9bad Add visualiser controls + target mode
Summary:
Now that we have panels for tree visualiser separately we can have visualiser specific controls. There is a dedicated button for focus mode which should make that more discoverable and a better implementation of target mode which uses a slider. This has several benefits:
1. more discoverable
2. more obvious what is going on with the text prompts and a real slider control instead of mouse enter
3. there is no context menu getting in the way of the content

Changelog: UIDebugger Add visualizer target mode feature for selecting views in the z stack easily
Changelog: UIDebugger Add FocusMode button to visualiser toolbar

Reviewed By: mweststrate

Differential Revision: D47671658

fbshipit-source-id: 6f657f9d417280627457624660b934c9898cda58
2023-07-26 03:22:38 -07:00
Luke De Feo
8adf153380 Remove visualizer context menu
Summary: This isnt very discoverable and we can put functionality in the toolbar

Reviewed By: mweststrate

Differential Revision: D47670683

fbshipit-source-id: 8426ba05135f9a56f0a0952e94ac80480cd30a48
2023-07-26 03:22:38 -07:00
Luke De Feo
bf74877ff5 Move visualiser into folder pre split
Reviewed By: mweststrate

Differential Revision: D47664272

fbshipit-source-id: 7cc22b272b9298837d45976996d0197d5e5550f0
2023-07-26 03:22:38 -07:00
Luke De Feo
272d2d2106 Redesign Split Tree and visualiser into panels
Summary: This looks a lot neater and allows us to have separate dedicated visualiser header

Reviewed By: mweststrate

Differential Revision: D47626867

fbshipit-source-id: 843721853e0ff88837afbb9bf3f510a908160d12
2023-07-26 03:22:38 -07:00
Luke De Feo
0e15dce033 New Tree design
Summary:
1. Add indent guidess to all tree depths
2. Monospaced font
3. cleaned up alignment of icons
4. Gave everything a bit more space to breathe

Changelog: UI Debugger Tree UI refresh, added indent guides and fixed alignment

Reviewed By: mweststrate

Differential Revision: D47626869

fbshipit-source-id: e4509621cda6c254f7dd5a7ec9b99c13efb577f4
2023-07-26 03:22:38 -07:00
Luke De Feo
3891a5d61b Introduce selection for elements in z stack aka target mode
Summary:
The old layout plugins target mode would ask you which view you wanted to select when you clicked, the visualiser currently chooses for you based on size of the element.

Sometimes this isnt what you want so I have added a context menu with all the intersecting nodes from which you can select or focus

Reviewed By: lblasa

Differential Revision: D47589789

fbshipit-source-id: 9c9d0d7587b830aa72089267d9bcf2b687142574
2023-07-26 03:22:38 -07:00
Pranav Yadav
dca958cc9e publish-android - Bump actions/- checkout@v3.5.3, setup-java@v3.11.0 & cache@v3.3.1 (#4866)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-java@v3.11.0` & `actions/cache@v3.3.1`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-java@v3.11.0` changelog: https://github.com/actions/setup-java/releases/tag/v3.11.0
- `actions/cache@v3.3.1` changelog: https://github.com/actions/cache/releases/tag/v3.3.1

## Changelog:

[GENERAL] [SECURITY] - [Actions] `publish-android` - Bump `actions/`- `checkout@v3.5.3`, `setup-java@v3.11.0` & `cache@v3.3.1`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: aigoncharov

Differential Revision: D47755940

Pulled By: passy

fbshipit-source-id: 8cbd7c360b48a5948125ef01bf3ca08aca37f745
2023-07-25 09:42:47 -07:00
Pranav Yadav
24df607007 Delete and gitignore unwanted lock files (#4899)
Summary:
This diff deletes unnecessary lock files which were checked out but aren't necessary and `gitignore` those files:
- `yarn.lock`
- `js/yarn.lock`
- `react-native/yarn.lock`

## Changelog

[General] [Removed] - Delete unnecessary lock files.

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

Test Plan: - None

Reviewed By: aigoncharov

Differential Revision: D47755862

Pulled By: passy

fbshipit-source-id: 8e9a03b59df1a2891004de3edbd9c3569d2d6055
2023-07-25 09:41:24 -07:00
Pranav Yadav
1212e52821 nodejs-pkg - Bump actions/setup-node@v3.6.0 & actions/checkout@v3.5.3 (#4864)
Summary:
This diff bumps `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0

## Changelog:

[GENERAL] [SECURITY] - [Actions] `nodejs-pkg` - Bump `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: aigoncharov

Differential Revision: D47755938

Pulled By: passy

fbshipit-source-id: 882ce213a6f7ad0918e97315d6dc08d6c17963a3
2023-07-25 09:33:58 -07:00
dependabot[bot]
8118eee4ab Bump indicatif from 0.17.4 to 0.17.5 in /packer (#4796)
Summary:
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.17.4 to 0.17.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/console-rs/indicatif/releases">indicatif's releases</a>.</em></p>
<blockquote>
<h2>0.17.5</h2>
<p>Another smaller release. Fixes a regression from 0.17.4 and should drastically improve ETA and speed estimation thanks to great work by <a href="https://github.com/afontenot"><code>@​afontenot</code></a> in <a href="https://redirect.github.com/console-rs/indicatif/issues/539">https://github.com/facebook/flipper/issues/539</a>.</p>
<ul>
<li>Switch Estimator to use an exponential weighting (<a href="https://redirect.github.com/console-rs/indicatif/issues/539">https://github.com/facebook/flipper/issues/539</a>, thanks to <a href="https://github.com/afontenot"><code>@​afontenot</code></a>)</li>
<li>Fix subtract with overflow when measuring terminal line length (<a href="https://redirect.github.com/console-rs/indicatif/issues/547">https://github.com/facebook/flipper/issues/547</a>, thanks to <a href="https://github.com/foresterre"><code>@​foresterre</code></a>)</li>
<li>Add builder-like <code>with_finish</code> method to <code>ProgressBarIter</code> (<a href="https://redirect.github.com/console-rs/indicatif/issues/548">https://github.com/facebook/flipper/issues/548</a>, thanks to <a href="https://github.com/matthewhchan"><code>@​matthewhchan</code></a>)</li>
</ul>
<p>On behalf of <a href="https://github.com/chris-laplante"><code>@​chris-laplante</code></a> and <a href="https://github.com/djc"><code>@​djc</code></a>, thanks to all contributors!</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4ffc40e19a"><code>4ffc40e</code></a> bump version to 0.17.5</li>
<li><a href="011c998820"><code>011c998</code></a> Switch Estimator to use an double exponential time-based weighting</li>
<li><a href="2845b7f7bd"><code>2845b7f</code></a> Refactor estimator's prev tuple into separate elements</li>
<li><a href="36d11e8a54"><code>36d11e8</code></a> refactor estimator to use steps/sec instead of secs/step</li>
<li><a href="f88ec3ba07"><code>f88ec3b</code></a> Fix subtract with overflow when measuring terminal line length</li>
<li><a href="bd320a1c11"><code>bd320a1</code></a> Add builder-like <code>with_finish</code> method to <code>ProgressBarIter</code>. (<a href="https://redirect.github.com/console-rs/indicatif/issues/548">https://github.com/facebook/flipper/issues/548</a>)</li>
<li><a href="a81fd6c9c1"><code>a81fd6c</code></a> tests: suppress clippy redundant clone check in test code</li>
<li>See full diff in <a href="https://github.com/console-rs/indicatif/compare/0.17.4...0.17.5">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=indicatif&package-manager=cargo&previous-version=0.17.4&new-version=0.17.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

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

Reviewed By: aigoncharov

Differential Revision: D47756391

Pulled By: passy

fbshipit-source-id: 79f7773190ed279a74a5f232f939791f9ae748d6
2023-07-25 09:33:23 -07:00
Pranav Yadav
09ec77cd91 nodejs-doctor - Bump actions/setup-node@v3.6.0 & actions/checkout@v3.5.3 (#4863)
Summary:
This diff bumps `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0

## Changelog:

[GENERAL] [SECURITY] - [Actions] `nodejs-doctor` - Bump `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: aigoncharov

Differential Revision: D47755933

Pulled By: passy

fbshipit-source-id: 16a8e5f74e8a5e3a95655348afe39bc4d96e902a
2023-07-25 09:32:34 -07:00
dependabot[bot]
b0b772dcf5 Bump serde from 1.0.171 to 1.0.175 in /packer (#4964)
Summary:
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.171 to 1.0.175.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p>
<blockquote>
<h2>v1.0.175</h2>
<ul>
<li>Restore missing LICENSE files in serde_derive crate (<a href="https://redirect.github.com/serde-rs/serde/issues/2527">https://github.com/facebook/flipper/issues/2527</a>, thanks <a href="https://github.com/ankane"><code>@​ankane</code></a>)</li>
</ul>
<h2>v1.0.174</h2>
<ul>
<li>Documentation improvements</li>
</ul>
<h2>v1.0.173</h2>
<ul>
<li>Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the <code>bitflags</code> crate (<a href="https://redirect.github.com/serde-rs/serde/issues/2516">https://github.com/facebook/flipper/issues/2516</a>)</li>
</ul>
<h2>v1.0.172</h2>
<ul>
<li>Experiment with precompiling the serde_derive macros to reduce build time (<a href="https://redirect.github.com/serde-rs/serde/issues/2514">https://github.com/facebook/flipper/issues/2514</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6140b6f527"><code>6140b6f</code></a> Release 1.0.175</li>
<li><a href="4cabc9f293"><code>4cabc9f</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2527">https://github.com/facebook/flipper/issues/2527</a> from ankane/license-files</li>
<li><a href="aa7c6345a4"><code>aa7c634</code></a> Include license files in serde_derive crate</li>
<li><a href="27414c90a8"><code>27414c9</code></a> Merge pull request <a href="https://redirect.github.com/serde-rs/serde/issues/2522">https://github.com/facebook/flipper/issues/2522</a> from serde-rs/leak</li>
<li><a href="50e2f4b213"><code>50e2f4b</code></a> Leak all memory allocated during macro expansion</li>
<li><a href="22be673beb"><code>22be673</code></a> Release 1.0.174</li>
<li><a href="166c89fabf"><code>166c89f</code></a> Opt in to generate-link-to-definition when building on docs.rs</li>
<li><a href="6e0b13eedb"><code>6e0b13e</code></a> Release 1.0.173</li>
<li><a href="7e8f978ca9"><code>7e8f978</code></a> Handle $crate special case</li>
<li><a href="6c0e838a7c"><code>6c0e838</code></a> Always consider empty output to be unsuccessful</li>
<li>Additional commits viewable in <a href="https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.175">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde&package-manager=cargo&previous-version=1.0.171&new-version=1.0.175)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: aigoncharov

Differential Revision: D47755906

Pulled By: passy

fbshipit-source-id: 9724e43e14ce3f1b3d413dea27cbe6a524b5a203
2023-07-25 09:31:04 -07:00
dependabot[bot]
f0a870630f Bump org.java-websocket:Java-WebSocket from 1.5.3 to 1.5.4 (#4966)
Summary:
Bumps [org.java-websocket:Java-WebSocket](https://github.com/TooTallNate/Java-WebSocket) from 1.5.3 to 1.5.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/TooTallNate/Java-WebSocket/releases">org.java-websocket:Java-WebSocket's releases</a>.</em></p>
<blockquote>
<h2>Release 1.5.4</h2>
<h4>Notable changes:</h4>
<ul>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1308">Issue 1308</a> - Add support for Java modules (<a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1309">PR 1309</a>)</li>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1309">PR 1309</a> - Add support for Java modules</li>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1259">PR 1259</a> - Replace usages of deprecated constructor Integer(String) with Integer.parseInt</li>
</ul>
<p>Check out the <a href="https://github.com/TooTallNate/Java-WebSocket/blob/master/CHANGELOG.md#version-release-154-20230720">changelog</a> and the <a href="https://github.com/TooTallNate/Java-WebSocket/milestone/20?closed=1">milestone</a> for more information.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/TooTallNate/Java-WebSocket/blob/master/CHANGELOG.md">org.java-websocket:Java-WebSocket's changelog</a>.</em></p>
<blockquote>
<h2>Version Release 1.5.4 (2023/07/20)</h2>
<h4>New Features</h4>
<ul>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1308">Issue 1308</a> - Add support for Java modules (<a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1309">PR 1309</a>)</li>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1309">PR 1309</a> - Add support for Java modules</li>
</ul>
<h4>Refactoring</h4>
<ul>
<li><a href="https://redirect.github.com/TooTallNate/Java-WebSocket/pull/1259">PR 1259</a> - Replace usages of deprecated constructor Integer(String) with Integer.parseInt</li>
</ul>
<p>In this release 1 issue and 2 pull requests were closed.</p>
<p>###############################################################################</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f4ab4740d3"><code>f4ab474</code></a> Merge pull request <a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1344">https://github.com/facebook/flipper/issues/1344</a> from marci4/update_changelog_release_1.5.4</li>
<li><a href="55588f1243"><code>55588f1</code></a> Update changelog</li>
<li><a href="02e599d658"><code>02e599d</code></a> Merge pull request <a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1341">https://github.com/facebook/flipper/issues/1341</a> from marci4/RemoveSnapshotLinks</li>
<li><a href="12a7bb598c"><code>12a7bb5</code></a> Remove snapshot badge</li>
<li><a href="30ba037006"><code>30ba037</code></a> Merge branch 'issue-1308' into master</li>
<li><a href="239ded8b7a"><code>239ded8</code></a> Merge pull request <a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1314">https://github.com/facebook/flipper/issues/1314</a> from anthonyvdotbe/issue-1308</li>
<li><a href="3e8d3c51da"><code>3e8d3c5</code></a> Add distribution attribute to GitHub workflows</li>
<li><a href="48a1cbf137"><code>48a1cbf</code></a> Merge pull request <a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1309">https://github.com/facebook/flipper/issues/1309</a> from anthonyvdotbe/issue-1308</li>
<li><a href="70092c69c9"><code>70092c6</code></a> Merge pull request <a href="https://redirect.github.com/TooTallNate/Java-WebSocket/issues/1307">https://github.com/facebook/flipper/issues/1307</a> from anthonyvdotbe/issue-1306</li>
<li><a href="8fbd5b8596"><code>8fbd5b8</code></a> Update GitHub workflows to JDK 17</li>
<li>Additional commits viewable in <a href="https://github.com/TooTallNate/Java-WebSocket/compare/v1.5.3...v1.5.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.java-websocket:Java-WebSocket&package-manager=gradle&previous-version=1.5.3&new-version=1.5.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: aigoncharov

Differential Revision: D47755841

Pulled By: passy

fbshipit-source-id: c55559a964a7de3d0d4f0975156020f05b9dd9fa
2023-07-25 09:29:26 -07:00
Pranav Yadav
a8df43a987 release - Bump multiple actions (#4871)
Summary:
This diff bumps `actions/checkout@v3.5.3`, `actions/setup-node@v3.6.0`, `actions/upload-artifact@v3.1.2`, `nick-fields/retry@v2.8.3` and `JasonEtco/create-an-issue@v2.9.1`

### Ref.:
- `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3
- `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0
- `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2
- `nick-fields/retry@v2.8.3` changelog: https://github.com/nick-fields/retry/releases/tag/v2.8.3
- `JasonEtco/create-an-issue@v2.9.1` changelog: https://github.com/JasonEtco/create-an-issue/releases/tag/v2.9.1

## Changelog:

[GENERAL] [SECURITY] - [Actions] `release` - Bump `actions/`- `checkout@v3.5.3`, `setup-node@v3.6.0`, `upload-artifact@v3.1.2`, & `nick-fields/retry@v2.8.3` and `JasonEtco/create-an-issue@v2.9.1`

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

Test Plan: - Workflow should run and work as usual.

Reviewed By: aigoncharov

Differential Revision: D47756366

Pulled By: passy

fbshipit-source-id: 667b8174bdf4ef8193b95a83e068a6ad13c50c35
2023-07-25 09:27:36 -07:00
dependabot[bot]
4748aa0a84 Bump serde_yaml from 0.9.23 to 0.9.25 in /packer (#4963)
Summary:
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.23 to 0.9.25.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p>
<blockquote>
<h2>0.9.25</h2>
<ul>
<li>Serialize using quoted style around scalar that has digits with leading zero (<a href="https://redirect.github.com/dtolnay/serde-yaml/issues/347">https://github.com/facebook/flipper/issues/347</a>)</li>
</ul>
<h2>0.9.24</h2>
<ul>
<li>Implement FromStr for serde_yaml::Number (<a href="https://redirect.github.com/dtolnay/serde-yaml/issues/381">https://github.com/facebook/flipper/issues/381</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f26dac4b3a"><code>f26dac4</code></a> Release 0.9.25</li>
<li><a href="fda96c77eb"><code>fda96c7</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/serde-yaml/issues/383">https://github.com/facebook/flipper/issues/383</a> from dtolnay/leadingzero</li>
<li><a href="a38768fc52"><code>a38768f</code></a> Quoted style for string consisting of digits with leading zero</li>
<li><a href="cd1fd90f23"><code>cd1fd90</code></a> Add test of quoting of number with leading zeros</li>
<li><a href="c1b1eac970"><code>c1b1eac</code></a> Resolve incorrect_partial_ord_impl_on_ord_type clippy lint</li>
<li><a href="da99545d4b"><code>da99545</code></a> Release 0.9.24</li>
<li><a href="053af6fefc"><code>053af6f</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/serde-yaml/issues/382">https://github.com/facebook/flipper/issues/382</a> from dtolnay/parsenumber</li>
<li><a href="3c681651e1"><code>3c68165</code></a> Add test of Number parsing</li>
<li><a href="610d7b290d"><code>610d7b2</code></a> Implement FromStr for serde_yaml::Number</li>
<li>See full diff in <a href="https://github.com/dtolnay/serde-yaml/compare/0.9.23...0.9.25">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=serde_yaml&package-manager=cargo&previous-version=0.9.23&new-version=0.9.25)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: aigoncharov

Differential Revision: D47755910

Pulled By: passy

fbshipit-source-id: 6a74aabf563a33935bdfe8952ae5e77be767ce42
2023-07-25 09:24:14 -07:00
dependabot[bot]
4176415b55 Bump org.jetbrains.kotlin:kotlin-reflect from 1.8.22 to 1.9.0 (#4965)
Summary:
Bumps [org.jetbrains.kotlin:kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.8.22 to 1.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/JetBrains/kotlin/releases">org.jetbrains.kotlin:kotlin-reflect's releases</a>.</em></p>
<blockquote>
<h2>Kotlin 1.9.0</h2>
<h2>Changelog</h2>
<h3>Analysis API</h3>
<h4>New Features</h4>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57930"><code>KT-57930</code></a> Analysis API: provide an API for extending Kotlin resolution</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57636"><code>KT-57636</code></a> K2: Add the return type of K2 reference shortener AA <code>ShortenCommand::invokeShortening()</code> e.g., <code>ShorteningResultInfo</code> to allow callers to access the shortening result PSI</li>
</ul>
<h4>Fixes</h4>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58249"><code>KT-58249</code></a> Analysis API: Disable error logging for FE10 implementation of resolveCall when resolve is not successful</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55626"><code>KT-55626</code></a> Impossible to restore symbol by psi from script file</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57314"><code>KT-57314</code></a> LL FIR: Combine <code>LLFirProvider$SymbolProvider</code>s in session dependencies (optimization)</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55527"><code>KT-55527</code></a> K2 IDE: Rewrite KtScopeContext class to allow to handle each scope separately</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55329"><code>KT-55329</code></a> LL FIR: Unexpected ACTUAL_WITHOUT_EXPECT error on constructor and function declaration</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-50732"><code>KT-50732</code></a> LL API: fix compiler based tests</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57850"><code>KT-57850</code></a> K2: contract violation due to SymbolLightAccessorMethod.propertyAccessorSymbol</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56543"><code>KT-56543</code></a> LL FIR: rework lazy transformers so transformers modify only declarations they suppose to</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56721"><code>KT-56721</code></a> K2: FirExtensionDeclarationsSymbolProvider: java.lang.IllegalStateException: Recursive update</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-50253"><code>KT-50253</code></a> Analysis API: Solve issues with ProcessCancelledException</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56800"><code>KT-56800</code></a> K2 IDE: optimize deprecation calculation for symbols</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55006"><code>KT-55006</code></a> Analysis API does not transform Java type refs for callable symbol return types</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57256"><code>KT-57256</code></a> AA FIR: Reduce lazy resolve phase for deprecation status</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57619"><code>KT-57619</code></a> K2: CFG for class initializer is not correctly built in reversed resolve mode</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58141"><code>KT-58141</code></a> K2: AA FIR: impossible to restore symbol for declaration with annotation with argument inside type</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57462"><code>KT-57462</code></a> Symbol Light Classes: SymbolLightFieldForProperty should retrieve annotations not from KtPropertySymbol, but from the corresponding backing field</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-54864"><code>KT-54864</code></a> Analysis API: add function to get expect KtSymbol list by actual KtSymbol</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56763"><code>KT-56763</code></a> Analysis API: <code>.KtSourceModuleImpl is missing in the map.</code> on symbol restore when symbol cannot be seen from the use-site module</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56617"><code>KT-56617</code></a> Analysis API: optimize KtFirSymbolProviderByJavaPsi.getNamedClassSymbol</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-54430"><code>KT-54430</code></a> K2: .getAllOverriddenSymbols() returns invalid results</li>
</ul>
<h3>Backend. Native. Debug</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55440"><code>KT-55440</code></a> Kotlin/Native debugger: inline function parameters are not visible during debugging</li>
</ul>
<h3>Backend. Wasm</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58293"><code>KT-58293</code></a> Wasm: ReferenceError: e is not defined in kotlin.test.jsThrow</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58931"><code>KT-58931</code></a> Wasm tests are failing to start on Kotlin 1.9.0-Beta</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58188"><code>KT-58188</code></a> Restore binary compatibility of PlatformDiagnosticSuppressor.shouldReportUnusedParameter</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57136"><code>KT-57136</code></a> K/Wasm: Restrict non-external types in JS interop</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57060"><code>KT-57060</code></a> Clarify the lack of support for dynamic in Kotlin/Wasm</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56955"><code>KT-56955</code></a> K/Wasm: Support restricted version of K/JS <code>js(code)</code></li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57276"><code>KT-57276</code></a> Wasm: &quot;Body not found for function&quot; error when compiling konform library with Kotlin/Wasm support</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-56976"><code>KT-56976</code></a> K/Wasm bug with calling override of external function with default parameters</li>
</ul>
<h3>Compiler</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md">org.jetbrains.kotlin:kotlin-reflect's changelog</a>.</em></p>
<blockquote>
<h2>1.8.21</h2>
<h3>Compiler</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57848"><code>KT-57848</code></a> Native: compilation of dynamic/static library fails with Xcode 14.3</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57875"><code>KT-57875</code></a> Native compilation failure: Suspend functions should be lowered out at this point, but FUN LOCAL_FUNCTION_FOR_LAMBDA</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57946"><code>KT-57946</code></a> KAPT: &quot;RuntimeException: No type for expression&quot; with delegate</li>
</ul>
<h3>JavaScript</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57356"><code>KT-57356</code></a> KJS: StackOverflowException on <a href="https://github.com/JsExport"><code>@​JsExport</code></a> with type parameters referring to one another</li>
</ul>
<h3>Tools. Compiler plugins. Serialization</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58067"><code>KT-58067</code></a> Serialization: NullPointerException caused by <a href="https://github.com/Contextual"><code>@​Contextual</code></a> property with type with generic</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57730"><code>KT-57730</code></a> Serialization: &quot;IllegalStateException: Serializer for element of type <!-- raw HTML omitted -->.Foo has not been found&quot; caused by serialization of Java type</li>
</ul>
<h3>Tools. Gradle. JS</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-57766"><code>KT-57766</code></a> KJS / Gradle &quot;Module not found: Error: Can't resolve 'kotlin-kotlin-stdlib-js-ir'&quot; when using &quot;useEsModules&quot;</li>
</ul>
<h3>Tools. Kapt</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58027"><code>KT-58027</code></a> Kotlin 1.8.20 kapt issue &quot;null: KtCallExpression: build()&quot;</li>
</ul>
<h3>Tools. Maven</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58048"><code>KT-58048</code></a> Maven: &quot;Too many source module declarations found&quot; after upgrading to 1.8.20</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-58101"><code>KT-58101</code></a> 'Unable to access class' in kotlin-maven-plugin after updating to Kotlin 1.8.20</li>
</ul>
<h2>1.8.20</h2>
<h3>Analysis API</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55510"><code>KT-55510</code></a> K2: Lost designation for local classes</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55191"><code>KT-55191</code></a> AA: add an API to compare symbol pointers</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55487"><code>KT-55487</code></a> K2: symbol pointer restoring doesn't work for static members</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55336"><code>KT-55336</code></a> K2 IDE: &quot;java.lang.IllegalStateException: Required value was null.&quot; exception while importing a compiled JPS project</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55098"><code>KT-55098</code></a> AA: KtDeclarationRenderer should render a context receivers</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-51181"><code>KT-51181</code></a> LL API: errors for SAM with suspend function from another module</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-50250"><code>KT-50250</code></a> Analysis API: Implement Analysis API of KtExpression.isUsedAsExpression</li>
<li><a href="https://youtrack.jetbrains.com/issue/KT-54360"><code>KT-54360</code></a> KtPropertySymbol: support JvmField in javaSetterName and javaGetterName</li>
</ul>
<h3>Analysis API. FE1.0</h3>
<ul>
<li><a href="https://youtrack.jetbrains.com/issue/KT-55825"><code>KT-55825</code></a> AA FE1.0: stackoverflow when resolution to a function with a recursive type parameter</li>
</ul>
<h3>Analysis API. FIR</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="bcf27812cd"><code>bcf2781</code></a> Add ChangeLog for 1.9.0</li>
<li><a href="d372470550"><code>d372470</code></a> Don't get BuildScanExtension when buildScan report is disabled</li>
<li><a href="0ec76786a6"><code>0ec7678</code></a> [Gradle, JS] Return back deprecated methods for compatibility</li>
<li><a href="2427b51ba8"><code>2427b51</code></a> Relocate aalto-xml and stax2-api dependencies in embeddable compiler (KT-59631)</li>
<li><a href="56a7789f1d"><code>56a7789</code></a> Revert &quot;[Gradle] Fix invalidating iOS framework after import&quot;</li>
<li><a href="8cf1abc294"><code>8cf1abc</code></a> Add the possibility to omit explicitly specifying a version in annotationProc...</li>
<li><a href="4823fc3c64"><code>4823fc3</code></a> [Gradle] GranularMetadataTransformation: Collect moduleIds in ProjectData for...</li>
<li><a href="0d1932eab6"><code>0d1932e</code></a> [Gradle] Implement Future&lt;T&gt;.map(transform)</li>
<li><a href="bbf64b14d7"><code>bbf64b1</code></a> [Gradle] Implement KT59446TransformationOnTransitiveJavaDependencyTest</li>
<li><a href="54b11e3a95"><code>54b11e3</code></a> [Gradle] KotlinPluginLifecycle: Implement .toString for better diagnostics</li>
<li>Additional commits viewable in <a href="https://github.com/JetBrains/kotlin/compare/v1.8.22...v1.9.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.jetbrains.kotlin:kotlin-reflect&package-manager=gradle&previous-version=1.8.22&new-version=1.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: aigoncharov

Differential Revision: D47755886

Pulled By: passy

fbshipit-source-id: 6b253ac55c5177ef58702adb89ee4ebc2b4bea92
2023-07-25 09:10:38 -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
Pascal Hartig
51ae6f7cfc Run yarn fix (#4962)
Summary:
[js] Run yarn fix

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

Reviewed By: mweststrate

Differential Revision: D47717348

Pulled By: passy

fbshipit-source-id: 15de379990509d83edf218fe9073107c9b520956
2023-07-25 02:05:37 -07:00
Michel Weststrate
e7ac579d1c Fix exception initial databaseList request failed: T.sort is not a function
Summary: Exception showed up in our monitoring. The only `.sort` that happens in that request/response sequence is the one updated. Didn't get to the root of this, but likely the plugin returns nothing rather than an empty array when no databases present?

Reviewed By: LukeDefeo

Differential Revision: D47665268

fbshipit-source-id: 3f8dea591db3e6cb5d4e0d09f893a177ad4f642e
2023-07-24 07:46:34 -07:00
Pascal Hartig
6048f09fd0 Update copyright headers for jetpack-compose
Reviewed By: lawrencelomax

Differential Revision: D47664798

fbshipit-source-id: 1dfd69e7e821fb2640cfb2fd6f481942d59a8162
2023-07-24 04:40:53 -07:00
Ivan Misuno
1753581028 Add metadata.customAttributes field
Summary:
`customAttributes` will be used by the UI Debugger to pass styleID for Bloks model attributes.
(replicating corresponding [Android implementation](https://www.internalfb.com/code/fbsource/[33c33fa7f582]/xplat/sonar/android/src/facebook/java/com/facebook/flipper/uidebugger/bloks/descriptors/BloksDebugComponentDescriptor.kt?lines=138-139%2C170-171))

Reviewed By: antonk52

Differential Revision: D47494013

fbshipit-source-id: 257387d4af94235b23d636047326532d7071e8dd
2023-07-21 14:32:22 -07:00
dependabot[bot]
b22ac16c3c Bump org.jetbrains.kotlinx:kotlinx-coroutines-android from 1.6.4 to 1.7.2 (#4914)
Summary:
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.4 to 1.7.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/releases">org.jetbrains.kotlinx:kotlinx-coroutines-android's releases</a>.</em></p>
<blockquote>
<h2>1.7.2</h2>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Coroutines debugger no longer keeps track of coroutines with empty coroutine context (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3782">https://github.com/facebook/flipper/issues/3782</a>).</li>
<li><code>CopyableThreadContextElement</code> now properly copies an element when crossing the coroutine boundary in <code>flowOn</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3787">https://github.com/facebook/flipper/issues/3787</a>). Thanks <a href="https://github.com/wanyingd1996"><code>@​wanyingd1996</code></a>!</li>
<li>Coroutine timeouts no longer prevent K/N <code>newSingleThreadContext</code> from closing (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3768">https://github.com/facebook/flipper/issues/3768</a>).</li>
<li>A non-linearizability in <code>Mutex</code> during <code>tryLock</code>/<code>unlock</code> sequence with owners is fixed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3745">https://github.com/facebook/flipper/issues/3745</a>).</li>
<li>Atomicfu version is updated to 0.21.0.</li>
</ul>
<h2>1.7.1</h2>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Special characters in coroutine names in JSON dumps are supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3747">https://github.com/facebook/flipper/issues/3747</a>)</li>
<li>The binary compatibility of the experimental overload of <code>runTest</code> is restored (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3673">https://github.com/facebook/flipper/issues/3673</a>)</li>
<li>Channels that don't use <code>onUndeliveredElement</code> now allocate less memory (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3646">https://github.com/facebook/flipper/issues/3646</a>)</li>
</ul>
<h2>1.7.0</h2>
<h3>Core API significant improvements</h3>
<ul>
<li>New <code>Channel</code> implementation with significant performance improvements across the API (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3621">https://github.com/facebook/flipper/issues/3621</a>).</li>
<li>New <code>select</code> operator implementation: faster, more lightweight, and more robust (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3020">https://github.com/facebook/flipper/issues/3020</a>).</li>
<li><code>Mutex</code> and <code>Semaphore</code> now share the same underlying data structure (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3020">https://github.com/facebook/flipper/issues/3020</a>).</li>
<li><code>Dispatchers.IO</code> is added to K/N (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3205">https://github.com/facebook/flipper/issues/3205</a>)
<ul>
<li><code>newFixedThreadPool</code> and <code>Dispatchers.Default</code> implementations on K/N were wholly rewritten to support graceful growth under load (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3595">https://github.com/facebook/flipper/issues/3595</a>).</li>
</ul>
</li>
<li><code>kotlinx-coroutines-test</code> rework:
<ul>
<li>Add the <code>timeout</code> parameter to <code>runTest</code> for the whole-test timeout, 10 seconds by default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3270">https://github.com/facebook/flipper/issues/3270</a>). This replaces the configuration of quiescence timeouts, which is now deprecated (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3603">https://github.com/facebook/flipper/issues/3603</a>).</li>
<li>The <code>withTimeout</code> exception messages indicate if the timeout used the virtual time (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3588">https://github.com/facebook/flipper/issues/3588</a>).</li>
<li><code>TestCoroutineScheduler</code>, <code>runTest</code>, and <code>TestScope</code> API are promoted to stable (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3622">https://github.com/facebook/flipper/issues/3622</a>).</li>
<li><code>runTest</code> now also fails if there were uncaught exceptions in coroutines not inherited from the test coroutine (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/1205">https://github.com/facebook/flipper/issues/1205</a>).</li>
</ul>
</li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li>Old K/N memory model is no longer supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3375">https://github.com/facebook/flipper/issues/3375</a>).</li>
<li>New generic upper bounds were added to reactive integration API where the language since 1.8.0 dictates (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3393">https://github.com/facebook/flipper/issues/3393</a>).</li>
<li><code>kotlinx-coroutines-core</code> and <code>kotlinx-coroutines-jdk8</code> artifacts were merged into a single artifact (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3268">https://github.com/facebook/flipper/issues/3268</a>).</li>
<li>Artificial stackframes in stacktrace recovery no longer contain the <code>\b</code> symbol and are now navigable in IDE and supplied with proper documentation (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2291">https://github.com/facebook/flipper/issues/2291</a>).</li>
<li><code>CoroutineContext.isActive</code> returns <code>true</code> for contexts without any job in them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3300">https://github.com/facebook/flipper/issues/3300</a>).</li>
</ul>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Kotlin version is updated to 1.8.20</li>
<li>Atomicfu version is updated to 0.20.2.</li>
<li><code>JavaFx</code> version is updated to 17.0.2 in <code>kotlinx-coroutines-javafx</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3671">https://github.com/facebook/flipper/issues/3671</a>)..</li>
<li>JPMS is supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2237">https://github.com/facebook/flipper/issues/2237</a>). Thanks <a href="https://github.com/lion7"><code>@​lion7</code></a>!</li>
<li><code>BroadcastChannel</code> and all the corresponding API are deprecated (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2680">https://github.com/facebook/flipper/issues/2680</a>).</li>
<li>Added all supported K/N targets (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3601">https://github.com/facebook/flipper/issues/3601</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/812">https://github.com/facebook/flipper/issues/812</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/855">https://github.com/facebook/flipper/issues/855</a>).</li>
<li>K/N <code>Dispatchers.Default</code> is backed by the number of threads equal to the number of available cores (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3366">https://github.com/facebook/flipper/issues/3366</a>).</li>
<li>Fixed an issue where some coroutines' internal exceptions were not properly serializable (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3328">https://github.com/facebook/flipper/issues/3328</a>).</li>
<li>Introduced <code>Job.parent</code> API (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3201">https://github.com/facebook/flipper/issues/3201</a>).</li>
<li>Fixed a bug when <code>TestScheduler</code> leaked cancelled jobs (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3398">https://github.com/facebook/flipper/issues/3398</a>).</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md">org.jetbrains.kotlinx:kotlinx-coroutines-android's changelog</a>.</em></p>
<blockquote>
<h2>Version 1.7.2</h2>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Coroutines debugger no longer keeps track of coroutines with empty coroutine context (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3782">https://github.com/facebook/flipper/issues/3782</a>).</li>
<li><code>CopyableThreadContextElement</code> now properly copies an element when crossing the coroutine boundary in <code>flowOn</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3787">https://github.com/facebook/flipper/issues/3787</a>). Thanks <a href="https://github.com/wanyingd1996"><code>@​wanyingd1996</code></a>!</li>
<li>Coroutine timeouts no longer prevent K/N <code>newSingleThreadContext</code> from closing (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3768">https://github.com/facebook/flipper/issues/3768</a>).</li>
<li>A non-linearizability in <code>Mutex</code> during <code>tryLock</code>/<code>unlock</code> sequence with owners is fixed (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3745">https://github.com/facebook/flipper/issues/3745</a>).</li>
<li>Atomicfu version is updated to 0.21.0.</li>
</ul>
<h2>Version 1.7.1</h2>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Special characters in coroutine names in JSON dumps are supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3747">https://github.com/facebook/flipper/issues/3747</a>)</li>
<li>The binary compatibility of the experimental overload of <code>runTest</code> is restored (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3673">https://github.com/facebook/flipper/issues/3673</a>)</li>
<li>Channels that don't use <code>onUndeliveredElement</code> now allocate less memory (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3646">https://github.com/facebook/flipper/issues/3646</a>)</li>
</ul>
<h2>Version 1.7.0</h2>
<h3>Core API significant improvements</h3>
<ul>
<li>New <code>Channel</code> implementation with significant performance improvements across the API (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3621">https://github.com/facebook/flipper/issues/3621</a>).</li>
<li>New <code>select</code> operator implementation: faster, more lightweight, and more robust (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3020">https://github.com/facebook/flipper/issues/3020</a>).</li>
<li><code>Mutex</code> and <code>Semaphore</code> now share the same underlying data structure (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3020">https://github.com/facebook/flipper/issues/3020</a>).</li>
<li><code>Dispatchers.IO</code> is added to K/N (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3205">https://github.com/facebook/flipper/issues/3205</a>)
<ul>
<li><code>newFixedThreadPool</code> and <code>Dispatchers.Default</code> implementations on K/N were wholly rewritten to support graceful growth under load (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3595">https://github.com/facebook/flipper/issues/3595</a>).</li>
</ul>
</li>
<li><code>kotlinx-coroutines-test</code> rework:
<ul>
<li>Add the <code>timeout</code> parameter to <code>runTest</code> for the whole-test timeout, 10 seconds by default (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3270">https://github.com/facebook/flipper/issues/3270</a>). This replaces the configuration of quiescence timeouts, which is now deprecated (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3603">https://github.com/facebook/flipper/issues/3603</a>).</li>
<li>The <code>withTimeout</code> exception messages indicate if the timeout used the virtual time (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3588">https://github.com/facebook/flipper/issues/3588</a>).</li>
<li><code>TestCoroutineScheduler</code>, <code>runTest</code>, and <code>TestScope</code> API are promoted to stable (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3622">https://github.com/facebook/flipper/issues/3622</a>).</li>
<li><code>runTest</code> now also fails if there were uncaught exceptions in coroutines not inherited from the test coroutine (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/1205">https://github.com/facebook/flipper/issues/1205</a>).</li>
</ul>
</li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li>Old K/N memory model is no longer supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3375">https://github.com/facebook/flipper/issues/3375</a>).</li>
<li>New generic upper bounds were added to reactive integration API where the language since 1.8.0 dictates (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3393">https://github.com/facebook/flipper/issues/3393</a>).</li>
<li><code>kotlinx-coroutines-core</code> and <code>kotlinx-coroutines-jdk8</code> artifacts were merged into a single artifact (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3268">https://github.com/facebook/flipper/issues/3268</a>).</li>
<li>Artificial stackframes in stacktrace recovery no longer contain the <code>\b</code> symbol and are now navigable in IDE and supplied with proper documentation (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2291">https://github.com/facebook/flipper/issues/2291</a>).</li>
<li><code>CoroutineContext.isActive</code> returns <code>true</code> for contexts without any job in them (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3300">https://github.com/facebook/flipper/issues/3300</a>).</li>
</ul>
<h3>Bug fixes and improvements</h3>
<ul>
<li>Kotlin version is updated to 1.8.20</li>
<li>Atomicfu version is updated to 0.20.2.</li>
<li><code>JavaFx</code> version is updated to 17.0.2 in <code>kotlinx-coroutines-javafx</code> (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3671">https://github.com/facebook/flipper/issues/3671</a>)..</li>
<li>JPMS is supported (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2237">https://github.com/facebook/flipper/issues/2237</a>). Thanks <a href="https://github.com/lion7"><code>@​lion7</code></a>!</li>
<li><code>BroadcastChannel</code> and all the corresponding API are deprecated (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/2680">https://github.com/facebook/flipper/issues/2680</a>).</li>
<li>Added all supported K/N targets (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3601">https://github.com/facebook/flipper/issues/3601</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/812">https://github.com/facebook/flipper/issues/812</a>, <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/855">https://github.com/facebook/flipper/issues/855</a>).</li>
<li>K/N <code>Dispatchers.Default</code> is backed by the number of threads equal to the number of available cores (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3366">https://github.com/facebook/flipper/issues/3366</a>).</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5b64a1fcf3"><code>5b64a1f</code></a> Merge pull request <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3797">https://github.com/facebook/flipper/issues/3797</a> from Kotlin/version-1.7.2</li>
<li><a href="71793d9abe"><code>71793d9</code></a> Version 1.7.2</li>
<li><a href="c7545b5b20"><code>c7545b5</code></a> Fix newSingleThreadContext awaiting cancelled scheduled coroutines (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3769">https://github.com/facebook/flipper/issues/3769</a>)</li>
<li><a href="897599fd01"><code>897599f</code></a> Merge branch 'master' into develop</li>
<li><a href="d4f45b60a0"><code>d4f45b6</code></a> Do not track coroutines with empty coroutine context in DebugProbes (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3784">https://github.com/facebook/flipper/issues/3784</a>)</li>
<li><a href="56647138ac"><code>5664713</code></a> Formalize the internal IDEA dependencies for binary compatibility (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3746">https://github.com/facebook/flipper/issues/3746</a>)</li>
<li><a href="c48511826e"><code>c485118</code></a> Merge pull request <a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3791">https://github.com/facebook/flipper/issues/3791</a> from Kotlin/bobova/up-config</li>
<li><a href="a241dcf55c"><code>a241dcf</code></a> Update atomicfu &amp; binary-compatibility-validator (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3792">https://github.com/facebook/flipper/issues/3792</a>)</li>
<li><a href="c6a39204bb"><code>c6a3920</code></a> Update user projects config: adapt build script to new TeamCity variables</li>
<li><a href="acc6acd919"><code>acc6acd</code></a> OptIn for ExperimentalNativeApi (<a href="https://redirect.github.com/Kotlin/kotlinx.coroutines/issues/3788">https://github.com/facebook/flipper/issues/3788</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/Kotlin/kotlinx.coroutines/compare/1.6.4...1.7.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.jetbrains.kotlinx:kotlinx-coroutines-android&package-manager=gradle&previous-version=1.6.4&new-version=1.7.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: lblasa

Differential Revision: D47592091

Pulled By: passy

fbshipit-source-id: 78a6cb146016fe21c7f7596d54f5244dcfd09f81
2023-07-21 11:33:05 -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
Pascal Hartig
4ec544f9dd Update deps
Summary: Lots of PRs open for this at the moment. Tackling them all at once.

Reviewed By: antonk52

Differential Revision: D47665965

fbshipit-source-id: 5a6dda9206c7e9194429bc198e2490fdb38b1369
2023-07-21 07:48:17 -07:00
Luke De Feo
8f857dc1c5 Fixed bug where visualizer not working after using focus more in visualiser context menu
Summary:
I introduced this to stop the visualiser going off while the framework events modal was open. However on mouse leave fires when the context menu is open. and if you click to focus then it never refires.

Also renamed the ref to make it clearer

Reviewed By: lblasa

Differential Revision: D47550672

fbshipit-source-id: 62e108e55e5c42a37d3aebded6467ececdc458df
2023-07-21 07:17:31 -07:00
Luke De Feo
f6dcaa2143 Selection interaction from overlay
Summary:
Previously we were registering a click handler with every single div in the visualiser. This is somewhat wasteful as well as was causing issues since i needed to call stop propagation to prevent the click bubbling and selecting all the parents too.

as a result of stop propagation the context menu behaviour was weird, when left clicking elsewhere to close the context menu it wouldnt work as the click was swallowed by the click handlers for the nodes.

Now we have a much simpler system. The hovered overlay is the click handler. Thats it.

Another benefit of this is the visualisation nodes under the overlays are all interaction less so they can be moved to canvas one day if need be

Reviewed By: lblasa

Differential Revision: D47550673

fbshipit-source-id: 1a607059c68f0b936f0184bd98a6a1492703d41b
2023-07-21 07:17:31 -07:00
Luke De Feo
6faccc4889 UIDRefactor 8/n rename tree types
Summary: The previous names made no sense after they drifted over time

Reviewed By: lblasa

Differential Revision: D47550916

fbshipit-source-id: fa7df17b090c52b68ab4af9388d87365da6e8ff3
2023-07-21 07:17:31 -07:00
Luke De Feo
d8fda847b8 UIDREfactor 7/n Split tree.tsx
Reviewed By: lblasa

Differential Revision: D47548809

fbshipit-source-id: bdcbc96129a289c64a4a0b17fab29ac91d73d48e
2023-07-21 07:17:31 -07:00
Luke De Feo
2655ea8523 UIDRefactor 6/n Move tree into folder
Summary: preparing to split this up a bit

Reviewed By: lblasa

Differential Revision: D47548840

fbshipit-source-id: 907b9cd6a7a044e4aad97f9755fd9b43b81768f1
2023-07-21 07:17:31 -07:00
Luke De Feo
efb23be4cf UID Refactor 5/n Refactor index.tsx
Summary:
This file was huge and was hard to understand what was going on.  changes:

1. UIActions moved out to separate file
2. create UIstate moved out
3. All declared state (atoms or plain js objects) moved to the top of the function like a class
4. utilities moved out

Reviewed By: lblasa

Differential Revision: D47547844

fbshipit-source-id: e7fa705a14a23bff2415016a488147bed7ad9e91
2023-07-21 07:17:31 -07:00
Luke De Feo
957a336349 UID refactor 4/ Expose readonly UIState
Summary:
Currently state writes can either go through a named handler that is easy to find and debug or they can directly modify the state.

By exposing readonly atoms only we ensure that all state writes go through a UIACtions. This adds consistency and ease of future debugging.

E.g We could add a utility to wrap all ui actions with logging statements

Reviewed By: antonk52

Differential Revision: D47547531

fbshipit-source-id: f88651169d8e7c5f7e31068d64f9aa5b6b573647
2023-07-21 07:17:31 -07:00
Luke De Feo
87a1b657c3 UID Refactor 3/n UINode -> ClientNode
Summary:
UINode has never been a good name, we have 3 versions of a node.
ClientNode Previously UINode (the raw data from the client)
NestedNode (for the visualiser)
TreeNode (extends ClientNode and adds stuff specific to the tree like indentation and expanded states)

Arguablely we dont need nested node but that is another story

Reviewed By: elboman

Differential Revision: D47547529

fbshipit-source-id: 9a3b119d1230ea7b6734e7a3270c28287b04faf1
2023-07-21 07:17:31 -07:00
Luke De Feo
f181551ce6 UID refactor 2/n Split types into client and desktop types
Summary: This file was getting overwelhming, and this seemed like a reasonable way to split it

Reviewed By: elboman

Differential Revision: D47547532

fbshipit-source-id: ab2bfa22daabbed13ec1445da0cf8ba88bda12d7
2023-07-21 07:17:31 -07:00