Skip to content

Consolidate drawGps related code - #11304

Merged
thebentern merged 3 commits into
developfrom
baseui_drawGps_consolidation
Aug 1, 2026
Merged

Consolidate drawGps related code#11304
thebentern merged 3 commits into
developfrom
baseui_drawGps_consolidation

Conversation

@Xaositek

@Xaositek Xaositek commented Jul 31, 2026

Copy link
Copy Markdown
Contributor
  • Consolidate drawGps related code
  • Remove redundant drawSatelliteIcon
  • Move gps_mode logic within drawGps

Regression tested on Meshnology W12 (Two Color), RAK4631, Cardputer

Summary by CodeRabbit

  • Bug Fixes
    • Improved GPS status display across device and position screens.
    • Added distinct messaging for disabled, unavailable, disconnected, unlocked, locked, and fixed-position states.
    • Updated position details to show information based on the active GPS mode or fixed-position settings.

@Xaositek Xaositek self-assigned this Jul 31, 2026
@Xaositek Xaositek added baseui Issues directly related to BaseUI 2.8 cleanup Code cleanup or refactor labels Jul 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚡ Try this PR in the Web Flasher

Note

Building this pull request… the flash button, badges and supported-board
list will appear here automatically once CI finishes.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7eda1309-fd18-4fc3-ad76-ff116209780a

📥 Commits

Reviewing files that changed from the base of the PR and between 453f885 and 3b72627.

📒 Files selected for processing (1)
  • src/graphics/draw/UIRenderer.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/graphics/draw/UIRenderer.cpp

📝 Walkthrough

Walkthrough

Changes

GPS rendering

Layer / File(s) Summary
Explicit GPS state rendering
src/graphics/draw/UIRenderer.cpp
drawGps now renders distinct status text for fixed, absent, disabled, disconnected, unlocked, and locked GPS states.
Shared GPS rendering integration
src/graphics/draw/UIRenderer.cpp
Device-focused and compass/location screens use drawGps. GPS detail rows now depend on GPS configuration state instead of displayed text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: thebentern, harukitoreda

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the primary change: consolidating GPS drawing code.
Description check ✅ Passed The description summarizes the GPS changes and lists regression testing on three supported devices.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch baseui_drawGps_consolidation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/graphics/draw/UIRenderer.cpp`:
- Around line 521-528: Update the GPS status logic in UIRenderer so
config.position.fixed_position is checked before branching on gps_mode, ensuring
fixed-position mode always displays “Fixed GPS,” including when GPS mode is
ENABLED. Preserve the existing GPS-disabled and satellite-status handling for
non-fixed positions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f65ce501-1a4c-4da5-b1fc-988ee33d8d49

📥 Commits

Reviewing files that changed from the base of the PR and between e2460b5 and 453f885.

📒 Files selected for processing (1)
  • src/graphics/draw/UIRenderer.cpp

Comment thread src/graphics/draw/UIRenderer.cpp Outdated
@thebentern
thebentern added this pull request to the merge queue Aug 1, 2026
Merged via the queue into develop with commit 1d2fb23 Aug 1, 2026
56 checks passed
@Xaositek
Xaositek deleted the baseui_drawGps_consolidation branch August 1, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.8 baseui Issues directly related to BaseUI cleanup Code cleanup or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants