mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
Public sites carried leadership pages, team pages, advisor and executive rosters, and an executive-bios block on the press page. They are gone, along with the routes and navigation entries that led to them, so nothing links to a page that is no longer there. What the organisation does stands on its own. A visitor evaluating the work does not need a wall of headshots to do it, and a roster is a maintenance burden that goes stale the moment anyone moves. Contact points are addressed by function rather than by person, so a message reaches whoever holds that responsibility today. The Hanzo Team product pages and the AI agent galleries are untouched: they describe a product, not a staff list. Co-authored-by: Hanzo Dev <[email protected]>
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
'use client'
|
|
|
|
import { Activity, Clock, Fuel, Hash } from 'lucide-react'
|
|
import { Stat } from './stat'
|
|
import { useChainState } from '@/lib/use-chain'
|
|
import { chainFigures } from '@/lib/chain'
|
|
|
|
// Every figure on this row used to be Math.random(), re-rolled every 3 seconds:
|
|
// TPS was `Math.floor(Math.random() * 50) + 100`, block time `2000 ± 250`ms, gas
|
|
// price `Math.random() * 50 + 10`, node count `Math.random() * 10 + 95`. Disk,
|
|
// memory and network-load meters were invented the same way and are gone
|
|
// entirely — a public JSON-RPC node does not report a validator's disk usage, so
|
|
// there is nothing to replace them WITH.
|
|
//
|
|
// What remains is what the chain actually answers, derived from the same single
|
|
// poll the rest of the page uses.
|
|
|
|
export function NetworkStats() {
|
|
const { probe, validators } = useChainState()
|
|
const f = chainFigures(probe, validators)
|
|
|
|
return (
|
|
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
|
|
<Stat label="Chain ID" m={f.chainId} icon={<Hash className="h-4 w-4 text-muted-foreground" />} />
|
|
<Stat label="Block Interval" m={f.blockInterval} icon={<Clock className="h-4 w-4 text-muted-foreground" />} />
|
|
<Stat label="Txns in Last Block" m={f.headTxs} icon={<Activity className="h-4 w-4 text-muted-foreground" />} />
|
|
<Stat label="Gas Used" m={f.gasUsed} icon={<Fuel className="h-4 w-4 text-muted-foreground" />} />
|
|
</div>
|
|
)
|
|
}
|