From d94b59b165a85079c12c3ecc44b8772179410475 Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 19 Sep 2026 18:43:57 +0800 Subject: [PATCH] refactor(ui): open extension details from every card Installed extensions missing from the store index previously had no tap handler on their card, so they kept on-card homepage/GitHub buttons as the only metadata entry. Make all cards open the detail view and drop the homepage/GitHub buttons entirely; details remain the single place for links. --- .../presentation/pages/extensions_page.dart | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ui/flutter/lib/features/extensions/presentation/pages/extensions_page.dart b/ui/flutter/lib/features/extensions/presentation/pages/extensions_page.dart index a4148313..21fe8c56 100644 --- a/ui/flutter/lib/features/extensions/presentation/pages/extensions_page.dart +++ b/ui/flutter/lib/features/extensions/presentation/pages/extensions_page.dart @@ -1095,20 +1095,6 @@ class _ExtensionCard extends ConsumerWidget { ? const SizedBox.square(dimension: 14, child: shad.CircularProgressIndicator()) : const Icon(Icons.download), ), - // Unlisted extensions have no detail page to open, so keep - // their links reachable directly on the card. - if (item.store == null && (item.homepage ?? '').isNotEmpty) - shad.GhostButton( - density: shad.ButtonDensity.icon, - onPressed: () => unawaited(launchUrl(Uri.parse(item.homepage!))), - child: const Icon(Icons.home_outlined), - ), - if (item.store == null && (item.repoUrl ?? '').isNotEmpty) - shad.GhostButton( - density: shad.ButtonDensity.icon, - onPressed: () => unawaited(launchUrl(Uri.parse(item.repoUrl!))), - child: const Icon(Icons.code), - ), if (installed?.settings?.isNotEmpty == true) shad.GhostButton( density: shad.ButtonDensity.icon, @@ -1137,7 +1123,6 @@ class _ExtensionCard extends ConsumerWidget { ], ), ); - if (item.store == null) return card; return MouseRegion( cursor: SystemMouseCursors.click, child: GestureDetector(