@@ -24,7 +24,11 @@ import styles from "./publishers-card.module.scss";
24
24
import { useQueryParamFilterPagination } from "../../hooks/use-query-param-filter-pagination" ;
25
25
import { CLUSTER_NAMES } from "../../services/pyth" ;
26
26
import { EntityList } from "../EntityList" ;
27
- import { ExplainActive , ExplainInactive } from "../Explanations" ;
27
+ import {
28
+ ExplainPermissioned ,
29
+ ExplainActive ,
30
+ ExplainInactive ,
31
+ } from "../Explanations" ;
28
32
import { NoResults } from "../NoResults" ;
29
33
import { PublisherTag } from "../PublisherTag" ;
30
34
import { Ranking } from "../Ranking" ;
@@ -43,6 +47,7 @@ type Props = {
43
47
type Publisher = {
44
48
id : string ;
45
49
ranking : number ;
50
+ permissionedFeeds : number ;
46
51
activeFeeds : number ;
47
52
inactiveFeeds : number ;
48
53
averageScore : number ;
@@ -99,6 +104,7 @@ const ResolvedPublishersCard = ({
99
104
( a , b , { column, direction } ) => {
100
105
switch ( column ) {
101
106
case "ranking" :
107
+ case "permissionedFeeds" :
102
108
case "activeFeeds" :
103
109
case "inactiveFeeds" :
104
110
case "averageScore" : {
@@ -131,6 +137,7 @@ const ResolvedPublishersCard = ({
131
137
id,
132
138
ranking,
133
139
averageScore,
140
+ permissionedFeeds,
134
141
activeFeeds,
135
142
inactiveFeeds,
136
143
...publisher
@@ -149,6 +156,7 @@ const ResolvedPublishersCard = ({
149
156
} ) }
150
157
/>
151
158
) ,
159
+ permissionedFeeds,
152
160
activeFeeds : (
153
161
< Link
154
162
href = { `/publishers/${ cluster } /${ id } /price-feeds?status=Active` }
@@ -224,7 +232,12 @@ type PublishersCardContentsProps = Pick<Props, "className" | "explainAverage"> &
224
232
cluster : ( typeof CLUSTER_NAMES ) [ number ] ;
225
233
onChangeCluster : ( value : ( typeof CLUSTER_NAMES ) [ number ] ) => void ;
226
234
rows : ( RowConfig <
227
- "ranking" | "name" | "activeFeeds" | "inactiveFeeds" | "averageScore"
235
+ | "ranking"
236
+ | "name"
237
+ | "permissionedFeeds"
238
+ | "activeFeeds"
239
+ | "inactiveFeeds"
240
+ | "averageScore"
228
241
> & { textValue : string } ) [ ] ;
229
242
}
230
243
) ;
@@ -299,6 +312,7 @@ const PublishersCardContents = ({
299
312
headerLoadingSkeleton = { < PublisherTag isLoading /> }
300
313
fields = { [
301
314
{ id : "averageScore" , name : "Average Score" } ,
315
+ { id : "permissionedFeeds" , name : "Permissioned Feeds" } ,
302
316
{ id : "activeFeeds" , name : "Active Feeds" } ,
303
317
{ id : "inactiveFeeds" , name : "Inactive Feeds" } ,
304
318
] }
@@ -339,11 +353,23 @@ const PublishersCardContents = ({
339
353
loadingSkeleton : < PublisherTag isLoading /> ,
340
354
allowsSorting : true ,
341
355
} ,
356
+ {
357
+ id : "permissionedFeeds" ,
358
+ name : (
359
+ < >
360
+ FEEDS
361
+ < ExplainPermissioned />
362
+ </ >
363
+ ) ,
364
+ alignment : "center" ,
365
+ width : 30 ,
366
+ allowsSorting : true ,
367
+ } ,
342
368
{
343
369
id : "activeFeeds" ,
344
370
name : (
345
371
< >
346
- ACTIVE FEEDS
372
+ ACTIVE
347
373
< ExplainActive />
348
374
</ >
349
375
) ,
@@ -355,7 +381,7 @@ const PublishersCardContents = ({
355
381
id : "inactiveFeeds" ,
356
382
name : (
357
383
< >
358
- INACTIVE FEEDS
384
+ INACTIVE
359
385
< ExplainInactive />
360
386
</ >
361
387
) ,
0 commit comments