From daa08b7599ba4c9f60dca71cb53b250ce80a694d Mon Sep 17 00:00:00 2001 From: cyrbuzz Date: Thu, 16 Jan 2025 17:37:41 +0800 Subject: [PATCH 1/3] fix: tooltip --- src/index.less | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.less b/src/index.less index af0e8bcb..444073e9 100644 --- a/src/index.less +++ b/src/index.less @@ -460,10 +460,6 @@ label, } } -.ant-tooltip { - max-width: max-content; -} - input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; From dc3ffd662b550d0dd0b9bc58e4d35075b5551cc5 Mon Sep 17 00:00:00 2001 From: cyrbuzz Date: Fri, 17 Jan 2025 11:34:06 +0800 Subject: [PATCH 2/3] feat&fix: add allocation suggest & fix tooltip style --- package.json | 2 +- src/components/DeploymentInfo/DeploymentInfo.tsx | 4 ++++ src/components/DoAllocate/DoAllocate.tsx | 8 +++----- src/pages/projects/Project/Deployments.tsx | 2 +- yarn.lock | 8 ++++---- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index c2a2fb19..d1d1dd13 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@eth-optimism/sdk": "^3.3.3", "@rainbow-me/rainbowkit": "^1.3.7", "@sentry/react": "^7.57.0", - "@subql/components": "3.0.1-7", + "@subql/components": "3.0.1-8", "@subql/contract-sdk": "1.3.1-1", "@subql/network-clients": "1.1.1-4", "@subql/network-config": "1.1.1", diff --git a/src/components/DeploymentInfo/DeploymentInfo.tsx b/src/components/DeploymentInfo/DeploymentInfo.tsx index 193fdd9c..e16754c8 100644 --- a/src/components/DeploymentInfo/DeploymentInfo.tsx +++ b/src/components/DeploymentInfo/DeploymentInfo.tsx @@ -48,6 +48,10 @@ export const DeploymentInfo: React.FC = ({ project, deploymentId, type, m label: 'What flex plan price should I set?', value: `What flex plan price should I set for project deployment ${deploymentId}?`, }, + { + label: 'How should I allocate my SQT to this deployment?', + value: `How much SQT should I allocated to deployment ${deploymentId}?`, + }, ]} chatBoxInstance={chatBoxStore.chatBoxRef} > diff --git a/src/components/DoAllocate/DoAllocate.tsx b/src/components/DoAllocate/DoAllocate.tsx index 907e09eb..d293959d 100644 --- a/src/components/DoAllocate/DoAllocate.tsx +++ b/src/components/DoAllocate/DoAllocate.tsx @@ -350,14 +350,12 @@ const DoAllocate: FC = ({ projectId, deploymentId, actionBtn, onSuccess, }, ]} > - {/* How should I allocate my SQT to this project deployment? - */} + (({ projectId, currentDep await onRefresh?.(); }, })); - console.warn(currentDeployment); + return renderAsync(asyncDeployments, { loading: () => , error: (e) =>
{`Error: ${e.message}`}
, diff --git a/yarn.lock b/yarn.lock index 507c8f72..c97d43f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4429,10 +4429,10 @@ "@stablelib/random" "^1.0.2" "@stablelib/wipe" "^1.0.1" -"@subql/components@3.0.1-7": - version "3.0.1-7" - resolved "https://registry.npmjs.org/@subql/components/-/components-3.0.1-7.tgz#d4f09057c71189680ed57f8f2b3897e58e557752" - integrity sha512-+ckcb08oAxpZz4pZV8krZLeLHChv6Rr891Y3yM1SEW+FO4ZtYYjQC5NDUowk/3CkPHdsY+moGpHM2u8tppNpZA== +"@subql/components@3.0.1-8": + version "3.0.1-8" + resolved "https://registry.npmjs.org/@subql/components/-/components-3.0.1-8.tgz#b0811d715bfe842c23b6a694e3d5c66f747f52e1" + integrity sha512-ECnjZQxsd0LSuV49FVsrXrQRvs0BUBYcJkgj8wmxd5qzcEW/oD8kevw9GbnwCZkMmdfA2VR6/5NDkSfKxmGEFA== dependencies: "@graphiql/plugin-explorer" "^0.3.4" "@graphiql/toolkit" "^0.9.1" From 90db59d61e8ee39b428f7f1105bf9639b3ac9d17 Mon Sep 17 00:00:00 2001 From: cyrbuzz Date: Fri, 17 Jan 2025 11:49:06 +0800 Subject: [PATCH 3/3] feat: update deployment id --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index c487b17e..64117adf 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ VITE_CONSUMER_HOST_ENDPOINT=https://chs.subquery.network VITE_FORUM_DOMAIN=https://forum.subquery.network VITE_NETWORK=mainnet VITE_GQL_PROXY=https://gql-proxy.subquery.network -VITE_NETWORK_DEPLOYMENT_ID=QmVnojxfmZJzWihvmSuixZsAxPrGqVeNB4EdTtmL3UGiFY +VITE_NETWORK_DEPLOYMENT_ID=QmWaV7Be6KwdhU6v6tUaVCyb1R3rUxYX987fGNJkQ4QisU VITE_PROXYGATEWAY=https://gateway.subquery.network VITE_SUBQUERY_OFFICIAL_BASE_RPC=https://base.rpc.subquery.network/public VITE_SUBQUERY_OFFICIAL_ETH_RPC=https://ethereum.rpc.subquery.network/public