Skip to content

feat(landing): build interactive kinetic ledger explorer mockup - #352

Open
Olorunfemi20 wants to merge 1 commit into
SwiftChainn:mainfrom
Olorunfemi20:feat/landing-kinetic-explorer
Open

feat(landing): build interactive kinetic ledger explorer mockup#352
Olorunfemi20 wants to merge 1 commit into
SwiftChainn:mainfrom
Olorunfemi20:feat/landing-kinetic-explorer

Conversation

@Olorunfemi20

Copy link
Copy Markdown

Closes #311

Summary
Implements the Kinetic Ledger Explorer browser-window widget for the landing page: a mock browser chrome housing a live transaction feed and network metrics (TPS, latency, ledger number, active validators).

Implementation follows the required Component -> Hook -> Service layering:

  • types/kineticExplorer.ts: LedgerTransaction and NetworkMetrics shapes
  • services/kineticExplorerService.ts: fetches a snapshot from GET /network/kinetic-explorer via axios
  • hooks/useKineticExplorer.ts: owns loading/error state, aborts in-flight requests on unmount, exposes refetch
  • components/landing/KineticExplorer.tsx: renders the widget only, no data fetching or inline mock objects

The internal grid (metrics column + transaction table) reflows from a 3-column layout to a stacked layout below the sm breakpoint without breaking its structure, so the widget scales proportionally on smaller viewports.

Testing

  • services/tests/kineticExplorerService.test.ts
  • hooks/tests/useKineticExplorer.test.ts
  • components/landing/tests/KineticExplorer.test.tsx
    All 9 tests pass; eslint and tsc report no new issues.

Add the Kinetic Ledger Explorer browser-window widget for the landing
page. The widget renders a live transaction feed and network metrics
(TPS, latency, ledger number, active validators) inside a mock browser
chrome, following the Component -> Hook -> Service pattern:

- types/kineticExplorer.ts defines the ledger transaction and network
  metrics shapes
- services/kineticExplorerService.ts fetches a snapshot from
  /network/kinetic-explorer
- hooks/useKineticExplorer.ts owns loading/error state and exposes a
  refetch handler, aborting in-flight requests on unmount
- components/landing/KineticExplorer.tsx renders the widget with a
  responsive grid that reflows the metrics/transactions layout on
  small screens without breaking the internal structure

Wired into the landing page hero section in app/page.tsx.
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@Olorunfemi20 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! 🚀

Learn more about application limits

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.

Frontend: Kinetic Ledger Tech Explorer Widget

1 participant