Commit Graph

8501 Commits

Author SHA1 Message Date
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
Luke De Feo
2cc0ca0167 UID Refactor 1/n move to utils
Summary: Lets start adding some organisation to the folder structure

Reviewed By: lblasa

Differential Revision: D47547530

fbshipit-source-id: 30d20340ccc4b1c3ab4d4712c807831d74028322
2023-07-21 07:17:31 -07:00
Luke De Feo
4df0ad4d35 Add Framework event table
Summary: Very basic framework events table, quite useful for debugging will add more to this soon

Reviewed By: lblasa

Differential Revision: D47520035

fbshipit-source-id: 10f4572dd4ed3529324f03a969773c7e91fde030
2023-07-21 07:17:31 -07:00
Lorenzo Blasa
db7aa9eeaf OSS
Summary: Move UIDebugger plugin to OSS space.

Reviewed By: passy

Differential Revision: D47634848

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

Reviewed By: passy, antonk52

Differential Revision: D47665050

fbshipit-source-id: ad51808d12e9f4de318d4426933ecb3787839b7c
2023-07-21 04:18:02 -07:00
Lorenzo Blasa
7c2face10c Bump deployment target due to SocketRocket
Summary:
^

This should fix our FlipperKit publishing:
https://github.com/facebook/flipper/actions/runs/5551630551/jobs/10138141435

Reviewed By: aigoncharov

Differential Revision: D47633000

fbshipit-source-id: fa931bfd560939a7ff72d075dc679afbd038e557
2023-07-20 09:09:29 -07:00
generatedunixname89002005306973
06006db731 Flipper Snapshot Bump: v0.207.1-SNAPSHOT
Summary: Releasing snapshot version 0.207.1-SNAPSHOT

Reviewed By: lblasa

Differential Revision: D47629966

fbshipit-source-id: 43b8fad04a361aa938b28f2feec95c094c1694fe
2023-07-20 06:41:58 -07:00
generatedunixname89002005306973
503abd6d22 Flipper Release: v0.207.0
Summary: Releasing version 0.207.0

Reviewed By: lblasa

Differential Revision: D47629967

fbshipit-source-id: 625011003adde117d024754aab65327dc44e147a
2023-07-20 06:41:58 -07:00
Lorenzo Blasa
4d092f75dd Connectivity Hub has tabs with logs and environment check
Summary:
^

Code will be refactored in future diffs.

Reviewed By: antonk52

Differential Revision: D47629563

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

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

Reviewed By: antonk52

Differential Revision: D47629528

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

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

Reviewed By: LukeDefeo

Differential Revision: D47593545

fbshipit-source-id: 940d59536e26bd1ab341d2038df431c67e0a5442
2023-07-20 04:48:20 -07:00
Lorenzo Blasa
459f16022e Improved titles and sorting
Summary: ^

Reviewed By: antonk52

Differential Revision: D47592581

fbshipit-source-id: f6e32c5ff12a351ed731d81c68fec0b230b3b5d5
2023-07-20 04:48:20 -07:00
Anton Kastritskiy
48fc330cc3 fix missing key on SubMenu
Reviewed By: lblasa

Differential Revision: D47628505

fbshipit-source-id: 8e5c0624a2bef97a9507c181223461d851921bd6
2023-07-20 04:45:52 -07:00
Anton Kastritskiy
7195b35b12 Move troubleshooting guide into a menu
Reviewed By: lblasa

Differential Revision: D47591882

fbshipit-source-id: 84e3732100aa20d5f78b132a4c429b9b742678e9
2023-07-20 03:54:19 -07:00
Anton Kastritskiy
57d4c99e0f Move "Rage" and "Add plugins" buttons into menus
Reviewed By: lblasa

Differential Revision: D47591384

fbshipit-source-id: 4a79373c28e1103ddc351acbcab60650cc8a8eee
2023-07-20 03:54:19 -07:00
dependabot[bot]
532409ba0b Bump com.vanniktech:gradle-maven-publish-plugin from 0.25.2 to 0.25.3 (#4913)
Summary:
Bumps [com.vanniktech:gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin) from 0.25.2 to 0.25.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/releases">com.vanniktech:gradle-maven-publish-plugin's releases</a>.</em></p>
<blockquote>
<h2>0.25.3</h2>
<ul>
<li>Gradle 8.2: Fix error for projects that use the <code>java-test-fixtures</code> plugin.</li>
<li>Fix issue for Kotlin Multiplatform projects when running tests and having signing enabled.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/blob/main/CHANGELOG.md">com.vanniktech:gradle-maven-publish-plugin's changelog</a>.</em></p>
<blockquote>
<h2>0.25.3 <em>(2023-07-01)</em></h2>
<ul>
<li>Gradle 8.2: Fix error for projects that use the <code>java-test-fixtures</code> plugin.</li>
<li>Fix issue for Kotlin Multiplatform projects when running tests and having signing enabled.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cfd2a0d6a3"><code>cfd2a0d</code></a> Update to 0.25.3-rc1</li>
<li><a href="b75655dc30"><code>b75655d</code></a> Changelog for 0.25.3</li>
<li><a href="4c2092a043"><code>4c2092a</code></a> Update dependency gradle to v8.2 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/596">https://github.com/facebook/flipper/issues/596</a>)</li>
<li><a href="fb1f620452"><code>fb1f620</code></a> Update dependency org.apache.maven:maven-model to v3.9.3 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/595">https://github.com/facebook/flipper/issues/595</a>)</li>
<li><a href="b1e3fc62dd"><code>b1e3fc6</code></a> Update dependency org.jlleitschuh.gradle:ktlint-gradle to v11.4.2 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/593">https://github.com/facebook/flipper/issues/593</a>)</li>
<li><a href="4c10159905"><code>4c10159</code></a> Update tested versions (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/592">https://github.com/facebook/flipper/issues/592</a>)</li>
<li><a href="0e0df29b04"><code>0e0df29</code></a> Update truth to v1.1.5 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/586">https://github.com/facebook/flipper/issues/586</a>)</li>
<li><a href="6d7a9e8516"><code>6d7a9e8</code></a> Update dependency org.jlleitschuh.gradle:ktlint-gradle to v11.4.1 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/588">https://github.com/facebook/flipper/issues/588</a>)</li>
<li><a href="3100633728"><code>3100633</code></a> Update kotlin monorepo to v1.8.22 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/589">https://github.com/facebook/flipper/issues/589</a>)</li>
<li><a href="6f1f04b6f6"><code>6f1f04b</code></a> Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.8.20 (<a href="https://redirect.github.com/vanniktech/gradle-maven-publish-plugin/issues/587">https://github.com/facebook/flipper/issues/587</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/vanniktech/gradle-maven-publish-plugin/compare/0.25.2...0.25.3">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.vanniktech:gradle-maven-publish-plugin&package-manager=gradle&previous-version=0.25.2&new-version=0.25.3)](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/4913

Reviewed By: lblasa

Differential Revision: D47592095

Pulled By: passy

fbshipit-source-id: 7ab4be0908e8deec93691d8adaec36b6f71272aa
2023-07-20 03:09:38 -07:00
Luke De Feo
7812dae764 Migrate framework events backing data structure to datasource
Summary: This will allow us to build a nice table easily.

Reviewed By: lblasa

Differential Revision: D47520029

fbshipit-source-id: 3cdd776533b66688329171eb29b892e0b9153540
2023-07-19 08:58:20 -07:00
Luke De Feo
16480a95f3 Move framework event monitoring out of options
Summary: An more options page drop down of size one didnt really make a great deal of sense

Reviewed By: lblasa

Differential Revision: D47520034

fbshipit-source-id: cea7ac404f73a0d7e5a1541b16097c4fd6549215
2023-07-19 08:58:20 -07:00
Luke De Feo
3282417663 Fix bug where if events come in the creation of a new tab throws exception
Summary:
See title. The issue occurs because this tabs component derives a key by essentially serializing the children. Since its possible for different elements in the UIDebugger to have different number of tabs, due to framework events not always being present this was never anticipated.

Solution is to just let the callee supply a storage key which does not depend on the exact number of tabs

Reviewed By: lblasa

Differential Revision: D47520033

fbshipit-source-id: 67e57db5110fde52451d30496c25a25b0eb4a6f7
2023-07-19 08:58:20 -07:00
Luke De Feo
ff7182525a Add main thread filter control
Summary: This adds a filter on top of the event types to only highlight when the thread occurs on the main thread

Reviewed By: lblasa

Differential Revision: D47520036

fbshipit-source-id: b4a67b262345d845e5dcbf79bba5a210c1bca4f8
2023-07-19 08:58:20 -07:00
Luke De Feo
5ef37684eb Report framework events in diagnostics
Reviewed By: lblasa

Differential Revision: D47520032

fbshipit-source-id: c88f57f3a9c81e32c8c4c3ac46f523407bd44463
2023-07-19 08:58:20 -07:00
Luke De Feo
9d0b8ac0fe Align badge in tree
Reviewed By: lblasa

Differential Revision: D47520030

fbshipit-source-id: 01466aff57d048a50803366957396abeb76d5649
2023-07-19 08:58:20 -07:00
Luke De Feo
34f6b100d7 Refactor node highlighting
Summary: The previous approach would set the atom many times causing several unnecessary renders

Reviewed By: lblasa

Differential Revision: D47519869

fbshipit-source-id: 536334c892334035a6c0fefc86a2e205b2c9769d
2023-07-19 08:58:20 -07:00
Luke De Feo
b17c1be12f Ensure hover state of visualiser doesnt go off when modal open
Summary: I was experiencing some odd behaviour and locks ups from deep within Ant d. It seems to be related to the fact that tooltips for the visualiser were showing up when there was a modal on top.

Reviewed By: lblasa

Differential Revision: D47519848

fbshipit-source-id: d67edaedba2910069ba1eb424548de55c2badff3
2023-07-19 08:58:20 -07:00
Luke De Feo
a6bc8933cc No longer autoscroll when selecting via tree
Summary:
Added selection source concept to onSelect callback. This allows us to only autoscroll the tree when selection source is the visualiser. We had feedback that the horizontal autoscrolling whilst using the tree was unhelpful.

A side benefit of selection source is better tracking of how people use kb, tree vs visualiser to select things

Changelog: UIDebugger only autoscroll horizontally when selecting via the visualiser

Reviewed By: lblasa

Differential Revision: D47334078

fbshipit-source-id: d7eadddb8d3d0fd428d5c294b2dccc2f1efa5a95
2023-07-19 08:58:20 -07:00
Luke De Feo
d9c8dbf404 Fix react error
Summary: It was complaining about no key for items in a list

Reviewed By: antonk52

Differential Revision: D47396639

fbshipit-source-id: c3d5cb7205dbe1c343d109e22f43e5756a071119
2023-07-19 08:58:20 -07:00
Lorenzo Blasa
336c8c3159 Enable Lunr search bar
Summary: ^

Reviewed By: jknoxville

Differential Revision: D47548867

fbshipit-source-id: 462496da3d2668f9991e66381ca5ca0dd9c45ea9
2023-07-19 07:00:09 -07:00