Commit Graph
272 Commits
Author SHA1 Message Date
tthandClaude Opus 5.5 d2db6aff19 Export test: wait for the contacts, not just the node name
setUpAll only waited for selfName; the contacts arrive after the channel
and queue sync, so under the load of the full suite the GPX test ran on an
empty contact list (fails on upstream/dev too, passes alone).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:51:15 +01:00
tthandClaude Opus 5.5 ceab62428a Merge upstream/dev (35 commits) into tth
Conflicts in lib/widgets/mesh_nav_tile.dart and lib/widgets/mesh_ui.dart:
took upstream's iconSlot/ThemedIcon, busy spinner and SectionHeader
description, and re-applied the terminal theme on top (18 dp icons,
narrower gaps and padding, mono section labels).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:47:28 +01:00
celsoazevedoandClaude Opus 5.5 e19316512e Merge upstream dev into settings-actions-feedback
Conflicts came from #708 (merged) also being in this branch; this
branch's versions of settings_screen.dart, settings_pages_test.dart and
settings.md already include it. design.md takes dev's wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:01:24 +00:00
zjs81 0d410b23e6 Merge pull request #711 from zjs81/fix/bulk-selection-test-2x-text
Make bulk selection test find the long-press row at 2.0x text
2026-11-23 23:55:45 -07:00
zjs81 8a5b278062 Make bulk selection test find the long-press row at 2.0x text
Follow-up to #706. The helper matched the row's long-press detector by
vertical distance to the message text, which finds nothing when the bubble
is tall at 2.0x text. Look up the detector as an ancestor of the text.
2026-11-23 23:48:29 -07:00
celsoazevedoandClaude Opus 5.5 5b74383d10 Settings actions: messages and radio progress
Every action ends with a short message: Sync Time ("Time sent to the
radio"), Refresh Contacts, Reboot and Delete All Paths. While Refresh
Contacts or Reboot wait for the radio, the row shows a spinner
(MeshNavTile busy) and the app bar the shared progress bar. Delete All
Paths now says it clears the app's path history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:35:12 +00:00
zjs81 faa9bf3752 Merge origin/dev into feat/bookmarks-ux-improvements 2026-11-23 23:30:35 -07:00
zjs81 7152b2da8c Merge pull request #709 from celsoazevedo/progress-bars
Progress bars: one shared 4px top bar in the theme colour
2026-11-23 23:16:19 -07:00
zjs81 16e9eb3dd8 Merge pull request #708 from celsoazevedo/settings-actions-fixes
Settings actions: theme colours and filled confirm buttons
2026-11-23 23:13:38 -07:00
zjs81 18cd9ce0ec Merge origin/dev into feat/bookmarks-ux-improvements 2026-11-23 23:13:05 -07:00
celsoazevedoandClaude Opus 5.5 c45424adaa Settings actions: theme colours and filled confirm buttons
Reboot and Delete All Paths rows use scheme.tertiary and scheme.error
instead of fixed palette colours. Their dialogs use showConfirmClearDialog,
which gains confirmLabel and warning options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 05:50:55 +00:00
zjs81 7ac2110082 Merge pull request #707 from zjs81/fix/url-image-bubble-adaptive-size
Size URL image previews to the image's aspect ratio
2026-11-23 22:48:14 -07:00
zjs81 54ba703213 Merge origin/dev into feat/bookmarks-ux-improvements 2026-11-23 22:46:35 -07:00
celsoazevedoandClaude Opus 5.5 0aa867e40e Progress bars: one shared 4px top bar in the theme colour
Adds MeshProgressBar and MeshProgressAppBarBottom: 4px, theme progress
colour and track, filling when progress is known, keeping their height
when idle. The sync bar uses them (no more red/blue/green), as do
Repeater "Refresh all", the chess game, chat search and the
line-of-sight map. design.md gets the progress bar rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 05:39:40 +00:00
celsoazevedoandClaude Opus 5.5 8443c1ea0d Settings actions: theme colours and filled confirm buttons
Reboot and Delete All Paths rows use scheme.tertiary and scheme.error
instead of fixed palette colours. Their dialogs use showConfirmClearDialog,
which gains confirmLabel and warning options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 05:31:35 +00:00
zjs81 40fb80cf5c Size URL image previews to the image's aspect ratio
The preview now fills the bubble's available width and takes its height from
the loaded image, capped at 400dp for tall images. Loading and error states
are a compact full-width strip, and the error text is localized.
2026-11-23 22:24:01 -07:00
zjs81 a8b57d54e9 Use each room message's author when bulk-bookmarking 2026-11-23 21:31:54 -07:00
zjs81 d11865b175 Merge remote-tracking branch 'origin/dev' into feat/fast-everywhere-bulk-selection
# Conflicts:
#	lib/screens/chat_screen.dart
2026-11-23 21:16:49 -07:00
zjs81 834bec7ea0 Make chat selection instant and add bulk selection to direct chats 2026-11-23 20:46:50 -07:00
zjs81 6748d5f0f2 Merge pull request #705 from zjs81/feat/compression-menu-page
Move chat compression to the menu with its own page
2026-11-23 20:33:06 -07:00
zjs81 009dfed2ec Merge pull request #702 from celsoazevedo/contact-settings-hop-limit
Contact Settings: add Hop limit
2026-11-23 20:31:44 -07:00
zjs81 f3cdedf7b0 Move chat compression to the menu with its own page
The Compression control leaves the top of DM and channel chats. The
overflow menu now shows Compression: Off|SMAZ|Cyr2Lat and opens a page
with the three options, short notes and the Cyr2Lat profile picker.
Adds SMAZ codec tests.
2026-11-23 20:00:40 -07:00
zjs81 098637af54 Wait for bookmark list attach on search jump and update user guides 2026-11-23 18:47:23 -07:00
zjs81 32977bdd50 Improve bookmarks navigation, scoping, search, and bulk actions
Add Bookmarks to the Contacts overflow menu, open the dedicated BookmarksScreen from direct and channel chat menus with a split scope pill (All vs current chat), add in-screen bookmark search with scroll-and-highlight jump, support bulk bookmarking from channel selection mode and bulk removal in BookmarksScreen, and prompt with a confirmation dialog before removing single or selected bookmarks.
2026-11-23 18:20:19 -07:00
zjs81 d4a6839413 Merge pull request #701 from celsoazevedo/settings-page-dedicated-pages
Settings: open dedicated pages instead of dialogs
2026-11-23 15:27:01 -07:00
celsoazevedoandClaude Opus 5.5 6a5d15209b Contact Settings: add Hop limit
Sets the companion firmware's autoadd_max_hops (optional third byte of
CMD_SET_AUTOADD_CONFIG). The radio only auto-adds contacts heard in
fewer hops than the limit; 0 means no limit. Shown only when the radio
reports the value. Review mode stores it like the firmware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:12:10 +00:00
celsoazevedoandClaude Opus 5.5 fc7bbe9e02 Settings: open dedicated pages instead of dialogs
Node Name, Radio Settings, Location, Contact Settings, Privacy and About
now open pages laid out like App Settings. Settings stored on the radio
are sent only on Save, with a warning when leaving unsaved changes.

- Shared SaveToRadioPage / UnsavedChangesGuard / MeshInfoCard
- Node Name byte counter, Location map picker, About links
- Export Data refresh; Settings text and title consistency
- Radio Settings docs corrected against code and firmware
- design.md: settings pages, Save rules, text and app bar rules

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:21:18 +00:00
zjs81 9120452c7f Recompute translation sheet height cap when insets change 2026-11-23 13:45:25 -07:00
tthandClaude Opus 5.5 63907cb17d Merge upstream/dev (86 commits) into tth
build / ci-image (push) Successful in 10s
build / build (push) Failing after 4m27s
Upstream redesigned the chat composer (bubble, round +/send button,
ChatComposerQuote for the reply preview); our terminal theme had tweaked
the old layout. Took upstream's structure and re-applied the terminal
look to the new widgets: compact panel padding, square bubble, square
button, square and one-line-low reply quote. The terminal reply padding
in channel_chat_screen now lives in ChatComposerQuote, so DMs get it too.

Also fixed for the merge:
- mesh_ui: AvatarCircle uses upstream's avatarInitials() (nullable); the
  terminal glyph falls back to the person icon like upstream does;
- chat_screen: upstream split maxMessageRetries into direct/flood limits,
  the terminal line now shows the bubble's maxSendAttempts;
- test/screens/copy_messages_test.dart: the 1x1 PNG had a bad IDAT CRC.
  Its async decode failure leaked into the next test; upstream's real
  flutter_langdetect hides that by timing, our stub (instant init) does
  not, so the DM test failed ~3 of 5 runs. Replaced with a valid PNG.

Checked in the CI image (Flutter 3.47.9): flutter analyze lib test clean;
flutter test all green except settings_reveal_test "hides Image Messages
sub-options", which fails the same way on plain upstream/dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:43:57 +01:00
zjs81 2ca1ddc1b2 Path map: theme the panels and keep overlays clear of zoom buttons
- Bottom panel, zoom buttons, toggle and panel contents use ColorScheme roles
- On desktop, the observed-path selector and view toggle start past the
  zoom controls
2026-11-22 18:09:17 -07:00
zjs81 a11f13af73 Recover lost game endings and recheck actions after sending
- Finished games answer a behind opponent with the final move
- Keep the resign/draw/timeout packet that ended the game and resend it
- Recheck draw accepts and timeout claims after the send
2026-11-22 18:09:17 -07:00
zjs81 c2877f6875 Harden chess against forged packets and lost moves
- Chain values count once and in order; moves need a fresh value
- Game info carries the inviter's chain value; colours come from the invite
- Accepters keep their seed; unconfirmed sends keep the move and resend it
- Check draw accept and timeout claim preconditions; drop unused minutes
- Notify in the background, keep own games under the cap, 16-bit ply
- Sanitise adopted castling rights, guard incoming handling
- Localised square labels and translations for the new strings
- Restore two Korean strings changed by mistake
2026-11-22 17:44:28 -07:00
zjs81 adead644c7 Merge remote-tracking branch 'origin/dev' into feat/chess 2026-11-22 17:00:35 -07:00
zjs81 185b026a0d Add chess games over channel data
Play and watch chess on a channel via the Chess games entry in the
channel overflow menu. Moves travel as GRP_DATA packets (type 0x0100)
carrying the full position and a hash-chain value for authentication.
Includes translations for all locales.
2026-11-22 17:00:35 -07:00
zjs81 24c8990c68 Merge pull request #693 from zjs81/fix/translation-sheet-safe-area
Keep message translation sheet below top safe area
2026-11-22 09:57:26 -07:00
zjs81 87d276778a Merge pull request #692 from zjs81/fix/composer-plus-menu-upward-animation
Expand composer + menu upward from the button
2026-11-22 09:56:55 -07:00
zjs81 86dd9d3560 Keep message translation sheet below top safe area 2026-11-22 00:25:35 -07:00
zjs81 7699256688 Clamp composer + menu to current viewport on relayout 2026-11-21 23:51:47 -07:00
zjs81 390a4a80fc Expand composer + menu upward from the button 2026-11-21 23:31:55 -07:00
zjs81 eafc4f1152 Check OS permission and reveal child toggles in notification settings 2026-11-21 20:23:00 -07:00
zjs81 5f7370a38a Merge pull request #690 from zjs81/fix/consistent-overflow-menus
Make top-right overflow menus consistent across main views
2026-11-21 18:49:26 -07:00
zjs81 cf4b21ef02 Make top-right overflow menus consistent across main views
Reorder the Channels overflow menu so screen-specific items appear above a divider followed by Connect/Disconnect and Settings, matching Contacts. Add the section divider on Map whenever screen items precede Connect/Disconnect, standardize the overflow tooltip and screen-context callback capture across all three main views via a shared trailing-section helper, and update the UI design reference and widget tests.
2026-11-21 18:37:15 -07:00
zjs81 11345d3bba Preserve link recognizers across rebuilds and document coordinates 2026-11-21 18:14:33 -07:00
zjs81 05b47a037b Add interactive GPS coordinates in messages 2026-11-21 17:43:15 -07:00
zjs81 2f8fcb87d7 Merge pull request #688 from zjs81/feat/single-add-contact-page
Add dedicated Add Contact page with manual public key entry
2026-11-21 14:36:29 -07:00
zjs81 7459bdc242 Merge pull request #677 from zjs81/feat/group-editor-members-first
Show current group members first in the group editor
2026-11-21 14:15:30 -07:00
zjs81 f45b511bcb Add dedicated Add Contact page with manual public key entry
Replace the Contacts add-contact modal sheet and separate menu shortcuts with a unified Add Contact screen supporting manual type/name/public-key entry, clipboard import (meshcore:// URIs, share tokens, and bare 64-hex keys), discovered contacts, and QR scanning.
2026-11-21 14:03:18 -07:00
zjs81 222b45e130 Keep explicit trace contacts and re-resolve on self move
Keep plausible explicit pathContacts authoritative over nearer general contacts sharing a hop prefix while still rejecting impossibly far hops. Re-resolve primary outbound hops, inferred positions, target guess, and map points when _rebuildDisplayPaths runs after self location changes.
2026-11-21 13:44:39 -07:00
zjs81 0cc5fd4e1f Merge origin/dev into feat/group-editor-members-first 2026-11-21 13:26:48 -07:00
zjs81 79f624c743 Ignore impossible hops in path map resolution
Reject repeater matches and peer inferences whose distance from the previous plausible hop anchor exceeds the per-hop LoRa range budget (250 km scaled by consecutive unresolved hops).

Without a known self location, select the anchor chain that explains the most local hops so a single distant prefix collision does not poison resolution for the remaining hops. Apply the same hop-order resolution and anchor-bounded peer inference in PathTraceMapScreen.
2026-11-21 13:14:32 -07:00