Repository navigation
feat(settings): persist dismissal of the NSIS-to-MSI migration notice - #2226
Conversation
Add nsisMigrationNoticeDismissed to settings.json (App-owned, default false, recovered field by field) and a dismiss_nsis_migration_notice command that sets it with rollback on write failure. The frontend notice that reads it follows separately. Refs #2215
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: shm11C3/HardwareVisualizer/.coderabbit.yml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (8)
Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour. 📝 WalkthroughWalkthroughThe settings model and client settings now include an NSIS migration notice dismissal flag. A new command persists the dismissal, reports save errors, and is included in the Tauri command bindings. ChangesNSIS notice dismissal
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Client
participant DismissCommand as dismiss_nsis_migration_notice
participant SettingsService
participant SettingsWriter
participant SettingsErrorEvent
Client->>DismissCommand: invoke dismissal command
DismissCommand->>SettingsService: persist dismissal
SettingsService->>SettingsWriter: write updated settings
SettingsWriter-->>SettingsService: return write result
alt write fails
SettingsService-->>DismissCommand: return error and restore prior flag
DismissCommand->>SettingsErrorEvent: emit settings error
DismissCommand-->>Client: return error
else write succeeds
DismissCommand-->>Client: return success
end
Merge Risk: ⚪ Minimal · up to The dismissal preference persists safely and remains compatible with existing settings files. No confirmed merge-blocking issue remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Rust Tauri Coverage ReportCoverage Details |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
E2E capturesEvidence captures for |
CI telemetryCommit
|
| Job | Result | Queue | Duration | CPU avg / p95 | Mem peak | Disk peak | Caches |
|---|---|---|---|---|---|---|---|
Analyze (rust) |
✅ | 49s | 11m 53s | – | – | – | – |
Analyze (javascript-typescript) |
✅ | 1m 12s | 59s | – | – | – | – |
Analyze (actions) |
✅ | 2m 13s | 40s | – | – | – | – |
Slowest steps
| Step | Duration |
|---|---|
Analyze (rust) › Perform CodeQL Analysis |
10m 42s |
Analyze (rust) › Setup Rust |
46s |
Analyze (javascript-typescript) › Perform CodeQL Analysis |
42s |
Analyze (actions) › Perform CodeQL Analysis |
20s |
Analyze (rust) › Initialize CodeQL |
15s |
CI · 22 jobs · 7 skipped
| Job | Result | Queue | Duration | CPU avg / p95 | Mem peak | Disk peak | Caches |
|---|---|---|---|---|---|---|---|
test-tauri-duckdb-archive (windows-latest) |
✅ | 4m 50s | 9m 49s | 38% / 85% · 1.5/4T T 38 · 35 · 43 · 35 |
8.6 / 16.0 GiB | 22 / 150 GiB | target exact · sccache Rust 98% (473/482) · C/C++ 100% (298/298) |
lint-tauri (windows-latest) |
✅ | 3m 23s | 5m 46s | 41% / 85% · 1.7/4T T 41 · 37 · 49 · 39 |
5.6 / 16.0 GiB | 16 / 150 GiB | target exact · sccache Rust 100% (426/428) · C/C++ 100% (297/297) |
test-tauri-duckdb-archive (ubuntu-22.04) |
✅ | 5m 05s | 5m 07s | 44% / 79% · 1.8/4T T 46 · 42 · 44 · 44 |
3.4 / 15.6 GiB | 78 / 145 GiB | target exact · sccache Rust 100% (529/529) · C/C++ 99% (294/297) |
test-e2e-native |
✅ | 47s | 5m 03s | 63% / 100% · 2.5/4T T 62 · 61 · 65 · 61 |
3.1 / 15.6 GiB | 65 / 145 GiB | target exact · npm exact |
test-tauri-duckdb-archive (macos-latest) |
✅ | 4m 25s | 5m 01s | 78% / 99% · 2.3/3T T 82 · 77 · 75 |
4.4 / 7.0 GiB | 237 / 320 GiB | target exact · sccache Rust 100% (458/458) · C/C++ 99% (292/295) |
test-tauri (windows-latest) |
✅ | 3m 00s | 4m 36s | 25% / 74% · 1.0/4T T 24 · 24 · 29 · 22 |
5.3 / 16.0 GiB | 9 / 220 GiB | target exact · sccache Rust 98% (434/442) · C/C++ n/a |
test-build (windows-latest) |
✅ | 4m 28s | 4m 11s | 52% / 89% · 2.1/4T T 49 · 51 · 60 · 49 |
5.0 / 16.0 GiB | 10 / 150 GiB | target exact · sccache Rust 90% (532/589) · C/C++ n/a |
lint-tauri (ubuntu-22.04) |
✅ | 5m 05s | 4m 07s | 43% / 81% · 1.7/4T T 42 · 38 · 49 · 43 |
3.5 / 15.6 GiB | 74 / 145 GiB | target exact · sccache Rust 100% (490/490) · C/C++ 99% (294/297) |
test-build (macos-latest) |
✅ | 9m 40s | 3m 22s | 83% / 97% · 2.5/3T T 86 · 83 · 82 |
4.1 / 7.0 GiB | 230 / 320 GiB | target exact · sccache Rust 100% (569/569) · C/C++ 100% (15/15) |
test-tauri (macos-latest) |
✅ | 5m 25s | 3m 18s | 87% / 99% · 2.6/3T T 89 · 86 · 85 |
4.2 / 7.0 GiB | 231 / 320 GiB | target exact · sccache Rust 100% (418/418) · C/C++ 100% (15/15) |
lint-tauri (macos-latest) |
✅ | 8m 49s | 3m 14s | 70% / 93% · 2.1/3T T 74 · 69 · 66 |
4.2 / 7.0 GiB | 234 / 320 GiB | target exact · sccache Rust 100% (404/404) · C/C++ 99% (292/295) |
test-tauri (ubuntu-22.04) |
✅ | 2m 02s | 2m 59s | 42% / 85% · 1.7/4T T 39 · 49 · 44 · 38 |
2.6 / 15.6 GiB | 69 / 145 GiB | target exact · sccache Rust 100% (486/486) · C/C++ n/a |
check-tauri-bindings |
✅ | 4m 59s | 2m 41s | 36% / 81% · 1.4/4T T 35 · 44 · 36 · 29 |
2.0 / 15.6 GiB | 68 / 145 GiB | target exact · sccache Rust 100% (478/478) · C/C++ 100% (17/17) |
test-build (ubuntu-22.04) |
✅ | 5m 05s | 2m 28s | 41% / 72% · 1.7/4T T 38 · 38 · 51 · 38 |
2.4 / 15.6 GiB | 66 / 145 GiB | target exact · sccache Rust 100% (630/630) · C/C++ 100% (17/17) |
test-e2e-web |
✅ | 4m 04s | 2m 19s | 47% / 68% · 1.9/4T T 45 · 48 · 47 · 46 |
4.0 / 15.6 GiB | 60 / 144 GiB | npm exact |
check-frontend |
✅ | 3m 59s | 1m 43s | 78% / 99% · 3.1/4T T 79 · 77 · 78 · 77 |
2.9 / 15.6 GiB | 59 / 144 GiB | npm exact |
test-render-memory-perf |
✅ | 21s | 1m 21s | 22% / 57% · 0.9/4T T 25 · 21 · 19 · 24 |
3.1 / 15.6 GiB | 60 / 144 GiB | npm exact |
test-render-perf |
✅ | 1m 55s | 1m 04s | 36% / 58% · 1.4/4T T 34 · 34 · 36 · 39 |
3.2 / 15.6 GiB | 60 / 144 GiB | npm exact |
change-detection |
✅ | 26s | 44s | – | – | – | – |
lint-frontend |
✅ | 5m 09s | 26s | 40% / 65% · 1.6/4T T 34 · 41 · 42 · 44 |
1.3 / 15.6 GiB | 59 / 144 GiB | npm exact |
rust-format |
✅ | 4m 36s | 17s | 28% / 31% · 1.1/4T T 10 · 16 · 13 · 74 |
1.2 / 15.6 GiB | 59 / 144 GiB | – |
Merge Gate |
✅ | 3s | 15s | – | – | – | – |
Slowest steps
| Step | Duration |
|---|---|
test-tauri-duckdb-archive (windows-latest) › Run Tauri lib tests (duckdb-archive) |
6m 25s |
lint-tauri (windows-latest) › Check Tauri clippy |
3m 48s |
test-e2e-native › Run native E2E smoke |
3m 47s |
test-tauri-duckdb-archive (macos-latest) › Run Tauri lib tests (duckdb-archive) |
3m 24s |
test-tauri-duckdb-archive (ubuntu-22.04) › Run Tauri lib tests (duckdb-archive) |
3m 12s |
Generated by the CI telemetry workflow from the GitHub API and job log markers. Queue = time from job creation to start. N/MT = average busy threads of M logical CPUs; T = per-thread average %.






































Summary
Second part of #2215: the persisted "Don't show again" choice for the NSIS-to-MSI migration notice. The notice UI follows in a stacked PR.
settings.jsongetsnsisMigrationNoticeDismissed: App-owned, defaultfalse, recovered field by field like the other App settings, so an invalid value keeps the notice showable instead of failing the load. It is an Application Preference (an explicit user choice, DP-06), so it goes through typed IPC and the settings service rather than Tauri Store, per.agents/rules/settings.md.dismiss_nsis_migration_noticesets the flag. If the write fails, the in-memory value is rolled back, following the*_with_writerpattern used byset_elevated_startup_mode.src/rspc/bindings.tsis regenerated withexport_bindings. The frontend default and the E2E fixture now include the field. The fixture sets it totrueso the notice never overlaps capture screenshots, the same reasoncloseToTrayChoiceMadeistruethere. The field is excluded from the generic setter map, likecloseToTrayChoiceMade.Related Issues
Part of #2215 (with #2223 for the MSI install folder).
Type of Change
fix/branch)feat/branch)refactor/branch)perf/branch)docs/branch)chore/branch)Test Plan
settings_service:falseand the value loads from JSON;falsewithout losing other fields;cargo test -p hardware_visualizer --lib settings -- --test-threads=1: 83 passed.cargo fmt --checkandcargo clippy -p hardware_visualizer --all-targets -D warnings.tsc --noEmitpasses, and theuseSettingsAtomandCloseToTrayFirstRunDialogvitest suites pass (40 tests).Checklist
Summary by CodeRabbit