From bcc74a4704c0c699aee84ca741e4a2e027f0be4d Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 24 Jun 2026 15:37:55 +0200 Subject: [PATCH] feat(ui): add bug report button in Help and Gitea issue template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a "Report a bug" / "Segnala un bug" button (6 languages) in Help → Info that opens the repository issue tracker in the system browser via TopLevel.Launcher (cross-platform: desktop + Android). Adds .gitea/ISSUE_TEMPLATE/bug_report.md — Gitea-compatible markdown template with pre-filled sections for version, platform, network, repro steps, expected behavior, and logs. --- .gitea/ISSUE_TEMPLATE/bug_report.md | 41 +++++++++++++++++++++++++++++ src/App/Localization/Loc.cs | 1 + src/App/Views/MainView.axaml.cs | 9 +++++++ 3 files changed, 51 insertions(+) create mode 100644 .gitea/ISSUE_TEMPLATE/bug_report.md diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.md b/.gitea/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..5818e9f --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,41 @@ +--- +name: Bug Report +about: Report a problem with Palladium Wallet +title: "[BUG] " +labels: bug +--- + +## Wallet version + + + +## Platform + + + +## Network + + + +## What happened? + + + +## Steps to reproduce +1. +2. +3. + +## Expected behavior + + + +## Logs / error messages + + +``` +``` + +## Checklist +- [ ] I searched existing issues and this is not a duplicate +- [ ] I reproduced this on the latest available version diff --git a/src/App/Localization/Loc.cs b/src/App/Localization/Loc.cs index 785d148..7c7881f 100644 --- a/src/App/Localization/Loc.cs +++ b/src/App/Localization/Loc.cs @@ -62,6 +62,7 @@ public sealed class Loc "SPV-Wallet für die Kryptowährung Palladium (PLM)."], ["help.tab.info"] = ["Info", "Info", "Info", "Info", "Info", "Info"], ["help.tab.donate"] = ["Dona", "Donate", "Donar", "Faire un don", "Doar", "Spenden"], + ["help.bug.report"] = ["Segnala un bug", "Report a bug", "Informar un error", "Signaler un bug", "Reportar um bug", "Fehler melden"], ["donate.desc"] = [ "Se questo wallet ti è utile, considera una piccola donazione allo sviluppatore.", "If you find this wallet useful, consider a small donation to the developer.", diff --git a/src/App/Views/MainView.axaml.cs b/src/App/Views/MainView.axaml.cs index 3404d2e..14ff3cc 100644 --- a/src/App/Views/MainView.axaml.cs +++ b/src/App/Views/MainView.axaml.cs @@ -1,3 +1,4 @@ +using System; using System.Linq; using Avalonia; using Avalonia.Controls; @@ -128,6 +129,14 @@ public partial class MainView : UserControl vm.IsHelpOpen = false; } + private async void OnOpenBugReportClick(object? sender, RoutedEventArgs e) + { + var launcher = TopLevel.GetTopLevel(this)?.Launcher; + if (launcher is not null) + await launcher.LaunchUriAsync(new Uri( + "https://santantonio.sytes.net/davide/PalladiumWallet/issues/new")); + } + // Esc (desktop) or Back (Android) closes the topmost open overlay. protected override void OnKeyDown(KeyEventArgs e) {