@@ -59,6 +59,8 @@ export function AppUsageDashboard() {
59
59
isAnonymous : boolean ;
60
60
details : Record < string , any > ;
61
61
geolocationDataJsonb ?: Record < string , any > ,
62
+ applicationAuthor ?: string ;
63
+ applicationAuthorOrgId ?: string ;
62
64
} ;
63
65
64
66
const currentUser = useSelector ( getUser ) ;
@@ -253,13 +255,17 @@ export function AppUsageDashboard() {
253
255
const orgId = e . orgId ;
254
256
const appId = e . appId ;
255
257
const name = e . details ?. applicationName ?? 'Unknown' ;
256
- acc [ appId ] = acc [ appId ] || { appId, name, orgId, environmentId, count : 0 } ;
258
+ const applicationAuthor = e . applicationAuthor ;
259
+ const applicationAuthorOrgId = e . applicationAuthorOrgId ;
260
+ acc [ appId ] = acc [ appId ] || { appId, name, orgId, environmentId, applicationAuthor, applicationAuthorOrgId, count : 0 } ;
257
261
acc [ appId ] . count ++ ;
258
262
return acc ;
259
263
} , { } as Record < string , {
260
264
appId : string , name : string ,
261
265
orgId : string ,
262
266
environmentId : string ,
267
+ applicationAuthor ?: string ,
268
+ applicationAuthorOrgId ?: string ,
263
269
count : number
264
270
} > ) ;
265
271
} , [ allLogs ] ) ;
@@ -352,6 +358,22 @@ export function AppUsageDashboard() {
352
358
< a onClick = { ( ) => handleClickFilter ( "environmentId" , text ) } > { dataMap [ text ] ?? text } </ a >
353
359
) ,
354
360
} ,
361
+ {
362
+ title : "App Author" ,
363
+ dataIndex : "applicationAuthor" ,
364
+ key : "applicationAuthor" ,
365
+ render : ( text : string ) => (
366
+ text ? < a onClick = { ( ) => handleClickFilter ( "appAuthor" , text ) } > { text } </ a > : '-'
367
+ ) ,
368
+ } ,
369
+ {
370
+ title : "App Author Org ID" ,
371
+ dataIndex : "applicationAuthorOrgId" ,
372
+ key : "applicationAuthorOrgId" ,
373
+ render : ( text : string ) => (
374
+ text ? < a onClick = { ( ) => handleClickFilter ( "appAuthorOrgId" , text ) } > { dataMap [ text ] ?? text } </ a > : '-'
375
+ ) ,
376
+ } ,
355
377
{
356
378
title : "Total Views" ,
357
379
dataIndex : "count" ,
@@ -380,7 +402,7 @@ export function AppUsageDashboard() {
380
402
const key = Object . keys ( changedValue ) [ 0 ] ;
381
403
if ( key === "dateRange" ) {
382
404
handleDateChange ( changedValue . dateRange ) ;
383
- } else if ( [ "environmentId" , "orgId" , "userId" , "appId" ] . includes ( key ) ) {
405
+ } else if ( [ "environmentId" , "orgId" , "userId" , "appId" , "appAuthor" , "appAuthorOrgId" ] . includes ( key ) ) {
384
406
handleInputChange ( ) ; // Debounced input change
385
407
} else {
386
408
// Avoid calling fetchLogs if `handleDateChange` already did
@@ -421,6 +443,15 @@ export function AppUsageDashboard() {
421
443
< Input placeholder = "App ID" allowClear />
422
444
</ Form . Item >
423
445
</ Flex >
446
+
447
+ < Flex >
448
+ < Form . Item name = "appAuthor" >
449
+ < Input placeholder = "App Author" allowClear />
450
+ </ Form . Item >
451
+ < Form . Item name = "appAuthorOrgId" >
452
+ < Input placeholder = "App Author Org ID" allowClear />
453
+ </ Form . Item >
454
+ </ Flex >
424
455
</ Flex >
425
456
</ Form >
426
457
</ Card >
0 commit comments