Commit Graph
1203 Commits
Author SHA1 Message Date
renovate-bot aa53129ebe Update https://git.rfa.cz/tth-pub/ci-actions action to v9 2026-10-28 02:55:41 +00:00
renovate-bot da825add04 Merge pull request 'Update Node.js to v26' (#11) from renovate/node-26.x into tth
build / ci-image (push) Successful in 2m9s
build / build (push) Failing after 2m44s
2026-10-28 01:56:57 +01:00
renovate-bot 099a64f9b0 Update Node.js to v26 2026-10-28 00:56:53 +00:00
renovate-bot 043990ca4a Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v8' (#10) from renovate/major-ci-actions into tth
build / ci-image (push) Successful in 9s
build / build (push) Successful in 11m29s
2026-10-26 19:56:34 +01:00
renovate-bot da06b064ae Update https://git.rfa.cz/tth-pub/ci-actions action to v8 2026-10-26 18:56:32 +00:00
renovate-bot 124eccd815 Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v7' (#9) from renovate/major-ci-actions into tth
build / ci-image (push) Successful in 9s
build / build (push) Successful in 10m59s
2026-10-26 17:55:35 +01:00
renovate-bot 4c46e06863 Update https://git.rfa.cz/tth-pub/ci-actions action to v7 2026-10-26 16:55:34 +00:00
renovate-bot 189d540699 Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v6' (#8) from renovate/major-ci-actions into tth
build / ci-image (push) Successful in 10s
build / build (push) Failing after 7m1s
2026-10-26 16:53:08 +01:00
renovate-bot d96cadd658 Update https://git.rfa.cz/tth-pub/ci-actions action to v6 2026-10-26 15:53:07 +00:00
renovate-bot 59ce43321b Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v5' (#6) from renovate/major-ci-actions into tth
build / ci-image (push) Successful in 7m19s
build / build (push) Failing after 25m26s
2026-10-26 14:28:56 +01:00
renovate-bot ba3c2ff172 Update https://git.rfa.cz/tth-pub/ci-actions action to v5 2026-10-26 13:28:54 +00:00
tthandClaude Opus 5.5 05afa912c4 ci: thin CI image, Android SDK packages from actions/cache
build / ci-image (push) Successful in 6m8s
build / build (push) Successful in 30m19s
With the NDKs baked in the CI image was 14 G in grg-runner's 48 G
RAM-backed image store: it filled the store (run 54264, Gradle "No space
left on device") and the runner cleanup evicts such images under
pressure, so it would have been rebuilt most runs.

The image is now Flutter + node + cache paths only (seconds to build);
the SDK packages Gradle installs (NDKs, CMake, build-tools, platform)
are their own actions/cache entry, stored on the runner's disk, keyed by
the Gradle build files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 10:30:33 +01:00
tthandClaude Opus 5.5 3bdb46c815 ci: prebuilt CI image with the Android SDK, Gradle and pub cache
build / ci-image (push) Successful in 10m38s
build / build (push) Failing after 5m36s
Every build started from the bare Flutter image: Gradle installed two
NDKs, build-tools, platform 35 and CMake (~4 min) and resolved all its
dependencies from scratch (assembleRelease 13-17 min).

.gitea/ci/Dockerfile adds those SDK packages, the Android engine
artifacts and node (for JS actions). The ci-image job builds it into the
Docker of the big runner, tagged by the Dockerfile hash, and reuses it
otherwise. actions/cache keeps the Gradle home (with the build cache on)
and the pub cache. The build warns when Gradle still installs an SDK
package, i.e. when upstream moved to a new NDK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:11:57 +01:00
tthandClaude Opus 5.5 e8ea12c1c9 Merge upstream/dev: repeater settings from a spec list (#614)
Conflict in repeater_settings_screen.dart: upstream #614 made the
fetch-on-open of the settings screen opt-in (autoFetchRepeaterSettings,
off by default) - what our kFetchRemoteOnOpen did there. Take upstream's
setting so its toggle works; kFetchRemoteOnOpen stays for status,
telemetry and neighbours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:09:26 +01:00
zjs81 ac28dac575 Merge pull request #614 from zjs81/feat/repeater-settings-specs
Build repeater settings from a spec list and stop fetching them on open
2026-10-25 14:50:19 -07:00
zjs81 705267d98f Build repeater settings from a spec list and stop fetching them on open
Repeater settings:
- Each setting is declared once in repeaterSettingSpecs (key, section,
  input type, range, step, labels); the screen builds its control,
  refresh and save command from that list.
- Add flood.max.advert, flood.max.unscoped, rxdelay, cad, adc.multiplier
  and extra.sf. adc.multiplier and extra.sf note their hardware limits
  (extra.sf is LR2021 only and its get reply has no "> " prefix).
- Settings can be edited before they are fetched; only edited ones are
  sent. set radio needs freq, bw, sf and cr together, so a missing one
  is reported instead of silently skipping the radio.
- Check tx delays against the firmware's 0-2 range.
- Keep the not-loaded hint's list slot so the Advanced card doesn't
  collapse when the first value arrives.
- New "Auto-fetch repeater settings" app setting, off by default: each
  get is a LoRa round trip.

Fixes:
- Adding a discovered contact sent its advert time as lastmod, making it
  the oldest contact; with overwrite-oldest on a full table the next add
  evicted it and it reappeared in the discovered list. Let the radio
  stamp its own clock.
- Snackbars replace each other instead of queueing.

Translations: add the new strings in all locales and fix widespread
mistranslations in hu, ko, sk, sl and uk.
2026-10-25 14:46:31 -07:00
renovate-bot 645a6a8a9b Merge pull request 'Update CI actions (major)' (#4) from renovate/major-ci-actions into tth
build / build (push) Successful in 40s
2026-10-25 22:02:09 +01:00
renovate-bot 5c29760926 Update CI actions 2026-10-25 21:02:07 +00:00
renovate-bot 993001a2f2 Merge pull request 'Pin ghcr.io/cirruslabs/flutter Docker tag to 46691e3' (#3) from renovate/ci-actions into tth
build / build (push) Successful in 25m33s
2026-10-25 22:01:52 +01:00
renovate-bot c45442f09d Pin ghcr.io/cirruslabs/flutter Docker tag to 46691e3 2026-10-25 20:11:43 +00:00
upstream-sync-bot 65097d053d Merge upstream/dev (8 commits) [upstream-sync] 2026-10-25 18:41:24 +00:00
tthandClaude Opus 5.5 28f514728f ci: Trivy gate and gitleaks block the release (phase 2), gitleaks v3
build / build (push) Successful in 17m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:40:41 +01:00
zjs81 929d371061 Merge pull request #613 from zjs81/fix/path-timeout-prediction-bugs
Fix path history and timeout prediction bugs
2026-10-25 11:37:58 -07:00
zjs81 82dcab1d92 Fix timeout observations, drop the last-rx feature and evict weak paths
- Record delivery observations with the path of the attempt the ACK
  belongs to, and skip ambiguous ACKs, so a late direct ACK is not
  learned as a flood delivery.
- Remove secondsSinceLastRx from the timeout model: it measured time
  since any companion frame, which was near zero at train and predict.
- When a contact's path history is full, evict the lowest-scoring path
  instead of silently dropping new discoveries.
2026-10-25 11:36:13 -07:00
zjs81 6bc6143c4e Merge pull request #612 from zjs81/fix/small-screens-telemetry-location
Fix small-screen layouts and show telemetry locations on the map
2026-10-25 11:26:52 -07:00
zjs81 5e3dc897ba Document map location requests, telemetry positions and the contact row
Explain Update location, which nodes include a position and why, when a
newer advert replaces a telemetry position, and the new contact row.
2026-10-25 11:26:15 -07:00
zjs81 6213da118e Arm the telemetry send ack only after preparing the path
A background retry's RESP_CODE_SENT arriving while the path was being
prepared was taken as the telemetry request's ack, so its tag and timeout
replaced ours and a sensor's tagged reply was rejected.
2026-10-25 11:26:15 -07:00
zjs81 dfc4cd54d8 Keep telemetry fixes off the advert timestamp and across full syncs
Writing the telemetry time into lastSeen sent the phone's clock back to
the radio as the node's advert timestamp on the next path or flag write,
which could later make the radio's record look newer and drop the fix.
The fix now records its own telemetryFixAt and leaves lastSeen as the
advert time; the map and lists show the later of the two as last heard.

A full contact sync (pull to refresh, reconnect) cleared the list before
the radio resent it, so fixes were lost even for an unchanged advert.
They are now held for the sync and restored onto matching records.
2026-10-25 11:17:44 -07:00
tthandClaude Opus 5.5 50eadc683e ci: shared actions @v2 (fix: my patch produced the non-existent tag @v1.2.2)
build / build (push) Successful in 18m5s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:12:36 +01:00
zjs81 979e1a7d2a Fix layouts on small screens and large text, and test every screen
Contact rows give the name its own line (wrapping to two) with route and
last seen below, right-aligned on wide windows. Fixes overflows found by a
new widget test that renders every screen at 320x568 with text scales up to
2.0 and on a desktop window: region dropdown, contacts list, repeater CLI,
status grid and settings card, map cache buttons, and empty states.
Dropdowns truncate long labels, and option sheets and dialogs scroll.
2026-10-25 11:10:27 -07:00
zjs81 f0144ca959 Show telemetry GPS fixes on the map and add a map location request
Telemetry replies carried a GPS fix that was only shown on the telemetry
screen, so the map kept the node at its last advert position. The fix now
updates the contact and survives radio contact refreshes until the node
adverts again (compared on the node's own advert clock). The map node card
gains an "Update location" button for companions and sensors; repeaters
and rooms only share GPS with logged-in admins, so they don't get it.
2026-10-25 11:10:27 -07:00
tthandClaude Opus 5.5 487fa1bf54 ci: gitleaks on the pushed commits and trivy config (warn), shared actions v1.2
build / build (push) Failing after 2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:05:21 +01:00
tthandClaude Opus 5.5 e754567c7b Terminal message bubbles pass the public IPFS gateway
Upstream made publicGateway a required parameter of
MessageUrlImageFutureBuilder; the terminal-theme bubbles in chat and
channel chat are ours and did not pass it, so the merge did not compile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:05:21 +01:00
tthandClaude Opus 5.5 9489dee1c3 Merge upstream/dev: Android Auto as opt-in flavor, decluttered map overlay
build / build (push) Failing after 3m2s
Conflicts: the manifest keeps our unread widget receiver and drops the
Android Auto meta-data, which upstream moved to the androidAuto source set
(fe7e72a). Rename detection had moved our unread_widget_info.xml into that
source set with it; it stays in main. _mapChip is gone upstream with the
map overlay declutter (ed5884e), so our terminal-theme restyle of it goes
too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:00:11 +01:00
tthandClaude Opus 5.5 d570ba70ed ci: Trivy gate on the dependency lockfiles before the APK is built and released, SBOM to Dependency-Track
build / build (push) Failing after 17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:54:48 +01:00
zjs81 d2eff6eb78 Merge pull request #611 from zjs81/perf/coalesce-persistence
Batch per-frame persistence so busy meshes don't stall the UI
2026-10-25 00:04:10 -07:00
zjs81 603172b3ec Batch per-frame persistence so busy meshes don't stall the UI isolate
Every received packet copy re-saved its channel's whole history, every
unread change re-saved the channel list, and adverts/path records re-saved
full contact and path-history blobs. Under load the SharedPreferences
backlog starved the Dart event loop (frames and timers stopped), the radio's
offline queue overflowed, and CPU stayed pinned after traffic ended.

- Add CoalescedWrites: keeps the latest write per key and runs them once
  per window (750 ms; 5 s for path history). Writes start synchronously so
  stores still read the current scoped key.
- Flush before the app is backgrounded, on disconnect, before switching
  radios, before the channel slot map changes, before channel history
  reloads, before deleteChannel drops a list, and before path history
  reloads an evicted contact.
- Cap in-memory channel history at ChannelMessageStore.maxStoredMessages;
  storage already kept only that many, but the list grew unbounded during a
  session and every save grew with it.
- Cache Contact.publicKeyHex and build pubKeyToHex from a hex-digit lookup; it was
  rebuilt on every equality/hash and per-advert contact scan.

Load test (fake TCP radio, 350 contacts, 17 channels, 10-150 packets/s,
Linux profile build): CPU at 10 packets/s 104% -> 45%, recovers to idle
after traffic instead of staying at 160%, and queued messages drained went
from 555 to 3237 over the same run.
2026-10-24 23:38:28 -07:00
zjs81 eab1ad2964 Merge pull request #610 from zjs81/channel-qr-scan
Scan official MeshCore channel QR codes
2026-10-24 22:31:34 -07:00
zjs81 f58a76904a Reject malformed channel QR links and document channel QR scanning
A name with invalid percent-encoding (e.g. name=%FF) made
Uri.queryParameters throw from the scanner's validator. The parser now
returns null for it, with a regression test.

Update the channels and additional-features guides for the renamed
"Scan a QR Code" option, the supported channel link format, and its
limits.
2026-10-24 22:30:51 -07:00
zjs81 b1e968e7bf Scan official MeshCore channel QR codes
The QR scanner only read community codes, so the standard
meshcore://channel/add?name=...&secret=... links used by the official
app and sites like ipnt.uk were rejected as invalid community codes.

The scanner now also accepts channel links. It skips channels already on
the radio, asks before adding, and only uses a free slot after the
channel sync has finished. Also fills in the 59 untranslated strings in
all 17 locales.

Fixes #604
2026-10-24 22:26:09 -07:00
zjs81 b6c67b113c Merge pull request #593 from ericszimmermann/ez_share_urlimage_PR
Share url image or file via ipfs upload
2026-10-24 22:05:30 -07:00
zjs81 a4670a9275 Add a setting to show link images in all chats by default
'Show link images in all chats by default' (default off) applies to
every channel and contact without an explicit per-chat choice: the
per-chat setting is now unset/on/off and resolves to perChat ?? default.
The 'Load images from links' master switch still overrides it.
2026-10-24 22:01:30 -07:00
zjs81 79e3668c18 Add a global switch to stop loading images from links
'Load images from links' (default on) gates every link image fetch in
MessageUrlImageHelper: chat previews, notification images, ipfs://
resolution and pyx/ibb scraping. Per-chat toggles keep their values but
are disabled while it is off. IPFS uploads are unaffected.
2026-10-24 22:01:29 -07:00
zjs81 7f5f71d070 Hide the IPFS API key and keep keyboard focus from corrupting it
Obscure the key with a show/hide toggle like the map API key dialog,
clear and restore the mask on focus changes instead of onTap, and only
save a key the user actually edited. Add ipfs.io as a named public
gateway preset now that it is the default.
2026-10-24 22:01:11 -07:00
zjs81 ee302f647b Keep the public IPFS gateway the user chose
Default to https://ipfs.io/ipfs/ like dev, keep saved gateways as they
are, and keep an explicitly cleared gateway deactivated across restarts
instead of rewriting public gateways to empty on every load.
2026-10-24 22:01:11 -07:00
zjs81 c111835bd0 Localize IPFS upload and attach messages
Give IpfsUploadConfigException a reason enum mapped to l10n strings in
the attach flow, and show a localized empty-file message and generic
upload-failed message instead of raw English exception text.
2026-10-24 21:58:39 -07:00
zjs81 34db64d7af Never silently truncate the draft when attaching an IPFS link
Check before uploading that the link (from the gateway and a CIDv1-sized
placeholder) fits with the draft and the reply prefix, and tell the user
when it doesn't instead of cutting their text. The channel limit now
counts the @[name] reply prefix like the send path.
2026-10-24 21:57:55 -07:00
zjs81 084a8fb98b Show IPFS upload configuration errors instead of failing silently
Throw IpfsUploadConfigException for upload configuration problems, and
route every failure in the attach flow to the user, so a missing key or
bad endpoint no longer escapes as an unhandled ArgumentError.
2026-10-24 21:57:35 -07:00
zjs81 cc33595f13 Share the IPFS link attach flow between the chat screens
Move the pick/read/upload/insert flow that was copied into both chat
screens into helpers/ipfs_link_attach_flow.dart; each screen passes only
its byte limit and outbound encoder.
2026-10-24 21:57:12 -07:00
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