Skip to content

Commit df03f8e

Browse files
authored
Merge branch 'main' into nebula-docs
2 parents 813a7bc + 80b54a9 commit df03f8e

File tree

36 files changed

+534
-192
lines changed

36 files changed

+534
-192
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: ./.github/composite-actions/install
4545

4646
- name: Build Packages
47-
run: pnpm build:packages
47+
run: pnpm build
4848

4949
lint:
5050
needs: optimize_ci
@@ -112,7 +112,7 @@ jobs:
112112
uses: ./.github/composite-actions/install
113113

114114
- name: Build Packages
115-
run: pnpm build:packages
115+
run: pnpm build
116116

117117
- name: Install Yarn (if needed)
118118
if: matrix.package_manager == 'yarn'

.github/workflows/release-nightly.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,9 @@ jobs:
3030
# Do not use the GITHUB_TOKEN by default
3131
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
3232

33-
- name: Setup bun
34-
uses: oven-sh/setup-bun@v1
35-
with:
36-
bun-version: 1.0.35
37-
3833
- name: Install
3934
uses: ./.github/composite-actions/install
4035

41-
- name: Build
42-
run: pnpm build
43-
4436
- name: Create @nightly release
4537
run: |
4638
pnpm version-packages:nightly

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,9 @@ jobs:
3131
# Do not use the GITHUB_TOKEN by default
3232
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
3333

34-
- name: Setup bun
35-
uses: oven-sh/setup-bun@v1
36-
with:
37-
bun-version: 1.0.35
38-
3934
- name: Install
4035
uses: ./.github/composite-actions/install
4136

42-
- name: Build
43-
run: pnpm build:release
44-
4537
- name: Create release Pull Request or publish to NPM
4638
id: changesets
4739
uses: changesets/action@v1

apps/dashboard/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/// <reference types="next/navigation-types/compat/navigation" />
44

55
// NOTE: This file should not be edited
6-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"preinstall": "npx only-allow pnpm",
7-
"dev": "next dev",
7+
"dev": "next dev --turbo",
88
"build": "NODE_OPTIONS=--max-old-space-size=6144 next build",
99
"start": "next start",
1010
"format": "biome format ./src --write",

apps/dashboard/src/@3rdweb-sdk/react/components/connect-wallet/index.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ export const CustomConnectWallet = (props: {
4848
// chains
4949
const favChainIdsQuery = useFavoriteChainIds();
5050
const recentChainIds = useStore(recentlyUsedChainIdsStore);
51-
const { idToChain, allChains } = useAllChainsData();
52-
53-
const allChainsWithMetadata = useMemo(
54-
() => allChains.map(mapV4ChainToV5Chain),
55-
[allChains],
56-
);
51+
const { idToChain, allChainsV5 } = useAllChainsData();
5752

5853
const recentlyUsedChainsWithMetadata = useMemo(
5954
() =>
@@ -170,7 +165,7 @@ export const CustomConnectWallet = (props: {
170165
detailsButton={{
171166
className: props.detailsButtonClassName,
172167
}}
173-
chains={allChainsWithMetadata}
168+
chains={allChainsV5}
174169
detailsModal={{
175170
networkSelector: {
176171
sections: chainSections,

apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/ProfileUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function ProfileUI(props: {
1414

1515
return (
1616
<div className="container pt-8 pb-20">
17-
<ProfileHeader profileAddress={profileAddress} />
17+
<ProfileHeader profileAddress={profileAddress} ensName={ensName} />
1818
<div className="h-8" />
1919

2020
<div>

apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/components/profile-header.tsx

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import {
1212
} from "thirdweb/react";
1313
import { shortenIfAddress } from "utils/usedapp-external";
1414

15-
export function ProfileHeader(props: { profileAddress: string }) {
15+
export function ProfileHeader(props: {
16+
profileAddress: string;
17+
ensName: string | undefined;
18+
}) {
1619
const client = useThirdwebClient();
1720
return (
1821
<AccountProvider address={props.profileAddress} client={client}>
@@ -27,17 +30,22 @@ export function ProfileHeader(props: { profileAddress: string }) {
2730
/>
2831
<div>
2932
<h1 className="font-semibold text-4xl tracking-tight">
30-
<AccountName
31-
fallbackComponent={
32-
<AccountAddress
33-
formatFn={(addr) =>
34-
shortenIfAddress(replaceDeployerAddress(addr))
35-
}
36-
/>
37-
}
38-
loadingComponent={<Skeleton className="h-8 w-40" />}
39-
formatFn={(name) => replaceDeployerAddress(name)}
40-
/>
33+
{/* if we already have an ensName just use it */}
34+
{props.ensName ? (
35+
props.ensName
36+
) : (
37+
<AccountName
38+
fallbackComponent={
39+
<AccountAddress
40+
formatFn={(addr) =>
41+
shortenIfAddress(replaceDeployerAddress(addr))
42+
}
43+
/>
44+
}
45+
loadingComponent={<Skeleton className="h-8 w-40" />}
46+
formatFn={(name) => replaceDeployerAddress(name)}
47+
/>
48+
)}
4149
</h1>
4250
</div>
4351
</div>

apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function Page(props: PageProps) {
2121

2222
return (
2323
<ProfileUI
24-
ensName={resolvedInfo.ensName}
24+
ensName={replaceDeployerAddress(resolvedInfo.ensName || "")}
2525
profileAddress={resolvedInfo.address}
2626
/>
2727
);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { Metadata } from "next";
2+
3+
const title =
4+
"thirdweb Nebula: The Most powerful AI for interacting with the blockchain";
5+
const description =
6+
"The most powerful AI for interacting with the blockchain, with real-time access to EVM chains and their data";
7+
8+
export const metadata: Metadata = {
9+
title,
10+
description,
11+
openGraph: {
12+
title,
13+
description,
14+
},
15+
};
16+
17+
export default function Layout(props: {
18+
children: React.ReactNode;
19+
}) {
20+
return props.children;
21+
}

0 commit comments

Comments
 (0)