Skip to content

Refactor contact handling and other improvments#317

Merged
wel97459 merged 12 commits into
devfrom
dev-pathtraceFixes
Mar 27, 2026
Merged

Refactor contact handling and other improvments#317
wel97459 merged 12 commits into
devfrom
dev-pathtraceFixes

Conversation

@wel97459

Copy link
Copy Markdown
Collaborator

This pull request introduces several enhancements to the MeshCoreConnector class, including improved contact management and polling interval configurability, as well as updates to localization files to add new CLI command strings in multiple languages. Additionally, there are minor protocol constant adjustments.

Key changes include:

MeshCoreConnector improvements

  • Added a configurable radio stats polling interval via the new setPollingInterval method, allowing dynamic adjustment between 1 and 60 seconds. The polling timer now uses this interval. [1] [2]
  • Improved contact management:
    • The allContacts getter now excludes the current device from discovered contacts.
    • Added allContactsUnfiltered to return all contacts without filtering.
    • Introduced getFromDiscovered to merge additional data from discovered contacts when handling contact frames, and updated _handleContact to use this method. [1] [2] [3]

Protocol constant updates

  • Fixed the ordering and definition of protocol command constants in meshcore_protocol.dart.

Localization updates

Minor formatting

  • Minor formatting changes in the English .arb file for consistency.

@wel97459

Copy link
Copy Markdown
Collaborator 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: c76796cdc3

ℹ️ 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/connector/meshcore_connector.dart Outdated
Comment thread lib/connector/meshcore_connector.dart
@wel97459 wel97459 merged commit d0e3767 into dev Mar 27, 2026
6 checks passed
wel97459 added a commit that referenced this pull request Apr 5, 2026
* Refactor contact filtering and improve localization strings; enhance path trace handling

* Add localization for new CLI commands and update existing strings

* Enhance contact handling and UI updates across multiple screens
add unfiltered contact access and improve last seen resolution

* Add polling interval configuration and improve contact handling

* Reorder command constants for better organization and clarity

* Refactor contact handling by removing unnecessary mapping and improving clarity across multiple screens

* Moved RadioStatsIconButton in chat screen for improved UI consistency

* Added indicators to AppBar for channels

* Ignore contacts with self public key in contact handling

* Simplify path removal logic and clean up unused imports in path management dialog

* Enhance path hop resolution by adding distance checks to improve candidate selection accuracy

* Remove unnecessary reset of radio stats poll reference count in polling interval setter
446564 pushed a commit that referenced this pull request Apr 9, 2026
* Refactor contact filtering and improve localization strings; enhance path trace handling

* Add localization for new CLI commands and update existing strings

* Enhance contact handling and UI updates across multiple screens
add unfiltered contact access and improve last seen resolution

* Add polling interval configuration and improve contact handling

* Reorder command constants for better organization and clarity

* Refactor contact handling by removing unnecessary mapping and improving clarity across multiple screens

* Moved RadioStatsIconButton in chat screen for improved UI consistency

* Added indicators to AppBar for channels

* Ignore contacts with self public key in contact handling

* Simplify path removal logic and clean up unused imports in path management dialog

* Enhance path hop resolution by adding distance checks to improve candidate selection accuracy

* Remove unnecessary reset of radio stats poll reference count in polling interval setter
446564 pushed a commit that referenced this pull request Apr 9, 2026
* Refactor contact filtering and improve localization strings; enhance path trace handling

* Add localization for new CLI commands and update existing strings

* Enhance contact handling and UI updates across multiple screens
add unfiltered contact access and improve last seen resolution

* Add polling interval configuration and improve contact handling

* Reorder command constants for better organization and clarity

* Refactor contact handling by removing unnecessary mapping and improving clarity across multiple screens

* Moved RadioStatsIconButton in chat screen for improved UI consistency

* Added indicators to AppBar for channels

* Ignore contacts with self public key in contact handling

* Simplify path removal logic and clean up unused imports in path management dialog

* Enhance path hop resolution by adding distance checks to improve candidate selection accuracy

* Remove unnecessary reset of radio stats poll reference count in polling interval setter
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