Commit Graph
97 Commits
Author SHA1 Message Date
zjs81 4065d60a16 Merge origin/dev into cursor/routing-send-settings-ef15 2026-11-21 08:33:50 -07:00
zjs81 cd84855c15 Merge pull request #673 from zjs81/cursor/fix-manual-path-builder-ux-63c1
Fix manual path builder search and keep hops visible
2026-11-21 07:38:55 -07:00
zjs81 b5d9dea1c3 Merge pull request #680 from zjs81/fix/chat-scroll-and-keyboard
Keep chat reading position during sync, selection and app switches
2026-11-21 07:38:06 -07:00
zjs81 031844788a Merge pull request #682 from zjs81/cursor/consistent-model-download-ui-092a
Use one model row for image and translation downloads
2026-11-21 07:37:03 -07:00
zjs81 d76d488e45 Add optional SMAZ compression indicator icon on messages 2026-11-21 04:10:43 -07:00
zjs81 e65b3982e2 Reveal model settings on enable and align model row icons 2026-11-21 03:39:13 -07:00
zjs81 816dc92f2b Improve slider inactive track contrast inside SettingsReveal panels 2026-11-21 03:10:43 -07:00
zjs81 94f24cf635 Merge origin/dev into cursor/consistent-model-download-ui-092a 2026-11-21 02:24:16 -07:00
zjs81 7772650c25 Merge remote-tracking branch 'origin/dev' into pr673-work
# Conflicts:
#	lib/screens/contacts_screen.dart
2026-11-20 23:32:13 -07:00
zjs81 267936bb91 Merge branch 'dev' into fix/chat-scroll-and-keyboard 2026-11-20 23:06:46 -07:00
zjs81 84c0b97710 Merge remote-tracking branch 'origin/dev' into cursor/routing-send-settings-ef15
# Conflicts:
#	documentation/design.md
#	lib/screens/channels_screen.dart
#	lib/screens/chat_screen.dart
2026-11-20 22:53:08 -07:00
zjs81 ae967ec21f Merge pull request #676 from zjs81/fix/list-sorting-and-performance
Fix list ordering and long-list scrolling
2026-11-20 21:21:07 -07:00
zjs81 173c8db9cc Merge pull request #678 from zjs81/feat/chat-compression-selector
Add in-chat compression selector
2026-11-20 21:15:51 -07:00
zjs81 22f488bbfa Merge pull request #679 from zjs81/feat/signal-style-composer
Restyle the chat composer
2026-11-20 21:14:20 -07:00
zjs81 27cc332383 Add leading icons to every settings row 2026-11-20 20:59:56 -07:00
Cursor Agentandzjs81 dca270e5ad Add Repeaters and Rooms settings for login and clock sync
Move login attempts and auto-fetch into the new section, and let a global clock-sync default be overridden per repeater.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-21 01:06:26 +00:00
Cursor Agentandzjs81 1b804bd1eb Move send controls into Routing and split retry limits
Direct and flood attempts are separate settings, available with auto
route rotation off. Saved single retry limits migrate to that split,
and reset restores the whole Routing section.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-21 00:50:53 +00:00
Cursor Agentandzjs81 9ffdbaae09 Use one model row for image and translation downloads
Image settings, translation settings, and the restore prompt each listed models differently. Share ModelDownloadList so every model shows the same name, size, status, selection, and download, cancel, or remove action.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-21 00:05:39 +00:00
zjs81 d7fff0533e Allow building without ONNX Runtime
flutter_onnxruntime downloads ORT natively at build time, and the Linux and
Windows downloads from github.com/microsoft/onnxruntime are unavailable.
scripts/onnx.sh off swaps in a pure-Dart stub via pubspec_overrides.yaml, so no
platform pulls ORT; image messages then show as unavailable, as on web. Linux
CI builds use this mode for now.
2026-11-20 16:38:09 -07:00
zjs81 bc0062363d Restyle the chat composer
Rounded borderless bubble that grows to five lines, one round button that
switches between attach and send, reply and GIF previews inside the bubble,
a byte counter shown only near the limit, and a transparent panel over chat
wallpapers. Sending, limits and compression are unchanged.
2026-11-20 16:38:01 -07:00
zjs81 fc5f7eb516 Add in-chat compression selector
A Compression: Off / SMAZ / Cyr2Lat strip at the top of DM and channel chats
opens one sheet that explains each mode and holds the Cyr2Lat profile picker.
New connector setters keep the modes mutually exclusive. The old switches are
removed from contact settings and the channel edit sheet, so editing a channel
no longer overwrites its compression setting.
2026-11-20 16:37:54 -07:00
zjs81 ffbb61bc3d Keep chat reading position during sync, selection and app switches
- Room chats: keep the visible message in place when synced messages arrive,
  don't pull a scrolling reader back to the bottom, and keep loaded older
  pages while the chat is open.
- Selecting messages no longer jumps to the newest message.
- Focus returning after a sheet, dialog or app switch no longer counts as
  opening the keyboard.
2026-11-20 16:37:51 -07:00
zjs81 316088dfd6 Fix list ordering and long-list scrolling
- Sort channels by latest message and contacts by recent message using local
  arrival time instead of the sender's clock.
- Contacts added from a card sort by when they were added until the radio
  hears an advert (app-side only; lastAdvert stays 0).
- Stop entrance animations on rows scrolled into view and reuse unchanged
  contact rows across connector updates.
2026-11-20 16:37:47 -07:00
Cursor Agentandzjs81 52be39e4e8 Document sheet layout and shared node search
The design reference now says new sheets use the shared header
flush with the top of the sheet, and that contact, repeater, room
and user search share one prefix, substring, then hash ranking.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-20 22:54:58 +00:00
Cursor Agentandzjs81 cd211da0ef Scroll the path sheet when the keyboard leaves no room
A landscape keyboard can leave less than the search field under the
header. The pinned column overflowed there, so that band now scrolls
the hops, hex field, search field, and repeater list together.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-20 22:53:06 +00:00
Cursor Agentandzjs81 c4675d810e Seat the path sheet header with the other sheets
The sheet background was taller than its content, leaving an empty band
above the drag handle. Use the shared sheet header, and rank the share
sheet's own contact with the same name and hash matcher.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-20 22:30:35 +00:00
Cursor Agentandzjs81 a1604af4d4 Fix manual path search ranking, hash matching, and layout
Rank name prefixes ahead of other substring matches, match hop hashes
in the path builder and contact search, and keep the hop list and hex
field on screen while the keyboard is open.

Co-authored-by: zjs81 <zjs81@users.noreply.github.com>
2026-11-20 21:43:49 +00:00
zjs81 89071473a5 Merge branch 'dev' into ez_bookmark 2026-11-15 15:16:18 -07:00
zjs81 53e4e457ca Preview image versions before sending, and repair unheard chunks
Send sheet: opens on what recipients will see (the encoded photo decoded
on this device) instead of the original. "Try another version" encodes
the whole photo again with a near-invisible zoom/shift; the generative
decoder reconstructs each version differently, and on Kodak the best of
three raised CLIP agreement from 0.828 to 0.853. The user picks the
version to send; packet count and airtime follow the selection. Version 1
is byte-identical to the previous encode, so the wire format is
unchanged. The sender's bubble shows the chosen version and carries the
AI-reconstructed label.

Repeater echoes: the raw RX log handler now decrypts GRP_DATA as well as
GRP_TXT and counts repeaters re-flooding each chunk of our own images.
The bubble shows the repeat count like channel text, and Packet info
lists each packet. About 15 s after sending, chunks no repeater echoed
are resent once, but only when another chunk of the same image was
echoed, so senders with no repeater in earshot do not double their
airtime. Outgoing entries now record their payload size.
2026-11-14 20:58:43 -07:00
ericz ef94e6be50 Export bookmarks into a Markdownfile. Ordering of Bookmarks in the bookmarks overview. 2026-11-14 00:36:46 +01:00
ericz f32300797e Save Bookmark with Bookmark overview in channel menu, and bookmark-filter in channel and contact. 2026-11-13 23:06:17 +01:00
zjs81 2d56d5e349 Store histories and the tile index in SQLite
Message, channel and route histories move from whole-blob preferences to
indexed SQLite rows on native platforms, so chats page from storage instead
of loading a full conversation. Web keeps the preferences store. Existing
histories are imported once on the first launch.

Linux and Windows keep the map tile index in SQLite and import the old JSON
index on first use.

Unreadable legacy data no longer blocks saves, migrations or startup: it is
left in place and skipped. If the database cannot be opened, the run keeps
histories in preferences and the next launch merges them in.

Also adds a performance profiling reference and a script that clears the
Dart HTTP profile.
2026-11-09 22:32:40 -07:00
zjs81 462159e803 Tester feedback: offline mode, pt-PT, menus, layout and translations
Offline (read-only) mode
- The last connected radio is remembered; with no radio the app opens on
  its saved contacts, channels, messages and unread counts.
- Main screens stay open on disconnect. A Connect button replaces the
  battery and signal indicators, with a sheet to reconnect, choose a
  radio or stop a pending reconnect.
- While disconnected everything is read-only: the composer becomes a
  "connect to send" bar (drafts kept) and controls that change the radio
  or stored history are disabled or hidden.
- Resending while disconnected no longer deletes the message; a
  different radio no longer shows the previous radio's channels.
- Notification taps open the saved chat while offline.

Chats and menus
- Channel chat menu: notifications, edit channel, delete channel; the
  filter row lines up with the others; bell moved out of the app bar.
- DM and room menus: remove from contacts; rooms get room management.
- Search field uses the full app bar; long-press a result to copy.
- Hashtag channel titles no longer read "# #name"; more room around the
  radio activity dot.
- Repeat filter: short messages from one sender are caught at the same
  count as long ones.

Layout
- Shared menu row (wraps to two lines) and segment label (never splits
  a word) used across the app.
- One Scan button on the scanner; consistent settings tile titles;
  contact "last seen" wraps instead of truncating; unfetched repeater
  settings are dimmed.

Localization
- New European Portuguese locale (pt_PT); regional locales are handled
  by the language picker, notifications and the background service.
- Fill 67 missing strings per locale, including backup and restore.
- Keep "Flood" and "Zero Hop" untranslated, shorten "last seen" and
  routing labels, and fix mistranslated scan, theme and hop strings.
- Received-image strings, badge and caption come from translations.
- Regenerate the Czech localizations, which were missing strings.

Docs
- Add documentation/design.md (UI reference) and offline-mode.md;
  update channel, chat, navigation and scanner docs.
2026-11-09 21:18:29 -07:00
zjs81 47f2293a5c Merge pull request #646 from ericszimmermann/ez_backup-restore
Backup and Restore functionality
2026-11-09 07:08:40 -07:00
zjs81 5ea44d6ce9 Tester feedback: routing, bulk select, notifications, map crash
Routing
- Auto routing picks routes by Thompson sampling over faded delivery
  stats (24 h half-life, capped evidence), weighted by what the radio
  currently hears; retries prefer a different route; last attempt floods.
- Route failures are held until a message's fate is known, so an offline
  contact no longer wrecks its route history; failing routes are only
  deleted after a week without a delivery.
- Direct (zero-hop) path is a rotation candidate (#643) and a new Direct
  mode in the routing sheet; history routes are used for repeater logins.
- Remove the route-weight sliders the new chooser no longer uses.

Chats
- Bulk selection in channel chats (spam / not spam / delete / copy) and
  in the Filtered messages list.
- Tapping a search result jumps to the message.
- Swipe-to-reply ignores vertical scrolls.
- Active conversation follows route lifecycle, so covered chats count
  unread again.

Notifications
- Tapping a notification opens its conversation.
- Per-conversation coalescing and one alert per queued-message sync.
- Monochrome status-bar icon; background service stops when the app is
  swiped away; stale notifications cleared on radio or slot change.

Other
- Online map: opaque links and painted dots for dense areas to avoid an
  Impeller GPU crash; expandable hop list on path maps.
- Contact share: clipboard import of shared contacts, "Add again".
- Android: enableEdgeToEdge and scrolling-screenshot support.
- Translations for all new strings; fix mistranslated routing labels.
2026-11-08 23:19:15 -07:00
ericz a020eb30d0 ask for download models and fix problem with reloading discovered list after import. 2026-11-08 14:13:33 +01:00
zjs81 ddf0b9f553 Fix false repeat flags, add repeat-sends setting, limit holiday animations
Message filter:
- Ignore copies of a message already seen (same sender, text and send
  second). Switching between companions re-synced messages the first one
  had delivered; they missed per-radio storage dedup and were flagged as
  repeats.
- Exempt replies and @[name] mentions from repeat detection.
- New "Sends to count as a repeat" setting (2-5, default 2). Each send
  must fall within 10 minutes of the previous one.
- Translations for the new strings in all locales.

Holiday animations:
- Only one plays at a time; greetings arriving while one is playing or
  within 5 seconds after it ends are dropped, not queued.
- Christmas map "self" marker: Santa hat was upside down.
2026-11-08 01:33:05 -07:00
zjs81 c939f7a29c Add Czech, in-chat search, typed-hash path trace and contact sharing
- Czech UI locale (app_cs.arb), selectable in the language picker and as a
  message translation language; language names added to every locale.
- Fix wrong language names: Slovak shown as Slovenian in it/ja/pt/sl,
  garbled Slovak/Bulgarian in pl, Ukrainian in ru, Hungarian in ko/zh.
- Search inside DM and channel chats across the full stored history, with
  highlighted matches; filtered channel messages are excluded.
- Path trace by typed hashes (e.g. A1,B2,C3) from the Contacts and map
  menus, without needing node locations; the map trace panel can hand its
  hops to it.
- Share contacts in chats using the official app's <pubkey:type:name>
  format; received cards have a one-tap Add contact button that reuses the
  QR card import path.
- Translations for all new strings in every locale; docs updated.
2026-11-07 22:31:14 -07:00
ericz 76232c1ad7 clear contacts and channels before restoring. 2026-11-08 03:15:32 +01:00
ericz 79109c2c5c more granular selection and import of official meshcore file. 2026-11-08 02:47:34 +01:00
ericz aae2bf6d60 Backup&Restore 2026-11-08 00:40:23 +01:00
zjs81 394df3109b Merge pull request #640 from zjs81/feature/message-filter
Add channel message filter for spam and repeated messages
2026-11-06 00:54:27 -07:00
zjs81 a9d369f42f Address message filter review findings
False positives
- Same-sender repeats need at least 3 words and 10 characters, so short
  replies ("ok", "test") repeated within 10 minutes stay visible.
- Repeated characters needs a run of 20+ of one non-digit character;
  "Noooooooo!", separators, a row of emoji and long numbers are chat.

Correctness
- Rules apply to stored messages: adding a rule hides matching messages
  already in the chat, and removing or disabling one shows again what only
  it was hiding. Other filter reasons are left alone. Also applied when
  history is loaded.
- The filter runs after mesh dedup, inside _addChannelMessage, so each
  message is evaluated and counted by the duplicate tracker once.
- Channels excluded from filtering no longer feed implicit clean examples
  to the classifier.
- Unread counting and the unread anchor treat filtered messages as normal
  when filtering is off for the channel.

Performance
- Classifier training runs in a background isolate (injectable trainer for
  widget tests); app start-up no longer waits for it.
- Reply previews look up the quoted message through an id index instead
  of scanning the channel per bubble.
- The latest-messages channel sort computes each channel's latest visible
  message once.

Cleanup
- Use MessageFilterText.isStructuredPayload instead of a screen copy.

Docs: message-filter.md explains how each check works, including the
learned classifier, and drops the outdated "new messages only" limit.
2026-11-06 00:54:09 -07:00
zjs81 1332c35884 Add channel message filter for spam and repeated messages
Client-side filter for channel messages, with no model download:
- User rules on message text and/or sender name (contains, whole word,
  exact), normalised for case, accents, zero-width and look-alike letters.
- Automatic checks: repeated characters, same-sender repeats within 10
  minutes, and the same sentence (>= 6 words) from 3+ senders within 30
  minutes. Windows use send times, so synced history is not a flood.
- On-device n-gram classifier trained by Mark as spam / Not spam taps.

Filtered messages are kept, never notify or count as unread, are not
auto-translated or used for channel previews, and are concealed in reply
quotes. They show as a calm, collapsible placeholder that animates open
and closed, or can be hidden completely. Includes a Filtered messages
list, per-channel toggle, settings screen, translations for all locales
and documentation.
2026-11-05 23:35:27 -07:00
zjs81 3eeb15cbff Merge pull request #623 from wared2003/issue-622-reset-default-routing-algo-settings
Implements Issue #622: Add ability to reset routing algorithm settings to factory defaults.
2026-11-05 23:09:19 -07:00
Logan Rawlins c7847f0d9e add arm64 appimage 2026-11-01 15:05:12 -07:00
Logan Rawlins c19cd28de8 fix CI build pipeline 2026-11-01 14:27:34 -07:00
Logan Rawlins b60e18fe6b init appimage building 2026-11-01 13:36:57 -07:00
zjs81 bfaa00bb38 Document themes, chat backgrounds and automatic holiday themes 2026-10-31 14:09:29 -07:00
edouard 3032be9bad feat: add reset to default for routing algorithm settings (#622)
- Add Reset button in routing settings with Icons.restart_alt
- Extract default values as constants in AppSettings to avoid duplication
- Add translations for all 18 supported languages
- Update documentation in settings.md
2026-10-31 04:53:21 +01:00