Skip to content

Chat screen header buttons: contact's map, requesting telemetry, and info dialog. - #30

Merged
laserir merged 5 commits into
laserir:mainfrom
jason-s13r:contact-chat
Jun 22, 2026
Merged

Chat screen header buttons: contact's map, requesting telemetry, and info dialog.#30
laserir merged 5 commits into
laserir:mainfrom
jason-s13r:contact-chat

Conversation

@jason-s13r

Copy link
Copy Markdown
Contributor

Chat screen header buttons contact's map, requesting telemetry, and info dialog.

and uses lv_win for the chat screen.

laserir and others added 5 commits June 21, 2026 14:10
The eye/info button and the refresh/telemetry button both opened the same
telemetry modal (which already shows contact battery/location/distance and
requests fresh telemetry). Keep the telemetry button; remove the eye one
and its now-dead path (headerNameCb, onInfo/OnInfoCallback, the UIManager
onInfo wiring). Trims the header to back · title · map · telemetry · mute.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
refreshChatMapButton() now also runs on the 1s status cadence while the
chat screen is foreground, so the header map button appears when an advert
brings in a position and disappears when a last-known fix ages out of its
freshness window (bestKnownLocation is time-sensitive). Mirrors the convo
list, which already re-renders its GPS badge periodically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The header map button now appears only when we have a known position for
the DM contact, so it never opens the map with nothing to centre on.
open() keeps it hidden; UIManager::refreshChatMapButton() reveals it on
chat open and after a telemetry reply yields a position
(bestKnownLocation: telemetry → advert → heard). Also added the missing
!self guards to mapBtnCb/telemBtnCb for consistency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jason-s13r jason-s13r changed the title Chat screen header buttons contact's map, requesting telemetry, and info dialog. Chat screen header buttons: contact's map, requesting telemetry, and info dialog. Jun 22, 2026
@laserir
laserir merged commit 4d627e1 into laserir:main Jun 22, 2026
laserir added a commit that referenced this pull request Jun 22, 2026
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
laserir added a commit that referenced this pull request Jun 22, 2026
PR #30 made the chat contact name a plain title; telemetry/info is the
header refresh button. Correct the README references (map view, config
comment, tile-pack note, key-actions table) and note the changed
behaviour in the changelog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jason-s13r
jason-s13r deleted the contact-chat branch June 22, 2026 09:26
laserir added a commit that referenced this pull request Jun 22, 2026
Bump MCLITE_VERSION 0.3.9 -> 0.4.0 and finalize the changelog (the [Unreleased]
window becomes 0.4.0): companion telemetry request, over-the-air contact
sharing, on-device add/remove of contacts/channels/rooms, 19 radio presets +
roller (#29), chat-header map/telemetry buttons (#30), unified modals, and
alias-display fixes.

LANG_VERSION realigned 41 -> 40 (dotless 0.4.0 convention) across defaults.h,
the three SD lang files, and the config tool's embedded copies. README flash
examples updated to v0.4.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants