From e166849986c71d1198250d62d67fb95397f49c6a Mon Sep 17 00:00:00 2001 From: Test User Date: Sun, 28 Jun 2026 20:00:42 +0100 Subject: [PATCH] fix: resolve issues #393, #394, #395, #396 - Add connect wallet button on portfolio page (#396) - Enable search pools by contract address (#393) - Add push trigger to testnet deploy workflow (#394) - Pin stellar-sdk version across packages (#395) --- .github/workflows/deploy-testnet.yml | 3 +++ apps/api/src/pools/pools.repository.ts | 1 + apps/web/app/portfolio/page.tsx | 12 ++++++------ packages/contract/package.json | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index 9527e9c..ff6449b 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -1,6 +1,9 @@ name: Deploy Contracts to Testnet on: + push: + branches: + - main workflow_dispatch: inputs: force: diff --git a/apps/api/src/pools/pools.repository.ts b/apps/api/src/pools/pools.repository.ts index 81faefb..58f91e8 100644 --- a/apps/api/src/pools/pools.repository.ts +++ b/apps/api/src/pools/pools.repository.ts @@ -26,6 +26,7 @@ export class PoolsRepository { where: search ? { OR: [ + { id: { contains: search, mode: 'insensitive' } }, { token0Address: { contains: search, mode: 'insensitive' } }, { token1Address: { contains: search, mode: 'insensitive' } }, ], diff --git a/apps/web/app/portfolio/page.tsx b/apps/web/app/portfolio/page.tsx index bfa92b7..d5e4013 100644 --- a/apps/web/app/portfolio/page.tsx +++ b/apps/web/app/portfolio/page.tsx @@ -6,6 +6,7 @@ import { useEffect } from 'react'; import { useWalletContext } from '@/context/WalletContext'; import { usePortfolio } from '@/hooks/usePortfolio'; import { PositionCard } from '@/components/PositionCard'; +import { WalletButton } from '@/components/WalletButton'; import { API_BASE, SWYFT_NETWORK_PASSPHRASE } from '@/lib/constants'; import { signTransaction } from '@stellar/freighter-api'; import { buildCollectTx } from '@swyft/sdk'; @@ -24,12 +25,6 @@ export default function PortfolioPage() { const [showClosed, setShowClosed] = useState(false); const [collectingId, setCollectingId] = useState(null); - // Redirect if no wallet connected - useEffect(() => { - if (address === null && !loading) { - router.replace('/'); - } - }, [address, loading, router]); const handleCollectFees = useCallback( async (positionId: string) => { @@ -143,6 +138,11 @@ export default function PortfolioPage() { {/* Empty state */} {!loading && positions.length === 0 && (
+ {!address && ( +
+ +
+ )} {showClosed ? ( <>

You have no positions yet.

diff --git a/packages/contract/package.json b/packages/contract/package.json index 23f5e4c..9433d0b 100644 --- a/packages/contract/package.json +++ b/packages/contract/package.json @@ -12,7 +12,7 @@ "deploy:testnet:force": "bash scripts/deploy-testnet.sh --force" }, "devDependencies": { - "@stellar/stellar-sdk": "^13.0.0", + "@stellar/stellar-sdk": "^13.1.0", "@types/jest": "^30.0.0", "jest": "^30.0.0", "ts-jest": "^29.2.5",