From fe1cc3aaab1aa31bf777e43655303640b9756227 Mon Sep 17 00:00:00 2001 From: Jess Moore Date: Fri, 31 Jul 2026 00:01:36 +1000 Subject: [PATCH 1/2] remove redundant webid item in settings menu --- .../solid_scaffold_appbar_builder.dart | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/lib/src/widgets/solid_scaffold_appbar_builder.dart b/lib/src/widgets/solid_scaffold_appbar_builder.dart index 4f74adb..67b3709 100644 --- a/lib/src/widgets/solid_scaffold_appbar_builder.dart +++ b/lib/src/widgets/solid_scaffold_appbar_builder.dart @@ -34,7 +34,6 @@ import 'package:gap/gap.dart'; import 'package:markdown_tooltip/markdown_tooltip.dart'; import 'package:solidpod/solidpod.dart' show NotLoggedInException, getWebId, isUserLoggedIn; -import 'package:url_launcher/url_launcher.dart'; import 'package:solidui/src/handlers/solid_auth_handler.dart'; import 'package:solidui/src/services/solid_profile_notifier.dart'; @@ -227,7 +226,6 @@ class _ProfileMenuChip extends StatefulWidget { class _ProfileMenuChipState extends State<_ProfileMenuChip> { bool _isLoggedIn = false; bool _statusLoaded = false; - String? _webId; @override void initState() { @@ -248,7 +246,6 @@ class _ProfileMenuChipState extends State<_ProfileMenuChip> { setState(() { _isLoggedIn = false; _statusLoaded = true; - _webId = null; }); } return; @@ -258,7 +255,6 @@ class _ProfileMenuChipState extends State<_ProfileMenuChip> { setState(() { _isLoggedIn = loggedIn; _statusLoaded = true; - _webId = webId; }); } } catch (e) { @@ -267,24 +263,11 @@ class _ProfileMenuChipState extends State<_ProfileMenuChip> { setState(() { _isLoggedIn = false; _statusLoaded = true; - _webId = null; }); } } } - /// Opens the user's WebID profile in the default browser, mirroring - /// solid_status_bar.dart's `_launchUrl`. - - Future _launchWebId() async { - final webId = _webId; - if (webId == null) return; - final uri = Uri.parse(webId); - if (await canLaunchUrl(uri)) { - await launchUrl(uri); - } - } - void _handleSelection(String value) { switch (value) { case 'settings': @@ -366,48 +349,6 @@ class _ProfileMenuChipState extends State<_ProfileMenuChip> { itemBuilder: (menuContext) { final items = >[]; - // WebID — always visible identity header when signed in, so - // the user's WebID is discoverable/copyable regardless of - // screen width (unlike the drawer/status-bar surfaces, which - // are shown one-or-the-other depending on window size). - // `enabled: false` stops the item's own tap-to-select - // behaviour from swallowing the SelectableText's gestures. - - if (_isLoggedIn && _webId != null && _webId!.isNotEmpty) { - items.add( - PopupMenuItem( - enabled: false, - child: MarkdownTooltip( - message: '**WebId**\n\n$_webId - this is the Solid ' - 'server of your webid identifier. You can tap ' - 'here to open your webid profile in a web ' - 'browser.', - child: SizedBox( - width: 280, - child: MouseRegion( - cursor: SystemMouseCursors.click, - child: Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Icon(Icons.badge_outlined, size: 20), - const SizedBox(width: 12), - Expanded( - child: SelectableText( - 'Webid: $_webId!', - maxLines: 2, - onTap: _launchWebId, - ), - ), - ], - ), - ), - ), - ), - ), - ); - items.add(const PopupMenuDivider()); - } - // Settings — always available; opens the profile editor // dialog hosting display name, avatar and privacy. From 72dfcfada570643165e63f3f32978bdf2f756301 Mon Sep 17 00:00:00 2001 From: Jess Moore Date: Fri, 31 Jul 2026 00:02:57 +1000 Subject: [PATCH 2/2] update changelog and bump minor version --- CHANGELOG.md | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc27abe..4f00b01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,8 @@ The package is available from ## 1.1 Consolidate Android Login -+ Bug fix autologin when no domain folder on server [1.0.23 20260729 gjw] ++ Remove redundant webid in menu [1.0.24 20260730 jesscmoore] ++ Bug fix auto-login when no domain folder on server [1.0.23 20260729 gjw] + Add webid to profile [1.0.22 20260726 jesscmoore] + Cache profile so immediate load on app startup [1.0.21 20260718 gjw] + Add a BACKUP option to SolidScaffold [1.0.20 20260717 tonypioneer] diff --git a/pubspec.yaml b/pubspec.yaml index fa8e8d7..c9ed8b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: solidui description: 'A UI library for building Solid applications with Flutter.' -version: 1.0.23 +version: 1.0.24 homepage: https://github.com/anusii/solidui # Scaffold a new Solid Pod file-browser app (a pod browser, with navigation