Skip to content

Commit 836252e

Browse files
committed
Merge branch 'main' into feature/move-searchbar
2 parents 2a2466c + c448cff commit 836252e

File tree

11 files changed

+51
-38
lines changed

11 files changed

+51
-38
lines changed

.release-please-manifest.json

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

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.21.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.20.0...iexec-explorer-v1.21.0) (2025-09-16)
4+
5+
6+
### 🚀 Features
7+
8+
* add type and structure on datasets ([#67](https://github.com/iExecBlockchainComputing/explorer-v2/issues/67)) ([7eea17f](https://github.com/iExecBlockchainComputing/explorer-v2/commit/7eea17fbd9c371767b303c5465cac479935153ad))
9+
310
## [1.20.0](https://github.com/iExecBlockchainComputing/explorer-v2/compare/iexec-explorer-v1.19.0...iexec-explorer-v1.20.0) (2025-09-16)
411

512

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.20.0",
4+
"version": "1.21.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ export const datasetSchemaTypeGroups = [
7575
{ value: 'bool' },
7676
],
7777
},
78-
{
79-
label: 'Legacy Common Types (deprecated)',
80-
items: [{ value: 'number' }, { value: 'boolean' }],
81-
},
8278
{
8379
label: 'Popular File Types',
8480
items: [
@@ -104,4 +100,8 @@ export const datasetSchemaTypeGroups = [
104100
{ value: 'audio/x-wav' },
105101
],
106102
},
103+
{
104+
label: 'Legacy Common Types (deprecated)',
105+
items: [{ value: 'number' }, { value: 'boolean' }],
106+
},
107107
];

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,8 @@
279279
*::-webkit-scrollbar-track {
280280
@apply bg-grey-800 rounded-full;
281281
}
282+
283+
*::-webkit-scrollbar-corner {
284+
@apply bg-transparent;
285+
}
282286
}

src/modules/addresses/address/workers/beneficiaryDeals/addressContributionTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export function AddressContributionTable({
8787
addressAddress,
8888
currentPage: currentPage - 1,
8989
});
90-
console.log('AddressContributionTable', contribution);
9190

9291
return (
9392
<div className="space-y-6">

src/modules/datasets/SchemaSearch.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ export function SchemaSearch({
5050
onClick={() => setIsOpen(!isOpen)}
5151
>
5252
<SlidersHorizontal size={16} />
53-
<div className="flex-1 text-left">Schema Search</div>
53+
<p className="flex-1 text-left font-bold">
54+
Schema Search{' '}
55+
<span className="text-muted-foreground font-normal">
56+
Add field types to filter datasets by their schema structure.
57+
Filters are applied automatically.
58+
</span>
59+
</p>
5460
<ChevronDown
5561
className={cn(
5662
'ml-auto transition-transform',

src/modules/datasets/dataset/schema/TypeBadge.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { cn } from '@/lib/utils';
2+
import { Search } from 'lucide-react';
23
import React from 'react';
34
import {
45
Tooltip,
@@ -78,14 +79,14 @@ const renderTooltipContent = (
7879
))}
7980
{onSchemaSearch && (
8081
<button
81-
className="text-xs hover:underline"
82+
className="flex justify-center gap-1 pt-2 text-xs hover:underline"
8283
onClick={(event) => {
8384
event.stopPropagation();
8485
event.preventDefault();
8586
onSchemaSearch(schemaPaths);
8687
}}
8788
>
88-
Search schemas
89+
Search schemas <Search size="16" />
8990
</button>
9091
)}
9192
</div>
@@ -103,7 +104,7 @@ const TypeBadge: React.FC<TypeBadgeProps> = ({
103104
}) => {
104105
if (isLoading && schemaPaths && schemaPaths.length === 0) {
105106
return (
106-
<span className="border-muted-foreground text-muted-foreground rounded-full border px-4 py-2 text-xs">
107+
<span className="border-muted-foreground text-muted-foreground inline-flex rounded-full border px-4 py-2 text-xs">
107108
Loading...
108109
</span>
109110
);
@@ -152,14 +153,14 @@ const TypeBadge: React.FC<TypeBadgeProps> = ({
152153
{badges}
153154
{!enableTooltip && onSchemaSearch && (
154155
<button
155-
className="text-xs hover:underline"
156+
className="flex items-center gap-1 text-xs hover:underline"
156157
onClick={(event) => {
157158
event.stopPropagation();
158159
event.preventDefault();
159160
onSchemaSearch(schemaPaths);
160161
}}
161162
>
162-
Search schemas
163+
Search schemas <Search size="16" />
163164
</button>
164165
)}
165166
</div>

src/routes/$chainSlug/_layout/datasets.tsx

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ function formatDataset({
5151
schema?: SchemaFilter[];
5252
isSchemasLoading: boolean;
5353
}) {
54-
console.log('log', dataset, schema, isSchemasLoading);
55-
5654
return {
5755
address: dataset.address ?? '',
5856
name: dataset.name ?? '',
@@ -109,7 +107,6 @@ function useDatasetsData(currentPage: number) {
109107
datasetAddresses,
110108
chainId!
111109
);
112-
console.log(schemasMap);
113110
const formattedDatasets = datasets.map((dataset) =>
114111
formatDataset({
115112
dataset,
@@ -265,25 +262,24 @@ function DatasetsRoute() {
265262

266263
return (
267264
<div className="mt-8 grid gap-6">
268-
<div className="mt-6 flex flex-col justify-between lg:flex-row">
269-
<SearcherBar className="py-6 lg:order-last lg:mr-0 lg:max-w-md lg:py-0 xl:max-w-xl" />
270-
<div className="space-y-2">
271-
<h1 className="flex items-center gap-2 font-sans text-2xl font-extrabold">
272-
<DatasetIcon size={24} />
273-
Datasets
274-
{data.length > 0 && isError && (
275-
<span className="text-muted-foreground text-sm font-light">
276-
(outdated)
277-
</span>
278-
)}
279-
{(isLoading || isRefetching) && (
280-
<LoaderCircle className="animate-spin" />
281-
)}
282-
</h1>
283-
<div className="flex items-center gap-2">
284-
<BackButton />
285-
<DatasetBreadcrumbsList />
286-
</div>
265+
<SearcherBar className="py-6" />
266+
267+
<div className="space-y-2">
268+
<h1 className="flex items-center gap-2 font-sans text-2xl font-extrabold">
269+
<DatasetIcon size={24} />
270+
Datasets
271+
{data.length > 0 && isError && (
272+
<span className="text-muted-foreground text-sm font-light">
273+
(outdated)
274+
</span>
275+
)}
276+
{(isLoading || isRefetching) && (
277+
<LoaderCircle className="animate-spin" />
278+
)}
279+
</h1>
280+
<div className="flex items-center gap-2">
281+
<BackButton />
282+
<DatasetBreadcrumbsList />
287283
</div>
288284
</div>
289285

0 commit comments

Comments
 (0)