Skip to content

Display warning when debug strings is ON#4666

Merged
bgoncal merged 2 commits into
mainfrom
bug-strings
May 26, 2026
Merged

Display warning when debug strings is ON#4666
bgoncal merged 2 commits into
mainfrom
bug-strings

Conversation

@bgoncal
Copy link
Copy Markdown
Member

@bgoncal bgoncal commented May 26, 2026

Summary

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@bgoncal bgoncal self-assigned this May 26, 2026
Copilot AI review requested due to automatic review settings May 26, 2026 14:39
@bgoncal bgoncal added the debug label May 26, 2026
Copy link
Copy Markdown
Contributor

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

Adds an in-app warning to the Settings screens when the “Debug strings” / translation-key display mode is enabled, with a shortcut to disable it. This fits into the app’s SwiftUI Settings root view by surfacing a state that is otherwise only discoverable via the Debug settings.

Changes:

  • Track the showTranslationKeys preference in SettingsView state and refresh it on appearance.
  • Insert a new warning Section in both iOS and Mac Catalyst settings lists when debug strings are enabled.
  • Add an action to disable debug strings directly from the warning.

Comment thread Sources/App/Settings/Settings/SettingsView.swift
Comment thread Sources/App/Settings/Settings/SettingsView.swift
@bgoncal bgoncal enabled auto-merge (squash) May 26, 2026 14:44
@bgoncal bgoncal merged commit 2c2eacb into main May 26, 2026
13 checks passed
@bgoncal bgoncal deleted the bug-strings branch May 26, 2026 15:07
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@3293f43). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4666   +/-   ##
=======================================
  Coverage        ?   43.98%           
=======================================
  Files           ?      280           
  Lines           ?    17021           
  Branches        ?        0           
=======================================
  Hits            ?     7487           
  Misses          ?     9534           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants