🧹 Extract DeveloperSettings from SettingsDialog - #243
Conversation
Extracted the `DeveloperSettings` composable from `SettingsDialog.kt` into its own file `DeveloperSettings.kt` to improve readability and maintainability. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
JVM Load Benchmark (Desktop)Synthetic in-memory benchmark measuring load performance for the desktop (JVM) app.
Flamegraphs (this PR)**Allocation** — object allocation pressure (JDBC/SQLite churn)Alloc flamegraph not available CPU — method-level hotspots by on-CPU time CPU flamegraph not available Top allocation hotspots (this PR)`37.2%` byte[]_[k] `7.6%` java.lang.String_[k] `5.9%` int[]_[k] `5.9%` java.util.LinkedHashMap$Entry_[k] `4.4%` java.lang.Object[]_[k]Top CPU hotspots (this PR)`97.4%` /usr/lib/x86_64-linux-gnu/libc.so.6 `1%` /tmp/sqlite-3.51.3.0-31ecd112-55eb-4258-aee7-26accfde1abb-libsqlitejdbc.so `0.3%` __libc_pwrite `0.2%` fsync `0.1%` pthread_cond_signal |
Android Load BenchmarkInstrumented benchmark on an API 30 x86_64 emulator — 500-page synthetic graph. Comparing Graph Load
Interactive Write Latency (during Phase 3)
SAF I/O Overhead (ContentProvider vs direct File read)Measures Binder IPC cost added by ContentResolver per readFile() call.
|
Extracted the `DeveloperSettings` composable from `SettingsDialog.kt` into its own file `DeveloperSettings.kt` to improve readability and maintainability. Fixed detekt `ModifierMissing` error on `DeveloperSettings` composable. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
Extracted the `DeveloperSettings` composable from `SettingsDialog.kt` into its own file `DeveloperSettings.kt` to improve readability and maintainability. Added `modifier: Modifier = Modifier` parameter to the extracted composable to satisfy the detekt `ModifierMissing` rule, and passed `Modifier.fillMaxWidth()` where it is called in `SettingsDialog.kt`. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
…efactor-2446156439696602594 # Conflicts: # kmp/src/commonMain/kotlin/dev/stapler/stelekit/ui/components/settings/SettingsDialog.kt
Updated `Swatinem/rust-cache` to `@v2` and `android-actions/setup-android` to `@v3` in `.github/workflows/build-native-libs.yml`. The previous explicit SHA tags were either missing or unresolved by GitHub Actions runner, causing CI failures. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
In `rules_rust` >= 0.38, target platforms configured via the `rust` extension are made available via `@rust_toolchains` rather than `@rules_rust//rust/platform`. Updated the `--platforms` flag passed to `bazel build` and `bazel cquery` to use the correct `@rust_toolchains//${{ matrix.bazel-platform }}` format to fix "Target @@rules_rust+//rust/platform:... was referenced as a platform, but does not provide PlatformInfo" errors during the Github Actions build.
Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
In `rules_rust` >= 0.38, target platforms configured via the `rust` extension do not expose `platform` targets under `@rules_rust//rust/platform` anymore. Defined custom `platform` targets explicitly inside `native/libsql/BUILD.bazel` and updated `--platforms` arguments to fix 'Target @@rules_rust+//rust/platform:... was referenced as a platform, but does not provide PlatformInfo' errors. Added `platforms` to `MODULE.bazel`. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
Using \`UNDISPATCHED\` start for the event collection job ensures the recorder subscribes to the event stream before \`start()\` has a chance to execute and rapidly flush events, which caused intermittent failures on CI where \`FragmentAdmitted\` events were missed. Also migrated all uses of \`actions/setup-java@v4\` to \`v5\` to fix deprecation warnings. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
|
@jules please address the merge conflicts |
I have synced the branch with |
Using \`UNDISPATCHED\` start for the event collection job ensures the recorder subscribes to the event stream before \`start()\` has a chance to execute and rapidly flush events, which caused intermittent failures on CI where \`FragmentAdmitted\` events were missed. Also migrated all uses of \`actions/setup-java@v4\` to \`v5\` to fix deprecation warnings. Co-authored-by: tstapler <3860386+tstapler@users.noreply.github.com>
🎯 What: Extracted the
DeveloperSettingscomposable fromSettingsDialog.ktinto its own fileDeveloperSettings.kt.💡 Why:
SettingsDialog.ktwas growing too large. Extracting individual settings tabs/sections into their own functions is easy and highly isolated, and improves maintainability and readability.✅ Verification: Ran
read_fileto verify file creation/deletion, andcompileKotlinJvmto ensure the project still compiles correctly without syntax errors.✨ Result: Improved modularity and readability of
SettingsDialog.PR created automatically by Jules for task 2446156439696602594 started by @tstapler