feat(ui): add bug report button in Help and GitHub issue template

Adds a "Report a bug" / "Segnala un bug" button (6 languages) in
Help → Info that opens the issue tracker in the system browser via
TopLevel.Launcher (cross-platform: desktop + Android).
URL points to the current self-hosted repo; a TODO comment marks
the constant for easy update once the project moves to GitHub.

Adds .github/ISSUE_TEMPLATE/bug_report.yml — GitHub issue form with
structured fields for version, platform, network, repro steps,
expected behavior, and logs.
This commit is contained in:
2026-06-24 15:41:29 +02:00
parent 068d85e0e2
commit 4d730d7860
3 changed files with 103 additions and 0 deletions
+11
View File
@@ -1,3 +1,4 @@
using System;
using System.Linq;
using Avalonia;
using Avalonia.Controls;
@@ -128,6 +129,16 @@ public partial class MainView : UserControl
vm.IsHelpOpen = false;
}
private async void OnOpenBugReportClick(object? sender, RoutedEventArgs e)
{
// TODO: replace with the final GitHub URL once the repo is on GitHub
// e.g. https://github.com/davide3011/PalladiumWallet/issues/new?assignees=&labels=bug&template=bug_report.yml
const string issueUrl = "https://santantonio.sytes.net/davide/PalladiumWallet/issues/new";
var launcher = TopLevel.GetTopLevel(this)?.Launcher;
if (launcher is not null)
await launcher.LaunchUriAsync(new Uri(issueUrl));
}
// Esc (desktop) or Back (Android) closes the topmost open overlay.
protected override void OnKeyDown(KeyEventArgs e)
{