Content-Length: 3774 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1735.patch
thub.com
From cabb8411679d15b06f6bee04c71d9a92ab74b45b Mon Sep 17 00:00:00 2001
From: Faran Javed
Date: Mon, 2 Jun 2025 22:58:16 +0500
Subject: [PATCH] Add appAuthorId and appAuthorOrdId for app-usage endpoint
---
.../src/pages/setting/appUsage/dashboard.tsx | 35 +++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/client/packages/lowcoder/src/pages/setting/appUsage/dashboard.tsx b/client/packages/lowcoder/src/pages/setting/appUsage/dashboard.tsx
index 49ed65ca3..d10a8d156 100644
--- a/client/packages/lowcoder/src/pages/setting/appUsage/dashboard.tsx
+++ b/client/packages/lowcoder/src/pages/setting/appUsage/dashboard.tsx
@@ -59,6 +59,8 @@ export function AppUsageDashboard() {
isAnonymous: boolean;
details: Record;
geolocationDataJsonb?: Record,
+ applicationAuthor?: string;
+ applicationAuthorOrgId?: string;
};
const currentUser = useSelector(getUser);
@@ -253,13 +255,17 @@ export function AppUsageDashboard() {
const orgId = e.orgId;
const appId = e.appId;
const name = e.details?.applicationName ?? 'Unknown';
- acc[appId] = acc[appId] || { appId, name, orgId, environmentId, count: 0 };
+ const applicationAuthor = e.applicationAuthor;
+ const applicationAuthorOrgId = e.applicationAuthorOrgId;
+ acc[appId] = acc[appId] || { appId, name, orgId, environmentId, applicationAuthor, applicationAuthorOrgId, count: 0 };
acc[appId].count++;
return acc;
}, {} as Record);
}, [allLogs]);
@@ -352,6 +358,22 @@ export function AppUsageDashboard() {
handleClickFilter("environmentId", text)}>{dataMap[text] ?? text}
),
},
+ {
+ title: "App Author",
+ dataIndex: "applicationAuthor",
+ key: "applicationAuthor",
+ render: (text: string) => (
+ text ? handleClickFilter("appAuthor", text)}>{text} : '-'
+ ),
+ },
+ {
+ title: "App Author Org ID",
+ dataIndex: "applicationAuthorOrgId",
+ key: "applicationAuthorOrgId",
+ render: (text: string) => (
+ text ? handleClickFilter("appAuthorOrgId", text)}>{dataMap[text] ?? text} : '-'
+ ),
+ },
{
title: "Total Views",
dataIndex: "count",
@@ -380,7 +402,7 @@ export function AppUsageDashboard() {
const key = Object.keys(changedValue)[0];
if (key === "dateRange") {
handleDateChange(changedValue.dateRange);
- } else if (["environmentId", "orgId", "userId", "appId"].includes(key)) {
+ } else if (["environmentId", "orgId", "userId", "appId", "appAuthor", "appAuthorOrgId"].includes(key)) {
handleInputChange(); // Debounced input change
} else {
// Avoid calling fetchLogs if `handleDateChange` already did
@@ -421,6 +443,15 @@ export function AppUsageDashboard() {
+
+
+
+
+
+
+
+
+
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1735.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy