A meshcore:// link sent in a text or a chat can open the stock MeshCore
app instead of Offband, since both answer it. Links meant to be sent now
use https://offband.app/add/..., which Android opens in Offband once the
domain verifies (#1309). QR codes stay meshcore://, so the stock app can
still scan an Offband QR.
- The channel QR dialog gets a Copy link button that copies the https
link. The My contact QR dialog shows and copies it.
- Channel.fromShareUri and Contact.fromShareUri read both forms, so the
router, the add-contact paste field and the QR scanners all do.
- The form conversion moves to lib/helpers/share_link_forms.dart, so the
models can use it. A path typed in mixed case reads the same.
- The router holds a contact link as received; the dialog reads either
form.
- New strings "Copy link" and "Channel link copied", English only for
now.
Agent: StormyElk (session 088ce922)
A share link can now be https://offband.app/add/channel#... or
/add/contact#..., on offband.app or dev.offband.app. The fields sit after
the #, which browsers never send, so a channel secret stays out of the
server's logs. The router turns the link into its meshcore:// twin, so
one parser still reads every form.
- Android: an autoVerify App Links filter for /add/ on both hosts, and
web/.well-known/assetlinks.json with the release key's SHA-256, served
as JSON. A verified link opens Offband with no chooser, so the stock
app, which also answers meshcore://, is out of the way.
- Web: the page's own address arrives as the initial link. Once read it
is cleared from the address bar, so a reload asks nothing.
- A tap on such a link in a chat message opens the add confirmation, as
meshcore:// links already do.
- An /add/ address with broken fields shows the invalid-link message;
the site's other pages are ignored.
iOS Universal Links follow once the Apple team ID and a profile with
Associated Domains are in place.
Agent: StormyElk (session 088ce922)
Three gaps found in review:
- A link in brackets, "(meshcore://...)", took the closing bracket with
it and was reported as invalid. The bracket is now left out unless
the link opened one itself.
- The legacy advert form had no upper length, so a huge link from
another app was decoded in full. An advert fits in one radio packet,
so anything past 255 bytes is refused.
- A channel link with a blank name and a secret was accepted, and
would add a channel with no visible name. It is refused.
Regression tests, each failing against the code before this commit:
- meshcore_linkifier_test: a closing bracket is left out of the link.
- link_router_test: a 256-byte advert link is refused.
- channel_share_uri_test: a blank name is refused even with a secret.
Epic: #1285
Feature: #1280
Agent: StormyElk (session 088ce922)
Every share link now goes through LinkRouter, which parses it and holds
it until its confirmation can be shown. LinkRouterHost, wrapping the home
route, shows that confirmation over whatever screen is open. Nothing is
added without the user confirming.
- Channel links open the channel-add confirmation, now shared with the
QR scanner (confirmAndAddSharedChannel), which keeps the slot-after-
confirm rule from #1021.
- Contact links open the add-contact dialog, already filled in.
- The older meshcore://<advert hex> form that "Copy Advert to Clipboard"
still produces is imported through the radio after a confirmation, the
same as "Add Contact from Clipboard".
- A hashtag link needs no secret: the key is derived from the name, and
#public means the real Public channel.
- With no radio connected, the link waits, with a persistent message, and
its confirmation appears once a radio connects and, for a channel, the
channel table has settled. Only the latest link is held, in memory only.
- A malformed link gets a persistent message instead of nothing.
- A meshcore:// link in a chat message is now tappable and opens this
flow. Before, it was plain text: the URL linkifier only knows http(s).
Regression tests:
- channel_share_uri_test: hashtag links derive the reference app's keys.
- link_router_test: parsing and the holding rules.
- meshcore_linkifier_test: finding links in message text.
- link_router_host_test: wait, confirm, cancel, duplicate, malformed, and
a tap in a message.
Against dev's parser and link handler, 7 of them fail.
New strings are English only; untranslated.json updated.
Epic: #1285
Feature: #1280
Agent: StormyElk (session 088ce922)
#1075: the contact, channel, message and channel-sender menus were plain
Columns in a sheet capped at 9/16 of the screen, so items past the cap were
clipped. A room server's Delete Contact was unreachable on an iPhone. They
now scroll, and the sheet can grow to the safe area.
#1074: a message with an @mention or contact card was built as rich text
whose plain segments were never linkified. Those segments now go through
LinkifySpan with the same options, style and confirm dialog as Linkify.
Three new widget tests fail without the fix and pass with it.
Epic #1078.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
this adds a generator showDismissibleSnackBar which by default allows
tapping to clear snack bar toasts. all SnackBar properties are still
available and the
all callers should now use showDismissibleSnackBar() instead of calling
ScaffoldMessenger.of(context).showSnackBar(SnackBar())
- Companion radio stats: poll and display noise floor, RSSI, SNR, airtime
with dedicated ValueNotifier and ref-counted polling
- Adaptive RF-aware TX backoff based on radio conditions instead of fixed 5s
- Variable-width path hash support (1-3 bytes per hop)
- Air activity dot indicator in app bar with tap to open stats screen
- Jump to oldest unread setting for chat screens
- 1s send cooldown on DM and channel messages
- Link style: theme-aware orange, added EmailLinkifier
- New languages: Hungarian, Japanese, Korean
- Remove dead DeviceScreen and BatteryIndicatorChip
- Remove wakelock_plus dependency
- TX power fields now read as signed int8
- Implemented radio statistics features in multiple screens including chat, channels, and settings.
- Added localization for new strings in Swedish, Ukrainian, and Chinese.
- Introduced a setting to jump to the oldest unread message in chat and channels.
- Enhanced path management and display for contacts and messages.
- Updated app settings to include new boolean for jumping to the oldest unread message.
- Improved battery indicator and radio stats display in the app bar.
- Removed unused wakelock_plus dependency and updated plugin registrations.
formats all dart files using `dart format .` from the root project dir
this makes the code style repeatable by new contributors and makes PR review easier
- Added flutter_linkify package to auto-detect and linkify URLs in chat messages.
- Implemented LinkHandler class to manage link tap confirmations and URL launching.
- Updated chat_screen.dart to use Linkify for displaying message text with links.
- Registered url_launcher plugin for handling URL launches across platforms.
- Updated pubspec.yaml and pubspec.lock to include new dependencies.
- Cleaned up untranslated.json by removing unused translations.