Skip to content

Commit 7bde8e6

Browse files
committed
Merge branch 'main' into feature/smalls-fix
2 parents 57da017 + 1800760 commit 7bde8e6

File tree

18 files changed

+839
-16
lines changed

18 files changed

+839
-16
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ jobs:
2121
npm ci --no-fund
2222
2323
- name: Check Prettier
24-
run: npm run check-format
24+
run: npm run check-format
25+
26+
- name: Lint
27+
run: npm run lint

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{".":"1.9.0"}
1+
{".":"1.9.1"}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.9.1](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.9.0...iexec-explorer-v1.9.1) (2025-06-24)
4+
5+
6+
### 🚀 Features
7+
8+
* add account page ([#27](https://github.com/iExecBlockchainComputing/explorer-v2/issues/27)) ([8a8d4ce](https://github.com/iExecBlockchainComputing/explorer-v2/commit/8a8d4cef7ed0f811c4f129a6ccc7e0fe21f17330))
9+
310
## [1.9.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.8.0...iexec-explorer-v1.9.0) (2025-06-23)
411

512

package-lock.json

Lines changed: 27 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "iexec-explorer",
33
"private": true,
4-
"version": "1.9.0",
4+
"version": "1.9.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -38,6 +38,7 @@
3838
"@tanstack/react-router-devtools": "^1.116.0",
3939
"@tanstack/react-table": "^8.21.3",
4040
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
41+
"big.js": "^7.0.1",
4142
"class-variance-authority": "^0.7.1",
4243
"clsx": "^2.1.1",
4344
"graphql": "^16.10.0",
@@ -63,6 +64,7 @@
6364
"@parcel/watcher": "^2.5.1",
6465
"@tanstack/router-plugin": "^1.117.2",
6566
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
67+
"@types/big.js": "^6.2.2",
6668
"@types/node": "^22.14.1",
6769
"@types/react": "^19.0.10",
6870
"@types/react-dom": "^19.0.4",

src/components/Stepper.tsx

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import { cn } from '@/lib/utils';
2+
import { Check } from 'lucide-react';
3+
import React from 'react';
4+
5+
type StepperProps = {
6+
classname: string;
7+
currentStep: number;
8+
steps: string[];
9+
};
10+
11+
export const Stepper: React.FC<StepperProps> = ({
12+
classname,
13+
currentStep,
14+
steps,
15+
}) => {
16+
const stepsNb = steps.length;
17+
18+
return (
19+
<div
20+
className={cn('grid gap-y-4', classname)}
21+
style={{
22+
gridTemplateColumns: `repeat(${stepsNb}, minmax(0, 1fr))`,
23+
maxWidth: stepsNb * 350,
24+
}}
25+
aria-label="Progress indicator"
26+
>
27+
{steps.map((step, index) => {
28+
const isActive = currentStep >= index;
29+
const isCompleted = currentStep > index;
30+
31+
return (
32+
<div key={step} className="flex w-full flex-col items-center">
33+
<div className="relative w-full">
34+
{index < stepsNb - 1 && (
35+
<span
36+
className={cn(
37+
'absolute top-1/2 right-0 h-px w-1/2 translate-x-1/2 -translate-y-1/2 rounded-full',
38+
isCompleted ? 'bg-white' : 'bg-grey-400'
39+
)}
40+
/>
41+
)}
42+
<div
43+
className={cn(
44+
'mx-auto flex size-8 items-center justify-center rounded-full',
45+
isActive ? 'bg-white text-black' : 'bg-grey-700',
46+
isCompleted && 'bg-primary text-black'
47+
)}
48+
aria-label={`Step ${index + 1}`}
49+
>
50+
{isCompleted ? (
51+
<Check size="16" strokeWidth="2.5" />
52+
) : (
53+
index + 1
54+
)}
55+
</div>
56+
</div>
57+
<span
58+
className={cn(
59+
'mt-2 text-center',
60+
isActive ? 'text-white' : 'text-grey-500'
61+
)}
62+
>
63+
{step}
64+
</span>
65+
</div>
66+
);
67+
})}
68+
</div>
69+
);
70+
};
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
const IexecAccountIcon = ({ size = 20, className = '' }) => (
2+
<svg
3+
width={size}
4+
height={size}
5+
viewBox="0 0 24 24"
6+
fill="none"
7+
xmlns="http://www.w3.org/2000/svg"
8+
className={className}
9+
>
10+
<path
11+
fillRule="evenodd"
12+
clipRule="evenodd"
13+
d="M15.4675 11.3324H15.3194C14.5782 11.4065 14.0593 11.9995 14.1334 12.7406C14.1334 12.8888 14.0593 13.1112 13.911 13.1853C13.8369 13.2594 13.7628 13.2594 13.6144 13.2594C13.5404 13.2594 13.4663 13.2594 13.392 13.1853C13.1696 13.0371 12.9474 12.9629 12.6509 12.9629H12.5027C11.7615 13.037 11.2426 13.63 11.3167 14.3711C11.3167 14.5936 11.2426 14.7417 11.0943 14.8158C11.0202 14.8899 10.9461 14.8899 10.7978 14.8899C10.7237 14.8899 10.6496 14.8899 10.5753 14.8158C10.3529 14.6676 10.1307 14.5934 9.90827 14.5934C9.1671 14.5934 8.5741 15.1864 8.5741 15.9275C8.5741 16.6687 9.1671 17.2617 9.90827 17.2617H10.0564C10.7235 17.1876 11.1682 16.6687 11.2424 16.0757V15.8533C11.2424 15.7051 11.3165 15.4827 11.4649 15.4086C11.5389 15.3345 11.613 15.3345 11.7614 15.3345C11.8354 15.3345 11.9095 15.3345 11.9838 15.4086C12.2062 15.5568 12.4284 15.631 12.7249 15.631H12.8731C13.5402 15.557 13.9848 15.038 14.0591 14.445V14.2226C14.0591 14.0002 14.1332 13.852 14.2815 13.7779C14.3556 13.7039 14.4297 13.7039 14.578 13.7039C14.6521 13.7039 14.7262 13.7039 14.8005 13.7779C15.0229 13.9261 15.2451 14.0004 15.5416 14.0004C16.2828 14.0004 16.8758 13.4074 16.8758 12.6662C16.8017 11.925 16.2087 11.332 15.4675 11.332"
14+
fill="#FCD15A"
15+
/>
16+
<path
17+
fillRule="evenodd"
18+
clipRule="evenodd"
19+
d="M15.4674 11.3324H15.3193C14.5781 11.4065 14.0592 11.9995 14.1333 12.7406C14.1333 12.8888 14.0592 13.1112 13.9108 13.1853C13.8367 13.2594 13.7627 13.2594 13.6143 13.2594C13.5402 13.2594 13.4662 13.2594 13.3919 13.1853C13.1695 13.0371 12.9472 12.9629 12.6507 12.9629H12.5026C11.7614 13.037 11.2425 13.63 11.3166 14.3711C11.3166 14.5936 11.2425 14.7417 11.0942 14.8158C11.0201 14.8899 10.946 14.8899 10.7976 14.8899C10.7236 14.8899 10.6495 14.8899 10.5752 14.8158C10.3528 14.6676 10.1306 14.5934 9.90814 14.5934C9.16698 14.5934 8.57397 15.1864 8.57397 15.9275C8.57397 16.6687 9.16698 17.2617 9.90814 17.2617H10.0563C10.7234 17.1876 11.168 16.6687 11.2423 16.0757V15.8533C11.2423 15.7051 11.3164 15.4827 11.4647 15.4086C11.5388 15.3345 11.6129 15.3345 11.7612 15.3345C11.8353 15.3345 11.9094 15.3345 11.9837 15.4086C12.2061 15.5568 12.4283 15.631 12.7248 15.631H12.873C13.5401 15.557 13.9847 15.038 14.059 14.445V14.2226C14.059 14.0002 14.1331 13.852 14.2814 13.7779C14.3555 13.7039 14.4296 13.7039 14.5779 13.7039C14.652 13.7039 14.7261 13.7039 14.8003 13.7779C15.0228 13.9261 15.245 14.0004 15.5415 14.0004C16.2827 14.0004 16.8757 13.4074 16.8757 12.6662C16.8016 11.925 16.2086 11.332 15.4674 11.332"
20+
fill="#FCD15A"
21+
/>
22+
<path
23+
fillRule="evenodd"
24+
clipRule="evenodd"
25+
d="M12.6508 9.62518H12.5027C11.7615 9.69926 11.2426 10.2923 11.3167 11.0334C11.3167 11.2559 11.2426 11.404 11.0943 11.4781C11.0202 11.5522 10.9461 11.5522 10.7978 11.5522C10.7237 11.5522 10.6496 11.5522 10.5753 11.4781C10.3529 11.3299 10.1307 11.2557 9.83417 11.2557H9.68601C9.01892 11.3298 8.5 11.9228 8.5 12.5898C8.5 13.331 9.093 13.924 9.83417 13.924H9.98233C10.6494 13.8499 11.0941 13.331 11.1683 12.738V12.5156C11.1683 12.2932 11.2424 12.145 11.3908 12.0709C11.4648 11.9968 11.5389 11.9968 11.6873 11.9968C11.7613 11.9968 11.8354 11.9968 11.9097 12.0709C12.1321 12.2191 12.3543 12.2933 12.6508 12.2933H12.799C13.4661 12.2193 13.985 11.6263 13.985 10.9592C13.985 10.218 13.392 9.625 12.6508 9.625"
26+
fill="#FCD15A"
27+
/>
28+
<path
29+
fillRule="evenodd"
30+
clipRule="evenodd"
31+
d="M12.6508 9.62518H12.5027C11.7615 9.69926 11.2426 10.2923 11.3167 11.0334C11.3167 11.2559 11.2426 11.404 11.0943 11.4781C11.0202 11.5522 10.9461 11.5522 10.7978 11.5522C10.7237 11.5522 10.6496 11.5522 10.5753 11.4781C10.3529 11.3299 10.1307 11.2557 9.83417 11.2557H9.68601C9.01892 11.3298 8.5 11.9228 8.5 12.5898C8.5 13.331 9.093 13.924 9.83417 13.924H9.98233C10.6494 13.8499 11.0941 13.331 11.1683 12.738V12.5156C11.1683 12.2932 11.2424 12.145 11.3908 12.0709C11.4648 11.9968 11.5389 11.9968 11.6873 11.9968C11.7613 11.9968 11.8354 11.9968 11.9097 12.0709C12.1321 12.2191 12.3543 12.2933 12.6508 12.2933H12.799C13.4661 12.2193 13.985 11.6263 13.985 10.9592C13.985 10.218 13.392 9.625 12.6508 9.625"
32+
fill="#FCD15A"
33+
/>
34+
<path
35+
fillRule="evenodd"
36+
clipRule="evenodd"
37+
d="M8.5 9.33417C8.5 10.0753 9.093 10.6683 9.83417 10.6683C10.5753 10.6683 11.1683 10.0753 11.1683 9.33417C11.1683 8.593 10.5753 8 9.83417 8C9.093 8 8.5 8.593 8.5 9.33417Z"
38+
fill="#FCD15A"
39+
/>
40+
<path
41+
fillRule="evenodd"
42+
clipRule="evenodd"
43+
d="M8.5 9.33417C8.5 10.0753 9.093 10.6683 9.83417 10.6683C10.5753 10.6683 11.1683 10.0753 11.1683 9.33417C11.1683 8.593 10.5753 8 9.83417 8C9.093 8 8.5 8.593 8.5 9.33417Z"
44+
fill="#FCD15A"
45+
/>
46+
<path
47+
fillRule="evenodd"
48+
clipRule="evenodd"
49+
d="M12.0031 4C7.33814 4 3.5 7.77913 3.5 12.4441C3.5 17.1091 7.33829 20.8882 12.0031 20.8882C13.125 20.8882 14.2471 20.652 15.31 20.2387C18.4396 18.9396 20.5064 15.869 20.5064 12.5031C20.5654 7.77913 16.7271 4 12.0031 4Z"
50+
stroke="#FCD15A"
51+
strokeWidth="1.59441"
52+
strokeLinecap="round"
53+
stroke-linejoin="round"
54+
/>
55+
</svg>
56+
);
57+
58+
export default IexecAccountIcon;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const WalletIcon = ({ size = 20, className = '' }) => (
2+
<svg
3+
width={size}
4+
height={size}
5+
viewBox="0 0 24 24"
6+
fill="none"
7+
xmlns="http://www.w3.org/2000/svg"
8+
className={className}
9+
>
10+
<path
11+
d="M18.9617 5.46094H5.03832C3.9126 5.46094 3 6.37354 3 7.49926V16.4993C3 17.625 3.9126 18.5376 5.03832 18.5376H18.9617C20.0874 18.5376 21 17.625 21 16.4993V7.49926C21 6.37354 20.0874 5.46094 18.9617 5.46094Z"
12+
stroke="#FCD15A"
13+
strokeWidth="1.56"
14+
strokeLinecap="round"
15+
stroke-linejoin="round"
16+
/>
17+
<path
18+
d="M21 9.96019C21 8.83447 20.0874 7.92188 18.9617 7.92188H5.03832C3.9126 7.92188 3 8.83447 3 9.96019"
19+
stroke="#FCD15A"
20+
strokeWidth="1.56"
21+
strokeLinecap="round"
22+
stroke-linejoin="round"
23+
/>
24+
<path
25+
d="M21 12.5383C21 11.4126 20.0874 10.5 18.9617 10.5H15.4116C15.1471 10.5 14.8924 10.6001 14.6986 10.7802L12.713 12.6257C12.311 12.9992 11.689 12.9992 11.287 12.6257L9.30144 10.7802C9.10764 10.6001 8.853 10.5 8.5884 10.5H5.03832C3.9126 10.5 3 11.4126 3 12.5383"
26+
stroke="#FCD15A"
27+
strokeWidth="1.56"
28+
strokeLinecap="round"
29+
stroke-linejoin="round"
30+
/>
31+
</svg>
32+
);
33+
34+
export default WalletIcon;

src/components/ui/button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ const buttonVariants = cva(
2424
'from-primary text-primary hover:before:bg-muted relative z-0 overflow-hidden bg-gradient-to-b to-primary before:absolute before:inset-px before:-z-10 before:rounded-[29px] before:bg-[#322B1E] before:duration-300',
2525
},
2626
size: {
27-
default: 'h-9 px-4 py-2 has-[>svg]:px-3 rounded-full',
27+
xs: 'h-6 rounded-full px-2 text-xs has-[>svg]:px-1.5 gap-1',
2828
sm: 'h-8 rounded-full gap-1.5 px-3 has-[>svg]:px-2.5',
29+
default: 'h-9 px-4 py-2 has-[>svg]:px-3 rounded-full',
2930
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
3031
icon: 'size-9 rounded-md',
3132
},

src/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const PREVIEW_TABLE_REFETCH_INTERVAL = 10_000;
99
export const TABLE_REFETCH_INTERVAL = 10_000;
1010

1111
export const IPFS_GATEWAY_URL = 'https://ipfs.iex.ec';
12+
export const API_COINGECKO_URL = 'https://api.coingecko.com/api/v3/simple/';
1213

1314
export const SUPPORTED_CHAINS = [
1415
{
@@ -19,7 +20,11 @@ export const SUPPORTED_CHAINS = [
1920
icon: iexecLogo,
2021
blockExplorerUrl: 'https://blockscout-bellecour.iex.ec',
2122
subgraphUrl: 'https://thegraph.iex.ec/subgraphs/name/bellecour/poco-v5',
23+
bridge: 'https://bridge-bellecour.iex.ec/',
24+
bridgeInformation:
25+
'Move your xRLC in your wallet between bellecour and Ethereum Mainnet with our bridge.',
2226
wagmiNetwork: bellecour,
27+
tokenSymbol: 'xRLC',
2328
},
2429
{
2530
id: 421614,
@@ -31,5 +36,6 @@ export const SUPPORTED_CHAINS = [
3136
subgraphUrl:
3237
'https://thegraph.arbitrum-sepolia-testnet.iex.ec/api/subgraphs/id/2GCj8gzLCihsiEDq8cYvC5nUgK6VfwZ6hm3Wj8A3kcxz',
3338
wagmiNetwork: arbitrumSepolia,
39+
tokenSymbol: 'RLC',
3440
},
3541
];

0 commit comments

Comments
 (0)