Skip to content

Remove Buy sensors links from app UI#1541

Merged
ojousima merged 1 commit intomilestone/3.5from
issue-1532-remove-buy-sensors-links
Mar 3, 2026
Merged

Remove Buy sensors links from app UI#1541
ojousima merged 1 commit intomilestone/3.5from
issue-1532-remove-buy-sensors-links

Conversation

@ojousima
Copy link
Member

@ojousima ojousima commented Mar 3, 2026

closes #1532

Summary

  • remove "Buy Ruuvi sensors" item from the main drawer menu (Compose and legacy XML menu)
  • remove "Buy Ruuvi Sensors" buttons from Add Sensor screen
  • remove click handlers that opened buy-sensors URLs

Review notes

  • localization string files are generated via scripts/ci/update_l10n.sh, so this PR intentionally avoids manual string-key deletions
  • verified compile/resources with:
    • ./gradlew :app:compileWithoutFileLogsDebugKotlin :app:mergeWithoutFileLogsDebugResources
  • no behavior changes beyond removing the buy-sensors entry points

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes all in-app UI entry points that directed users to “Buy Ruuvi sensors”, aligning the app UI with issue #1532 by eliminating the drawer menu item and Add Sensor screen buttons, plus their URL click handlers.

Changes:

  • Removed the “Buy Ruuvi sensors” item from the legacy (XML) main drawer menu.
  • Removed the “Buy Ruuvi sensors” entry from the Compose dashboard drawer and its click handler.
  • Removed “Buy Ruuvi sensors” buttons from the Add Sensor (Add Tag) screen and their associated click listeners.

Reviewed changes

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

File Description
app/src/main/res/menu/menu_main.xml Removes legacy drawer menu group/item for buying sensors.
app/src/main/res/layout/content_add_tag.xml Removes buy-sensors buttons from the Add Sensor screen layout.
app/src/main/java/com/ruuvi/station/app/ui/MainMenu.kt Removes Compose drawer menu item and URL-opening handler for buy sensors.
app/src/main/java/com/ruuvi/station/addtag/ui/AddTagActivity.kt Removes visibility toggles, click listeners, and import related to buy-sensors buttons/URL.

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
20 Security Hotspots
0.1% Coverage on New Code (required ≥ 80%)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ojousima ojousima merged commit eda0867 into milestone/3.5 Mar 3, 2026
7 of 8 checks passed
@ojousima ojousima deleted the issue-1532-remove-buy-sensors-links branch March 3, 2026 13:48
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.

2 participants