Skip to content

feat(explorer): remember timestamp format across navigation and reloads - #1300

Open
0xKitsune wants to merge 4 commits into
mainfrom
factory/explorer-time-format
Open

0xKitsune wants to merge 4 commits into
mainfrom
factory/explorer-time-format

Conversation

@0xKitsune

@0xKitsune 0xKitsune commented Oct 1, 2026 •

Copy link
Copy Markdown

This PR remembers the explorer's timestamp format across navigation and reloads, so users can keep UTC, local time, or Unix timestamps selected. It also adds the explorer's ordered factory configuration, pinned to the shared skills library.

Mental model

All existing timestamp controls subscribe to one browser store:

const timeFormat = React.useSyncExternalStore(
	subscribeTimeFormat,
	getTimeFormat,
	getServerTimeFormat,
)

The server and initial hydration render relative time. The client restores a validated preference from tempo-explorer-time-format; unavailable storage leaves the selection usable in memory. Restored browser-history documents reconcile their saved preference.

The relative → local → UTC → Unix cycle, formatting, controls, and explicitly fixed-format timestamps remain unchanged. Live synchronization between tabs is outside this change. There are no backend, dependency, or chain changes.

factory.yaml uses stages: to select reusable skills and checks in list order, pinned to factory ad2edcd. It is an agent procedure, not an executor. Merge and deployment are disabled for this pilot.

Testing

  • Explorer suites: 205 worker tests and 318 Node tests passed, including 31 new preference tests; one existing test skipped.
  • Root type checks, Biome, Tempo lints, test types, explorer build, and precommit hooks passed. All required current-head GitHub checks passed.
  • Independent real React hydration/Strict Mode checks and Chrome Back/Forward cache tests passed. Actual explorer navigation and reloads retained the selected format, including rendered UTC and Unix timestamps.

Independent verification caught a stale preference when Chrome restored a document from its back-forward cache. The repair includes regression coverage. Evidence and run status.

The bundle bot used an April baseline. Fresh builds against this PR's actual base add 765 bytes of client JS/CSS, or 345 gzip bytes. Preview deployment was skipped by the existing membership guard.

Cyclops completed 12/12 investigations and posted no actionable findings, but its archived report marks review completeness Blocked: some conclusions lack recorded exact source reads, and the external pinned factory workflow was outside the review context. Final status and evidence. This PR is not yet cleared for merge. The shared factory is an agent-operated procedure; it has no custom executor. Nothing has been merged or deployed.

Screenshots

After selecting UTC and reloading the same Tokens view:

Before After
Before: selection resets to relative After: UTC remains selected

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Bundle Size Report

Metric Size Δ Change
Total 17.4 MB +13.1 MB (+309.9%)
Gzip 3.9 MB +2.7 MB (+219.9%)
Brotli 3.3 MB +2.2 MB (+209.7%)
Chunk changes (>1KB)
Chunk Change
assets/chains.js (removed) -360.7 KB
assets/tempo-queries.js -301.0 KB
assets/core.js (removed) -189.5 KB
assets/export-rate-limit.js (removed) -177.3 KB
assets/engine-javascript.js (removed) -92.9 KB
assets/decodeAbiParameters.js (removed) -71.7 KB
assets/_hash.js -36.1 KB
assets/react.js -31.8 KB
assets/AbiItem.js (removed) -27.1 KB
assets/sha2.js (removed) -14.7 KB
assets/queryOptions.js -11.8 KB
assets/Bytes.js -9.6 KB
assets/Amount.js -9.6 KB
assets/env.js -9.2 KB
assets/fee-amm-pool-rows.js (removed) -6.6 KB
assets/DataGrid.js -5.8 KB
assets/validators.js (removed) -5.1 KB
assets/token.js -5.0 KB
assets/tokens.js -1.1 KB
assets/Value.js (removed) -1.0 KB
...and 358 more

Compared against main branch (baseline from 4/27/2026, 4:02:54 PM)

@0xKitsune

Copy link
Copy Markdown
Author

cyclops-audit fast

@0xKitsune 0xKitsune closed this Oct 1, 2026
@0xKitsune 0xKitsune reopened this Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Bundle Size Report

Metric Size Δ Change
Total 17.4 MB +13.1 MB (+309.9%)
Gzip 3.9 MB +2.7 MB (+219.9%)
Brotli 3.3 MB +2.2 MB (+209.7%)
Chunk changes (>1KB)
Chunk Change
assets/chains.js (removed) -360.7 KB
assets/tempo-queries.js -301.0 KB
assets/core.js (removed) -189.5 KB
assets/export-rate-limit.js (removed) -177.3 KB
assets/engine-javascript.js (removed) -92.9 KB
assets/decodeAbiParameters.js (removed) -71.7 KB
assets/_hash.js -36.1 KB
assets/react.js -31.8 KB
assets/AbiItem.js (removed) -27.1 KB
assets/sha2.js (removed) -14.7 KB
assets/queryOptions.js -11.8 KB
assets/Bytes.js -9.6 KB
assets/Amount.js -9.6 KB
assets/env.js -9.2 KB
assets/fee-amm-pool-rows.js (removed) -6.6 KB
assets/DataGrid.js -5.8 KB
assets/validators.js (removed) -5.1 KB
assets/token.js -5.0 KB
assets/tokens.js -1.1 KB
assets/Value.js (removed) -1.0 KB
...and 358 more

Compared against main branch (baseline from 4/27/2026, 4:02:54 PM)

@0xKitsune

Copy link
Copy Markdown
Author

cyclops-audit fast

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

Bundle Size Report

Metric Size Δ Change
Total 17.4 MB +13.1 MB (+309.9%)
Gzip 3.9 MB +2.7 MB (+219.9%)
Brotli 3.3 MB +2.2 MB (+209.7%)
Chunk changes (>1KB)
Chunk Change
assets/chains.js (removed) -360.7 KB
assets/tempo-queries.js -301.0 KB
assets/core.js (removed) -189.5 KB
assets/export-rate-limit.js (removed) -177.3 KB
assets/engine-javascript.js (removed) -92.9 KB
assets/decodeAbiParameters.js (removed) -71.7 KB
assets/_hash.js -36.1 KB
assets/react.js -31.8 KB
assets/AbiItem.js (removed) -27.1 KB
assets/sha2.js (removed) -14.7 KB
assets/queryOptions.js -11.8 KB
assets/Bytes.js -9.6 KB
assets/Amount.js -9.6 KB
assets/env.js -9.2 KB
assets/fee-amm-pool-rows.js (removed) -6.6 KB
assets/DataGrid.js -5.8 KB
assets/validators.js (removed) -5.1 KB
assets/token.js -5.0 KB
assets/tokens.js -1.1 KB
assets/Value.js (removed) -1.0 KB
...and 358 more

Compared against main branch (baseline from 4/27/2026, 4:02:54 PM)

@tempoxyz-bot tempoxyz-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ Cyclops Review — No actionable findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants