From 5a292e6e2aaaae7dcd786ce4fce586f7caa26140 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Thu, 19 Feb 2026 12:01:34 -0700 Subject: [PATCH] show table even when no addresses --- .../interfaces/interface.service.ts | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts index 31eea08ff..25ec76d97 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.service.ts @@ -171,14 +171,26 @@ export class InterfaceService { }) } + // Also include URL plugins that have no addresses yet + if (allPackageData) { + for (const [pkgId, pkg] of Object.entries(allPackageData)) { + if (pkg.plugin?.url && !groupMap.has(pkgId)) { + groupMap.set(pkgId, []) + } + } + } + return Array.from(groupMap.entries()).map(([pluginId, addresses]) => { const pluginPkg = allPackageData?.[pluginId] const pluginActions = pluginPkg?.actions ?? {} const tableActionId = pluginPkg?.plugin?.url?.tableAction ?? null - const tableActionMeta = tableActionId ? pluginActions[tableActionId] : undefined - const tableAction = tableActionId && tableActionMeta - ? { id: tableActionId, metadata: tableActionMeta } - : null + const tableActionMeta = tableActionId + ? pluginActions[tableActionId] + : undefined + const tableAction = + tableActionId && tableActionMeta + ? { id: tableActionId, metadata: tableActionMeta } + : null let pluginPkgInfo: PluginPkgInfo | null = null if (pluginPkg) { @@ -193,7 +205,9 @@ export class InterfaceService { return { pluginId, - pluginName: pluginPkgInfo?.title ?? pluginId.charAt(0).toUpperCase() + pluginId.slice(1), + pluginName: + pluginPkgInfo?.title ?? + pluginId.charAt(0).toUpperCase() + pluginId.slice(1), addresses, tableAction, pluginPkgInfo,