Skip to content

Commit 12e9155

Browse files
committed
fix(ui): remove bundle and reverting tags from UI
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 c6ae6f5 commit 12e9155

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
@@ -156,11 +156,9 @@ function Card({
156156
function TransactionDetails({
157157
tx,
158158
index,
159-
isReverting,
160159
}: {
161160
tx: BundleTransaction;
162161
index: number;
163-
isReverting: boolean;
164162
}) {
165163
const [expanded, setExpanded] = useState(index === 0);
166164

@@ -180,7 +178,6 @@ function TransactionDetails({
180178
<span className="font-mono text-sm text-gray-900">
181179
{tx.hash.slice(0, 10)}...{tx.hash.slice(-8)}
182180
</span>
183-
{isReverting && <Badge variant="warning">Reverting</Badge>}
184181
</div>
185182
<div className="text-xs text-gray-500 mt-0.5">
186183
{tx.signer.slice(0, 6)}...{tx.signer.slice(-4)}{" "}
@@ -480,7 +477,6 @@ export default function BundlePage({ params }: PageProps) {
480477
.filter((e) => e.data?.bundle)
481478
.map((e) => e.data.bundle)
482479
.pop();
483-
const revertingHashes = new Set(latestBundle?.reverting_tx_hashes || []);
484480

485481
return (
486482
<div className="min-h-screen bg-gray-50">
@@ -558,12 +554,7 @@ export default function BundlePage({ params }: PageProps) {
558554
<SectionTitle>Transactions</SectionTitle>
559555
<div className="space-y-3">
560556
{latestBundle.txs.map((tx, index) => (
561-
<TransactionDetails
562-
key={tx.hash}
563-
tx={tx}
564-
index={index}
565-
isReverting={revertingHashes.has(tx.hash)}
566-
/>
557+
<TransactionDetails key={tx.hash} tx={tx} index={index} />
567558
))}
568559
</div>
569560
</section>

0 commit comments

Comments
 (0)