Skip to content

Commit 0e8315c

Browse files
paulbalajiclaude
andcommitted
fix: use primary purple for ICA pending states instead of blue
Blue clashed with the purple theme. Pending cards now use primary-25/200/300 which blends naturally with the rest of the UI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08bcb7d commit 0e8315c

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

src/features/messages/cards/IcaDetailsCard.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
294294
</div>
295295
</div>
296296
) : (
297-
<div className="rounded-md border border-blue-100/40 bg-blue-50/15 p-3">
297+
<div className="rounded-md border border-primary-100/40 bg-primary-25/20 p-3">
298298
<div className="flex items-start gap-2">
299-
<span className="text-blue-400"></span>
299+
<span className="text-primary-200"></span>
300300
<div className="flex-1">
301-
<div className="text-sm font-medium text-blue-500">
301+
<div className="text-sm font-medium text-primary-300">
302302
{relatedMessage && relatedMessageType === IcaMessageType.REVEAL
303303
? 'Reveal Pending Delivery'
304304
: 'Commitment Pending Reveal'}
@@ -314,7 +314,7 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
314314
className="mt-0.5 shrink-0 opacity-60 hover:opacity-100"
315315
/>
316316
</div>
317-
<div className="mt-2 text-xs text-blue-400">
317+
<div className="mt-2 text-xs text-primary-200">
318318
{relatedMessage && relatedMessageType === IcaMessageType.REVEAL
319319
? 'The REVEAL message is waiting to be delivered on the destination chain.'
320320
: 'A subsequent REVEAL message with matching calls must be sent to execute.'}
@@ -323,14 +323,14 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
323323
<div className="mt-2">
324324
<Link
325325
href={`/message/${relatedMessage.msgId}`}
326-
className="inline-flex items-center gap-1 text-xs font-medium text-blue-500 underline hover:text-blue-400"
326+
className="inline-flex items-center gap-1 text-xs font-medium text-primary-300 underline hover:text-primary-200"
327327
>
328328
View REVEAL message →
329329
</Link>
330330
</div>
331331
)}
332332
{isRelatedFetching && (
333-
<div className="mt-2 text-xs text-blue-300">
333+
<div className="mt-2 text-xs text-primary-100">
334334
Looking for related REVEAL message...
335335
</div>
336336
)}
@@ -380,11 +380,13 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
380380
</div>
381381
</div>
382382
) : (
383-
<div className="rounded-md border border-blue-100/40 bg-blue-50/15 p-3">
383+
<div className="rounded-md border border-primary-100/40 bg-primary-25/20 p-3">
384384
<div className="flex items-start gap-2">
385-
<span className="text-blue-400"></span>
385+
<span className="text-primary-200"></span>
386386
<div className="flex-1">
387-
<div className="text-sm font-medium text-blue-500">Revealing Commitment</div>
387+
<div className="text-sm font-medium text-primary-300">
388+
Revealing Commitment
389+
</div>
388390
<div className="mt-2 flex items-start gap-2">
389391
<div className="min-w-0 flex-1 break-all font-mono text-xs text-gray-600">
390392
{decodeResult.commitment}
@@ -396,21 +398,21 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
396398
className="mt-0.5 shrink-0 opacity-60 hover:opacity-100"
397399
/>
398400
</div>
399-
<div className="mt-2 text-xs text-blue-400">
401+
<div className="mt-2 text-xs text-primary-200">
400402
Waiting for message to be delivered on the destination chain.
401403
</div>
402404
{relatedMessage && relatedMessageType === IcaMessageType.COMMITMENT && (
403405
<div className="mt-2">
404406
<Link
405407
href={`/message/${relatedMessage.msgId}`}
406-
className="inline-flex items-center gap-1 text-xs font-medium text-blue-500 underline hover:text-blue-400"
408+
className="inline-flex items-center gap-1 text-xs font-medium text-primary-300 underline hover:text-primary-200"
407409
>
408410
← View corresponding COMMITMENT message
409411
</Link>
410412
</div>
411413
)}
412414
{isRelatedFetching && (
413-
<div className="mt-2 text-xs text-blue-300">
415+
<div className="mt-2 text-xs text-primary-100">
414416
Looking for related COMMITMENT message...
415417
</div>
416418
)}
@@ -445,7 +447,7 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
445447
The secret calls must be posted to this gateway by the commitment sender, who
446448
specifies which relayers are authorized to fetch and deliver the calls.
447449
</div>
448-
<div className="mt-2 text-xs text-blue-400">
450+
<div className="mt-2 text-xs text-primary-200">
449451
If delivery is failing, the calls may not have been posted to the gateway, or no
450452
authorized relayer is available.
451453
</div>
@@ -533,7 +535,7 @@ export function IcaDetailsCard({ message, blur, debugResult }: Props) {
533535
decodeResult.messageType === IcaMessageType.REVEAL) && (
534536
<div className="space-y-3 pt-2">
535537
<label
536-
className={`text-sm font-medium ${isDelivered ? 'text-green-500' : 'text-blue-500'}`}
538+
className={`text-sm font-medium ${isDelivered ? 'text-green-500' : 'text-primary-300'}`}
537539
>
538540
{isDelivered ? 'Calls executed:' : 'Calls to execute:'}
539541
</label>
@@ -641,8 +643,8 @@ function IcaCallDetails({
641643
statusSuffix = ' — Failed';
642644
} else {
643645
// Pending (either not checked yet, or after a failed call)
644-
borderClass = 'border-blue-100/40 bg-blue-50/15';
645-
labelClass = 'text-blue-500';
646+
borderClass = 'border-primary-100/40 bg-primary-25/20';
647+
labelClass = 'text-primary-300';
646648
}
647649

648650
return (

0 commit comments

Comments
 (0)