Skip to content

Commit 05344c2

Browse files
committed
Merge branch 'main' into feature/add-type-and-structure-on-datasets
2 parents 38f7076 + 93bce61 commit 05344c2

File tree

8 files changed

+79
-11
lines changed

8 files changed

+79
-11
lines changed

.release-please-manifest.json

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

CHANGELOG.md

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

3+
## [1.20.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.19.0...iexec-explorer-v1.20.0) (2025-09-16)
4+
5+
6+
### 🚀 Features
7+
8+
* add dataprotector subgraph integration and update poco queries ([#65](https://github.com/iExecBlockchainComputing/explorer-v2/issues/65)) ([4edb4bf](https://github.com/iExecBlockchainComputing/explorer-v2/commit/4edb4bfd9bf764558bee34185b372a0a926ccba3))
9+
10+
## [1.19.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.18.0...iexec-explorer-v1.19.0) (2025-09-10)
11+
12+
13+
### 🚀 Features
14+
15+
* **StatusCell:** display timeout indication for 'STARTED' status ([c2f8d4d](https://github.com/iExecBlockchainComputing/explorer-v2/commit/c2f8d4d9b2316b51b3a9d52988b87ba60476dd43))
16+
* update navigation to include 'from=my_activity' query parameter ([9d24279](https://github.com/iExecBlockchainComputing/explorer-v2/commit/9d2427936b5c652f8a49284b01b793fd0618c2c9))
17+
18+
19+
### 🐞 Bug Fixes
20+
21+
* update error message for not found addresses ([3215e4d](https://github.com/iExecBlockchainComputing/explorer-v2/commit/3215e4da2c036679e7f9ae51108adf2e93dc8070))
22+
* update type for search parameter in navigation ([f8ed8ec](https://github.com/iExecBlockchainComputing/explorer-v2/commit/f8ed8ecd831eb9296c5df8a4b01b3ca908061532))
23+
24+
## [1.18.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.17.0...iexec-explorer-v1.18.0) (2025-09-05)
25+
26+
27+
### 🚀 Features
28+
29+
* update navigation links in Footer component ([#62](https://github.com/iExecBlockchainComputing/explorer-v2/issues/62)) ([281c752](https://github.com/iExecBlockchainComputing/explorer-v2/commit/281c752b48fef3b92c9471aeb5c659ceaacc244d))
30+
31+
32+
### 🐞 Bug Fixes
33+
34+
* update navigation links in Footer component ([281c752](https://github.com/iExecBlockchainComputing/explorer-v2/commit/281c752b48fef3b92c9471aeb5c659ceaacc244d))
35+
336
## [1.17.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.16.0...iexec-explorer-v1.17.0) (2025-08-26)
437

538

package-lock.json

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

package.json

Lines changed: 1 addition & 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.17.0",
4+
"version": "1.20.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/Footer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export function Footer({ className }: { className?: string }) {
5151

5252
const navLinks = [
5353
{ href: 'https://www.iex.ec/', label: 'iExec Website' },
54-
{ href: 'https://tools.docs.iex.ec/', label: 'Doc tools' },
55-
{ href: 'https://protocol.docs.iex.ec/', label: 'Doc protocol' },
54+
{ href: 'https://docs.iex.ec/', label: 'Documentation' },
5655
...(chainId !== undefined
5756
? [{ href: getBlockExplorerUrl(chainId), label: 'Block explorer' }]
5857
: []),

src/modules/search/SearcherBar.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export function SearcherBar({
179179
className="bg-muted hover:bg-secondary absolute top-1/2 right-4 hidden -translate-y-1/2 sm:flex"
180180
asChild
181181
>
182-
<ChainLink to={`/address/${userAddress}`}>My activity</ChainLink>
182+
<ChainLink to={`/address/${userAddress}?from=my_activity`}>
183+
My activity
184+
</ChainLink>
183185
</Button>
184186
)}
185187
</div>
@@ -193,7 +195,9 @@ export function SearcherBar({
193195

194196
{isConnected && (
195197
<Button variant="outline" className="sm:hidden" asChild>
196-
<ChainLink to={`/address/${userAddress}`}>My activity</ChainLink>
198+
<ChainLink to={`/address/${userAddress}?from=my_activity`}>
199+
My activity
200+
</ChainLink>
197201
</Button>
198202
)}
199203
</div>

src/modules/tasks/StatusCell.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ const StatusCell = ({
100100

101101
return (
102102
<span className="flex flex-wrap items-center gap-2">
103-
<span className={classes}>{label}</span>
103+
<span className={classes}>
104+
{label} {label === 'STARTED' && timeout ? '(timeout)' : ''}
105+
</span>
104106
</span>
105107
);
106108
};

src/routes/$chainSlug/_layout/address/$addressAddress.tsx

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { TABLE_LENGTH, TABLE_REFETCH_INTERVAL } from '@/config';
22
import { execute } from '@/graphql/poco/execute';
33
import { useQuery } from '@tanstack/react-query';
44
import { createFileRoute } from '@tanstack/react-router';
5+
import { useSearch, useNavigate } from '@tanstack/react-router';
56
import { LoaderCircle } from 'lucide-react';
7+
import { useEffect } from 'react';
68
import AddressIcon from '@/components/icons/AddressIcon';
79
import { BackButton } from '@/components/ui/BackButton';
810
import { useTabParam } from '@/hooks/usePageParam';
@@ -74,7 +76,7 @@ function AddressRoute() {
7476
'WORKERPOOLS',
7577
];
7678
const [currentTab, setCurrentTab] = useTabParam('addressTab', tabLabels, 0);
77-
const { chainId } = useUserStore();
79+
const { chainId, address: userAddress } = useUserStore();
7880
const { addressAddress } = Route.useParams();
7981
const {
8082
data: address,
@@ -86,6 +88,29 @@ function AddressRoute() {
8688
error,
8789
} = useAddressData((addressAddress as string).toLowerCase(), chainId!);
8890

91+
const navigate = useNavigate();
92+
const search = useSearch({ strict: false });
93+
const { chainSlug } = Route.useParams();
94+
const fromMyActivity = search?.['from'] === 'my_activity';
95+
96+
useEffect(() => {
97+
if (
98+
fromMyActivity &&
99+
userAddress &&
100+
addressAddress?.toLowerCase() !== userAddress?.toLowerCase()
101+
) {
102+
navigate({
103+
to: `/${chainSlug}/address/${userAddress}`,
104+
search: (prev: Record<string, unknown>) => ({
105+
...prev,
106+
from: 'my_activity',
107+
}),
108+
replace: true,
109+
resetScroll: false,
110+
});
111+
}
112+
}, [userAddress, addressAddress, fromMyActivity, navigate, chainSlug]);
113+
89114
const addressDetails = address ? buildAddressDetails({ address }) : undefined;
90115
const addressOverview = address
91116
? buildAddressOverview({ address })
@@ -121,14 +146,19 @@ function AddressRoute() {
121146
}
122147

123148
if (isError && error instanceof NotFoundError) {
124-
return <ErrorAlert className="my-16" message="Address not found." />;
149+
return (
150+
<ErrorAlert className="my-16" message="No data found for this address." />
151+
);
125152
}
126153

127154
return (
128155
<div className="mt-8 flex flex-col gap-6">
129156
<SearcherBar className="py-6" />
130157

131158
<div className="space-y-2">
159+
{isError && error instanceof NotFoundError ? (
160+
<ErrorAlert message="Address not found." />
161+
) : null}
132162
<h1 className="flex items-center gap-2 font-sans text-2xl font-extrabold">
133163
<AddressIcon size={24} />
134164
Address details

0 commit comments

Comments
 (0)