From 0bc2814dfdded64c30a87423c789038732f9a0a8 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Thu, 7 May 2026 12:53:56 +0200 Subject: [PATCH 1/2] refactor(slot): regroup sub-tabs and shorten slugs Collapses the near-duplicate slot detail tabs that grew once blocks started carrying both legacy and EL-request variants of the same operation, and shortens the Bootstrap tab IDs into compact slugs that double as URL hash fragments thanks to the existing hash-sync JS. Combined tabs (single tab, stacked sections): Deposits = Deposit Requests + Legacy Deposits Withdrawals = Withdrawal Requests + Executed Withdrawals Slashings = Attester Slashings + Proposer Slashings Transactions is now one top-level tab with an inner Bootstrap pills sub-nav for Transactions (default) and Access List. Slug renames (URL hash = pane id, single source of truth in template): ptcVotes -> ptc blsChange -> bls blobSidecars -> blobs inclusionLists -> focils consolidationRequests -> consolidations voluntary-exits -> exits attester-slashings + proposer-slashings -> slashings depositRequests folded into deposits withdrawalRequests folded into withdrawals accessList moved into transactions sub-pill (#bals) New tab order: Overview, Transactions (with Tx / Access List pills), Bids, Attestations, Deposits, Consolidations, Exits, Withdrawals, Slashings, PTC, BLS, Blobs, FOCILs, Proofs, Download. The blob loader link in templates/slot/blobs.html now anchors to #blobs to match the renamed tab. Combined tab badges use addUI64 so the count reflects both inner sections. --- templates/slot/blobs.html | 2 +- templates/slot/slot.html | 306 +++++++++++++++++++------------------- 2 files changed, 155 insertions(+), 153 deletions(-) diff --git a/templates/slot/blobs.html b/templates/slot/blobs.html index f913dc26d..337623d85 100644 --- a/templates/slot/blobs.html +++ b/templates/slot/blobs.html @@ -32,7 +32,7 @@
diff --git a/templates/slot/slot.html b/templates/slot/slot.html index 8360d5101..0cbf7e7f6 100644 --- a/templates/slot/slot.html +++ b/templates/slot/slot.html @@ -38,7 +38,7 @@

Overview {{ if .Block }} - {{ if gt .Block.TransactionsCount 0 }} + {{ if or (gt .Block.TransactionsCount 0) (and .Block.ExecutionData .Block.ExecutionData.BlockAccessList) }} @@ -51,69 +51,49 @@

- {{ if gt .Block.PtcVotesCount 0 }} + {{ if or (gt .Block.DepositsCount 0) (gt .Block.DepositRequestsCount 0) }} {{ end }} - {{ if gt .Block.DepositsCount 0 }} + {{ if gt .Block.ConsolidationRequestsCount 0 }} {{ end }} {{ if gt .Block.VoluntaryExitsCount 0 }} {{ end }} - {{ if gt .Block.AttesterSlashingsCount 0 }} + {{ if or (gt .Block.WithdrawalsCount 0) (gt .Block.WithdrawalRequestsCount 0) }} {{ end }} - {{ if gt .Block.ProposerSlashingsCount 0 }} + {{ if or (gt .Block.AttesterSlashingsCount 0) (gt .Block.ProposerSlashingsCount 0) }} {{ end }} - {{ if gt .Block.WithdrawalsCount 0 }} + {{ if gt .Block.PtcVotesCount 0 }} {{ end }} {{ if gt .Block.BLSChangesCount 0 }} {{ end }} {{ if gt .Block.BlobsCount 0 }} - {{ end }} - {{ if gt .Block.DepositRequestsCount 0 }} - - {{ end }} - {{ if gt .Block.WithdrawalRequestsCount 0 }} - - {{ end }} - {{ if gt .Block.ConsolidationRequestsCount 0 }} - - {{ end }} - {{ if and .Block.ExecutionData .Block.ExecutionData.BlockAccessList }} - {{ end }} {{ if gt .Block.InclusionListsCount 0 }} {{ end }} {{ if gt .Block.ExecutionProofsCount 0 }} @@ -123,7 +103,7 @@

{{ end }} {{ if .Block }} @@ -138,19 +118,75 @@

{{ if .Block }} - {{ if gt .Block.TransactionsCount 0 }} -
+ {{ if or (gt .Block.TransactionsCount 0) (and .Block.ExecutionData .Block.ExecutionData.BlockAccessList) }} + {{ $hasBal := and .Block.ExecutionData .Block.ExecutionData.BlockAccessList }} + {{ $hasTxs := gt .Block.TransactionsCount 0 }} +
+ {{ if and $hasTxs $hasBal }} + +
+
+
+
+
+

Showing {{ .Block.TransactionsCount }} Transactions

+
+
+ {{ template "block_transactions" . }} +
+
+
+
+
+
+

Block Access List (EIP-7928)

+
+
+ {{ template "block_access_list" . }} +
+
+
+ {{ else if $hasTxs }} +
+
+
+

Showing {{ .Block.TransactionsCount }} Transactions

+
+
+ {{ template "block_transactions" . }} +
+ {{ else if $hasBal }} +
+
+
+

Block Access List (EIP-7928)

+
+
+ {{ template "block_access_list" . }} +
+ {{ end }} +
+ {{ end }} + {{ if gt .Block.BidsCount 0 }} +
-

Showing {{ .Block.TransactionsCount }} Transactions

+

Showing {{ .Block.BidsCount }} Execution Payload Bids

- {{ template "block_transactions" . }} + {{ template "block_bids" . }}
{{ end }} -
+
@@ -163,164 +199,140 @@

{{ template "block_attestations" . }}
- {{ if gt .Block.DepositsCount 0 }} -
-
-
-
-

Showing {{ .Block.DepositsCount }} Deposits

-
-
- {{ template "block_deposits" . }} -
-
- {{ end }} - {{ if gt .Block.VoluntaryExitsCount 0 }} -
-
-
-
-

Showing {{ .Block.VoluntaryExitsCount }} Exits

-
-
- {{ template "block_voluntary_exits" . }} -
-
- {{ end }} - {{ if gt .Block.AttesterSlashingsCount 0 }} -
-
-
-
-

Showing {{ .Block.AttesterSlashingsCount }} Attester Slashing(s)

+ {{ if or (gt .Block.DepositsCount 0) (gt .Block.DepositRequestsCount 0) }} +
+ {{ if gt .Block.DepositRequestsCount 0 }} +
+
+
+

Showing {{ .Block.DepositRequestsCount }} Deposit Requests

+
+ {{ template "block_deposit_requests" . }}
-
- {{ template "block_attesterSlashing" . }} -
- {{ end }} - {{ if gt .Block.ProposerSlashingsCount 0 }} -
-
-
-
-

Showing {{ .Block.ProposerSlashingsCount }} Proposer Slashing(s)

+ {{ end }} + {{ if gt .Block.DepositsCount 0 }} +
+
+
+

Showing {{ .Block.DepositsCount }} Legacy Deposits

+
+ {{ template "block_deposits" . }}
-
- {{ template "block_proposerSlashing" . }} + {{ end }}
{{ end }} - {{ if gt .Block.WithdrawalsCount 0 }} -
+ {{ if gt .Block.ConsolidationRequestsCount 0 }} +
-

Showing {{ .Block.WithdrawalsCount }} Withdrawals

+

Showing {{ .Block.ConsolidationRequestsCount }} Consolidation Requests

- {{ template "block_withdrawals" . }} + {{ template "block_consolidation_requests" . }}
{{ end }} - {{ if gt .Block.BLSChangesCount 0 }} -
+ {{ if gt .Block.VoluntaryExitsCount 0 }} +
-

Showing {{ .Block.BLSChangesCount }} BLS changes

+

Showing {{ .Block.VoluntaryExitsCount }} Voluntary Exits

- {{ template "block_blsChange" . }} + {{ template "block_voluntary_exits" . }}
{{ end }} - {{ if gt .Block.BlobsCount 0 }} -
-
-
-
-

Showing {{ .Block.BlobsCount }} Blob sidecars

+ {{ if or (gt .Block.WithdrawalsCount 0) (gt .Block.WithdrawalRequestsCount 0) }} +
+ {{ if gt .Block.WithdrawalRequestsCount 0 }} +
+
+
+

Showing {{ .Block.WithdrawalRequestsCount }} Withdrawal Requests

+
+ {{ template "block_withdrawal_requests" . }}
-
- {{ template "block_blobSidecar" . }} -
- {{ end }} - {{ if gt .Block.DepositRequestsCount 0 }} -
-
-
-
-

Showing {{ .Block.DepositRequestsCount }} Deposit Requests

+ {{ end }} + {{ if gt .Block.WithdrawalsCount 0 }} +
+
+
+

Showing {{ .Block.WithdrawalsCount }} Executed Withdrawals

+
+ {{ template "block_withdrawals" . }}
-
- {{ template "block_deposit_requests" . }} + {{ end }}
{{ end }} - {{ if gt .Block.WithdrawalRequestsCount 0 }} -
-
-
-
-

Showing {{ .Block.WithdrawalRequestsCount }} Withdrawal Requests

+ {{ if or (gt .Block.AttesterSlashingsCount 0) (gt .Block.ProposerSlashingsCount 0) }} +
+ {{ if gt .Block.AttesterSlashingsCount 0 }} +
+
+
+

Showing {{ .Block.AttesterSlashingsCount }} Attester Slashing(s)

+
-
- {{ template "block_withdrawal_requests" . }} -
- {{ end }} - {{ if gt .Block.ConsolidationRequestsCount 0 }} -
-
-
-
-

Showing {{ .Block.ConsolidationRequestsCount }} Consolidation Requests

+ {{ template "block_attesterSlashing" . }} + {{ end }} + {{ if gt .Block.ProposerSlashingsCount 0 }} +
+
+
+

Showing {{ .Block.ProposerSlashingsCount }} Proposer Slashing(s)

+
-
- {{ template "block_consolidation_requests" . }} + {{ template "block_proposerSlashing" . }} + {{ end }}
{{ end }} - {{ if and .Block.ExecutionData .Block.ExecutionData.BlockAccessList }} -
+ {{ if gt .Block.PtcVotesCount 0 }} +
-

Block Access List (EIP-7928)

+

Showing {{ .Block.PtcVotesCount }} PTC Votes (for slot {{ .Block.PtcVotes.VotedSlot }})

- {{ template "block_access_list" . }} + {{ template "block_ptc_votes" . }}
{{ end }} - {{ if gt .Block.BidsCount 0 }} -
+ {{ if gt .Block.BLSChangesCount 0 }} +
-

Showing {{ .Block.BidsCount }} Execution Payload Bids

+

Showing {{ .Block.BLSChangesCount }} BLS Changes

- {{ template "block_bids" . }} + {{ template "block_blsChange" . }}
{{ end }} - {{ if gt .Block.PtcVotesCount 0 }} -
+ {{ if gt .Block.BlobsCount 0 }} +
-

Showing {{ .Block.PtcVotesCount }} PTC Votes (for slot {{ .Block.PtcVotes.VotedSlot }})

+

Showing {{ .Block.BlobsCount }} Blob Sidecars

- {{ template "block_ptc_votes" . }}
+ {{ template "block_blobSidecar" . }}
{{ end }} {{ if gt .Block.InclusionListsCount 0 }} -
+
@@ -332,7 +344,7 @@

Showing {{ .Block.InclusionListsCount }}

{{ end }} {{ if gt .Block.ExecutionProofsCount 0 }} -
+
@@ -439,15 +451,6 @@
Tracoor Traces
{{ end }}