From 8df666335990b5a0d3a8d9ce7c6943c0669d9bd0 Mon Sep 17 00:00:00 2001 From: zaelgohary Date: Thu, 11 Dec 2025 14:06:44 +0200 Subject: [PATCH] Include user docs in readme & settings page --- README.md | 4 ++++ app/lib/screens/preference_screen.dart | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index a82d48916..6a44b8ea7 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Threefold Connect is a mobile app that serves as your main gateway to the Threefold Grid and various other Threefold products and services. +## Documentation + +For detailed user documentation and guides, please visit the [TFConnect User Guide](https://manual.grid.tf/labs/documentation/tfconnect_toc). + ## App ## Local development diff --git a/app/lib/screens/preference_screen.dart b/app/lib/screens/preference_screen.dart index d61a7038b..83ea6d523 100644 --- a/app/lib/screens/preference_screen.dart +++ b/app/lib/screens/preference_screen.dart @@ -224,6 +224,11 @@ class _PreferenceScreenState extends ConsumerState { title: const Text('Terms and conditions'), onTap: () async => {await _showTermsAndConds()}, ), + ListTile( + leading: const Icon(Icons.help_outline), + title: const Text('View Documentation'), + onTap: () async => {await _showDocumentation()}, + ), ListTile( leading: const Icon(Icons.logout_outlined), title: Text( @@ -459,6 +464,15 @@ class _PreferenceScreenState extends ConsumerState { await launchUrl(Uri.parse(url)); } + Future _showDocumentation() async { + const String url = 'https://manual.grid.tf/labs/documentation/tfconnect_toc'; + + final Uri uri = Uri.parse(url); + if (await canLaunchUrl(uri)) { + await launchUrl(uri, mode: LaunchMode.externalApplication); + } + } + void _showVersionInfo() { try { AppConfig appConfig = AppConfig();