Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into joaquim/smart-linking
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Sep 23, 2024
2 parents 620f204 + 1133ccc commit f292a8d
Show file tree
Hide file tree
Showing 264 changed files with 2,544 additions and 9,706 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-rockets-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

[ReactNative] Respect icon theme color in connect button and detail modal
5 changes: 5 additions & 0 deletions .changeset/loud-beds-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix abi resolution fallback
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ packages/thirdweb/src/react/ @joaquim-verges @gregfromstl @MananTank @jnsdls @ed
packages/thirdweb/src/reactive/ @joaquim-verges @gregfromstl @MananTank @jnsdls
packages/thirdweb/src/gas/ @joaquim-verges @jnsdls
packages/thirdweb/src/pay/ @joaquim-verges @gregfromstl @MananTank @jnsdls @edwardysun
packages/typedoc-gen/ @MananTank @jnsdls @joaquim-verges
packages/service-utils/ @arcoraven @jnsdls @joaquim-verges
packages/eslint-config-thirdweb/ @jnsdls @joaquim-verges
packages/tw-tsconfig/ @jnsdls @joaquim-verges
Expand Down
2 changes: 2 additions & 0 deletions apps/dashboard/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ module.exports = {
"FormErrorMessage",
"MenuGroup",
"MenuItem",
"VStack",
"HStack",
// also the types
"ButtonProps",
"BadgeProps",
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"next": true,
"ignore": ["src/@/components/ui/**"],
"project": ["src/**"],
"ignoreBinaries": ["only-allow", "knip", "biome"],
"ignoreBinaries": ["only-allow", "biome"],
"ignoreDependencies": ["@storybook/blocks", "@thirdweb-dev/service-utils"]
}
17 changes: 9 additions & 8 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,21 @@
"@next/bundle-analyzer": "14.2.12",
"@next/eslint-plugin-next": "14.2.12",
"@playwright/test": "1.47.1",
"@storybook/addon-essentials": "8.3.1",
"@storybook/addon-interactions": "8.3.1",
"@storybook/addon-links": "8.3.1",
"@storybook/addon-onboarding": "8.3.1",
"@storybook/addon-essentials": "8.3.2",
"@storybook/addon-interactions": "8.3.2",
"@storybook/addon-links": "8.3.2",
"@storybook/addon-onboarding": "8.3.2",
"@storybook/addon-viewport": "8.3.1",
"@storybook/blocks": "8.3.1",
"@storybook/nextjs": "8.3.1",
"@storybook/react": "8.3.1",
"@storybook/test": "8.3.1",
"@storybook/react": "8.3.2",
"@storybook/test": "8.3.2",
"@types/color": "^3.0.6",
"@types/node": "20.14.9",
"@types/papaparse": "^5.3.14",
"@types/pluralize": "^0.0.33",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.3.7",
"@types/react": "^18.3.8",
"@types/react-dom": "^18",
"@types/react-table": "^7.7.20",
"@types/spdx-correct": "^3.1.3",
Expand All @@ -138,9 +138,10 @@
"eslint-config-biome": "1.8.3",
"eslint-plugin-react-compiler": "0.0.0-experimental-ca16900-20240916",
"eslint-plugin-storybook": "^0.8.0",
"knip": "^5.30.4",
"next-sitemap": "^4.2.3",
"postcss": "8.4.47",
"storybook": "8.3.1",
"storybook": "8.3.2",
"tailwindcss": "3.4.12",
"typescript": "5.6.2"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { Spinner } from "@/components/ui/Spinner/Spinner";
import { useAccount, useAccountUsage } from "@3rdweb-sdk/react/hooks/useApi";
import { HStack } from "@chakra-ui/react";
import { BillingPeriod } from "components/settings/Account/Billing/Period";
import { BillingPlan } from "components/settings/Account/Billing/Plan";
import { Usage } from "components/settings/Account/Usage";
Expand All @@ -24,14 +23,10 @@ export const SettingsUsagePage = () => {
<div className="flex flex-col gap-8">
<div className="flex flex-col">
<h1 className="font-semibold text-3xl tracking-tight mb-2">Usage</h1>
<HStack
justifyContent="space-between"
flexDir={{ base: "column", lg: "row" }}
alignItems={{ base: "flex-start", lg: "center" }}
>
<div className="flex flex-col lg:flex-row justify-between items-start lg:items-center">
<BillingPlan account={account} />
<BillingPeriod account={account} usage={usageQuery.data} />
</HStack>
</div>
</div>

<Usage usage={usageQuery.data} usagePending={usageQuery.isPending} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
Select,
Stack,
type UseDisclosureReturn,
VStack,
useDisclosure,
} from "@chakra-ui/react";
import { useQuery } from "@tanstack/react-query";
Expand Down Expand Up @@ -341,7 +340,7 @@ const ReceiveFundsModal = ({
<ModalHeader>Receive Funds</ModalHeader>
<ModalCloseButton />
<ModalBody>
<VStack spacing={4} pb={8}>
<div className="flex flex-col gap-4 pb-8">
<Text w="full" textAlign="left">
Fund this address or QR code:
</Text>
Expand All @@ -355,7 +354,7 @@ const ReceiveFundsModal = ({
rounded="lg"
w={200}
/>
</VStack>
</div>
</ModalBody>
</ModalContent>
</Modal>
Expand Down
16 changes: 3 additions & 13 deletions apps/dashboard/src/components/hackathon/HacakthonEarnFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Icon, VStack } from "@chakra-ui/react";
import { Flex, Icon } from "@chakra-ui/react";
import { ImMagicWand } from "@react-icons/all-files/im/ImMagicWand";
import { ChakraNextImage } from "components/Image";
import { useTrack } from "hooks/analytics/useTrack";
Expand All @@ -15,17 +15,7 @@ export const HackathonEarnFooter = ({
const trackEvent = useTrack();

return (
<VStack
bg='url("/assets/hackathon/footer-bg.png")'
bgSize="cover"
bgRepeat="no-repeat"
bgPosition="center"
w="100%"
py={20}
gap={10}
borderTopRadius="50px"
px={6}
>
<div className="flex flex-col items-center bg-[url('/assets/hackathon/footer-bg.png')] bg-cover bg-no-repeat bg-center w-full py-20 gap-10 rounded-t-[50px] px-6">
<ChakraNextImage
src={require("../../../public/assets/landingpage/earnxtw.svg")}
alt="Hackathon"
Expand Down Expand Up @@ -108,6 +98,6 @@ export const HackathonEarnFooter = ({
Submission
</LinkButton>
</Flex>
</VStack>
</div>
);
};
16 changes: 3 additions & 13 deletions apps/dashboard/src/components/hackathon/HackathonFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Icon, VStack } from "@chakra-ui/react";
import { Flex, Icon } from "@chakra-ui/react";
import { ImMagicWand } from "@react-icons/all-files/im/ImMagicWand";
import { ChakraNextImage } from "components/Image";
import { useTrack } from "hooks/analytics/useTrack";
Expand All @@ -15,17 +15,7 @@ export const HackathonFooter = ({
const trackEvent = useTrack();

return (
<VStack
bg='url("/assets/hackathon/footer-bg.png")'
bgSize="cover"
bgRepeat="no-repeat"
bgPosition="center"
w="100%"
py={20}
gap={10}
borderTopRadius="50px"
px={6}
>
<div className="flex flex-col items-center bg-[url('/assets/hackathon/footer-bg.png')] bg-cover bg-no-repeat bg-center w-full py-20 gap-10 rounded-t-[50px] px-6">
<ChakraNextImage
src={require("../../../public/assets/landingpage/thirdwebw.svg")}
alt="hackathon-partner"
Expand Down Expand Up @@ -104,6 +94,6 @@ export const HackathonFooter = ({
Submission
</LinkButton>
</Flex>
</VStack>
</div>
);
};
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/hackathon/Judges.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, SimpleGrid, VStack } from "@chakra-ui/react";
import { Flex, SimpleGrid } from "@chakra-ui/react";
import { Heading, Text, TrackedLink } from "tw-components";
import { MaskedAvatar } from "tw-components/masked-avatar";

Expand Down Expand Up @@ -35,7 +35,7 @@ export const Judges = ({ TRACKING_CATEGORY }: JudgesProps) => {
];

return (
<VStack spacing={8} position="relative">
<div className="gap-8 relative flex flex-col">
<Heading size="title.2xl">Judges</Heading>
<SimpleGrid
columns={{ base: 1, lg: 4 }}
Expand Down Expand Up @@ -71,6 +71,6 @@ export const Judges = ({ TRACKING_CATEGORY }: JudgesProps) => {
</Flex>
))}
</SimpleGrid>
</VStack>
</div>
);
};
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/hackathon/JudgesEarn.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, SimpleGrid, VStack } from "@chakra-ui/react";
import { Flex, SimpleGrid } from "@chakra-ui/react";
import { Heading, Text } from "tw-components";
import { MaskedAvatar } from "tw-components/masked-avatar";

Expand Down Expand Up @@ -27,7 +27,7 @@ export const JudgesEarn = () => {
];

return (
<VStack spacing={8} position="relative">
<div className="flex flex-col gap-8 relative">
<Heading size="title.2xl">Judges</Heading>
<SimpleGrid
columns={{ base: 1, lg: 4 }}
Expand All @@ -52,6 +52,6 @@ export const JudgesEarn = () => {
</Flex>
))}
</SimpleGrid>
</VStack>
</div>
);
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar, Flex, VStack } from "@chakra-ui/react";
import { Avatar, Flex } from "@chakra-ui/react";
import { Heading, Text, TrackedLink } from "tw-components";

interface AvatarShowcaseProps {
Expand All @@ -18,7 +18,7 @@ export const AvatarShowcase: React.FC<AvatarShowcaseProps> = ({
trackingCategory,
}) => {
return (
<VStack spacing={12}>
<div className="flex flex-col gap-12">
<Heading size="title.2xl">{title}</Heading>
<Flex
maxW="container.md"
Expand Down Expand Up @@ -68,6 +68,6 @@ export const AvatarShowcase: React.FC<AvatarShowcaseProps> = ({
</Flex>
))}
</Flex>
</VStack>
</div>
);
};
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/onboarding/General.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Account } from "@3rdweb-sdk/react/hooks/useApi";
import { Flex, FocusLock, VStack } from "@chakra-ui/react";
import { Flex, FocusLock } from "@chakra-ui/react";
import { AccountForm } from "components/settings/Account/AccountForm";
import { useState } from "react";
import { useActiveWallet, useDisconnect } from "thirdweb/react";
Expand Down Expand Up @@ -60,7 +60,7 @@ const OnboardingGeneral: React.FC<OnboardingGeneralProps> = ({
onDuplicateError={onDuplicate}
/>

<VStack justifyContent="center" w="full" gap={2}>
<div className="flex flex-col justify-center w-full gap-2">
{!existing ? (
<>
<Button
Expand Down Expand Up @@ -94,7 +94,7 @@ const OnboardingGeneral: React.FC<OnboardingGeneralProps> = ({
I don&apos;t have an account
</Button>
)}
</VStack>
</div>
</Flex>
</FocusLock>
);
Expand Down
19 changes: 10 additions & 9 deletions apps/dashboard/src/components/onboarding/Steps.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { cn } from "@/lib/utils";
import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet";
import {
AccountStatus,
Expand All @@ -6,7 +7,7 @@ import {
useApiKeys,
} from "@3rdweb-sdk/react/hooks/useApi";
import { useLoggedInUser } from "@3rdweb-sdk/react/hooks/useLoggedInUser";
import { Flex, HStack, VStack, useBreakpointValue } from "@chakra-ui/react";
import { Flex, useBreakpointValue } from "@chakra-ui/react";
import { ChakraNextImage } from "components/Image";
import { OPSponsoredChains } from "constants/chains";
import { useTrack } from "hooks/analytics/useTrack";
Expand Down Expand Up @@ -273,15 +274,15 @@ export const OnboardingSteps: React.FC<OnboardingStepsProps> = ({
overflow="hidden"
className="bg-muted/50"
>
<VStack
gap={2}
alignItems="flex-start"
p={6}
w={rightImageDark && !isMobile ? "60%" : "100%"}
<div
className={cn(
"gap-2 flex flex-col items-start p-6",
rightImageDark && !isMobile ? "w-[60%]" : "w-full",
)}
>
<Heading size="title.sm">{title}</Heading>
<Text>{description}</Text>
<HStack mt={4} alignItems="center">
<div className="flex flex-row mt-4 items-center">
{isLoggedIn ? (
<Button
size="sm"
Expand All @@ -307,8 +308,8 @@ export const OnboardingSteps: React.FC<OnboardingStepsProps> = ({
Skip
</Button>
)}
</HStack>
</VStack>
</div>
</div>
{rightImageDark && !isMobile && theme === "dark" && (
<ChakraNextImage src={rightImageDark} alt={""} w="50%" priority />
)}
Expand Down
5 changes: 2 additions & 3 deletions apps/dashboard/src/components/onboarding/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { VStack } from "@chakra-ui/react";
import { Heading, Text } from "tw-components";

interface OnboardingTitleProps {
Expand All @@ -11,14 +10,14 @@ export const OnboardingTitle: React.FC<OnboardingTitleProps> = ({
description,
}) => {
return (
<VStack alignItems="flex-start" gap={3}>
<div className="flex flex-col gap-3 items-start">
<Heading size="title.sm">{heading}</Heading>

{description && (
<Text size="body.md" fontWeight="medium">
{description}
</Text>
)}
</VStack>
</div>
);
};
Loading

0 comments on commit f292a8d

Please sign in to comment.