Commit Graph
1086 Commits
Author SHA1 Message Date
shortwavesurfer2009 f8a9922ba4 Merge branch 'dev' of https://github.com/zjs81/meshcore-open into fold_path_size_into_radio_presets 2026-10-12 09:26:06 -04:00
zjs81 3bee159c4f Update app version to 9.5.0+19 and mark version as BETA in settings screen 2026-10-11 22:13:55 -07:00
zjs81 884f1938c8 Merge pull request #596 from zjs81/feat/network-map
Network map: opt-in uploads, online map view and node banner
2026-10-11 22:09:55 -07:00
zjs81 e614fb32e2 Address review: consent race, unsigned advert bytes, antimeridian
- Uploads carry a consent generation: nothing is sent if sharing is
  turned off while a batch is being prepared, and a late response never
  touches a queue that was cleared and refilled
- Parse only the signed 32 advert app-data bytes, as the firmware does,
  so appended unsigned bytes can't add the hidden marker or change the
  name
- Split online map requests that cross the antimeridian into two valid
  boxes and merge the results
- README: link the network map next to the website
2026-10-11 22:09:08 -07:00
zjs81 49582d3f07 Format tcp transport test for the current stable formatter 2026-10-11 22:05:29 -07:00
zjs81 c18b509d7e Merge remote-tracking branch 'origin/dev' into feat/network-map
# Conflicts:
#	lib/connector/meshcore_connector.dart
2026-10-11 21:55:22 -07:00
zjs81 bc14de586f Add opt-in network map uploads and online map view
- Opt-in upload of header-only packet records and repeater/room server
  adverts to map.meshcoreopen.org about once a minute; payloads, channel
  and DM hashes and transport codes are stripped on the phone, locations
  snapped to a ~2 km grid, install ID rotates daily
- One-time opt-in dialog on first radio connection; toggle and status in
  App settings
- Local / Online / Both switch on the map screen with online repeater
  hexagons, links, add-to-contacts and manage
- Node purchase banner on the connect screen (affiliate link, disclosed)
- Privacy policy and network map documentation
- Translations for all locales
2026-10-11 21:54:16 -07:00
zjs81 86ec8b4e17 Merge pull request #595 from zjs81/fix/channel-storage-by-psk
Key per-channel storage by PSK-derived channel ID
2026-10-11 18:06:33 -07:00
zjs81 6a8df764bb Stamp legacy images inside the migration; hold early channel frames
- Image entries are stamped with their channel ID before the migration is
  marked done, so an interrupted run repeats it instead of leaving them
  unstamped (and invisible) forever.
- Channel message/data frames that arrive before this session's slot map
  is confirmed are held and replayed once it is. Current firmware only
  sends them in reply to SYNC_NEXT_MESSAGE, which already waits; this
  guards against a stale saved map filing them under the wrong channel.
2026-10-11 18:04:53 -07:00
zjs81 679116ed03 Key per-channel storage by PSK-derived channel ID
Channel messages, settings, region, order and images were persisted by
radio slot index, so a slot reused for a different channel inherited the
old channel's history and settings (#359).

- Channel.storageId: first 8 bytes of SHA-256("meshcore-channel:" + psk).
- All per-channel stores key by channel ID; in-memory state stays by slot.
- The connector keeps a slot -> channel ID map, diffs it against the saved
  map on every channel sync and reloads slots whose channel changed.
- Queued channel frames wait until this session's map is confirmed.
- One-shot per-radio migration from slot keys, using the cached channel
  list the legacy data was written under; rerun-safe if interrupted.
- Deleting a channel clears its data; a channel removed elsewhere keeps its
  history and gets it back when re-added. A PSK edit keeps its place in
  the custom order.
- Slots sharing a PSK share history and settings.
- Image entries record their channel ID; a slot change resets that slot's
  in-progress reassembly.
2026-10-11 17:52:59 -07:00
zjs81 d30744aa31 Merge pull request #594 from zjs81/feat/ui-refresh-and-l10n
UI refresh: shared widgets, screen cleanups, and full translations
2026-10-11 15:25:47 -07:00
zjs81 b18da94a16 Clear unsaved-changes guard before popping on discard 2026-10-11 15:25:32 -07:00
zjs81 88dcc5943f UI refresh: shared widgets, screen cleanups, and full translations
- Extract reusable widgets (chat composer/send pipeline, message bubble
  frame, reaction chips, path map scaffold, radio settings dialog,
  translation settings section, map POI clusters, nav tiles, etc.) and
  slim down the screens that used them
- Map: hide/remove markers with restore, confirm before setting node
  location, POI clustering, semantics labels
- Map cache: cancellable downloads and a bulk tile limit
- Repeater: unsaved-changes guard, CLI search/copy/share transcript,
  framed-command debug preview, disconnected banner
- Confirm before clearing chats and debug logs
- Keep cached unread totals in sync on per-contact/channel updates
- Move remaining hardcoded strings into l10n and translate the 98 new
  keys into all 17 non-English locales
2026-10-11 15:17:01 -07:00
zjs81 9609a8231d Merge pull request #591 from zjs81/fix/review-fixes-and-issue-batch
Review fixes, default flood scope, node scan, and recent issue fixes
2026-10-11 01:54:38 -07:00
zjs81 5fb67abdde Merge dev; fix share-location and discovered-contact import/export; update docs
Merge dev (#588 share location, #436 discovered-contact import/export)
into fix/review-fixes-and-issue-batch. Conflicts: keep the node-scan
button alongside dev's import/export menu; take dev's marker label
prompt.

Share location (#588):
- Never share a missing or 0,0 radio position; hide the chat action and
  show "Your radio has no location set"
- Sanitise marker labels ('|' -> '/', newlines -> spaces) on every path
- One shared MarkerLabelDialog owning its controller/focus node, with
  keyboard submit, replacing three copies
- Map pins default to "Point of interest" again; "Share my location"
  uses the node name
- Location shares honour the send cooldown and handle send errors

Discovered-contact import/export (#436):
- Per-entry decoding with imported/skipped/invalid counts; reject keys
  that are not 32 bytes; skip in-file duplicates and the radio's own key
- Strip routing paths on import and stop exporting them; clamp future
  timestamps; enforce the discovered-contact cap; require a connection;
  2 MB file limit
- Export via in-memory XFile (fixes web); pass sharePositionOrigin for
  iPad (also GPX export and image save); macOS user-selected read-write
  entitlement for save dialogs

Docs: cover share location, import/export, node scan, TCP reconnect,
channel auto-resend options, arrival ordering, badge, password length
and image limits.

Translations for all new strings in every locale.
2026-10-11 01:54:07 -07:00
zjs81 5e8a9a2ca3 Merge pull request #436 from ericszimmermann/ez_import_export_5
import export function for discovered contacts Nr.5
2026-10-11 01:43:36 -07:00
zjs81 3cfa6a786a Merge dev into ez_import_export_5
Resolve pubspec.yaml conflict (keep dev's share_plus ^13.3.1 and
file_selector), regenerate localizations, and add the missing
map_labelUpdateHint translation for all locales.
2026-10-11 01:42:48 -07:00
zjs81 e906681bca Merge pull request #588 from ericszimmermann/ez_share_location
Share location marker from chat
2026-10-11 01:37:52 -07:00
zjs81 616c433922 Let entry cap remove spent outgoing images; clarify channel row arrival ordering
Outgoing image entries were excluded from the maxEntries cap, and age
eviction only marks them evicted, so frequent senders accumulated entries
and sidecars without bound. Outgoing entries with nothing left on disk (or
failed) are now eligible, oldest first.

Rename _ChannelChatRow.timestamp to receivedAt: it already returned the
local arrival time used for sorting and day separators.
2026-10-11 01:37:36 -07:00
zjs81 25f197c979 Fix review findings, add default flood scope, and address recent issues
Review fixes:
- Keep stored message history beyond the 200-message window; stop
  messages leaking between radios; reset link/session state on disconnect
- Accept firmware's 176-byte RX frames over USB/TCP
- Hold APP_START during contact sync; contact-sync watchdog; replay DMs
  from not-yet-known senders; tombstone late command replies; finish
  channel sync on ERR_NOT_FOUND; fail region-scoped sends cleanly
- DM retry watchdog when RESP_CODE_SENT never arrives; late repeater CLI
  replies; ACK hash collisions; UTF-8-safe name truncation
- Image pipeline: delete-during-decode, lifecycle cancels, decoder memory
  release, entry cap, dead worker recovery, atomic model writes
- Storage: deterministic reaction hash across web/native, Smaz
  double-decode, per-entry parsing, per-radio path history and regions,
  review-mode data isolation
- UI: safe channel slot selection, byte-length name limits, double-send
  guard, mounted checks, localized hardcoded strings
- Skip persisted-store reload on repeat SELF_INFO

Features:
- Radio default flood scope (firmware ver 11+) and explicit unscoped
  sends (ver 12+)
- Scan for nearby nodes (#570)
- Optional distinct first-hop repeater counting for channel resend (#589)
- Optional region next to hop count (#580)

Issues:
- Message text follows system font size (#569)
- Repeater/room password field accepts 20 chars (#576)
- TCP auto-reconnect and keepalive (#571)
- Order feeds by local receive time; flag future timestamps (#584)
- Coding rate help text (#568), French "Favoris" (#575)
- iOS/macOS app badge now clears

Translations for all new strings in every locale.
2026-10-11 01:25:31 -07:00
ericz 3cc0f48c73 reworked popup for correct placement. 2026-10-08 22:06:44 +02:00
ericz 6cb8e07173 add share location to InputBar popup. 2026-10-08 21:33:42 +02:00
zjs81 a64a33d0c0 Add release notes for build 18 2026-10-07 21:26:32 -07:00
zjs81 9c66e20b6c Bump build number to 9.5.0+18 2026-10-07 21:19:12 -07:00
zjs81 cdb6f42205 Translate discovered-contact eviction strings for all locales 2026-10-07 21:18:34 -07:00
zjs81 96c7f9ec96 Merge pull request #512 from ericszimmermann/ez_disable_discoveredContact_eviction_PR
Setting to enable eviction of discovered contacts
2026-10-07 21:13:43 -07:00
zjs81 ef53b8f390 Default discovered-contact eviction on and harden the auto-add dialog
- Default evictDiscoveredContactsEnabled to true so the 500-entry cap stays
  in effect unless the user opts out
- Evict until under the cap when adding, so an oversized list recovers
- Pass the cap into the localized subtitle instead of hard-coding 500
- Fix German title and subtitle wording
- Save: block double taps, send radio config first, show an error if
  persisting the setting fails
- Restore untranslated.json to match dev
2026-10-07 21:12:59 -07:00
zjs81 cc6fe09872 Merge pull request #587 from zjs81/fix/play-console-android-warnings
Enable edge-to-edge on all Android versions and upgrade packages
2026-10-07 21:07:43 -07:00
zjs81 1d64399d42 Keep system bar content usable under edge-to-edge
- Lift the QR scanner's torch and camera controls above the navigation
  bar instead of 16 px from the screen edge
- Use light system bar icons on the black QR camera and received-image
  viewer, and keep Android's contrast scrim behind three-button
  navigation for any other dark route
- Note that Flutter only applies edge-to-edge from Android 10
2026-10-07 21:06:41 -07:00
zjs81 551bf128c6 Enable edge-to-edge on all Android versions and upgrade packages
- Opt Android 14 and older into edge-to-edge so every version lays out
  the same way Android 15+ already enforces, and make the navigation bar
  transparent (its color is ignored on Android 15)
- Raise minimum versions for packages with relevant fixes:
  flutter_blue_plus 2.3.14 (Android connection-state fixes),
  mobile_scanner 7.4.2 (scanner stall and camera-start crash fixes),
  flutter_map 8.3.2 (crash on NaN marker coordinates),
  flutter_onnxruntime 1.9.0 (ONNX Runtime 1.28), share_plus 13.3.1,
  flutter_cache_manager 3.4.5, flutter_local_notifications 22.3.1,
  package_info_plus 10.2.2
2026-10-07 21:01:53 -07:00
zjs81 956c779e2c Merge branch 'dev' into ez_disable_discoveredContact_eviction_PR 2026-10-07 20:59:37 -07:00
zjs81 b0119a1a20 Merge pull request #581 from shortwavesurfer2009/ui_tweaks
Android: remove message copied snackbar in favor of the system text copied chip
2026-10-07 20:58:40 -07:00
zjs81 b58cb6e55b Merge pull request #586 from zjs81/feature/review-mode
Add review mode with a simulated radio
2026-10-07 20:42:46 -07:00
zjs81 78cb07cab4 Translate review mode strings for all locales 2026-10-07 20:40:59 -07:00
zjs81 11c94040e3 Add review mode with a simulated radio
Store reviewers have no MeshCore radio, so they could not reach any
screen past Connect or test the Android Auto messaging notifications.

- Long-press the "MeshCore Open" title on the Connect screen to enter
  review mode on any platform
- A simulated radio speaks the companion protocol as a fourth transport,
  so sync, messages, ACKs, notifications and notification replies run
  through the normal code paths
- Seeded contacts, channels and history; a new incoming message every
  45 s, auto-replies a few seconds after sending, and a banner with
  "Send test message" and "Exit"
- Review data uses its own fixed key scope and is cleared on entry, exit
  and at startup; the review scope never adopts legacy unscoped keys,
  and channel mutes changed during review are restored
- Code lives in lib/review_mode/ with tests in test/review_mode/
2026-10-07 20:38:59 -07:00
shortwavesurfer2009 c161bffc83 fold path hash size into radio settings 2026-10-05 19:19:08 -04:00
shortwavesurfer2009 1d7c5abbec Android: remove message copied snackbar in favor of the system text copied chip 2026-10-05 13:39:04 -04:00
ericz 38eef0970e update to zjs81/dev 9334d55 2026-09-28 20:02:32 +02:00
zjs81 9334d556fe Merge pull request #567 from zjs81/release/9.5.0-build17
Bump build number to 9.5.0+17
2026-09-27 22:48:06 -07:00
zjs81 50e16eac68 Bump build number to 9.5.0+17 2026-09-27 22:45:54 -07:00
zjs81 77187cff68 Merge pull request #566 from zjs81/feature/translation-update
Add missing translations for all locales
2026-09-27 22:32:27 -07:00
zjs81 2c886b00a4 Add missing translations for all locales
Fill in untranslated strings for the 17 non-English locales (notification
replies, region settings, channel min-hops, image messages, map clustering,
and more). untranslated.json is now empty.
2026-09-27 22:31:20 -07:00
zjs81 3b252d229d Merge pull request #565 from zjs81/feature/android-auto-notifications
Add notification replies, Android Auto support, and channel mute bell
2026-09-27 21:58:05 -07:00
zjs81 25f8d6ae27 Add notification replies, Android Auto support, and channel mute bell
- Message notifications use Android MessagingStyle with Reply, Mark as read,
  and Mute channel actions, so they work in Android Auto and on watches
- Replies go through the normal send path (length limits, SMAZ, Cyr2Lat,
  retries), split into up to 3 messages, and report failures
- Declare Android Auto notification support and register the action receiver
- Add a bell icon to channel chat to mute/unmute; unify the channel mute key
  so unnamed channels mute correctly
- Update README and docs for Android Auto support
2026-09-27 21:55:43 -07:00
zjs81 5cfd26b3af Merge pull request #564 from zjs81/docs/refresh-and-dutch-translations
Refresh documentation and update Dutch translation
2026-09-27 13:16:40 -07:00
zjs81 aa00a863c3 Refresh documentation and update Dutch translation
Documentation:
- Correct web transport support: USB via Web Serial in Chrome only; no
  BLE or TCP in the browser.
- Fix region scope semantics, routing modes (Auto/Flood/Manual), the
  156-byte DM limit, repeater CLI framing, the guessed-location algorithm,
  radio stats contents and settings labels.
- Add regions, image messages, radio statistics and troubleshooting guides.
- Restore coding conventions, localization workflow, storage scoping and
  transport entry points to CLAUDE.md/AGENTS.md; align build/CI commands.
- Replace the obsolete docs/BLE_PROTOCOL.md with a pointer to the
  maintained protocol reference.

Dutch (nl):
- Translate the 79 missing strings and correct existing mistranslations,
  typos and grammar (e.g. "Uitzoomen", "Handmatig", "Slowaaks", frequency
  range 150-2500 MHz).
- Use consistent terminology and informal "je" throughout; keep mesh terms
  such as repeater, node, flood, hop and advert in English.

Fixes #538
2026-09-27 13:12:23 -07:00
zjs81 5eca459e1c Merge pull request #561 from ericszimmermann/ez_display_region
Display Regions in Messages
2026-09-27 12:39:23 -07:00
zjs81 a0ed3cf69c Dedupe region candidates without the # prefix
floodScopeKeyForRegion treats `foo` and `#foo` as the same scope, so a
region listed both ways matched every packet twice and was always reported
as ambiguous. Also consider the default region when resolving.
2026-09-27 12:37:45 -07:00
zjs81 7134bac7f7 Merge remote-tracking branch 'origin/dev' into ez_display_region
# Conflicts:
#	lib/connector/meshcore_connector.dart
#	lib/models/channel_message.dart
#	lib/screens/channel_chat_screen.dart
2026-09-27 12:37:45 -07:00
zjs81 52281cc3e9 Merge pull request #493 from ionphoketi/dev
Add Fastlane
2026-09-27 12:27:46 -07:00