diff --git a/apps/insights/src/components/Explanations/index.tsx b/apps/insights/src/components/Explanations/index.tsx index 0d75f600dd..547994903a 100644 --- a/apps/insights/src/components/Explanations/index.tsx +++ b/apps/insights/src/components/Explanations/index.tsx @@ -4,6 +4,22 @@ import { useMemo } from "react"; import { Explain } from "../Explain"; import { FormattedDate } from "../FormattedDate"; +export const ExplainRanking = ({ + scoreTime, +}: { + scoreTime?: Date | undefined; +}) => { + return ( + +

+ The publisher{"'"}s ranking is determined by the number of{" "} + Price Feeds that publisher has permissions to publish to. +

+ {scoreTime && } +
+ ); +}; + export const ExplainPermissioned = ({ scoreTime, }: { diff --git a/apps/insights/src/components/Publishers/index.tsx b/apps/insights/src/components/Publishers/index.tsx index f08c69ff86..5d146fdcf5 100644 --- a/apps/insights/src/components/Publishers/index.tsx +++ b/apps/insights/src/components/Publishers/index.tsx @@ -148,7 +148,6 @@ const toTableRow = ({ key, rank, permissionedFeeds, - inactiveFeeds, activeFeeds, averageScore, }: Awaited>[number]) => { @@ -158,7 +157,6 @@ const toTableRow = ({ ranking: rank, permissionedFeeds, activeFeeds, - inactiveFeeds, averageScore, ...(knownPublisher && { name: knownPublisher.name, diff --git a/apps/insights/src/components/Publishers/publishers-card.tsx b/apps/insights/src/components/Publishers/publishers-card.tsx index 33f3a1f2b3..9383556e15 100644 --- a/apps/insights/src/components/Publishers/publishers-card.tsx +++ b/apps/insights/src/components/Publishers/publishers-card.tsx @@ -27,7 +27,7 @@ import { EntityList } from "../EntityList"; import { ExplainPermissioned, ExplainActive, - ExplainInactive, + ExplainRanking, } from "../Explanations"; import { NoResults } from "../NoResults"; import { PublisherTag } from "../PublisherTag"; @@ -49,7 +49,6 @@ type Publisher = { ranking: number; permissionedFeeds: number; activeFeeds: number; - inactiveFeeds: number; averageScore: number; } & ( | { name: string; icon: ReactNode } @@ -106,7 +105,6 @@ const ResolvedPublishersCard = ({ case "ranking": case "permissionedFeeds": case "activeFeeds": - case "inactiveFeeds": case "averageScore": { return ( (direction === "descending" ? -1 : 1) * (a[column] - b[column]) @@ -139,7 +137,6 @@ const ResolvedPublishersCard = ({ averageScore, permissionedFeeds, activeFeeds, - inactiveFeeds, ...publisher }) => ({ id, @@ -165,14 +162,6 @@ const ResolvedPublishersCard = ({ {activeFeeds} ), - inactiveFeeds: ( - - {inactiveFeeds} - - ), averageScore: ( ), @@ -236,7 +225,6 @@ type PublishersCardContentsProps = Pick & | "name" | "permissionedFeeds" | "activeFeeds" - | "inactiveFeeds" | "averageScore" > & { textValue: string })[]; } @@ -314,7 +302,6 @@ const PublishersCardContents = ({ { id: "averageScore", name: "Average Score" }, { id: "permissionedFeeds", name: "Permissioned Feeds" }, { id: "activeFeeds", name: "Active Feeds" }, - { id: "inactiveFeeds", name: "Inactive Feeds" }, ]} isLoading={props.isLoading} rows={ @@ -340,7 +327,12 @@ const PublishersCardContents = ({ columns={[ { id: "ranking", - name: "RANKING", + name: ( + <> + RANKING + + + ), width: 25, loadingSkeleton: , allowsSorting: true, @@ -357,7 +349,7 @@ const PublishersCardContents = ({ id: "permissionedFeeds", name: ( <> - FEEDS + PERMISSIONED ), @@ -374,19 +366,7 @@ const PublishersCardContents = ({ ), alignment: "center", - width: 30, - allowsSorting: true, - }, - { - id: "inactiveFeeds", - name: ( - <> - INACTIVE - - - ), - alignment: "center", - width: 30, + width: 24, allowsSorting: true, }, { diff --git a/apps/insights/turbo.json b/apps/insights/turbo.json index 1dc5300e29..7e4dea08e5 100644 --- a/apps/insights/turbo.json +++ b/apps/insights/turbo.json @@ -14,6 +14,13 @@ "DISABLE_ACCESSIBILITY_REPORTING" ] }, + "start:dev": { + "dependsOn": [ + "//#install:modules", + "pull:env", + "@pythnetwork/solana-utils#build" + ] + }, "fix:lint": { "dependsOn": [ "//#install:modules",