Skip to content

Dev guessed locations#264

Merged
zjs81 merged 4 commits into
mainfrom
dev-guessed-locations
Mar 6, 2026
Merged

Dev guessed locations#264
zjs81 merged 4 commits into
mainfrom
dev-guessed-locations

Conversation

@zjs81

@zjs81 zjs81 commented Mar 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

zjs81 added 2 commits March 6, 2026 15:02
Adds map_showGuessedLocations and map_guessedLocation to app_en.arb and translates them across all 14 supported locales. Regenerates dart localizations.
@zjs81

zjs81 commented Mar 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c479f9121

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/map_screen.dart Outdated
Comment thread lib/services/path_history_service.dart
@zjs81

zjs81 commented Mar 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2770ef028

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/path_trace_map.dart Outdated
Comment on lines +292 to +293
final lastHop = pathData.last;
final peers = connector.contacts

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use contact-side hop when inferring traced target location

When PathTraceMapScreen is opened with flipPathRound: true (as in the chat/path-management entry points added in this commit), pathData is a round-trip sequence, so pathData.last is on the local side rather than the target side. Inferring the target endpoint from this byte places the guessed target near the wrong repeater and then extends the polyline to that wrong endpoint, producing a misleading route map for these traces.

Useful? React with 👍 / 👎.

Comment on lines +180 to +181
final cacheKey =
'$filteredKeys|$anchorKeys|${pathHistory.version}:${connector.currentSf}:${connector.currentBwHz}:${connector.currentTxPower}:${settings.mapShowGuessedLocations}';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recompute guessed locations when contact routes or GPS change

This cache key is based on contact key lists and radio settings, but _computeGuessedLocations also depends on mutable per-contact route and location data (contact.path, and anchor latitude/longitude). If an existing contact's route or GPS changes without changing membership, _cachedGuessedLocations is reused and stale guessed markers remain until some unrelated key changes.

Useful? React with 👍 / 👎.

@zjs81 zjs81 merged commit bd34bb5 into main Mar 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant