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

fix conflicts #1

Merged
merged 44 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bcd3a5a
feat(frontend): add WithdrawAll component and route
1nonlypiece Dec 19, 2024
4ba7233
feat(frontend): Update Withdraw All UI and Styling
1nonlypiece Dec 19, 2024
22da400
feat(frontend): Add withdraw-all functionality with API integration a…
1nonlypiece Dec 19, 2024
85774a1
cleanup
System625 Dec 20, 2024
e52f3fe
Pipeline fix
System625 Dec 20, 2024
a00774e
Progress
System625 Dec 20, 2024
8d7084a
Progress
System625 Dec 20, 2024
bddee7d
Progress
System625 Dec 20, 2024
70ce8bf
Progress
System625 Dec 20, 2024
6a9e6d8
progress
System625 Dec 20, 2024
2006ddc
Progress
System625 Dec 20, 2024
c01be25
Progress
System625 Dec 20, 2024
d1ad6db
Progress
System625 Dec 20, 2024
652fe60
Progress
System625 Dec 20, 2024
babca1a
Merge branch 'djeck1432:main' into withdraw-all
1nonlypiece Dec 20, 2024
eefbe23
Progress
System625 Dec 20, 2024
00170cf
progress
System625 Dec 20, 2024
f4bc1fa
progress?
System625 Dec 20, 2024
82fa827
Work
System625 Dec 20, 2024
431c5d2
progress
System625 Dec 20, 2024
b8a68df
feat(frontend): Address review comments part 1
1nonlypiece Dec 20, 2024
bf2c704
feat(frontend): Refactor Withdraw All functionality
1nonlypiece Dec 20, 2024
4b93be5
progress
System625 Dec 20, 2024
bc8f047
test
System625 Dec 20, 2024
3751e7d
test
System625 Dec 20, 2024
a280295
testing
System625 Dec 20, 2024
5938155
feat(frontend): Address review comments part 2
1nonlypiece Dec 20, 2024
2077d54
Assistance
System625 Dec 20, 2024
15dd932
Create test_telegram_user.py
PavelShkurko Dec 20, 2024
a1d38d2
gitignore
System625 Dec 20, 2024
feed02f
Merge branch 'djeck1432:main' into withdraw-all
1nonlypiece Dec 21, 2024
804c7cc
Merge pull request #416 from System625/cleanup
djeck1432 Dec 21, 2024
acc9965
feat(frontend): Address review comments part 3
1nonlypiece Dec 21, 2024
f812fd6
feat(frontend): Resolved merge conflicts between withdraw-all and ups…
1nonlypiece Dec 21, 2024
a27935c
Merge pull request #409 from 1nonlypiece/withdraw-all
djeck1432 Dec 21, 2024
966a599
Update test_user_dbconnector.py
PavelShkurko Dec 21, 2024
c26bf10
Merge branch 'djeck1432:main' into feat/add-missing-test-cases
PavelShkurko Dec 21, 2024
1c18db4
Update user.py
PavelShkurko Dec 21, 2024
77313cd
Create test_telegram_user.py
PavelShkurko Dec 21, 2024
bea51ef
Delete web_app/db/crud/test_telegram_user.py
PavelShkurko Dec 21, 2024
3b6e131
Update test_telegram_user.py
PavelShkurko Dec 21, 2024
31118be
Update test_telegram_user.py
PavelShkurko Dec 21, 2024
1f903aa
Merge pull request #419 from PavelShkurko/feat/add-missing-test-cases
djeck1432 Dec 21, 2024
daaa514
Merge branch 'fix-reusable-sidebar'
Dprof-in-tech Dec 22, 2024
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
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
},
"devDependencies": {
"@babel/preset-env": "^7.26.0",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@tanstack/eslint-plugin-query": "^5.60.1",
"@testing-library/jest-dom": "^6.6.2",
"@types/jest": "^29.5.14",
Expand Down
48 changes: 22 additions & 26 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
import React, { useState, useEffect } from 'react';
import { Routes, Route, Navigate, useNavigate } from 'react-router-dom';
import { Routes, Route, useNavigate } from 'react-router-dom';
import './globals.css';
import Header from './components/header/Header';
import Dashboard from 'pages/spotnet/dashboard/Dashboard';
import Footer from './components/Footer/Footer';
import SpotnetApp from 'pages/spotnet/spotnet_app/SpotnetApp';
import Login from 'pages/Login';
import Form from 'pages/forms/Form';
import Header from './components/layout/header/Header';
import Dashboard from './pages/dashboard/Dashboard';
import Footer from './components/layout/footer/Footer';
import SpotnetApp from './pages/spotnet-app/SpotnetApp';
import Form from './pages/form/Form';
import { createPortal } from 'react-dom';
import { logout } from 'services/wallet';
import { getTelegramUserWalletId } from 'services/telegram';
import Documentation from 'pages/spotnet/documentation/Documentation';
import Withdraw from 'pages/vault/withdraw/Withdraw';
import { useWalletStore } from 'stores/useWalletStore';
import { Notifier, notify } from 'components/Notifier/Notifier';
import { useConnectWallet } from 'hooks/useConnectWallet';
import OverviewPage from 'pages/spotnet/overview/Overview';
import { ActionModal } from 'components/ui/ActionModal';
import Stake from 'pages/vault/stake/Stake';
import { TELEGRAM_BOT_LINK } from 'utils/constants';
import { useCheckMobile } from 'hooks/useCheckMobile';
import PositionHistory from 'pages/spotnet/position_history/PositionHistory';

import { logout } from './services/wallet';
import { getTelegramUserWalletId } from './services/telegram';
import Documentation from './pages/documentation/Documentation';
import Withdraw from './pages/withdraw/Withdraw';
import { useWalletStore } from './stores/useWalletStore';
import { Notifier, notify } from './components/layout/notifier/Notifier';
import { useConnectWallet } from './hooks/useConnectWallet';
import OverviewPage from './pages/overview/Overview';
import { ActionModal } from './components/ui/action-modal';
import Stake from './pages/stake/Stake';
import { TELEGRAM_BOT_LINK } from './utils/constants';
import { useCheckMobile } from './hooks/useCheckMobile';
import PositionHistory from './pages/position-history/PositionHistory';
import WithdrawAll from 'pages/spotnet/dashboard/withdraw-all/WithdrawAll';

function App() {
const { walletId, setWalletId, removeWalletId } = useWalletStore();
const { setWalletId, removeWalletId } = useWalletStore();
const [showModal, setShowModal] = useState(false);
const navigate = useNavigate();
const [isMobileRestrictionModalOpen, setisMobileRestrictionModalOpen] = useState(true);
Expand Down Expand Up @@ -98,17 +97,14 @@ function App() {
<main>
<Routes>
<Route index element={<SpotnetApp onConnectWallet={handleConnectWallet} onLogout={handleLogout} />} />
<Route
path="/login"
element={walletId ? <Navigate to="/" /> : <Login onConnectWallet={handleConnectWallet} />}
/>
<Route path="/dashboard" element={<Dashboard telegramId={window?.Telegram?.WebApp?.initData?.user?.id} />} />
<Route path="/withdraw" element={<Withdraw />} />
<Route path="/overview" element={<OverviewPage />} />
<Route path="/form" element={<Form />} />
<Route path="/documentation" element={<Documentation />} />
<Route path="/position-history" element={<PositionHistory />} />
<Route path="/stake" element={<Stake />} />
<Route path="/dashboard/withdraw-all" element={<WithdrawAll />} />
</Routes>
</main>
<Footer />
Expand Down
63 changes: 0 additions & 63 deletions frontend/src/components/BalanceCards.jsx

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/src/components/CardGradients.jsx

This file was deleted.

38 changes: 0 additions & 38 deletions frontend/src/components/Dashboard/DashboardCard.jsx

This file was deleted.

195 changes: 0 additions & 195 deletions frontend/src/components/LendingForm.js

This file was deleted.

Loading
Loading