feat(webhook-log): Add responsive mobile card view for webhook log entries#170
Open
NUMBER72857 wants to merge 1 commit into
Open
feat(webhook-log): Add responsive mobile card view for webhook log entries#170NUMBER72857 wants to merge 1 commit into
NUMBER72857 wants to merge 1 commit into
Conversation
…reens (Tx-wat#104) - WebhookLogCard: stacked card layout with event, status badge, timestamp, contract address (truncated), amount+asset, and Stellar Explorer tx link - STATUS_STYLES: green/red/yellow colour tokens via Tailwind dark-mode safe classes - truncateHash(): 8-char prefix/suffix with ellipsis for long hashes - formatTimestamp(): locale-aware medium date + short time via Intl.DateTimeFormat - 8 rendering tests: event, status classes, conditional sections, explorer link attrs Integration (WebhookLog.tsx): <div className='hidden sm:block'> <-- existing table --> </div> <div className='sm:hidden space-y-3'> {entries.map(e => <WebhookLogCard key={e.id} entry={e} />)} </div> Closes Tx-wat#104
|
@NUMBER72857 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the overflowing horizontal table on narrow screens with a stacked card layout. Desktop keeps the existing table; mobile (
sm:hidden) rendersWebhookLogCardper entry.Changes
components/WebhookLogCard.tsx:Intl.DateTimeFormatnoopener__tests__/WebhookLogCard.test.tsx: 8 tests covering render, conditional sections, link attrsIntegration (2-line change in WebhookLog.tsx)
Closes #104