-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] account header <img width="1131" alt="Screenshot 2024-05-24 at 12 15 31 PM" src="https://github.com/solana-labs/explorer/assets/7481857/594bb3e1-104c-4d59-9b1d-d356dc6b5cd1"> - [x] account data - [x] generic cache - [x] cnft tabs (metadata, attributes) - [x] additional compression tab to show relevant proof data <img width="1119" alt="Screenshot 2024-05-24 at 12 11 25 PM" src="https://github.com/solana-labs/explorer/assets/7481857/3ff82c36-3173-4407-ab33-243a510246f3"> <img width="1126" alt="Screenshot 2024-05-24 at 12 07 49 PM" src="https://github.com/solana-labs/explorer/assets/7481857/c7fe7b50-5d22-4291-8c1f-5c06259789f5"> Examples: - https://explorer.solana.com/address/4MupsdStMNTVwYzGUq75BkPMNGFLdircExr1aGT7eAiG - https://explorer.solana.com/address/2qGxZpFqCKtgcXNhMJtxAv5CRMHzUEvzHB6ae3bK4MZq
- Loading branch information
Showing
13 changed files
with
766 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use client'; | ||
|
||
import { ParsedAccountRenderer } from '@components/account/ParsedAccountRenderer'; | ||
import React, { Suspense } from 'react'; | ||
|
||
import { CompressedNFTInfoCard } from '@/app/components/account/CompressedNFTInfoCard'; | ||
import { LoadingCard } from '@/app/components/common/LoadingCard'; | ||
|
||
type Props = Readonly<{ | ||
params: { | ||
address: string; | ||
}; | ||
}>; | ||
|
||
function CompressionCardRenderer({ | ||
account, | ||
onNotFound, | ||
}: React.ComponentProps<React.ComponentProps<typeof ParsedAccountRenderer>['renderComponent']>) { | ||
return ( | ||
<Suspense fallback={<LoadingCard />}> | ||
{<CompressedNFTInfoCard account={account} onNotFound={onNotFound} />} | ||
</Suspense> | ||
); | ||
} | ||
|
||
export default function CompressionPageClient({ params: { address } }: Props) { | ||
return <ParsedAccountRenderer address={address} renderComponent={CompressionCardRenderer} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import getReadableTitleFromAddress, { AddressPageMetadataProps } from '@utils/get-readable-title-from-address'; | ||
import { Metadata } from 'next/types'; | ||
|
||
import CompressionPageClient from './page-client'; | ||
|
||
type Props = Readonly<{ | ||
params: { | ||
address: string; | ||
}; | ||
}>; | ||
|
||
export async function generateMetadata(props: AddressPageMetadataProps): Promise<Metadata> { | ||
return { | ||
description: `Information about the Compressed NFT with address ${props.params.address} on Solana`, | ||
title: `Compression Information | ${await getReadableTitleFromAddress(props)} | Solana`, | ||
}; | ||
} | ||
|
||
export default function CompressionPage(props: Props) { | ||
return <CompressionPageClient {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.