Skip to content

Nodelist: choice of long or short name#7926

Merged
thebentern merged 19 commits into
meshtastic:developfrom
l0g-lab:nodelist_updates
Oct 12, 2025
Merged

Nodelist: choice of long or short name#7926
thebentern merged 19 commits into
meshtastic:developfrom
l0g-lab:nodelist_updates

Conversation

@l0g-lab

@l0g-lab l0g-lab commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

Platform: ESP32

Description

I am looking at implementing the ability to use node long names for certain screen sizes in the NodeListRenderer.cpp file. Many nodes in my area are owned by the same person, causing duplicates on the node list page. Using long names for certain screen sizes removes these "duplicates".

At first, minimal changes were required, but I thought it may be a good idea to add a menu option instead of just making it a default setting.

Based on existing code, it seems like an #if #else #endif based on device or screen type/size would follow the standards of what you guys have so far.

I have done some testing, but would welcome additional extended testing. Also, suggestions on device or screen types to build this functionality for is needed as right now it only supports the LilyGo T-Pager.

This is my first PR but looking forward to contributing.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)
    • LilyGo T-Pager

@CLAassistant

CLAassistant commented Sep 8, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@l0g-lab

l0g-lab commented Sep 9, 2025

Copy link
Copy Markdown
Contributor Author

This is code for #7926

@fifieldt fifieldt added the enhancement New feature or request label Sep 9, 2025
Comment thread src/mesh/generated/meshtastic/config.pb.h Outdated
@fifieldt

fifieldt commented Sep 9, 2025

Copy link
Copy Markdown
Member

Thanks @l0g-lab . Might want to update the PR text at the top with a description (can probably copy bits from the Github issue). Just means people can review without going to another link.

@fifieldt fifieldt requested review from Xaositek and Copilot September 9, 2025 03:29

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 implements configurable node name display length by adding a menu option to toggle between long and short node names in the node list display.

Key changes include:

  • Added a new menu option to switch between long and short node names
  • Modified the node name retrieval logic to respect the configuration setting
  • Added menu infrastructure to support the new functionality

Reviewed Changes

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

File Description
src/graphics/draw/NodeListRenderer.cpp Updates getSafeNodeName() function to use long or short names based on config setting
src/graphics/draw/MenuHandler.h Adds node_name_length_menu enum and nodeNameLengthMenu() declaration
src/graphics/draw/MenuHandler.cpp Implements the node name length menu functionality and integrates it into screen options

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/graphics/draw/NodeListRenderer.cpp
Comment thread src/graphics/draw/NodeListRenderer.cpp Outdated
Comment thread src/graphics/draw/MenuHandler.cpp Outdated
Comment thread src/graphics/draw/MenuHandler.cpp Outdated
int options = 1;

#if defined(T_LORA_PAGER)
optionsArray[options] = "Node Name Length";

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.

I think we should call this something more aligned to the product "Show Long/Short Name"

Comment thread src/graphics/draw/NodeListRenderer.cpp
@fifieldt fifieldt changed the title Nodelist updates Nodelist: choice of long or short name Sep 9, 2025
@l0g-lab l0g-lab requested a review from Xaositek September 10, 2025 21:34

@Xaositek Xaositek 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.

Looks good with the changes.

@Xaositek Xaositek added the baseui Issues directly related to BaseUI label Sep 11, 2025
@Xaositek

Copy link
Copy Markdown
Contributor

@l0g-lab You will need to run trunk to get this through CI.

@l0g-lab

l0g-lab commented Sep 22, 2025

Copy link
Copy Markdown
Contributor Author

Protobuf changes have been added to their master branch. My latest commit removes what should be auto-generated.

@l0g-lab

l0g-lab commented Sep 25, 2025

Copy link
Copy Markdown
Contributor Author

For this to get merged, do we wait for additional review? I see there are a large number of pending PRs, so not expecting anything right away but I'm interested in what the rest of this looks like.

@thebentern thebentern requested a review from Copilot September 25, 2025 01:42

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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/graphics/draw/NodeListRenderer.cpp Outdated
Comment thread src/graphics/draw/NodeListRenderer.cpp Outdated
Comment thread src/graphics/draw/MenuHandler.cpp Outdated

@Xaositek Xaositek 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.

Made a couple comments along the way - that extra log line can likely be removed when you've completed development of this feature.

@thebentern thebentern requested a review from Copilot October 12, 2025 12:42

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

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


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/graphics/draw/NodeListRenderer.cpp
Comment thread src/graphics/draw/NodeListRenderer.cpp
@thebentern thebentern merged commit 7537d28 into meshtastic:develop Oct 12, 2025
65 checks passed
@l0g-lab l0g-lab deleted the nodelist_updates branch October 13, 2025 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

baseui Issues directly related to BaseUI enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants