@@ -24,7 +24,11 @@ import styles from "./publishers-card.module.scss";
2424import { useQueryParamFilterPagination } from "../../hooks/use-query-param-filter-pagination" ;
2525import { CLUSTER_NAMES } from "../../services/pyth" ;
2626import { EntityList } from "../EntityList" ;
27- import { ExplainActive , ExplainInactive } from "../Explanations" ;
27+ import {
28+ ExplainPermissioned ,
29+ ExplainActive ,
30+ ExplainInactive ,
31+ } from "../Explanations" ;
2832import { NoResults } from "../NoResults" ;
2933import { PublisherTag } from "../PublisherTag" ;
3034import { Ranking } from "../Ranking" ;
@@ -43,6 +47,7 @@ type Props = {
4347type Publisher = {
4448 id : string ;
4549 ranking : number ;
50+ permissionedFeeds : number ;
4651 activeFeeds : number ;
4752 inactiveFeeds : number ;
4853 averageScore : number ;
@@ -99,6 +104,7 @@ const ResolvedPublishersCard = ({
99104 ( a , b , { column, direction } ) => {
100105 switch ( column ) {
101106 case "ranking" :
107+ case "permissionedFeeds" :
102108 case "activeFeeds" :
103109 case "inactiveFeeds" :
104110 case "averageScore" : {
@@ -131,6 +137,7 @@ const ResolvedPublishersCard = ({
131137 id,
132138 ranking,
133139 averageScore,
140+ permissionedFeeds,
134141 activeFeeds,
135142 inactiveFeeds,
136143 ...publisher
@@ -149,6 +156,7 @@ const ResolvedPublishersCard = ({
149156 } ) }
150157 />
151158 ) ,
159+ permissionedFeeds,
152160 activeFeeds : (
153161 < Link
154162 href = { `/publishers/${ cluster } /${ id } /price-feeds?status=Active` }
@@ -224,7 +232,12 @@ type PublishersCardContentsProps = Pick<Props, "className" | "explainAverage"> &
224232 cluster : ( typeof CLUSTER_NAMES ) [ number ] ;
225233 onChangeCluster : ( value : ( typeof CLUSTER_NAMES ) [ number ] ) => void ;
226234 rows : ( RowConfig <
227- "ranking" | "name" | "activeFeeds" | "inactiveFeeds" | "averageScore"
235+ | "ranking"
236+ | "name"
237+ | "permissionedFeeds"
238+ | "activeFeeds"
239+ | "inactiveFeeds"
240+ | "averageScore"
228241 > & { textValue : string } ) [ ] ;
229242 }
230243 ) ;
@@ -299,6 +312,7 @@ const PublishersCardContents = ({
299312 headerLoadingSkeleton = { < PublisherTag isLoading /> }
300313 fields = { [
301314 { id : "averageScore" , name : "Average Score" } ,
315+ { id : "permissionedFeeds" , name : "Permissioned Feeds" } ,
302316 { id : "activeFeeds" , name : "Active Feeds" } ,
303317 { id : "inactiveFeeds" , name : "Inactive Feeds" } ,
304318 ] }
@@ -339,11 +353,23 @@ const PublishersCardContents = ({
339353 loadingSkeleton : < PublisherTag isLoading /> ,
340354 allowsSorting : true ,
341355 } ,
356+ {
357+ id : "permissionedFeeds" ,
358+ name : (
359+ < >
360+ FEEDS
361+ < ExplainPermissioned />
362+ </ >
363+ ) ,
364+ alignment : "center" ,
365+ width : 30 ,
366+ allowsSorting : true ,
367+ } ,
342368 {
343369 id : "activeFeeds" ,
344370 name : (
345371 < >
346- ACTIVE FEEDS
372+ ACTIVE
347373 < ExplainActive />
348374 </ >
349375 ) ,
@@ -355,7 +381,7 @@ const PublishersCardContents = ({
355381 id : "inactiveFeeds" ,
356382 name : (
357383 < >
358- INACTIVE FEEDS
384+ INACTIVE
359385 < ExplainInactive />
360386 </ >
361387 ) ,
0 commit comments