Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d43a277
refactor: implementing FSD, removed assets, created app, shared and w…
KirillKirill Jun 13, 2025
5be4a80
remove svgr
KirillKirill Jun 13, 2025
0f9d59f
fix: typography in Abbreviate Clipboard
KirillKirill Jun 16, 2025
3a81fde
Merge branch 'develop' of github.com:humanprotocol/human-protocol int…
KirillKirill Jun 16, 2025
899bb68
feat: implement pages and features for Leaderboard and Home functiona…
KirillKirill Jun 17, 2025
6f76506
fix: casing
KirillKirill Jun 17, 2025
14abd8a
test: remove graph and home page folders
KirillKirill Jun 17, 2025
21e70a9
test: getting things back
KirillKirill Jun 17, 2025
a5db096
refactor: stop using selector inside query hook, simplify escrow tabl…
KirillKirill Jun 18, 2025
3621506
Merge branch 'develop' of github.com:humanprotocol/human-protocol int…
KirillKirill Jun 18, 2025
f6c6ce9
fix import after merging
KirillKirill Jun 18, 2025
224dbaf
specify type
KirillKirill Jun 18, 2025
af5fc1b
refactor: put some hooks in to the shared or to the appropriate featu…
KirillKirill Jun 18, 2025
ef0cb50
revert pre-commit change
KirillKirill Jun 18, 2025
e0d940f
test: add tsc to lint-staged
KirillKirill Jun 18, 2025
e43cb4a
test on changed files
KirillKirill Jun 18, 2025
670bf0a
testing without pre-commit, but with lintstagedrc
KirillKirill Jun 18, 2025
461bceb
feat: add tsc check to the lint script
KirillKirill Jun 18, 2025
80ad94f
refactor: search results and its ui dumb components and api
KirillKirill Jun 19, 2025
f873e15
refactor: accomplished SearchResults refactoring (with page's naming …
KirillKirill Jun 19, 2025
ab1260d
fix: add eslintcache to gitignore
KirillKirill Jun 19, 2025
16f86a0
fix: rename page dir back
KirillKirill Jun 19, 2025
87594c3
fix: move the file one level up and update imports
KirillKirill Jun 19, 2025
35bc215
refactor: graph feature
KirillKirill Jun 20, 2025
8569b50
refactor: move helpers, utils and services to shared/api and shared/lib
KirillKirill Jun 20, 2025
6b821b2
refactor: rename FormatNumber and use it all over the app instead of …
KirillKirill Jun 24, 2025
437ad97
refactor: move env file to shared/config
KirillKirill Jun 24, 2025
bc48b20
refactor: running tsc check from pre-commit
KirillKirill Jun 24, 2025
cd641a0
minor pre-commit hook fix
KirillKirill Jun 24, 2025
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 .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
yarn dlx lint-staged
yarn workspaces foreach --all -p run typecheck

# Format python file changes
cd packages/sdk/python/human-protocol-sdk
Expand Down
1 change: 1 addition & 0 deletions packages/apps/dashboard/client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dist-ssr
!.vscode/extensions.json
.idea
.DS_Store
.eslintcache
*.suo
*.ntvs*
*.njsproj
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/dashboard/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/app/index.tsx"></script>
</body>
</html>
10 changes: 5 additions & 5 deletions packages/apps/dashboard/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"clean": "tsc --build --clean && rm -rf dist",
"start": "vite",
"build": "tsc --build && vite build",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"lint": "yarn typecheck && eslint . --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --fix",
"preview": "vite preview",
"vercel-build": "yarn workspace human-protocol build:libs && yarn build",
"test": "exit 0"
"test": "exit 0",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@emotion/react": "^11.11.4",
Expand Down Expand Up @@ -62,13 +63,12 @@
"sass": "^1.85.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.33.0",
"vite": "^6.2.4",
"vite-plugin-svgr": "^4.2.0"
"vite": "^6.2.4"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
"eslint --cache --fix"
]
}
}
1 change: 0 additions & 1 deletion packages/apps/dashboard/client/public/vite.svg

This file was deleted.

24 changes: 0 additions & 24 deletions packages/apps/dashboard/client/src/App.tsx

This file was deleted.

26 changes: 26 additions & 0 deletions packages/apps/dashboard/client/src/app/AppRoutes.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { FC } from 'react';

import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';

import GraphPage from '@/pages/graph';
import HomePage from '@/pages/home';
import LeaderboardPage from '@/pages/leaderboard';
import SearchResultsPage from '@/pages/searchResults';

import { ROUTES } from './config/routes';

const AppRoutes: FC = () => {
return (
<Router>
<Routes>
<Route path={ROUTES.HOME} element={<HomePage />} />
<Route path={ROUTES.LEADERBOARD} element={<LeaderboardPage />} />
<Route path={ROUTES.GRAPH} element={<GraphPage />} />
<Route path={ROUTES.SEARCH} element={<SearchResultsPage />} />
<Route path="*" element={<div>Not found</div>} />
</Routes>
</Router>
);
};

export default AppRoutes;
6 changes: 6 additions & 0 deletions packages/apps/dashboard/client/src/app/config/routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const ROUTES = {
HOME: '/',
LEADERBOARD: '/leaderboard',
GRAPH: '/graph',
SEARCH: '/search/:chainId/:address',
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import React from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import ReactDOM from 'react-dom/client';

import ThemeProvider from '@/providers/ThemeProvider';

import App from './App';
import '@/assets/styles/main.scss';
import AppRoutes from './AppRoutes';
import ThemeProvider from './providers/ThemeProvider';
import './styles/main.scss';
import 'simplebar-react/dist/simplebar.min.css';

const queryClient = new QueryClient({
Expand All @@ -20,7 +19,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
<ThemeProvider>
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<App />
<AppRoutes />
</QueryClientProvider>
</React.StrictMode>
</ThemeProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ThemeProvider as MuiThemeProvider,
} from '@mui/material';

import { createAppTheme } from '../theme';
import { createAppTheme } from '@/shared/ui/theme';

const THEME_STORAGE_KEY = 'dashboard-app-theme-mode';
const RELEASE_DARK_MODE = false; // TODO: remove this once we release the dark mode
Expand Down
Binary file removed packages/apps/dashboard/client/src/assets/bing.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/bitfinex.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/coinlist.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/ethereum.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/exchange.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/gate.png
Binary file not shown.
Binary file removed packages/apps/dashboard/client/src/assets/human.png
Binary file not shown.
33 changes: 0 additions & 33 deletions packages/apps/dashboard/client/src/assets/icons/binance.svg

This file was deleted.

11 changes: 0 additions & 11 deletions packages/apps/dashboard/client/src/assets/icons/celo.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/apps/dashboard/client/src/assets/icons/discord.svg

This file was deleted.

72 changes: 0 additions & 72 deletions packages/apps/dashboard/client/src/assets/icons/ethereum.svg

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading