Skip to content

Commit 61ecf2a

Browse files
committed
chore(dashboard):
- fix dark mod transction builder - enable paseo network on XCM (Transaction Builder) - improve transaction monitor - improve design ui/ux presetSelector
1 parent 2a1ca57 commit 61ecf2a

20 files changed

Lines changed: 3448 additions & 915 deletions

.papi/descriptors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0-autogenerated.10542860469198549051",
2+
"version": "0.1.0-autogenerated.2387082806310248604",
33
"name": "@polkadot-api/descriptors",
44
"files": [
55
"dist"

.papi/metadata/acala.scale

168 KB
Binary file not shown.

.papi/polkadot-api.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@
191191
"wsUrl": "wss://rpc1.paseo.popnetwork.xyz",
192192
"metadata": ".papi/metadata/popnetworkpaseo.scale",
193193
"genesis": "0xe8b2d197b82a0da1fffca832c050894ebe343b289c61ef439aa694bdcef78aa1"
194+
},
195+
"acala": {
196+
"wsUrl": "wss://api-acala.n.dwellir.com/1791deb9-183c-4d92-9c70-a9fba633bee4",
197+
"metadata": ".papi/metadata/acala.scale",
198+
"genesis": "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"
194199
}
195200
}
196201
}

scripts/update-chains.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const CHAINS_CONFIG = [
4242
{ id: 'westend_collectives', descriptor: 'westendcollectives', wellknownName: 'collectives_westend', rpcs: ['wss://westend-collectives-rpc.polkadot.io'] },
4343
{ id: 'paseo', descriptor: 'paseo', wellknownName: 'paseo', rpcs: ['wss://pas-rpc.stakeworld.io', 'wss://paseo.dotters.network'] },
4444

45-
// --- Other Ecosystem Chains (updated via RPC endpoint) ---
45+
// --- Other Ecosystem Chains (updated via RPC endpoint) ---
46+
{ id: 'acala', descriptor: 'acala', rpcs: ['wss://api-acala.n.dwellir.com/1791deb9-183c-4d92-9c70-a9fba633bee4'] },
4647
{ id: 'paseo_asset_hub', descriptor: 'paseoassethub', rpcs: ['wss://asset-hub-paseo-rpc.dwellir.com', 'wss://asset-hub-paseo.dotters.network', 'wss://sys.turboflakes.io/asset-hub-paseo'] },
4748
{ id: 'paseo_bridge_hub', descriptor: 'paseobridgehub', rpcs: ['wss://bridge-hub-paseo.dotters.network'] },
4849
{ id: 'paseo_coretime', descriptor: 'paseocoretime', rpcs: ['wss://coretime-paseo.dotters.network', 'wss://paseo-coretime.paranodes.io'] },

src/components/blockchain/builder/components/ArgumentInput.tsx

Lines changed: 421 additions & 101 deletions
Large diffs are not rendered by default.
Lines changed: 59 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,68 @@
1-
/* eslint-disable react/display-name */
1+
/* eslint-disable react/display-name */
22

3-
import React from "react";
3+
import React, { useState } from "react";
44
import type { TransactionPreset } from "../types/transaction.types";
55

66
interface PresetSelectorProps {
77
presets: TransactionPreset[];
88
onSelect: (preset: TransactionPreset) => void;
99
}
1010

11-
export const PresetSelector: React.FC<PresetSelectorProps> = React.memo(({ presets, onSelect }) => (
12-
<div className="space-y-4">
13-
<h3 className="text-lg font-medium">Select Transaction Type</h3>
14-
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
15-
{presets.map(preset => (
16-
<button
17-
key={preset.id}
18-
onClick={() => onSelect(preset)}
19-
className="p-4 text-left border border-gray-200 rounded-lg hover:border-blue-300 hover:bg-blue-50 transition-colors"
20-
>
21-
<div className="font-medium">{preset.name}</div>
22-
<div className="text-sm text-gray-600 mt-1">{preset.description}</div>
23-
</button>
24-
))}
11+
export const PresetSelector: React.FC<PresetSelectorProps> = React.memo(({ presets, onSelect }) => {
12+
const [hoveredId, setHoveredId] = useState<string | null>(null);
13+
14+
return (
15+
<div className="space-y-4">
16+
<h3 className="text-lg font-medium text-theme-primary">Select Transaction Type</h3>
17+
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
18+
{presets.map(preset => {
19+
const isHovered = hoveredId === preset.id;
20+
21+
return (
22+
<button
23+
key={preset.id}
24+
onClick={() => onSelect(preset)}
25+
onMouseEnter={() => setHoveredId(preset.id)}
26+
onMouseLeave={() => setHoveredId(null)}
27+
className="p-4 text-left border rounded-lg transition-all duration-200
28+
bg-theme-surface border-theme
29+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-network-primary
30+
relative overflow-hidden"
31+
>
32+
33+
<div
34+
className={`absolute inset-0 bg-network-primary opacity-0 transition-opacity duration-300
35+
${isHovered ? 'opacity-5 dark:opacity-10' : ''}`}
36+
></div>
37+
38+
<div
39+
className={`font-medium text-theme-primary transition-colors
40+
${isHovered ? 'text-network-primary' : ''}`}
41+
>
42+
{preset.name}
43+
</div>
44+
<div
45+
className={`text-sm text-theme-secondary transition-colors mt-1
46+
${isHovered ? 'text-theme-primary' : ''}`}
47+
>
48+
{preset.description}
49+
</div>
50+
51+
52+
<div
53+
className={`absolute right-3 top-1/2 -translate-y-1/2 transition-opacity
54+
${isHovered ? 'opacity-100' : 'opacity-0'}`}
55+
>
56+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
57+
stroke="currentColor" className="text-network-primary">
58+
<path d="M9 18l6-6-6-6" strokeWidth="2"
59+
strokeLinecap="round" strokeLinejoin="round" />
60+
</svg>
61+
</div>
62+
</button>
63+
);
64+
})}
65+
</div>
2566
</div>
26-
</div>
27-
));
67+
);
68+
});

0 commit comments

Comments
 (0)