Skip to content

Commit 0ef607c

Browse files
authored
fix(ui): remove bundle and reverting tags from UI (#120)
Remove the "Bundle" tag from block transaction rows and the "Reverting" badge from bundle transaction details as these labels are no longer needed.
1 parent 8bb2117 commit 0ef607c

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

ui/src/app/block/[hash]/page.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ function TransactionRow({
128128
{tx.hash}
129129
</span>
130130
)}
131-
{hasBundle && (
132-
<span className="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-700">
133-
Bundle
134-
</span>
135-
)}
136131
</div>
137132
<div className="text-xs text-gray-500 mt-0.5">
138133
{tx.from.slice(0, 6)}...{tx.from.slice(-4)}

ui/src/app/bundles/[uuid]/page.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ function Card({
158158
function TransactionDetails({
159159
tx,
160160
index,
161-
isReverting,
162161
}: {
163162
tx: BundleTransaction;
164163
index: number;
165-
isReverting: boolean;
166164
}) {
167165
const [expanded, setExpanded] = useState(index === 0);
168166

@@ -182,7 +180,6 @@ function TransactionDetails({
182180
<span className="font-mono text-sm text-gray-900">
183181
{tx.hash.slice(0, 10)}...{tx.hash.slice(-8)}
184182
</span>
185-
{isReverting && <Badge variant="warning">Reverting</Badge>}
186183
</div>
187184
<div className="text-xs text-gray-500 mt-0.5">
188185
{tx.signer.slice(0, 6)}...{tx.signer.slice(-4)}{" "}
@@ -482,7 +479,6 @@ export default function BundlePage({ params }: PageProps) {
482479
.filter((e) => e.data?.bundle)
483480
.map((e) => e.data.bundle)
484481
.pop();
485-
const revertingHashes = new Set(latestBundle?.reverting_tx_hashes || []);
486482

487483
return (
488484
<div className="min-h-screen bg-gray-50">
@@ -560,12 +556,7 @@ export default function BundlePage({ params }: PageProps) {
560556
<SectionTitle>Transactions</SectionTitle>
561557
<div className="space-y-3">
562558
{latestBundle.txs.map((tx, index) => (
563-
<TransactionDetails
564-
key={tx.hash}
565-
tx={tx}
566-
index={index}
567-
isReverting={revertingHashes.has(tx.hash)}
568-
/>
559+
<TransactionDetails key={tx.hash} tx={tx} index={index} />
569560
))}
570561
</div>
571562
</section>

0 commit comments

Comments
 (0)