Skip to content

Support emitted event date on the logs list#3268

Merged
tom2drum merged 3 commits intomainfrom
tom2drum/issue-3131
Feb 6, 2026
Merged

Support emitted event date on the logs list#3268
tom2drum merged 3 commits intomainfrom
tom2drum/issue-3131

Conversation

@tom2drum
Copy link
Copy Markdown
Collaborator

@tom2drum tom2drum commented Feb 6, 2026

Description and Related Issue(s)

Adds support for displaying the emitted event date on the logs list on contract (address) and transaction views. When viewing logs in address context and the API provides block_timestamp for a log entry, a "Timestamp" row is shown with the event time using the existing DetailedInfoTimestamp component.

Proposed Changes

  • types/api/log.ts — Added block_timestamp: string | null to the Log interface so the frontend can consume the field when the backend exposes it (see blockscout/blockscout#13572).
  • ui/shared/logs/LogItem.tsx — When type === 'address' and both transaction_hash and block_timestamp are present, render a "Timestamp" row with DetailedInfoTimestamp. No change for transaction view (single tx, so timestamp is redundant).
  • stubs/log.ts — Added block_timestamp to the log stub for local/dev.
  • LogItem.pw.tsx — Added a test case for the default data type scenario that includes block_timestamp so the timestamp row is covered.
  • LogDecodedInputDataTable.tsx — Minor copy button alignment fix.

Breaking or Incompatible Changes

None.

Additional Information

Backend support is tracked in blockscout/blockscout#13572. The UI is backward-compatible: when block_timestamp is missing or null, the timestamp row is not shown.

Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added a feature or functionality that is not privacy-compliant (e.g., tracking, analytics, third-party services), I have disabled it for private mode.
  • If I have added, changed, renamed, or removed an environment variable
    • I updated the list of environment variables in the documentation
    • I made the necessary changes to the validator script according to the guide
    • I added "ENVs" label to this pull request

@tom2drum tom2drum added the enhancement New feature or request label Feb 6, 2026
@tom2drum tom2drum merged commit e654704 into main Feb 6, 2026
12 checks passed
@tom2drum tom2drum deleted the tom2drum/issue-3131 branch February 6, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change copy button alignment in Logs, etc Support emitted event date on the logs list

1 participant