Commit Graph
1138 Commits
Author SHA1 Message Date
zjs81 0620e8f27a Always clear a deleted channel's storage when no other slot holds it
Keep refreshing channels before clearing so in-flight queue messages
can't write the history back, but decide whether the channel is still
held while ignoring the deleted slot, and clear even if the refresh
fails or is incomplete.
2026-10-24 21:54:16 -07:00
zjs81 3ed88a0fc0 Validate the IPFS upload endpoint before uploading
Reject an empty or non-http(s) endpoint, missing Pinata/Filebase
tokens, and a custom (Kubo) endpoint that doesn't end in /api/v0/add
before any data is sent, and derive the files/cp URL from the add URL
so Kubo behind a proxy path works.
2026-10-24 21:54:16 -07:00
zjs81 abcf6c2eae Treat an existing Kubo MFS entry as a successful share
The MFS name includes the CID, so 'already has entry' means the same
content is already there; re-sharing a file no longer fails.
2026-10-24 21:54:16 -07:00
zjs81 c2d18b431e Test IpfsUploadHelper directly and build the upload request once
Drop the test-only upload facade on MessageUrlImageHelper that
overwrote the shared HTTP client, move its tests to IpfsUploadHelper,
and build the multipart request with the final upload URI instead of
cloning it.
2026-10-24 21:54:16 -07:00
zjs81 7e7e7a48db Merge remote-tracking branch 'origin/dev' into pr-593
# Conflicts:
#	lib/models/app_settings.dart
#	lib/screens/channel_chat_screen.dart
#	lib/screens/chat_screen.dart
#	untranslated.json
2026-10-24 21:45:13 -07:00
zjs81 c33fc25e03 Merge pull request #609 from zjs81/feat/dns-node-banner
Configure the connect screen's node banner from a DNS TXT record
2026-10-24 21:38:59 -07:00
zjs81 21098f1c34 Merge branch 'dev' into feat/dns-node-banner 2026-10-24 21:38:46 -07:00
zjs81 6119f7ab5a Merge pull request #608 from zjs81/fix/ui-issues
Fix UI issues: safe areas, contact delete, path trace, map and notifications
2026-10-24 21:37:53 -07:00
zjs81 69693f5a89 Accept plain-text values in the node banner record
Only ';' needs encoding, so the title and body fit in one TXT string.
Values that aren't valid percent-encoding are used as-is instead of
hiding the banner.
2026-10-24 21:33:14 -07:00
zjs81 ee382f9177 Configure the connect screen's node banner from a DNS TXT record
The "get a node" banner's link, and optionally its title, body and button
text, now come from the _banner.meshcoreopen.org TXT record, looked up
over Cloudflare DNS-over-HTTPS and cached for the record's TTL (1 min to
6 h). The record is `v=1;on=1;url=<https link>` with URL-encoded values;
`on=0`, a missing record or any lookup failure hides the banner.
2026-10-24 21:29:08 -07:00
zjs81 7c2f481520 Merge remote-tracking branch 'origin/dev' into fix/ui-issues
# Conflicts:
#	untranslated.json
2026-10-24 21:13:02 -07:00
zjs81 21e727cf21 Don't re-create a removed contact when syncing its path or flags
The firmware's CMD_ADD_UPDATE_CONTACT adds the key when it isn't in the
contact table. Screens that stay open after a contact is removed (e.g. a
repeater admin screen after the repeater's keys were changed and the old
contact deleted) sync the path before every send, so the next command,
status or telemetry request silently added the old contact back. Skip
path and flag writes for contacts no longer in the contact list.
2026-10-24 21:11:04 -07:00
zjs81 ae2db54a24 Merge pull request #606 from wared2003/issue-37-selective-notifs
feat: add per-channel notification modes (all/mentions only/muted)
2026-10-24 21:04:56 -07:00
zjs81 471a2b6a5e Merge branch 'dev' into issue-37-selective-notifs 2026-10-24 21:04:26 -07:00
zjs81 f2a27f0f71 Wait for the radio before removing a contact, and explain re-adds
removeContact now waits for the radio's reply and only drops the contact
locally when the radio confirms (or reports it doesn't have it), so a
lost command no longer leaves a contact that the next sync restores.
Failures are shown to the user. The delete dialog warns when the radio
auto-adds that contact type, since the contact returns on its next
advert.
2026-10-24 21:03:39 -07:00
zjs81 ef60cd71f1 Merge pull request #582 from shortwavesurfer2009/fold_path_size_into_radio_presets
fold path hash size into radio settings
2026-10-24 21:02:53 -07:00
zjs81 f3177bcec9 Merge branch 'dev' into fold_path_size_into_radio_presets 2026-10-24 21:02:31 -07:00
zjs81 1e786b24ba Make the map path trace builder explicit and keep its state
The builder panel now labels its actions, lets the user pick round trip
or as-entered with an explanation, and only sends when "Run path trace"
is pressed. Hops, mode and the last result are kept in UiViewStateService
for the session, so going back no longer clears them and the last result
can be reopened without sending again.
2026-10-24 21:02:19 -07:00
zjs81 c131f56dae Open repeater details from the nearby repeaters list
Each nearby repeater is now a tappable row that opens the same node
details sheet as the map, or a short sheet with the key prefix and
signal when the repeater isn't a known contact. The map's node info
sheet and login dialogs move to widgets/node_info_sheet.dart so both
places share them.
2026-10-24 21:01:47 -07:00
zjs81 62238c7f04 Merge pull request #578 from shortwavesurfer2009/battery_percent_warning_android
Battery percent warning android
2026-10-24 21:01:20 -07:00
zjs81 caf20b4415 Summarize location, image and GIF messages in notifications
Notification bodies now use the chat's parsers to show a localized
summary for shared locations (m: markers), channel images, GIFs and
reactions instead of the raw payload. The marker parser moves out of the
map screen into helpers/marker_message.dart so the service can use it.
2026-10-24 21:01:06 -07:00
zjs81 ed5884e252 Declutter the map overlay
Drop the row of activity/type/group chips under the Local/Online/Both
switch; every option is already in the filter sheet, whose button now
shows a badge with the number of active filters. Add a one-line hint to
each map source segment.
2026-10-24 21:00:42 -07:00
zjs81 00756ef05e Set my location by long-pressing the path maps
Move the map's confirm-and-set-location flow into a shared helper and
call it on long-press and right-click in the path trace and channel
message path maps, so the self position can be set while viewing a path.
2026-10-24 21:00:06 -07:00
zjs81 c296597a2d Show the routing key prefix on each contact
Contacts now show the first path-hash-width bytes of their public key as
a monospace badge before the path label, so they can be matched to hops
in routing paths and told apart. The width follows the radio's path hash
size setting.
2026-10-24 20:59:59 -07:00
zjs81 4c9705b3cb Keep the GIF picker above the system navigation bar
Open the GIF picker through showMeshSheet so it is padded by the
navigation bar or keyboard, and cap its height instead of fixing it so it
shrinks when the keyboard is up.
2026-10-24 20:59:49 -07:00
zjs81 918ab7f5a0 Keep the reaction picker above the system navigation bar
Open the emoji picker through showMeshSheet, which pads the sheet by the
navigation bar or keyboard, instead of a bare modal bottom sheet.
2026-10-24 20:58:52 -07:00
zjs81 92b147bd49 Format tcp_transport_service_native_test 2026-10-24 20:57:30 -07:00
zjs81 f667320608 Fix review findings in channel notification modes
- Detect mentions on the original text, as @[name] or a whole-word @name
- Save and restore the full mode map in review mode
- Open the mode picker from the chat bell and show the mode in its tooltip
- Share one mode picker sheet; fix the stale sheet context
- Persist modes by name and skip unknown entries
- Keep writing muted_channels so older builds keep the user's mutes
- Remove the muteChannel/unmuteChannel/isChannelMuted shims
- Update notifications docs to match the behaviour
2026-10-24 20:46:49 -07:00
zjs81 b6c1d73bf0 Fix review findings in low battery alerts
- Respect the notifications-enabled setting
- Notify only the lowest newly crossed threshold
- Ignore implausible readings (boards without a battery sensor report 0 mV)
- Wait for the device identity so the saved chemistry is used
- Require two consecutive low readings before alerting
- Re-arm and clear alerts on any link reset, not just explicit disconnect
- Cancel stale notifications on re-arm and link reset
- Scope notification ids per device and name the device in the body
- Use the connector's shared NotificationService
2026-10-24 20:45:14 -07:00
zjs81 143ca57279 Fix review findings in radio settings path hash size
- Presets no longer reset the path hash size; the unused preset field is gone
- Confirm the new path hash size from the refreshed DEVICE_INFO and show a
  specific error when the radio does not apply it
- Log path hash size with the other radio settings and on manual edits
- Add MeshCoreConnector.supportsPathHashMode and use it in both screens
- Use the same 0-2 mode values and helper text as the other selectors
2026-10-24 20:43:00 -07:00
zjs81 d38865bf3f Merge pull request #607 from zjs81/feat/optional-android-auto
Make Android Auto an opt-in build flag
2026-10-24 20:26:31 -07:00
zjs81 fe7e72a421 Make Android Auto an opt-in build flag
Android Auto support is now merged into the app only when building with
-PandroidAuto=true (flutter build apk --android-project-arg=androidAuto=true).
The car application meta-data and automotive_app_desc.xml move to
android/app/src/androidAuto/, so default builds no longer declare Android
Auto. Notification replies from the shade and watches are unchanged.
2026-10-24 20:22:12 -07:00
ericz 050016f599 ai fix tcp reconnect test fail 2026-10-24 16:46:32 +02:00
ericz 631c77cafc Merge remote-tracking branch 'zjs81/dev' into ez_share_urlimage_PR 2026-10-24 16:22:34 +02:00
edouard 705bff2f15 format code 2026-10-24 15:26:43 +02:00
edouard 9f358461e7 update notif docs becose of deleted specific ans redundant reply detection 2026-10-24 15:23:52 +02:00
edouard 2e1c871ef1 remove useless reply detection pattern becose both app @[pseudo] by default on reply 2026-10-24 15:20:27 +02:00
edouard e0ce8dc6b8 update mention detection pattern 2026-10-24 08:35:31 +02:00
edouard 1c3fc7c2ec fix mention detection to match @[pseudo] 2026-10-24 08:34:46 +02:00
edouard 401b81475a Fix documentation table to use distinct icons (🔔/🔔!/🔕) for the 3 modes 2026-10-24 06:14:36 +02:00
edouard f77c959e4a UI: Replace notification menu with toggle button in channel chat 2026-10-24 06:14:18 +02:00
edouard 14230952c9 Update notifications icons for better clarity and interface look and coherence 2026-10-24 05:09:07 +02:00
edouard 363c413717 Update notification icons for consistency
- Use outlined icons for buttons (PopupMenuButton)
- Use normal icons for menu items (PopupMenuItem/ListTile)
- Ensure icon consistency across all notification mode displays
- Verify no regressions in existing functionality
2026-10-24 04:57:23 +02:00
edouard 09e9208108 Update notification mode strings with verified translations
- Add channels_notifyAll, channels_notifyMentionsOnly, channels_notifyNone to all 18 language ARB files
- Add channels_notificationSettings to all ARB files for consistency (was missing in 16 languages)
- Remove redundant "(@)" suffix from mentions only mode
- All translations verified for accuracy
- Special fix: Slovak "Iba spomienky" -> "Iba zmienky" (mentions, not memories)
- Update all localization Dart files via flutter gen-l10n
- Update documentation table with proper icons
- Update untranslated.json
2026-10-24 04:29:24 +02:00
edouard caad3dd703 feat: add per-channel notification modes (all/mentions only/muted)
- Add ChannelNotificationMode enum with all, mentionsOnly, muted options
- Replace mutedChannels Set with channelNotificationModes Map for per-channel settings
- Add mention detection for @username in channel messages
- Update channels list and chat UI with notification mode selector
- Add localization strings for new notification modes
- Automatic migration from old mutedChannels to new system
- Update user documentation
- Preserve backward compatibility with existing mute/unmute API
2026-10-23 22:37:49 +02:00
zjs81 caee4d5c19 Merge pull request #601 from just-stuff-tm/dev
Fix Linux USB open crash and the glibc 2.39 release bundle
2026-10-19 11:53:40 -07:00
just-stuff-tm 2474389099 Fix Linux USB open crash and the glibc 2.39 release bundle.
BETA-99.0.0 segfaults when a USB companion transmits as soon as the port
opens, and the Linux release fails to load on Ubuntu 24.04 and Linux
Mint 22 (glibc 2.39). Fixes #600.

fl_open starts SerialThread before Dart installs fl_set_callback. A Seeed
Wio Tracker L1 sends bytes immediately, and the reader called that null
pointer (segfault at ip 0, FlSerial+0x44b8). Vendor MeshEnvy/flserial
e1864de under third_party/flserial. That is the 0.3.5 FFI API this app
already calls (openPort, setCallback, setByteSize8, setDTR), not official
grzesl/flserial 0.7.3. The reader waits until the callback is set, and
the port mutexes are initialized before the thread starts. Merging this
makes zjs81/meshcore-open the owner of that vendored copy.

The release libflserial.so needed GLIBC_2.42 for cfsetispeed and
cfsetospeed, so USB discovery failed on glibc 2.39 before the port
opened. Bind those symbols at GLIBC_2.2.5 and pass the legacy baud values
those symbols expect. 115200 is octal 0010002. glibc 2.42 turned the B*
macros into plain numbers, so passing 115200 to the old symbol would
select the wrong rate.

flutter_onnxruntime 1.9.0 needs libonnxruntime.so.1 from ONNX Runtime
1.28.3. The zip did not ship that file, and the plugin RUNPATH was the
build machine's download directory. The loader uses the plugin path for
this library. The install copies libonnxruntime.so, .so.1, .so.1.28.3,
and libonnxruntime_providers_shared.so into bundle/lib. The plugin build
RPATH is $ORIGIN followed by the download directory: $ORIGIN is bundle/lib
at runtime, and the download directory is what ld needs while linking.
Dropping it makes the release link fail. The executable keeps DT_RPATH
$ORIGIN/lib for its own plugins.

Checked on Ubuntu 26.04.1 (glibc 2.43) with Flutter 3.47.7. Opening
/dev/ttyACM0 at 115200 set both termios2 speeds to 115200 and delivered
data after fl_set_callback (last length 402). The built libflserial.so
has no GLIBC_2.42 requirement. flutter build linux --release succeeded.
With the plugin's absolute build path removed and LD_LIBRARY_PATH unset,
ldd resolved libonnxruntime.so.1 from bundle/lib.
2026-10-16 20:11:05 -04:00
ZIER de6632d70e fix crash in chat_screen.dart, try to resolve test error. 2026-10-13 11:19:29 +02:00
ZIERandCopilot 4000c49213 Merge zjs81/dev into ez_share_urlimage_PR
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-13 10:16:13 +02:00
shortwavesurfer2009 7d55bf03df Merge remote-tracking branch 'upstream/dev' into battery_percent_warning_android 2026-10-12 10:59:41 -04:00