@@ -167,7 +180,7 @@ export function NetworksTable({ networks }: { networks: SupportedNetwork[] }) {
className="group/table-row isolate -outline-offset-1 transition hocus-visible-within:bg-space-1600 has-[a:focus-visible]:outline-focus"
>
-
+
@@ -184,27 +197,27 @@ export function NetworksTable({ networks }: { networks: SupportedNetwork[] }) {
|
- {network.subgraphsSupportLevel === 'full' ? (
-
- ) : network.subgraphsSupportLevel === 'basic' ? (
-
- ) : null}
+ {network.subgraphsSupportLevel === 'full'
+ ? checkmarks
+ : network.subgraphsSupportLevel === 'basic'
+ ? checkmark
+ : null}
|
- {network.substreamsSupportLevel === 'full' ? (
-
- ) : network.substreamsSupportLevel === 'basic' ? (
-
- ) : null}
+ {network.substreamsSupportLevel === 'full'
+ ? checkmarks
+ : network.substreamsSupportLevel === 'basic'
+ ? checkmark
+ : null}
|
- {network.firehoseSupportLevel === 'full' ? (
-
- ) : network.firehoseSupportLevel === 'basic' ? (
-
- ) : null}
+ {network.firehoseSupportLevel === 'full'
+ ? checkmarks
+ : network.firehoseSupportLevel === 'basic'
+ ? checkmark
+ : null}
|
-
{network.tokenApi ? : null} |
+
{network.tokenApi ? checkmark : null} |
))}
diff --git a/website/src/supportedNetworks/utils.ts b/website/src/supportedNetworks/utils.ts
index 2e4f1559173c..8e1c5eb084eb 100644
--- a/website/src/supportedNetworks/utils.ts
+++ b/website/src/supportedNetworks/utils.ts
@@ -1,4 +1,4 @@
-import { NetworksRegistry } from '@pinax/graph-networks-registry'
+import { NetworksRegistry, type Network } from '@pinax/graph-networks-registry'
// Networks that should use the "mono" icon variant (TODO: add this feature to web3icons?)
export const MONO_ICON_NETWORKS = [
@@ -42,7 +42,7 @@ export const getIconVariant = (networkId: string): 'mono' | 'branded' => {
}
// Suport level for services
-export const getSubgraphsSupportLevel = (network: any): 'none' | 'basic' | 'full' => {
+export const getSubgraphsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
const hasSubgraphs = Boolean(network.services.subgraphs?.length || network.services.sps?.length)
if (!hasSubgraphs) return 'none'
@@ -50,14 +50,14 @@ export const getSubgraphsSupportLevel = (network: any): 'none' | 'basic' | 'full
return 'basic'
}
-export const getSubstreamsSupportLevel = (network: any): 'none' | 'basic' | 'full' => {
+export const getSubstreamsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
const substreamCount = network.services.substreams?.length || 0
if (substreamCount === 0) return 'none'
if (substreamCount >= 2) return 'full'
return 'basic'
}
-export const getFirehoseSupportLevel = (network: any): 'none' | 'basic' | 'full' => {
+export const getFirehoseSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
const firehoseCount = network.services.firehose?.length || 0
if (firehoseCount === 0) return 'none'
if (firehoseCount >= 2) return 'full'
From a669ce015b49fa45010ce99b4c2cbb470efea454 Mon Sep 17 00:00:00 2001
From: Hayder
Date: Fri, 6 Jun 2025 08:34:37 +0200
Subject: [PATCH 4/6] fix lint
---
website/src/supportedNetworks/utils.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/src/supportedNetworks/utils.ts b/website/src/supportedNetworks/utils.ts
index 8e1c5eb084eb..e4f806810f75 100644
--- a/website/src/supportedNetworks/utils.ts
+++ b/website/src/supportedNetworks/utils.ts
@@ -1,4 +1,4 @@
-import { NetworksRegistry, type Network } from '@pinax/graph-networks-registry'
+import { type Network,NetworksRegistry } from '@pinax/graph-networks-registry'
// Networks that should use the "mono" icon variant (TODO: add this feature to web3icons?)
export const MONO_ICON_NETWORKS = [
@@ -46,7 +46,7 @@ export const getSubgraphsSupportLevel = (network: Network): 'none' | 'basic' | '
const hasSubgraphs = Boolean(network.services.subgraphs?.length || network.services.sps?.length)
if (!hasSubgraphs) return 'none'
- if (network.issuanceRewards === true) return 'full'
+ if (network.issuanceRewards) return 'full'
return 'basic'
}
From 08f205e4f6d356024d4da6279012e4fa9e325d0f Mon Sep 17 00:00:00 2001
From: Hayder
Date: Fri, 6 Jun 2025 08:38:39 +0200
Subject: [PATCH 5/6] fix lint
---
website/src/supportedNetworks/utils.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/src/supportedNetworks/utils.ts b/website/src/supportedNetworks/utils.ts
index e4f806810f75..83e2d4d398e6 100644
--- a/website/src/supportedNetworks/utils.ts
+++ b/website/src/supportedNetworks/utils.ts
@@ -1,4 +1,4 @@
-import { type Network,NetworksRegistry } from '@pinax/graph-networks-registry'
+import { type Network, NetworksRegistry } from '@pinax/graph-networks-registry'
// Networks that should use the "mono" icon variant (TODO: add this feature to web3icons?)
export const MONO_ICON_NETWORKS = [
From 4c733041a7e1c60f924cdabb2f7d6626d9c2f03d Mon Sep 17 00:00:00 2001
From: Hayder
Date: Tue, 10 Jun 2025 20:23:12 +0200
Subject: [PATCH 6/6] Remove explicit return type annotations from support
level functions
---
website/src/supportedNetworks/utils.ts | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/website/src/supportedNetworks/utils.ts b/website/src/supportedNetworks/utils.ts
index 83e2d4d398e6..5b64b3b18354 100644
--- a/website/src/supportedNetworks/utils.ts
+++ b/website/src/supportedNetworks/utils.ts
@@ -41,23 +41,20 @@ export const getIconVariant = (networkId: string): 'mono' | 'branded' => {
return MONO_ICON_NETWORKS.includes(networkId) ? 'mono' : 'branded'
}
-// Suport level for services
-export const getSubgraphsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
+// Support level for services
+export const getSubgraphsSupportLevel = (network: Network) => {
const hasSubgraphs = Boolean(network.services.subgraphs?.length || network.services.sps?.length)
-
if (!hasSubgraphs) return 'none'
if (network.issuanceRewards) return 'full'
return 'basic'
}
-
-export const getSubstreamsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
+export const getSubstreamsSupportLevel = (network: Network) => {
const substreamCount = network.services.substreams?.length || 0
if (substreamCount === 0) return 'none'
if (substreamCount >= 2) return 'full'
return 'basic'
}
-
-export const getFirehoseSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
+export const getFirehoseSupportLevel = (network: Network) => {
const firehoseCount = network.services.firehose?.length || 0
if (firehoseCount === 0) return 'none'
if (firehoseCount >= 2) return 'full'