Skip to content

Feat/copy debug info - #87

Merged
bl4ckswordsman merged 2 commits into
mainfrom
feat/copy-debug-info
Nov 28, 2026
Merged

bl4ckswordsman merged 2 commits into
mainfrom
feat/copy-debug-info

Conversation

@bl4ckswordsman

@bl4ckswordsman bl4ckswordsman commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • 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.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 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.
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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 38ea7c5a-9615-4349-9484-854588809eb2
Commits

Reviewing files that changed from the base of the PR and between 3b4c7c4 and 4ac29c4.

Files selected for processing: 9

  • .github/ISSUE_TEMPLATE/bug_report.md
  • app/src/main/kotlin/com/cylonid/nativealpha/ui/about/AboutScreen.kt
  • app/src/main/kotlin/com/cylonid/nativealpha/util/DebugInfoFormatter.kt
  • app/src/main/res/values-de/strings.xml
  • app/src/main/res/values-es/strings.xml
  • app/src/main/res/values-it/strings.xml
  • app/src/main/res/values/strings.xml
  • app/src/test/java/com/cylonid/nativealpha/ui/about/AboutScreenTest.kt
  • app/src/test/java/com/cylonid/nativealpha/util/DebugInfoFormatterTest.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@bl4ckswordsman
bl4ckswordsman merged commit 3e8da95 into main Nov 28, 2026
2 checks passed
@bl4ckswordsman
bl4ckswordsman deleted the feat/copy-debug-info branch November 28, 2026 10:39
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.

1 participant