From af1776f83c71ad9d85e3df2f78905d91cfd97c97 Mon Sep 17 00:00:00 2001 From: Strycher Date: Mon, 29 Jun 2026 17:31:19 -0400 Subject: [PATCH] fix(#150): width-aware map path-trace builder display (group hops, not bytes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The map "Current path" panel joined _pathTrace byte-by-byte, so once the builder started capturing the full configured-width prefix per tap (#150), a single 2-byte node read as "84,f4" — looking like two hops. Format via PathHelper.formatPathHex at the configured width so it reads "84F4". Bumps build to +49 for the b49 test binary. Co-Authored-By: Claude Opus 4.8 --- lib/screens/map_screen.dart | 7 ++++--- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/screens/map_screen.dart b/lib/screens/map_screen.dart index 7816d39..3b1ae3f 100644 --- a/lib/screens/map_screen.dart +++ b/lib/screens/map_screen.dart @@ -2391,9 +2391,10 @@ class _MapScreenState extends State { style: TextStyle(fontSize: 12, color: Colors.grey[700]), ), SelectableText( - _pathTrace - .map((b) => b.toRadixString(16).padLeft(2, '0')) - .join(','), + PathHelper.formatPathHex( + _pathTrace, + context.read().pathHashByteWidth, + ), style: TextStyle(fontSize: 18), ), // const SizedBox(height: 6), diff --git a/pubspec.yaml b/pubspec.yaml index 7df36fd..bae4e47 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.2-rc.1+48 +version: 1.1.2-rc.1+49 environment: sdk: ^3.9.2