Skip to content

reimplement location aware snr-indikator after alpha7#299

Merged
446564 merged 4 commits into
zjs81:devfrom
ericszimmermann:ez_location-snr
Apr 8, 2026
Merged

reimplement location aware snr-indikator after alpha7#299
446564 merged 4 commits into
zjs81:devfrom
ericszimmermann:ez_location-snr

Conversation

@ericszimmermann

Copy link
Copy Markdown
Contributor

Pull Request for Location aware SNR-Indicator after the alpha7 Release.

Copilot AI review requested due to automatic review settings March 15, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reintroduces a location-aware mapping from “direct repeater first-byte” to a concrete Contact (name) for the SNR indicator UI, aligning behavior with the post-alpha7 location features.

Changes:

  • Register path_provider_foundation for macOS (generated plugin registrant update).
  • Update SNRIndicator to resolve repeater display names via a location-aware contact lookup using the device’s current lat/lon.
  • Add getRepeaterPrefixMatchNearLocation(...) helper in contact_search.dart to pick the best repeater/room candidate, optionally using proximity.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
macos/Flutter/GeneratedPluginRegistrant.swift Adds Path Provider plugin registration for macOS build.
lib/widgets/snr_indicator.dart Uses self location to choose the most relevant repeater contact for display.
lib/utils/contact_search.dart Introduces location-aware repeater/room candidate selection helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread lib/utils/contact_search.dart Outdated
Comment thread lib/utils/contact_search.dart Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 15, 2026 11:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reintroduces a location-aware mapping from repeater SNR entries to Contact names after the alpha7 release, aiming to pick the most relevant repeater contact (optionally near the user’s current location).

Changes:

  • Register path_provider_foundation for macOS plugin setup.
  • Update SNRIndicator to resolve repeater names via a location-aware contact lookup using the node’s current coordinates.
  • Add getRepeaterPrefixMatchNearLocation(...) helper to find repeater/room contacts by pubkey prefix with optional proximity bias.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
macos/Flutter/GeneratedPluginRegistrant.swift Adds PathProvider plugin registration on macOS.
lib/widgets/snr_indicator.dart Uses self location + new helper to resolve repeater display names.
lib/utils/contact_search.dart Introduces location-aware repeater-prefix contact selection helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread lib/widgets/snr_indicator.dart Outdated
Comment thread lib/widgets/snr_indicator.dart
Comment thread lib/utils/contact_search.dart Outdated
@zjs81

zjs81 commented Mar 24, 2026

Copy link
Copy Markdown
Owner

@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: 0ef2194fb0

ℹ️ 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/widgets/snr_indicator.dart Outdated
@446564

446564 commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

I will test and review now

@446564 446564 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@446564

446564 commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

the only issue I can think of is the preference for favorites over snr/distance but that can be a toggle added later

@ericszimmermann

Copy link
Copy Markdown
Contributor Author

That is not correct:
First Prior is always min Distance.
Only if you have no matching Prefix with a Distance or your location is unknown you get to
second Prio: Favorite
and then third Prio: last seen.

He may check favorites first for searching the nearest, but he will choose the nearest match.

Sincerely Eric

@446564

446564 commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator

oh ya that's just the sorting order of the list, sorry :)

@446564 446564 changed the base branch from main to dev April 8, 2026 16:06
@446564 446564 merged commit d9f9ff5 into zjs81:dev Apr 8, 2026
6 checks passed
446564 added a commit that referenced this pull request Apr 8, 2026
added in #299 but appears not needed, flutter removes when building
@ericszimmermann ericszimmermann deleted the ez_location-snr branch April 15, 2026 06:08
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.

4 participants