You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added an option on the About screen to copy device, Android, WebView, and app diagnostic information for bug reports. A confirmation appears after copying.
Updated the bug report template with instructions for including diagnostic information, while retaining device and version fields.
No actionable comments were generated in the recent review.
Walkthrough
The About screen now collects and formats diagnostic information for copying to the clipboard. The change also adds localized copy messages, tests, and bug-report template instructions for sharing the information.
Changes: Debug information
Layer / File(s)
Summary
Collect and format diagnostic data app/src/main/kotlin/com/cylonid/nativealpha/util/DebugInfoFormatter.kt, app/src/test/java/com/cylonid/nativealpha/util/DebugInfoFormatterTest.kt
Adds collection and formatting for app, device, WebView, locale, theme, battery-optimization, and aggregate web-app details. Adds ROM detection and locale resolution. Tests cover formatted output, optional values, ROM versions, settings, and omission of web-app URLs and titles.
Add About screen copy action .github/ISSUE_TEMPLATE/bug_report.md, app/src/main/kotlin/com/cylonid/nativealpha/ui/about/AboutScreen.kt, app/src/main/res/values*/strings.xml, app/src/test/java/com/cylonid/nativealpha/ui/about/AboutScreenTest.kt
Adds an About screen action that collects and formats diagnostics on Dispatchers.IO, copies them when a clipboard service is available, and displays a snackbar. Adds localized strings, a UI test, and bug-report instructions for pasted debug information.
sequenceDiagram
participant AboutScreen
participant DebugInfoFormatter
participant ClipboardManager
participant SnackbarHostState
AboutScreen->>DebugInfoFormatter: Collect and format diagnostics on Dispatchers.IO
DebugInfoFormatter-->>AboutScreen: Formatted diagnostic text
AboutScreen->>ClipboardManager: Copy text when clipboard service is available
AboutScreen->>SnackbarHostState: Show copied-message snackbar
Loading
Merge Risk: Minimal · up to 4ac29
This adds a Copy debug info action to the About screen, with localized strings and updated bug report guidance. It only copies aggregate diagnostics when the user taps it, and no merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Feat/copy debug info" matches the main change. The PR adds a Copy debug info action to the About screen, with a DebugInfoFormatter utility, localized strings, and tests. The title is short …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Feat/copy debug info" matches the main change. The PR adds a Copy debug info action to the About screen, with a DebugInfoFormatter utility, localized strings, and tests. The title is short and names the primary feature. It uses a branch-style "Feat/" prefix, which is a minor style issue and does not affect the match to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit