From 6f50a2aff1a181258e5466d3e87a1eb4f8477b40 Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Fri, 23 Oct 2026 09:19:26 -0400 Subject: [PATCH] docs(#976): record the approved Location and settings mockups Owner-approved 2026-10-23. Six numbered state cards drawn against the real SettingsShell widgets, with behavior bullets as the build contract and a rationale section, following the firmware GUI mockup convention. Self-contained: inline SVG icons, system fonts, no network references. Covers GPS off, on, Power save backed off, a build without Power save, the Settings menu before and after, and the button and buzzer split. Serves #969 as well as epic #975. Agent: MistyLynx (session 6c0d5797) Co-Authored-By: Claude Opus 5.5 --- .../settings-location-mockups.html | 280 ++++++++++++++++++ 1 file changed, 280 insertions(+) create mode 100644 docs/initiatives/standalone/975-settings-restructure/settings-location-mockups.html diff --git a/docs/initiatives/standalone/975-settings-restructure/settings-location-mockups.html b/docs/initiatives/standalone/975-settings-restructure/settings-location-mockups.html new file mode 100644 index 00000000..9a597b64 --- /dev/null +++ b/docs/initiatives/standalone/975-settings-restructure/settings-location-mockups.html @@ -0,0 +1,280 @@ + + + + +Location screen and settings restructure mockups + + + + + + +

Location screen and settings restructure (client #969, epic #975)

+

Material 3 blue seed, light, drawn at 390×844 against the real widgets: SettingsShell renders each category as a ListTile with a leading Icon, a subtitle and a trailing chevron under a centred AppBar, and detail panes are Cards of ListTiles split by Divider(height: 1). Icon choices match settings_screen.dart; they are drawn here as inline SVG so this file needs no network to render. Values are examples; the bullets are the behavior to build. Wire transport for GPS mode is Route A, firmware 0xC7, blocked on meshcore-firmware#1789. Owner-approved 2026-10-23 Approved as drawn: one three-way GPS control above the coordinates, one consolidated status row between them, Location as a top-level category under Radio Settings, Radio stats unchanged for now, and button and buzzer split across Node Settings and Message Settings.

+ +

The Location screen, one control and three states

+ +

1GPS off

The selector is the only on/off control. The status row goes quiet and the sleep row is gone, because neither has meaning here.

+
+
Location
+
+
+
GPS
+
Off
On
Power save
+
+
GPS is off
Showing the last stored position
Query
+
+
+
Coordinates
39.103118, -84.512020
+
+
Position reporting interval
Every 15 minutes
+
+
+
  • Off writes gps.en = 0 and leaves the mode byte untouched, matching gpsStoredModeForPick.
  • So Off then On returns to Power save, not to continuous On. That property is why this is one control and not two.
  • Coordinates stay editable with GPS off; they are the manual fallback.
+ +

2GPS on

Continuous acquisition. The sleep row stays hidden: it governs Power save only, and a dead row invites someone to set it.

+
+
Location
+
+
+
GPS
+
Off
On
Power save
+
+
GPS is on
Fix 2 minutes ago, 3 satellites
Query
+
+
+
Coordinates
39.103118, -84.512020
+
+
Position reporting interval
Every 15 minutes
+
+
+
  • On writes gps.en = 1 and gps.mode = 1 together, the way setGpsMode() does on the device.
  • A stored 0xFF (never set) also displays as On, per gpsModeFromPrefs.
  • This is the costly state: about 48 mA, roughly 1.8 days on a 3000 mAh cell against 6.8 days with GPS off.
+ +

3Power save, backed off

The state a badge at an event actually sits in. One status row carries activity, next attempt and last fix, so nothing is said twice.

+
+
Location
+
+
+
GPS
+
Off
On
Power save
+
+
Backed off
Next try in 48 min, last fix 2 min ago
Query
+
+
Sleep between fix attempts
Firmware default
+
+
+
Coordinates
39.103118, -84.512020
+
+
Position reporting interval
Every 15 minutes
+
+
+
  • Power save writes gps.en = 1 and gps.mode = 2.
  • Backed off must be named. Otherwise a user sees no fix and reads a working radio as broken. The firmware models five activity states and expects this to be the common one at an event.
  • 0 is a legal value meaning firmware default, so the reporting-interval rule that rejects anything under 60 must not be copied onto this field.
  • No tuned default is offered: every measured indoor attempt at 30 minutes and beyond failed to acquire (firmware #1553).
+ +

4A build that cannot do Power save

Most variants do not compile the duty cycle. The third option is absent rather than offered and ignored.

+
+
Location
+
+
+
GPS
+
Off
On
+
+
GPS is on
Fix 2 minutes ago, 3 satellites
Query
+
+
+
Coordinates
39.103118, -84.512020
+
+
Position reporting interval
Every 15 minutes
+
+
+
  • OFFBAND_GPS_POWER_SAVE is opt-in per variant and today is set only on the QCC badge.
  • The device guards its own screen with gpsPowerSaveAvailable() so it never offers a mode nothing drives. The client needs the same signal.
  • Open with firmware: that signal must be separate from the 0xC7 capability bit, or a radio speaking 0xC7 without the duty cycle would be offered Power save and simply stay on.
+ +
+ +

Where it lives

+ +

5Settings, current and proposed

GPS sits two levels down today, inside Node Settings then the Location dialog, with its enable toggle duplicated in both. Location becomes its own category and owns GPS outright.

+
+ +
Current
+
+
Settings
+
+
Node Settings
+
Radio Settings
Frequency, power, spreading factor
+
Radio stats
Noise floor, RSSI, SNR, and airtime
+
Privacy Settings
Control what information is shared.
+
Contacts
Settings for how contacts are added.
+
Blocked
Users you've blocked
+
Message Settings
Notifications and message handling
+
App Settings
Appearance, translation, and map preferences
+
Device Info
+
+ +
Proposed
+
+
Settings
+
+
Node Settings
+
Radio Settings
Frequency, power, spreading factor
+
Locationnew
GPS, coordinates, and reporting
+
Radio statsunchanged for now
Noise floor, RSSI, SNR, and airtime
+
Privacy Settings
Control what information is shared.
+
Contacts
Settings for how contacts are added.
+
Blocked
Users you've blocked
+
Message Settings
Notifications and message handling
+
App Settings
Appearance, translation, and map preferences
+
Device Info
+
+ +
+
  • Location sits directly under Radio Settings and becomes the single home for GPS. The duplicate enable toggle in Node Settings goes away.
  • Radio stats stays for now by owner decision, to be revisited (#980). It is also reachable from the app-bar icon.
  • Category order otherwise unchanged; Observer still appears conditionally and is not drawn here.
+ +

6Button and buzzer split across two panes

One screen today, gated on button matrix or notify scope together. Hardware like the T1000-E has a buzzer and no button, so they are not one feature.

+
+ +
Node Settings keeps the button
+
+
Node Settings
+
+
Node name
Strycher
+
+
Button actions
Assign what the button does
+
+
+ +
Message Settings gains the buzzer
+
+
Message Settings
+
+
Notifications
When this phone alerts you
+
+
Buzzer and tonesnew
When this radio beeps, and which tone
+
+
+ +
+
  • Button actions stay under Node Settings. Buzzer and tones move beside Notifications, which Message Settings already advertises in its subtitle.
  • Split apart, each half needs its own capability gate: a buzzer-only radio must show tones and hide button actions.
  • Open with firmware: whether the existing 0xC5 bits can already answer "buzzer but no button", or whether that needs bit allocation.
+ +
+ +

Why these choices, so a later change knows what it is breaking

+
+

One three-way control, not a toggle plus a picker

The badge's own screen does exactly this: setGpsMode() at MyMesh.h:458 writes both fields, and gpsEnabledForMode exists for the writer that sets both. What is forbidden is a bool-only writer clobbering the mode byte. An earlier draft had two controls and was wrong; #969's original wording pointed that way.

+

One status row, not two

Activity and last fix were separate blocks in the first draft. In a dense app that is one job taking two slots, so they are merged into a single ListTile between the selector and the coordinates.

+

Sleep interval is not the reporting interval

gps_interval is a reporting cadence; gps_ps_interval_s is a power duty cycle (NodePrefs.h:73-78). They live in different cards so the difference is visible, and are never merged.

+

Deferred, tracked separately

GPS fix state in the Channels and Contacts headers is #974; it lands in the same shared app-bar widget as epic #613, so it must follow #614 rather than run beside it. Where Radio stats lives is #980.

+
+
+

The save reply must echo what was stored

The client renders the device's answer, never its own assumption. Choosing Off does not change the stored mode byte, so a client modelling its own write would show the wrong mode. Clamping has the same shape: the reporting interval is already constrained to 0 through 86400, so the user must see the clamped value, not what they typed. Requested from firmware as part of 0xC7.

+

Power save is hidden where the build cannot drive it

OFFBAND_GPS_POWER_SAVE is per variant and currently only on the QCC badge. Without a signal separate from the 0xC7 capability bit, the client would offer a mode that does nothing. Requested from firmware.

+
+ +