Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more shortcut #812

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/components/DeploymentInfo/DeploymentInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export const DeploymentInfo: React.FC<Props> = ({ 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}
>
Expand Down
8 changes: 3 additions & 5 deletions src/components/DoAllocate/DoAllocate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,12 @@ const DoAllocate: FC<IProps> = ({ projectId, deploymentId, actionBtn, onSuccess,
},
]}
>
{/* <ChatBoxPlanTextTrigger
triggerMsg={`
How much SQT should I allocated to deployment ${deploymentId}?
`}
<ChatBoxPlanTextTrigger
triggerMsg={`How much SQT should I allocated to deployment ${deploymentId}?`}
chatBoxInstance={chatBoxStore.chatBoxRef}
>
How should I allocate my SQT to this project deployment?
</ChatBoxPlanTextTrigger> */}
</ChatBoxPlanTextTrigger>
<NumberInput
description=""
maxAmount={addOrRemove === 'Add' ? avaibleStakeAmount : currentAllocatedTokensOfThisDeployment}
Expand Down
4 changes: 0 additions & 4 deletions src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,6 @@ label,
}
}

.ant-tooltip {
max-width: max-content;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projects/Project/Deployments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const DeploymentsTab = forwardRef<DeploymendRef, Props>(({ projectId, currentDep
await onRefresh?.();
},
}));
console.warn(currentDeployment);

return renderAsync(asyncDeployments, {
loading: () => <Spinner />,
error: (e) => <div>{`Error: ${e.message}`}</div>,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4429,10 +4429,10 @@
"@stablelib/random" "^1.0.2"
"@stablelib/wipe" "^1.0.1"

"@subql/[email protected]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/[email protected]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"
Expand Down
Loading