Skip to content

Commit 720f6c9

Browse files
committed
fix merge conflict
2 parents 5e81ed1 + 2fccfc0 commit 720f6c9

File tree

170 files changed

+6913
-3775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+6913
-3775
lines changed

.changeset/fluffy-pets-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix caching issues for headless component; improve code coverage

.github/workflows/issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, edited]
66

77
env:
8-
VALID_ISSUE_PREFIXES: "CNCT|DASH|PROT"
8+
VALID_ISSUE_PREFIXES: "CNCT|DASH|PROT|INSIGHT"
99

1010
jobs:
1111
linear:

apps/dashboard/.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,7 @@ NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
9494
TURNSTILE_SECRET_KEY=""
9595
REDIS_URL=""
9696

97-
ANALYTICS_SERVICE_URL=""
97+
ANALYTICS_SERVICE_URL=""
98+
99+
# Required for Nebula Chat
100+
NEXT_PUBLIC_NEBULA_URL=""

apps/dashboard/framer-rewrites.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = [
33
// -- home
44
"/",
55
"/pricing",
6+
"/bounties",
67
// -- product landing pages --
78
// -- connect
89
"/connect",
@@ -31,4 +32,9 @@ module.exports = [
3132
// -- legal --
3233
"/terms",
3334
"/privacy-policy",
35+
// -- community pages --
36+
"/community/ambassadors",
37+
"/community/ambassadors/startup-program",
38+
// -- grants --
39+
"/grant/superchain",
3440
];

apps/dashboard/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"color": "^4.2.3",
6161
"compare-versions": "^6.1.0",
6262
"date-fns": "4.1.0",
63+
"fetch-event-stream": "0.1.5",
6364
"flat": "^6.0.1",
6465
"framer-motion": "11.13.3",
6566
"fuse.js": "7.0.0",

apps/dashboard/redirects.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,12 @@ async function redirects() {
319319
destination: "/home",
320320
permanent: false,
321321
},
322+
// redirect "/open-source" to "/bounties"
323+
{
324+
source: "/open-source",
325+
destination: "/bounties",
326+
permanent: false,
327+
},
322328
...legacyDashboardToTeamRedirects,
323329
];
324330
}

apps/dashboard/src/@/api/team.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ import "server-only";
22
import { API_SERVER_URL } from "@/constants/env";
33
import { getAuthToken } from "../../app/api/lib/getAuthToken";
44

5+
type EnabledTeamScope =
6+
| "pay"
7+
| "storage"
8+
| "rpc"
9+
| "bundler"
10+
| "insight"
11+
| "embeddedWallets"
12+
| "relayer"
13+
| "chainsaw"
14+
| "nebula";
15+
516
export type Team = {
617
id: string;
718
name: string;
@@ -15,6 +26,7 @@ export type Team = {
1526
billingStatus: "validPayment" | (string & {}) | null;
1627
billingEmail: string | null;
1728
growthTrialEligible: boolean | null;
29+
enabledScopes: EnabledTeamScope[];
1830
};
1931

2032
export async function getTeamBySlug(slug: string) {

apps/dashboard/src/@/components/blocks/DangerSettingCard.stories.tsx

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,34 @@ export const Mobile: Story = {
2828

2929
function Story() {
3030
return (
31-
<div className="min-h-screen bg-background py-4 text-foreground">
32-
<div className="container flex max-w-[1000px] flex-col gap-8 lg:p-10">
33-
<BadgeContainer label="Base">
34-
<DangerSettingCard
35-
title="This is a title"
36-
description="This is a description"
37-
buttonLabel="Some Action"
38-
buttonOnClick={() => {}}
39-
isPending={false}
40-
confirmationDialog={{
41-
title: "This is confirmation title",
42-
description: "This is confirmation description",
43-
}}
44-
/>
45-
</BadgeContainer>
31+
<div className="container flex max-w-[1000px] flex-col gap-8 lg:p-10">
32+
<BadgeContainer label="Base">
33+
<DangerSettingCard
34+
title="This is a title"
35+
description="This is a description"
36+
buttonLabel="Some Action"
37+
buttonOnClick={() => {}}
38+
isPending={false}
39+
confirmationDialog={{
40+
title: "This is confirmation title",
41+
description: "This is confirmation description",
42+
}}
43+
/>
44+
</BadgeContainer>
4645

47-
<BadgeContainer label="Loading">
48-
<DangerSettingCard
49-
title="This is a title"
50-
description="This is a description"
51-
buttonLabel="Some Action"
52-
buttonOnClick={() => {}}
53-
isPending={true}
54-
confirmationDialog={{
55-
title: "This is confirmation title",
56-
description: "This is confirmation description",
57-
}}
58-
/>
59-
</BadgeContainer>
60-
</div>
46+
<BadgeContainer label="Loading">
47+
<DangerSettingCard
48+
title="This is a title"
49+
description="This is a description"
50+
buttonLabel="Some Action"
51+
buttonOnClick={() => {}}
52+
isPending={true}
53+
confirmationDialog={{
54+
title: "This is confirmation title",
55+
description: "This is confirmation description",
56+
}}
57+
/>
58+
</BadgeContainer>
6159
</div>
6260
);
6361
}

apps/dashboard/src/@/components/blocks/FormFieldSetup.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ import { ToolTipLabel } from "@/components/ui/tooltip";
33
import { AsteriskIcon, InfoIcon } from "lucide-react";
44

55
export function FormFieldSetup(props: {
6-
htmlFor: string;
6+
htmlFor?: string;
77
label: string;
88
errorMessage: React.ReactNode | undefined;
99
children: React.ReactNode;
1010
tooltip?: React.ReactNode;
1111
isRequired: boolean;
1212
helperText?: React.ReactNode;
13+
className?: string;
1314
}) {
1415
return (
15-
<div>
16+
<div className={props.className}>
1617
<div className="mb-2 inline-flex items-center gap-1">
1718
<Label htmlFor={props.htmlFor}>{props.label}</Label>
1819

apps/dashboard/src/@/components/blocks/NetworkSelectors.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ export function MultiNetworkSelector(props: {
7272
onSelectedValuesChange={(chainIds) => {
7373
props.onChange(chainIds.map(Number));
7474
}}
75-
placeholder="Select Chains"
75+
placeholder={
76+
allChains.length === 0 ? "Loading Chains..." : "Select Chains"
77+
}
78+
disabled={allChains.length === 0}
7679
overrideSearchFn={searchFn}
7780
renderOption={renderOption}
7881
/>

0 commit comments

Comments
 (0)