-
-
Notifications
You must be signed in to change notification settings - Fork 13
fix(reticulum): align RMAP toggles on stack restart and persist prefs #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3455,6 +3455,9 @@ const APP_SETTINGS_ALLOWED_KEYS: ReadonlySet<string> = new Set([ | |
| 'reduceMotion', | ||
| 'alwaysShowMessageActions', | ||
| 'reticulumAutostart', | ||
| 'reticulumRmapAnnounceIntervalMin', | ||
| 'reticulumRmapReachableOn', | ||
| 'reticulumRmapHeightMeters', | ||
|
Comment on lines
+3458
to
+3460
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Add persistence coverage for the three allowlisted keys. Add a passing test that writes and reads As per coding guidelines: “Ship a passing test for behavioral changes.” As per path instructions: “Add or update behavioral tests, particularly for confirm/cancel paths and settings persistence.” 🧰 Tools🪛 ast-grep (0.45.0)[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec. (detect-child-process-typescript) 🤖 Prompt for AI AgentsSources: Coding guidelines, Path instructions |
||
| /** Legacy blob; prefer meshtasticRemoteAdminKey:<nodeNum> per-node keys. */ | ||
| 'meshtasticRemoteAdminKeyByNode', | ||
| ]); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Test the IPC persistence behavior.
These assertions only inspect
src/main/index.tstext. They do not invokeappSettings:setor verify a SQLite write and read. A broken handler can keep these source strings and still fail to persist RMAP settings.Capture the registered IPC handler in the Electron mock. Invoke it for each allowed RMAP key. Assert the persisted values through the existing SQLite test fixture. Keep the rejected-key assertion.
As per coding guidelines: “Ship a passing test for behavioral changes.” As per path instructions: “Prefer behavioral assertions; skip style-only test nits.”
🤖 Prompt for AI Agents
Sources: Coding guidelines, Path instructions