File tree Expand file tree Collapse file tree 4 files changed +28
-11
lines changed
warm-storage-service/data Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 11import { ID } from '@filecoin-foundation/ui-filecoin/Table/ID'
22import { YesNoStatus } from '@filecoin-foundation/ui-filecoin/Table/YesNoStatus'
3- import { ExternalTextLink } from '@filecoin-foundation/ui-filecoin/TextLink/ExternalTextLink'
43import { createColumnHelper } from '@tanstack/react-table'
54
65import { CompactPeerID } from '@/components/CompactPeerID'
6+ import { PdpScanLink } from '@/components/PdpScanLink'
77import { ProviderOverview } from '@/components/ProviderOverview'
88import { SoftwareVersion } from '@/components/SoftwareVersion'
99
@@ -55,9 +55,10 @@ export const columns = [
5555 columnHelper . accessor ( 'checkActivityUrl' , {
5656 header : 'Check Activity' ,
5757 cell : ( info ) => (
58- < ExternalTextLink href = { info . getValue ( ) } >
59- View on PDP Scan
60- </ ExternalTextLink >
58+ < PdpScanLink
59+ pdpScanUrl = { info . getValue ( ) }
60+ providerName = { info . row . original . name }
61+ />
6162 ) ,
6263 enableSorting : false ,
6364 } ) ,
Original file line number Diff line number Diff line change 11import { ID } from '@filecoin-foundation/ui-filecoin/Table/ID'
2- import { ExternalTextLink } from '@filecoin-foundation/ui-filecoin/TextLink/ExternalTextLink'
32import { createColumnHelper } from '@tanstack/react-table'
43
54import { CompactPeerID } from '@/components/CompactPeerID'
5+ import { PdpScanLink } from '@/components/PdpScanLink'
66import { ProviderOverview } from '@/components/ProviderOverview'
77import { SoftwareVersion } from '@/components/SoftwareVersion'
88
@@ -48,9 +48,10 @@ export const columns = [
4848 columnHelper . accessor ( 'checkActivityUrl' , {
4949 header : 'Check Activity' ,
5050 cell : ( info ) => (
51- < ExternalTextLink href = { info . getValue ( ) } >
52- View on PDP Scan
53- </ ExternalTextLink >
51+ < PdpScanLink
52+ pdpScanUrl = { info . getValue ( ) }
53+ providerName = { info . row . original . name }
54+ />
5455 ) ,
5556 enableSorting : false ,
5657 } ) ,
Original file line number Diff line number Diff line change 1+ import { ExternalTextLink } from '@filecoin-foundation/ui-filecoin/TextLink/ExternalTextLink'
2+
3+ type PdpScanLinkProps = {
4+ pdpScanUrl : string
5+ providerName : string
6+ }
7+
8+ export function PdpScanLink ( { pdpScanUrl, providerName } : PdpScanLinkProps ) {
9+ return (
10+ < ExternalTextLink
11+ href = { pdpScanUrl }
12+ aria-label = { `View activity for provider ${ providerName } on PDP Scan` }
13+ >
14+ View on PDP Scan
15+ </ ExternalTextLink >
16+ )
17+ }
Original file line number Diff line number Diff line change @@ -85,9 +85,7 @@ async function enrichProviders(
8585 providers : BaseProviderData [ ] ,
8686 network : Network ,
8787) : Promise < ServiceProvider [ ] > {
88- const providersWithVersions : Array <
89- BaseProviderData & { softwareVersion ?: string ; checkActivityUrl ?: string }
90- > = [ ]
88+ const providersWithVersions : ServiceProvider [ ] = [ ]
9189
9290 // Process providers in batches
9391 for ( let i = 0 ; i < providers . length ; i += VERSION_FETCH_CONCURRENCY ) {
You can’t perform that action at this time.
0 commit comments