Skip to content

Commit 19f83a2

Browse files
committed
feat: wp
1 parent a3ba264 commit 19f83a2

File tree

32 files changed

+175
-285
lines changed

32 files changed

+175
-285
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"react-redux": "8.1.2",
108108
"react-simple-code-editor": "0.13.1",
109109
"react-ssr-prepass": "npm:preact-ssr-prepass",
110-
"react-textarea-autosize": "^8.5.5",
111110
"recharts": "2.12.7",
112111
"schema-inspector": "2.0.3",
113112
"server-only": "0.0.1",

pnpm-lock.yaml

Lines changed: 0 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/_components/BlockList/BlockCount.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,35 @@ export const BlockCount = memo(function ({
2727
px={2}
2828
width="fit-content"
2929
height={8}
30-
bg={'blockCountBackground'}
30+
bg={'blockList.blockCount.background'}
3131
rounded="full"
3232
_hover={
3333
canLoadMore
3434
? {
35-
bg: 'blockCountBackgroundHover',
35+
bg: 'blockList.blockCount.backgroundHover',
3636
}
3737
: {
38-
bg: 'blockCountBackground',
38+
bg: 'blockList.blockCount.background',
3939
}
4040
}
4141
>
4242
<Text
4343
display="flex"
44-
color={canLoadMore ? 'blockCountText' : 'text'}
44+
color={canLoadMore ? 'blockList.blockCount.text' : 'text'}
4545
fontSize="xs"
4646
alignItems="center"
4747
gap={1}
4848
_groupHover={
4949
canLoadMore
5050
? {
51-
textDecorationColor: 'blockCountText',
51+
textDecorationColor: 'blockList.blockCount.text',
5252
}
5353
: {}
5454
}
5555
>
5656
+{count} {pluralize('block', count)}
5757
{canLoadMore ? (
58-
<Icon size={2.5} color={'blockCountIcon'}>
58+
<Icon size={2.5} color={'blockList.blockCount.icon'}>
5959
<CaretDown />
6060
</Icon>
6161
) : null}

src/app/_components/BlockList/UpdateBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function UpdateBarLayout({ children, ...rest }: { children: ReactNode })
1515
return (
1616
<Flex
1717
justifyContent="space-between"
18-
backgroundColor={'updateBarBackground'}
18+
backgroundColor={'blockList.updateBar.background'}
1919
mx={-6}
2020
px={6}
2121
py={2.5}
@@ -68,7 +68,7 @@ export function UpdateBarBase({
6868
<UpdateBarLayout {...rest}>
6969
<Text
7070
fontSize={'sm'}
71-
color={'updateBarText'}
71+
color={'blockList.updateBar.text'}
7272
textOverflow={'ellipsis'}
7373
overflow={'hidden'}
7474
whiteSpace={'nowrap'}

src/app/_components/ListHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function ListHeader({ children, ...textProps }: { children: ReactNode } &
77
<Text
88
py={2}
99
px={2.5}
10-
color="tableHeaderText"
11-
bg="tableHeaderBackground"
10+
color="table.header.text"
11+
bg="table.header.background"
1212
fontSize={'xs'}
1313
rounded={'md'}
1414
whiteSpace={'nowrap'}

src/app/_components/StatusBar/IncidentsStatusBar.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
import { Stack } from '@chakra-ui/react';
1+
import { Stack, StackProps, Text } from '@chakra-ui/react';
22
import { QueryErrorResetBoundary } from '@tanstack/react-query';
33
import { useRef } from 'react';
44
import { ErrorBoundary } from 'react-error-boundary';
55

66
import { useGlobalContext } from '../../../common/context/useGlobalContext';
77
import { useUnresolvedIncidents } from '../../../common/queries/useUnresolvedIncidents';
8-
import { Flex, FlexProps } from '../../../ui/Flex';
9-
import { Text } from '../../../ui/Text';
108
import { TextLink } from '../../../ui/TextLink';
119
import { StatusBarBase } from './StatusBarBase';
1210
import { getColor } from './utils';
1311

14-
function IncidentsStatusBar(props: FlexProps) {
12+
function IncidentsStatusBar(props: StackProps) {
1513
const isTestnet = useGlobalContext().activeNetwork.mode === 'testnet';
1614
const { data: unresolvedIncidentsResponse, isFetching } = useUnresolvedIncidents();
1715
const incidents = unresolvedIncidentsResponse?.incidents;
1816
const statusBarRef = useRef<HTMLDivElement | null>(null);
1917

2018
return (
21-
<Flex direction={'column'} {...props}>
19+
<Stack {...props}>
2220
{incidents?.map(({ name, impact }) => {
2321
const isTestnetUpdate = name.includes('Testnet Update:');
2422
if (isTestnetUpdate && !isTestnet) return null;
2523
return (
2624
<StatusBarBase
25+
key={name}
2726
ref={statusBarRef}
2827
impact={impact}
2928
content={
@@ -53,11 +52,11 @@ function IncidentsStatusBar(props: FlexProps) {
5352
/>
5453
);
5554
})}
56-
</Flex>
55+
</Stack>
5756
);
5857
}
5958

60-
export function IncidentsStatusBarWithErrorBoundary(props: FlexProps) {
59+
export function IncidentsStatusBarWithErrorBoundary(props: StackProps) {
6160
return (
6261
<QueryErrorResetBoundary>
6362
{({ reset }) => (

src/app/_components/StatusBar/StatusBarBase.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const StatusBarBase = forwardRef<
2020
<Warning />
2121
</Icon>
2222
);
23-
console.log({ icon, content, impact });
2423
return (
2524
<Box ref={ref} borderTop={'1px solid'} borderColor={'statusPage.border'} py={3} {...boxProps}>
2625
<Box width={'100%'} display={'flex'} alignItems={'center'} justifyContent={'center'}>

src/app/block/[hash]/PageClient.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { Dialog, useDisclosure } from '@chakra-ui/react';
3+
import { useDisclosure } from '@chakra-ui/react';
44
import { Question, X } from '@phosphor-icons/react';
55
import dynamic from 'next/dynamic';
66

@@ -11,6 +11,7 @@ import { Timestamp } from '../../../common/components/Timestamp';
1111
import { Value } from '../../../common/components/Value';
1212
import '../../../common/components/loaders/skeleton-text';
1313
import { useSuspenseBlockByHeightOrHash } from '../../../common/queries/useBlockByHash';
14+
import { DialogBackdrop, DialogContent, DialogRoot } from '../../../components/ui/dialog';
1415
import { SkeletonTxsList } from '../../../features/txs-list/SkeletonTxsList';
1516
import { Box } from '../../../ui/Box';
1617
import { Flex } from '../../../ui/Flex';
@@ -73,9 +74,9 @@ export default function BlockPage({ params: { hash } }: any) {
7374
<Icon size={4} color="iconSubdued" onClick={onToggle}>
7475
<Question />
7576
</Icon>
76-
<Dialog.Root open={open} placement="center">
77-
<Dialog.Backdrop />
78-
<Dialog.Content>
77+
<DialogRoot open={open} placement="center">
78+
<DialogBackdrop />
79+
<DialogContent>
7980
<Flex flexDirection="column" p={6} gap={4}>
8081
<Flex justifyContent="space-between">
8182
<Flex gap={2} alignItems="center">
@@ -109,8 +110,8 @@ export default function BlockPage({ params: { hash } }: any) {
109110
</Stack>
110111
</Box>
111112
</Flex>
112-
</Dialog.Content>
113-
</Dialog.Root>
113+
</DialogContent>
114+
</DialogRoot>
114115
</Flex>
115116
}
116117
/>

src/app/sandbox/Wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function Wrapper({ children }: { children: ReactNode }) {
9393
<Grid
9494
gridTemplateColumns={'var(--stacks-sizes-16) minmax(0, 1fr)'}
9595
gap={0}
96-
minHeight={'container.md'}
96+
minHeight={'768px'}
9797
>
9898
<SideNav />
9999
{isConnected ? children : <ConnectToStacks />}

src/app/sandbox/components/Argument/ListArgumentInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const ListArgumentInput: FC<
4141
fontWeight="500"
4242
display="block"
4343
as={'label'}
44-
htmlFor={name} // TODO: upgrade to v3. this may be broken
44+
htmlFor={name}
4545
mb="8px"
4646
>
4747
{name}

0 commit comments

Comments
 (0)