From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve_flutter_frontend 3/3] ui: settings: add proxmox forum and bugzilla links
Date: Fri, 29 Aug 2025 13:48:45 +0200 [thread overview]
Message-ID: <20250829114846.88507-4-s.shaji@proxmox.com> (raw)
In-Reply-To: <20250829114846.88507-1-s.shaji@proxmox.com>
Right now all concerns and bugs are being raised in the play
console. To allow users to directly access proxmox forum and report bugs
in bugzilla, add help section in settings page.
Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
lib/pages/pve_settings_page.dart | 121 +++++++++++++++++++++++++------
lib/utils/links.dart | 2 +
2 files changed, 99 insertions(+), 24 deletions(-)
diff --git a/lib/pages/pve_settings_page.dart b/lib/pages/pve_settings_page.dart
index 1f57f1c..8d4078d 100644
--- a/lib/pages/pve_settings_page.dart
+++ b/lib/pages/pve_settings_page.dart
@@ -16,35 +16,108 @@ class PveSettingsPage extends StatelessWidget {
child: Column(
children: [
ProxmoxGeneralSettingsForm(),
- const ListTile(
- title: Text(
- 'LEGAL',
- style: TextStyle(
- fontWeight: FontWeight.bold,
+ _PveSettingsSection(
+ sectionTitle: 'LEGAL',
+ items: [
+ ListTile(
+ leading: const Icon(Icons.privacy_tip_outlined),
+ title: const Text('Privacy Policy'),
+ trailing: const Icon(Icons.open_in_new),
+ onTap: () => _launchUrl(
+ url: Links.privacyPolicyUrl,
+ onFailure: () {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text(
+ 'Could not launch privacy policy',
+ ),
+ ),
+ );
+ },
+ ),
),
- ),
- ),
- ListTile(
- leading: const Icon(Icons.privacy_tip_outlined),
- title: const Text('Privacy Policy'),
- trailing: const Icon(Icons.open_in_new),
- onTap: () {
- try {
- tryLaunchUrl(Links.privacyPolicyUrl);
- } catch (_) {
- ScaffoldMessenger.of(context).showSnackBar(
- const SnackBar(
- content: Text(
- 'Could not launch privacy policy',
- ),
- ),
- );
- }
- },
+ ],
),
+ _PveSettingsSection(
+ sectionTitle: 'HELP',
+ items: [
+ ListTile(
+ leading: Icon(Icons.web),
+ trailing: const Icon(Icons.open_in_new),
+ title: const Text('Proxmox Forum'),
+ onTap: () => _launchUrl(
+ url: Links.proxmoxForum,
+ onFailure: () {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text(
+ 'Could not open forum',
+ ),
+ ),
+ );
+ },
+ ),
+ ),
+ ListTile(
+ leading: Icon(Icons.bug_report_outlined),
+ trailing: const Icon(Icons.open_in_new),
+ title: const Text('Report a bug'),
+ onTap: () => _launchUrl(
+ url: Links.bugzillaUri,
+ onFailure: () {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text(
+ 'Could not open bugzilla',
+ ),
+ ),
+ );
+ },
+ ),
+ )
+ ],
+ )
],
),
),
);
}
+
+ void _launchUrl({
+ required Uri url,
+ required VoidCallback onFailure,
+ }) {
+ try {
+ tryLaunchUrl(url);
+ } catch (_) {
+ onFailure();
+ }
+ }
+}
+
+class _PveSettingsSection extends StatelessWidget {
+ const _PveSettingsSection({
+ required this.sectionTitle,
+ required this.items,
+ });
+
+ final String sectionTitle;
+ final List<Widget> items;
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(
+ children: [
+ ListTile(
+ title: Text(
+ sectionTitle,
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ ...items,
+ ],
+ );
+ }
}
diff --git a/lib/utils/links.dart b/lib/utils/links.dart
index bab1b80..3c1797e 100644
--- a/lib/utils/links.dart
+++ b/lib/utils/links.dart
@@ -18,4 +18,6 @@ class Links {
'https://play.google.com/store/apps/details?id=com.undatech.opaque');
static final privacyPolicyUrl = Uri.parse(
'https://pve.proxmox.com/wiki/Proxmox_VE_Mobile_Companion_Data_Protection');
+ static final bugzillaUri =
+ Uri.parse('https://bugzilla.proxmox.com/enter_bug.cgi?product=pve');
}
--
2.47.2
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-08-29 11:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-29 11:48 [pve-devel] [PATCH proxmox_login_manager/pve_flutter_frontend 0/4] refactor settings screen and add HELP, LEGAL section in settings Shan Shaji
2025-08-29 11:48 ` [pve-devel] [PATCH pve_flutter_frontend 1/3] refactor: ui: add new settings page and use existing ssl toggle widget Shan Shaji
2025-08-29 11:48 ` [pve-devel] [PATCH pve_flutter_frontend 2/3] ui: settings: add privacy policy url link in settings screen Shan Shaji
2025-08-29 11:48 ` Shan Shaji [this message]
2025-08-29 11:48 ` [pve-devel] [PATCH proxmox_login_manager 1/1] refactor: ui: move settings page to `pve_flutter_frontend` Shan Shaji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250829114846.88507-4-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox