From fb8d004331d17399f84eaaa6844f4205eebf3405 Mon Sep 17 00:00:00 2001 From: Lexirieru Date: Fri, 13 Nov 2026 03:18:10 +0700 Subject: [PATCH 1/7] feat(status): status.hellonear.xyz, a status page for HelloNear and its providers Two outages from outside our code in one night (13 Nov: NEAR AI embeddings hung, 1Click quotes timed out) were found only by curl. apps/status is a small Next.js page for Vercel that reads the backend's public GET /v1/status: an overall banner, what is down and what users see because of it, and per service 48 half-hour bars for the last 24 h with uptime. Server-rendered and revalidated every 30 s, refreshed every minute while visible; if the API can't be read it says so instead of showing all down. Web app tokens, light and dark. STATUS_FIXTURE=1 shows the 13 Nov outages for local work. Tests: typecheck clean; node:test 3/3 (lib); next build passes. Checked in Chrome on localhost with the fixture. CI workflow `status` added. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q5ZrzK8une3S2YyhDG746e --- .github/workflows/status.yml | 39 ++++++ CLAUDE.md | 2 + apps/status/.gitignore | 1 + apps/status/AGENTS.md | 9 ++ apps/status/CLAUDE.md | 33 +++++ apps/status/app/AutoRefresh.tsx | 22 ++++ apps/status/app/apple-icon.png | Bin 0 -> 2723 bytes apps/status/app/favicon.ico | Bin 0 -> 2914 bytes apps/status/app/globals.css | 107 +++++++++++++++++ apps/status/app/icon.svg | 1 + apps/status/app/layout.tsx | 22 ++++ apps/status/app/page.tsx | 113 +++++++++++++++++ apps/status/bun.lock | 200 +++++++++++++++++++++++++++++++ apps/status/lib/fixture.ts | 36 ++++++ apps/status/lib/status.ts | 67 +++++++++++ apps/status/next-env.d.ts | 7 ++ apps/status/next.config.ts | 5 + apps/status/package.json | 27 +++++ apps/status/tests/status.test.ts | 26 ++++ apps/status/tsconfig.json | 41 +++++++ 20 files changed, 758 insertions(+) create mode 100644 .github/workflows/status.yml create mode 100644 apps/status/.gitignore create mode 100644 apps/status/AGENTS.md create mode 100644 apps/status/CLAUDE.md create mode 100644 apps/status/app/AutoRefresh.tsx create mode 100644 apps/status/app/apple-icon.png create mode 100644 apps/status/app/favicon.ico create mode 100644 apps/status/app/globals.css create mode 100644 apps/status/app/icon.svg create mode 100644 apps/status/app/layout.tsx create mode 100644 apps/status/app/page.tsx create mode 100644 apps/status/bun.lock create mode 100644 apps/status/lib/fixture.ts create mode 100644 apps/status/lib/status.ts create mode 100644 apps/status/next-env.d.ts create mode 100644 apps/status/next.config.ts create mode 100644 apps/status/package.json create mode 100644 apps/status/tests/status.test.ts create mode 100644 apps/status/tsconfig.json diff --git a/.github/workflows/status.yml b/.github/workflows/status.yml new file mode 100644 index 00000000..8b8467dd --- /dev/null +++ b/.github/workflows/status.yml @@ -0,0 +1,39 @@ +# Status page CI: typecheck, unit tests and a production build. No secrets needed. The build reads the live +# status API once (ISR); if it cannot, the page still builds and says so. +name: status + +on: + pull_request: + paths: ['apps/status/**', '.github/workflows/status.yml'] + push: + branches: [main] + paths: ['apps/status/**', '.github/workflows/status.yml'] + +concurrency: + group: status-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 15 + defaults: + run: + working-directory: apps/status + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24.22.1 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.9 + - run: bun install --frozen-lockfile + - run: bun run typecheck + - run: bun run test + - run: bun run build + env: + NEXT_TELEMETRY_DISABLED: '1' diff --git a/CLAUDE.md b/CLAUDE.md index ea5a3d28..2ce82901 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,6 +42,7 @@ HelloNear is an AI agent persona platform on NEAR, built for NEAR HACKATHON (1 |---|---|---| | `apps/fe` | Web app (Next.js App Router, NEAR Connect) | Ancung | | `apps/landing` | Landing page | Nabil | +| `apps/status` | Status page, status.hellonear.xyz (Vercel): whether HelloNear and the services it runs on answer, read from the backend's `GET /v1/status` | Axel | | `apps/be` | Backend API, Postgres + pgvector, NEP-413 login, OutLayer + Composio | James | | `engine` | AI engine (Mastra + NEAR AI Cloud) | Axel | | `sc` | Mind registry contract (Rust `near-sdk`) | Axel | @@ -71,6 +72,7 @@ Each folder has its own workflow in `.github/workflows/`. It runs on pull reques | `fe` | `apps/fe` | lint, typecheck, `next build` | | `sc` | `sc` | unit tests, sandbox tests (incl. upgrades from the fixtures), clippy | | `landing` | `apps/landing` | typecheck, `next build` | +| `status` | `apps/status` | typecheck, unit tests, `next build` | CI does not replace the local integration and load tests required by the rules below. Nothing deploys from CI itself. A merged `main` is deployed to the hosted demo after its CI passes, by a poller on James's always-on LAN machine that comments the result on the merged PR (rule 3, `deploy/README.md`). diff --git a/apps/status/.gitignore b/apps/status/.gitignore new file mode 100644 index 00000000..cc1b7f16 --- /dev/null +++ b/apps/status/.gitignore @@ -0,0 +1 @@ +tsconfig.tsbuildinfo diff --git a/apps/status/AGENTS.md b/apps/status/AGENTS.md new file mode 100644 index 00000000..af3b7c84 --- /dev/null +++ b/apps/status/AGENTS.md @@ -0,0 +1,9 @@ + + +## This is NOT the Next.js you know + +This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. + +This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. + + diff --git a/apps/status/CLAUDE.md b/apps/status/CLAUDE.md new file mode 100644 index 00000000..538336e0 --- /dev/null +++ b/apps/status/CLAUDE.md @@ -0,0 +1,33 @@ +# CLAUDE.md — apps/status + +The public status page, **status.hellonear.xyz**: whether HelloNear and the services it runs on answer (NEAR AI Cloud chat and embeddings, NEAR Intents 1Click quotes, OutLayer, NEAR RPC, NEAR AI Agent Market, Phala TEE Explorer). Built 13 Nov 2026 after two outages from outside our code in one night (NEAR AI embeddings hung, 1Click quotes timed out). Owner: Axel. Root rules in `/CLAUDE.md` also apply. + +**Update this file in the same PR whenever you change setup, commands, env vars, the data contract or where it is deployed.** + +## How it works + +- The **backend** probes every service every 5 minutes, keeps 8 days of results and serves them at `GET https://api.hellonear.xyz/v1/status` (public, CORS `*`, cached 30 s; contract in `docs/api-contract.md` and `lib/status.ts`). This app only reads that. +- One server-rendered page (`app/page.tsx`), revalidated every 30 s (`revalidate`), so it works without JavaScript. A small client component (`AutoRefresh.tsx`) refreshes it every minute while the tab is visible. +- If the status API can't be read, the page says so ("Can't reach the status API"); it never shows everything as down. +- 48 bars of 30 minutes (the last 24 h), each the worst check in it; uptime counts slow answers as up. A down service shows its `impact` line (what users see); a slow one says it still works. +- Styles: plain CSS (`app/globals.css`) with the web app's Stone & Lime tokens, light and dark by `prefers-color-scheme`. Icons are the landing's. + +## Commands + +```sh +bun install +bun run dev # http://localhost:3200, reads STATUS_API_URL +STATUS_FIXTURE=1 bun run dev # sample data (the 13 Nov outages), no backend needed +bun run typecheck +bun run test # node:test, lib/ only +bun run build +``` + +## Env + +- `STATUS_API_URL`: where `/v1/status` lives. Default `https://api.hellonear.xyz/v1/status`; for a local backend `http://localhost:4000/v1/status`. +- `STATUS_FIXTURE=1`: use `lib/fixture.ts` instead of the API (local work only). + +## Deploy + +Not on the Proxmox box: on **Vercel**, deployed by Axel with the Vercel CLI from this folder (`vercel` then `vercel --prod`), root directory `apps/status`. Then the subdomain: a `CNAME status → cname.vercel-dns.com` in the `hellonear.xyz` Cloudflare zone (DNS only, not proxied) and the domain added to the Vercel project. That DNS change is on the box owner's side (James), with Axel's approval. diff --git a/apps/status/app/AutoRefresh.tsx b/apps/status/app/AutoRefresh.tsx new file mode 100644 index 00000000..1483acde --- /dev/null +++ b/apps/status/app/AutoRefresh.tsx @@ -0,0 +1,22 @@ +"use client"; + +import { useRouter } from "next/navigation"; +import { useEffect } from "react"; + +// The backend probes every 5 minutes and caches /v1/status for 30 s, so a refresh a minute is plenty. Only while +// the tab is visible, so a background tab doesn't keep asking. +export function AutoRefresh({ everyMs = 60_000 }: { everyMs?: number }) { + const router = useRouter(); + useEffect(() => { + const tick = () => { + if (document.visibilityState === "visible") router.refresh(); + }; + const id = window.setInterval(tick, everyMs); + document.addEventListener("visibilitychange", tick); + return () => { + window.clearInterval(id); + document.removeEventListener("visibilitychange", tick); + }; + }, [router, everyMs]); + return null; +} diff --git a/apps/status/app/apple-icon.png b/apps/status/app/apple-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7df2cef06b235dd062062eab4d86fe5df4a983aa GIT binary patch literal 2723 zcmd6p`#TegAICYj_2l-gL|AUq+^INdBgM=nrd*1dOGIwXq1bR(xz2>SC8l_CJ8~ko z%_Wp;i5A(hVPrFR6V3gyuYNlJ!g-$e=kk0$&-41}^L(Cn%5{{r#BurKA|fIZNCeE` zs5bnFV?Q0`x|&R15s~9ANZ3^;eBm-X(l!UD*tfQ7DVk~7ps3a;Rt>W%aXDpo&)KxO z_LVI97K>lq=;EmB!Maobp_=-FadU*Rd}9^HegzPJtcSIB?9M zkYl=6A1vWJ8}zVq8(4H}KYsstvL`TduW-PC{}0+g)PxHc5$_h&`OgYBoSb|oN}0g6 z5N7_B0We$D{1vx2PT|!71dX;gamNMZ=Y*u)Y{_|5$^3%$`Wh^B{jq5=O;A@Py#PP7 z--bgO%$b3xOKuH}h?cntNyN-mbVaI(+9D4X?>0~A14&hmffW{K>MuLwbTqtW@fjW< zf`huyu^g}>LzKu+>{mVj-p3=kKtPYwB)EdIJnkEKxQ5S0PJ(4FJy|<&;v$s<;>X$~L6GSec1_{0x8S0C2V>y7h97z+3fiUl z@ED}hg9lnm`nsFNSFn}Nmo+!RoD659KbD9k5(HXLsRD##sY(~cc5IO23iTQtecJW| zp8YwbM+JStBg~b)ZbAA00YY7sq(}xHyY0{WKpZWiv7I1Om0fnV)Ett=1#J3h#V8XT^$Fm1 zyy+sctF7#V;;@&!eEA$y95NOU;m#sKre!B|oftZ_6iazNXi%Bmm1gXvBKfZt_Jess zTL!hiAZe^XW-VNauq8sE2(SEf;4$~wg|Cp-D-h>0s&1Xlv&k~N-I>4&t-Wz0lYV(m zXCX_GtD)K420F*v-w`{DAZsdk0ioT{1u zNvVwaQTvUMkQ+FlU#jnDHQPEvF?#!(ie^f3a^LW|4wvRI->LS)QnXe&_uDjRoJw%= z^t86&ak=%_m4bwXvQpH`$0e1Okq5gHy#{v?65c-E)DYp@FOD&*kvBYnH><(}I`vaY zB&1nyQj#L%!CN{#!^z6GqK-pltq>gduoO!EO2v+Yu%S|Yp~vPq=Cn5S~GKKe&uGaym8$Q$btKZ*7i&O z4s_RUnp~j~qtgR9CK3B40dXV`B82llS)=vu-;t-n!otvKG(uwJgf*6*tJv1DXv0aw zw7pFK%sA0^tE{Y4rA#aG(ju{h`p;MOJ!qZcB4 zEg@Zte^bY^y-*sNg7Y;W%dERg_gKvOm}h>Pg6mszqhV9(Qwj?9ychmu{#0=k~>Xuzmj6#DuN8>L>ljz4h(w?e-pne)T=Q@VuNH@<;Ut zFLA4r!j?a42?XC5$Wu;)wmPbCIZRG4|4!#zs%(cI3i$kWx=FEXgGPJ2`FrdUKPf3G zy8@NnsiBuHCaXVWe{@nP7v{{hJUxiJR&Q5lInnH=a2J~W`+@uU((usM+-VRzVw7^d zJ78|2`FmV^JU~L;$<FSe9DF ztwMp!9^T&GDLqe01t}|g z^^jo0`NmV2^0!>wbCdX>z`!UTW3<1YPrm#MK+4YeOw@+Mgn@hx{-ejl-efCIY76?i zJeSM;KH9PG`pB2;O<<|x=RbEPO9dX*>vW5mhHaC*m8dlno~M9Yonmqe0beTYKxqY+ zd|L32eEO2I94fz_5Km0B0!S$iKyV%tqga~%`V5le*K)ClcTyhGOQ-8Y_oh~Qd-xYG zs&dkdPr@@4?fT0L=I#?Ol1QZGh@G|f-=@2|{hD9C4CKGrnTp*ztNG#UJNh%oPKt?W zWpy<+`p(KMI58=Sr0}}*H#A-{ATn|%=>9B&p~|g5Nlp$a|KeT7$ZPbgg@s=FWuYk)+RA=JY~mOOj%b8>jWd~uXDa*{ zVsO&hDsg>{D0bj%6ZXc|*6LITVad61oYrB(YSz}) zu8Plw!C-$Q(Yl+Mi3D`nl+;;0U0pU!_>d{V7#)SWzZ)M{H!|8a?l^P~l7W;?nV?e+ zuKCS2Q;a(d^Sj~GL*|LhGeq6arx$!U9B<^5KoMa2Xw&@c$rkZY5wZV_mIy}ugt|T1* literal 0 HcmV?d00001 diff --git a/apps/status/app/favicon.ico b/apps/status/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..ebdc91c3513c45925fb8a20da0438a6d1d692169 GIT binary patch literal 2914 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 diff --git a/apps/status/app/layout.tsx b/apps/status/app/layout.tsx new file mode 100644 index 00000000..57ff4efb --- /dev/null +++ b/apps/status/app/layout.tsx @@ -0,0 +1,22 @@ +import type { Metadata } from "next"; +import { Geist } from "next/font/google"; +import "./globals.css"; + +const geist = Geist({ subsets: ["latin"], variable: "--font-geist" }); + +const DESCRIPTION = "Live status of HelloNear and the services it runs on: NEAR AI Cloud, NEAR Intents, OutLayer, NEAR RPC and more."; + +export const metadata: Metadata = { + metadataBase: new URL("https://status.hellonear.xyz"), + title: "HelloNear Status", + description: DESCRIPTION, + openGraph: { type: "website", siteName: "HelloNear", url: "/", title: "HelloNear Status", description: DESCRIPTION }, +}; + +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ); +} diff --git a/apps/status/app/page.tsx b/apps/status/app/page.tsx new file mode 100644 index 00000000..b371bf7d --- /dev/null +++ b/apps/status/app/page.tsx @@ -0,0 +1,113 @@ +import { AutoRefresh } from "./AutoRefresh"; +import { GROUPS, HEADLINE, LABEL, ago, incidents, loadStatus, pct, type Service, type Status } from "@/lib/status"; + +// Rendered on the server and revalidated with the data (lib/status.ts), so the page works without JavaScript. +export const revalidate = 30; + +export default async function Page() { + const status = await loadStatus(); + return ( +
+ +
+ + {/* eslint-disable-next-line @next/next/no-img-element */} + + + HelloNear Status + + + + Open the app + +
+ {status ? : } +
+

+ Checked every 5 minutes from the HelloNear backend. Each bar is 30 minutes, the last 24 hours; uptime counts slow answers as up. +

+

+ During the hackathon everything runs on NEAR testnet.{" "} + Source and README +

+
+
+ ); +} + +function Unreachable() { + return ( +
+

Can't reach the status API

+

This page couldn't read api.hellonear.xyz just now. That alone doesn't mean the app is down; try again in a minute.

+
+ ); +} + +function Board({ status }: { status: Status }) { + const open = incidents(status); + return ( + <> +
+

{HEADLINE[status.overall]}

+

Updated {ago(status.updatedAt)}

+ {open.length > 0 && ( +
    + {open.map((s) => ( +
  • + {/* The impact line says what breaks when a service is down; a slow one still works. */} + {s.name} {s.status === "down" ? "is down" : "is answering slowly"} + {s.detail ? ` (${s.detail})` : ""}.{s.status === "down" ? ` ${s.impact}` : " It still works."} +
  • + ))} +
+ )} +
+ {GROUPS.map((g) => { + const services = status.services.filter((s) => s.group === g); + if (services.length === 0) return null; + return ( +
+

{g}

+
+ {services.map((s) => ( + + ))} +
+
+ ); + })} + + ); +} + +function Row({ s }: { s: Service }) { + return ( +
+
+ {s.name} + + {LABEL[s.status]} + {s.latencyMs !== null && s.status !== "down" ? · {s.latencyMs} ms : null} + +
+
+ {s.history.map((b) => ( + + ))} +
+
+ 24 h ago + + {pct(s.uptime24h)} + + Now +
+ {s.status === "down" ?

{s.impact}

: null} +

+ Checked {ago(s.checkedAt)} + {s.uptime7d !== null ? ` · 7 days: ${s.uptime7d.toFixed(2)}%` : ""} +

+
+ ); +} diff --git a/apps/status/bun.lock b/apps/status/bun.lock new file mode 100644 index 00000000..c26fe909 --- /dev/null +++ b/apps/status/bun.lock @@ -0,0 +1,200 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "@hellonear/status", + "dependencies": { + "next": "16.4.4", + "react": "19.3.1", + "react-dom": "19.3.1", + }, + "devDependencies": { + "@types/node": "26.6.6", + "@types/react": "19.3.0", + "@types/react-dom": "19.3.0", + "tsx": "4.23.15", + "typescript": "6.0.3", + }, + }, + }, + "packages": { + "@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.28.2", "", { "os": "android", "cpu": "arm" }, "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.2", "", { "os": "android", "cpu": "arm64" }, "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.28.2", "", { "os": "android", "cpu": "x64" }, "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.2", "", { "os": "linux", "cpu": "arm" }, "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.2", "", { "os": "linux", "cpu": "ia32" }, "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.2", "", { "os": "linux", "cpu": "none" }, "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.2", "", { "os": "linux", "cpu": "none" }, "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.2", "", { "os": "linux", "cpu": "none" }, "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.2", "", { "os": "linux", "cpu": "x64" }, "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ=="], + + "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.2", "", { "os": "none", "cpu": "arm64" }, "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.2", "", { "os": "none", "cpu": "x64" }, "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw=="], + + "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw=="], + + "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.2", "", { "os": "none", "cpu": "arm64" }, "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.2", "", { "os": "win32", "cpu": "ia32" }, "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.2", "", { "os": "win32", "cpu": "x64" }, "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g=="], + + "@img/colour": ["@img/colour@1.1.0", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="], + + "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg=="], + + "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.4" }, "os": "darwin", "cpu": "x64" }, "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw=="], + + "@img/sharp-freebsd-wasm32": ["@img/sharp-freebsd-wasm32@0.35.5", "", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "os": "freebsd" }, "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw=="], + + "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.3.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw=="], + + "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ=="], + + "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.4", "", { "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw=="], + + "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A=="], + + "@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.4", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ=="], + + "@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.4", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q=="], + + "@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.4", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ=="], + + "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw=="], + + "@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA=="], + + "@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg=="], + + "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.4" }, "os": "linux", "cpu": "arm", "libc": "glibc" }, "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ=="], + + "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ=="], + + "@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.4" }, "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA=="], + + "@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.4" }, "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ=="], + + "@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.4" }, "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA=="], + + "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog=="], + + "@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg=="], + + "@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.4" }, "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A=="], + + "@img/sharp-wasm32": ["@img/sharp-wasm32@0.35.5", "", { "dependencies": { "@emnapi/runtime": "^1.11.3" } }, "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ=="], + + "@img/sharp-webcontainers-wasm32": ["@img/sharp-webcontainers-wasm32@0.35.5", "", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "cpu": "none" }, "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA=="], + + "@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q=="], + + "@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.35.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A=="], + + "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.35.5", "", { "os": "win32", "cpu": "x64" }, "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg=="], + + "@next/env": ["@next/env@16.4.4", "", {}, "sha512-6/3ZuELR0tPLgNigvv8d/LAmfLIo1IpNfvrI/AHCAl9w9D0DNVGQGvo+OLPzAWR+WMW3vVyO7HaW0kfL97huBg=="], + + "@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.4.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-1KlZ5IJ7zcLBZvqG1q7nuRWm2LAAN4C3iBqqoBCRRl1UEv0A4k6Rek+x3j23UiWf8Gz+VsN+M/LylAWkxpm2mg=="], + + "@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.4.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-Tb7efFdhbS/ph74RS7wob84gXGM58qxoO/WrkiMsTmy/JZktKOKBeiM45W0E/b8JfBzZJdexQqSmvedBwDK0PA=="], + + "@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.4.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-wojSfLnH8RRImhtbcn3Dlx9JICh6aQHgDA33XDr+EPua2tt7Q/yjDn0FTAbqfNlLrBmOASAGhLh6NvBk9L3gzw=="], + + "@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.4.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-zgxpGOZaR+2O6dOk5ZAUkKgH92ZtqNg3ohzyg2HmWc2N+AZH4dEpTwdpB0e5MR9YRVdVDUkEM5g6c3TWWn8g1g=="], + + "@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.4.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-fg3Wr030Y3BDkCXi6HGsPz0BUPTGZJS8TZSrCO0tS3O/KBsCyx4eP6aeaizCpGmcUKhtb4l7JoMc88QO2qBl2g=="], + + "@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.4.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-40cr71PSdCV9zU2g0B1XG27af10tYU+9g8F+FtF3qSguQg0jSZDoxn0NrAvgFQ0cy9s0ZBA/00P9g/XL1O43xg=="], + + "@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.4.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-vFMiEbRZ+LYNeswslf4LuGuoPHE8JbtqV0GnmzbpnGNMs0uWaR2q98hu8M/UWGycNJERBXIUss+BGd3PIJ8VZg=="], + + "@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.4.4", "", { "os": "win32", "cpu": "x64" }, "sha512-jy2P4V8BDZ+CFCzYABHYRZ1CmyFhfmYe22i8KA4uEafdYPrUjJ3Ot+lx265mLWLHiZRIfBzCn3V1F17m0vzl9Q=="], + + "@swc/helpers": ["@swc/helpers@0.5.23", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw=="], + + "@types/node": ["@types/node@26.6.6", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog=="], + + "@types/react": ["@types/react@19.3.0", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg=="], + + "@types/react-dom": ["@types/react-dom@19.3.0", "", { "peerDependencies": { "@types/react": "^19.3.0" } }, "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q=="], + + "baseline-browser-mapping": ["baseline-browser-mapping@2.11.36", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-AbPFGS4K9S3meMRCLTM0Zas+e9X7b5ygUBOboDT5zevCZt9ByKSbMtKhwyVqW+oL8WemPVsbP7X3rdZcIyOa0w=="], + + "caniuse-lite": ["caniuse-lite@1.0.30001826", "", {}, "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA=="], + + "client-only": ["client-only@0.0.1", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="], + + "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], + + "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], + + "esbuild": ["esbuild@0.28.2", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.2", "@esbuild/android-arm": "0.28.2", "@esbuild/android-arm64": "0.28.2", "@esbuild/android-x64": "0.28.2", "@esbuild/darwin-arm64": "0.28.2", "@esbuild/darwin-x64": "0.28.2", "@esbuild/freebsd-arm64": "0.28.2", "@esbuild/freebsd-x64": "0.28.2", "@esbuild/linux-arm": "0.28.2", "@esbuild/linux-arm64": "0.28.2", "@esbuild/linux-ia32": "0.28.2", "@esbuild/linux-loong64": "0.28.2", "@esbuild/linux-mips64el": "0.28.2", "@esbuild/linux-ppc64": "0.28.2", "@esbuild/linux-riscv64": "0.28.2", "@esbuild/linux-s390x": "0.28.2", "@esbuild/linux-x64": "0.28.2", "@esbuild/netbsd-arm64": "0.28.2", "@esbuild/netbsd-x64": "0.28.2", "@esbuild/openbsd-arm64": "0.28.2", "@esbuild/openbsd-x64": "0.28.2", "@esbuild/openharmony-arm64": "0.28.2", "@esbuild/sunos-x64": "0.28.2", "@esbuild/win32-arm64": "0.28.2", "@esbuild/win32-ia32": "0.28.2", "@esbuild/win32-x64": "0.28.2" }, "hasInstallScript": true, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin", "hasInstallScript": true }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "nanoid": ["nanoid@3.3.20", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ=="], + + "next": ["next@16.4.4", "", { "dependencies": { "@next/env": "16.4.4", "@swc/helpers": "0.5.23", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.5.23", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.4.4", "@next/swc-darwin-x64": "16.4.4", "@next/swc-linux-arm64-gnu": "16.4.4", "@next/swc-linux-arm64-musl": "16.4.4", "@next/swc-linux-x64-gnu": "16.4.4", "@next/swc-linux-x64-musl": "16.4.4", "@next/swc-win32-arm64-msvc": "16.4.4", "@next/swc-win32-x64-msvc": "16.4.4", "sharp": "^0.35.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-Hu4pOw2x0RQ0TQabNWbpsNg/3+SZf+rLQwvfhBLnptv98GS4dcIVMlfEyn9jb2/ZJDSahhnUKEs0YrfarjGX3A=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "postcss": ["postcss@8.5.23", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg=="], + + "react": ["react@19.3.1", "", {}, "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw=="], + + "react-dom": ["react-dom@19.3.1", "", { "dependencies": { "scheduler": "^0.28.0" }, "peerDependencies": { "react": "^19.3.1" } }, "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ=="], + + "scheduler": ["scheduler@0.28.0", "", {}, "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw=="], + + "semver": ["semver@7.8.6", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw=="], + + "sharp": ["sharp@0.35.5", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.5", "@img/sharp-darwin-x64": "0.35.5", "@img/sharp-freebsd-wasm32": "0.35.5", "@img/sharp-libvips-darwin-arm64": "1.3.4", "@img/sharp-libvips-darwin-x64": "1.3.4", "@img/sharp-libvips-linux-arm": "1.3.4", "@img/sharp-libvips-linux-arm64": "1.3.4", "@img/sharp-libvips-linux-ppc64": "1.3.4", "@img/sharp-libvips-linux-riscv64": "1.3.4", "@img/sharp-libvips-linux-s390x": "1.3.4", "@img/sharp-libvips-linux-x64": "1.3.4", "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", "@img/sharp-libvips-linuxmusl-x64": "1.3.4", "@img/sharp-linux-arm": "0.35.5", "@img/sharp-linux-arm64": "0.35.5", "@img/sharp-linux-ppc64": "0.35.5", "@img/sharp-linux-riscv64": "0.35.5", "@img/sharp-linux-s390x": "0.35.5", "@img/sharp-linux-x64": "0.35.5", "@img/sharp-linuxmusl-arm64": "0.35.5", "@img/sharp-linuxmusl-x64": "0.35.5", "@img/sharp-webcontainers-wasm32": "0.35.5", "@img/sharp-win32-arm64": "0.35.5", "@img/sharp-win32-ia32": "0.35.5", "@img/sharp-win32-x64": "0.35.5" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g=="], + + "source-map-js": ["source-map-js@1.2.2", "", {}, "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw=="], + + "styled-jsx": ["styled-jsx@5.1.6", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "@babel/core": "*", "babel-plugin-macros": "*", "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" }, "optionalPeers": ["@babel/core", "babel-plugin-macros"] }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="], + + "tslib": ["tslib@2.9.1", "", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="], + + "tsx": ["tsx@4.23.15", "", { "dependencies": { "esbuild": "~0.28.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw=="], + + "typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="], + + "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="], + } +} diff --git a/apps/status/lib/fixture.ts b/apps/status/lib/fixture.ts new file mode 100644 index 00000000..fb0b2bf7 --- /dev/null +++ b/apps/status/lib/fixture.ts @@ -0,0 +1,36 @@ +// Sample data for working on the page before the backend's /v1/status is live (STATUS_FIXTURE=1 bun run dev). +// It mirrors 13 Nov 2026: NEAR AI's embeddings hung and 1Click's quote API timed out, everything else answered. +import type { BucketState, Service, Status } from "./status" + +const BUCKETS = 48 +const HALF_HOUR = 30 * 60 * 1000 + +function history(now: number, badFrom: number, bad: BucketState): Service["history"] { + return Array.from({ length: BUCKETS }, (_, i) => ({ + start: new Date(now - (BUCKETS - i) * HALF_HOUR).toISOString(), + status: i < 4 ? "none" : i >= badFrom ? bad : "operational", + })) +} + +export function fixture(): Status { + const now = Date.now() + const at = new Date(now - 90_000).toISOString() + const ok = (id: string, name: string, group: Service["group"], latencyMs: number, impact: string): Service => ({ + id, name, group, status: "operational", latencyMs, checkedAt: at, detail: null, impact, uptime24h: 100, uptime7d: 99.95, history: history(now, BUCKETS, "operational"), + }) + return { + updatedAt: at, + overall: "down", + services: [ + ok("hellonear-api", "HelloNear API", "HelloNear", 42, "The web app can't sign in, chat or pay."), + ok("hellonear-engine", "Mind engine", "HelloNear", 18, "Minds can't answer; nothing is paid."), + ok("nearai-chat", "NEAR AI Cloud: chat models", "NEAR AI", 1450, "Minds can't answer until it is back."), + { ...ok("nearai-embeddings", "NEAR AI Cloud: embeddings", "NEAR AI", 0, "Chats and Autopilot run without searching past chats until it answers."), status: "down", latencyMs: null, detail: "No answer in 8 s", uptime24h: 62.5, uptime7d: 94.6, history: history(now, 30, "down") }, + { ...ok("near-intents-quote", "NEAR Intents: 1Click quotes", "NEAR", 0, "Cross-chain stablecoin quotes can't be fetched; nothing is ever sent either way."), status: "down", latencyMs: null, detail: "1Click answered 500 after 25 s", uptime24h: 91.67, uptime7d: 98.8, history: history(now, 44, "down") }, + ok("outlayer", "OutLayer wallets (testnet)", "NEAR", 310, "Payments, limits and Freeze wait until it is back; nothing is sent."), + ok("near-rpc", "NEAR RPC (FastNear testnet)", "NEAR", 220, "Account lookups and payment checks fail; Minds say so and don't pay."), + { ...ok("agent-market", "NEAR AI Agent Market", "Partners", 2900, "Agent searches and quotes can't be fetched."), status: "degraded", detail: "Answered in 2.9 s", uptime24h: 100, uptime7d: 100 }, + ok("tee-explorer", "Phala TEE Attestation Explorer", "Partners", 640, "The Verified badge still works; opening the report in TEE Explorer doesn't."), + ], + } +} diff --git a/apps/status/lib/status.ts b/apps/status/lib/status.ts new file mode 100644 index 00000000..292e1f31 --- /dev/null +++ b/apps/status/lib/status.ts @@ -0,0 +1,67 @@ +// The status page reads the backend's public GET /v1/status (apps/be, docs/api-contract.md). The shape below +// is that contract; keep the two in step. + +export type State = "operational" | "degraded" | "down" | "unknown" +export type BucketState = "operational" | "degraded" | "down" | "none" + +export type Service = { + id: string + name: string + group: "HelloNear" | "NEAR AI" | "NEAR" | "Partners" + status: State + latencyMs: number | null + checkedAt: string | null + detail: string | null + impact: string + uptime24h: number | null + uptime7d: number | null + history: { start: string; status: BucketState }[] +} + +export type Status = { updatedAt: string; overall: "operational" | "degraded" | "down"; services: Service[] } + +export const GROUPS: Service["group"][] = ["HelloNear", "NEAR AI", "NEAR", "Partners"] + +// Read when the page is rendered, so a deploy can point it elsewhere (STATUS_API_URL) without a rebuild of the code. +export const statusUrl = () => process.env.STATUS_API_URL ?? "https://api.hellonear.xyz/v1/status" + +// A plain fetch, revalidated every 30 s by Next (the backend caches its answer for 30 s too). Any failure +// becomes null, and the page says it can't reach the status API rather than showing everything as down. +export async function loadStatus(): Promise { + if (process.env.STATUS_FIXTURE === "1") return (await import("./fixture")).fixture() + try { + const res = await fetch(statusUrl(), { next: { revalidate: 30 }, signal: AbortSignal.timeout(10_000) }) + if (!res.ok) return null + const body = (await res.json()) as Status + return Array.isArray(body?.services) ? body : null + } catch { + return null + } +} + +export const LABEL: Record = { operational: "Operational", degraded: "Degraded", down: "Down", unknown: "No data yet" } + +export const HEADLINE: Record = { + operational: "All systems operational", + degraded: "Some services are slow", + down: "Some services are down", +} + +// The services that are not operational, worst first, for the banner at the top. +export function incidents(s: Status): Service[] { + const rank: Record = { down: 0, degraded: 1, unknown: 2, operational: 3 } + return s.services.filter((x) => x.status === "down" || x.status === "degraded").sort((a, b) => rank[a.status] - rank[b.status]) +} + +// "3 min ago" style, from the page's own clock. +export function ago(iso: string | null, now = Date.now()): string { + if (!iso) return "never" + const s = Math.max(0, Math.round((now - Date.parse(iso)) / 1000)) + if (s < 60) return `${s} s ago` + const m = Math.round(s / 60) + if (m < 60) return `${m} min ago` + const h = Math.round(m / 60) + return h < 48 ? `${h} h ago` : `${Math.round(h / 24)} d ago` +} + +export const pct = (n: number | null) => (n === null ? "No data" : `${n.toFixed(2)}% uptime`) diff --git a/apps/status/next-env.d.ts b/apps/status/next-env.d.ts new file mode 100644 index 00000000..a419cbe4 --- /dev/null +++ b/apps/status/next-env.d.ts @@ -0,0 +1,7 @@ +/// +/// +import "./.next/dev/types/routes.d.ts"; +import "./.next/dev/types/root-params.d.ts"; + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/apps/status/next.config.ts b/apps/status/next.config.ts new file mode 100644 index 00000000..cb651cdc --- /dev/null +++ b/apps/status/next.config.ts @@ -0,0 +1,5 @@ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = {}; + +export default nextConfig; diff --git a/apps/status/package.json b/apps/status/package.json new file mode 100644 index 00000000..3454754f --- /dev/null +++ b/apps/status/package.json @@ -0,0 +1,27 @@ +{ + "name": "@hellonear/status", + "version": "0.1.0", + "private": true, + "engines": { + "node": "^22.22.2 || >=24.0.0" + }, + "scripts": { + "dev": "next dev --port 3200", + "build": "next build", + "start": "next start --port 3200", + "typecheck": "tsc --noEmit", + "test": "node --import tsx --test tests/*.test.ts" + }, + "dependencies": { + "next": "16.4.4", + "react": "19.3.1", + "react-dom": "19.3.1" + }, + "devDependencies": { + "@types/node": "26.6.6", + "@types/react": "19.3.0", + "@types/react-dom": "19.3.0", + "tsx": "4.23.15", + "typescript": "6.0.3" + } +} diff --git a/apps/status/tests/status.test.ts b/apps/status/tests/status.test.ts new file mode 100644 index 00000000..7e1bbf64 --- /dev/null +++ b/apps/status/tests/status.test.ts @@ -0,0 +1,26 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { ago, incidents, pct } from "../lib/status"; +import { fixture } from "../lib/fixture"; + +test("incidents lists down before slow, and leaves operational services out", () => { + const ids = incidents(fixture()).map((s) => [s.id, s.status]); + assert.deepEqual(ids, [["nearai-embeddings", "down"], ["near-intents-quote", "down"], ["agent-market", "degraded"]]); +}); + +test("ago and pct read like the page means", () => { + const now = Date.parse("2026-11-13T00:00:00Z"); + assert.equal(ago("2026-11-12T23:59:30Z", now), "30 s ago"); + assert.equal(ago("2026-11-12T23:57:00Z", now), "3 min ago"); + assert.equal(ago("2026-11-12T21:00:00Z", now), "3 h ago"); + assert.equal(ago(null, now), "never"); + assert.equal(pct(99.954), "99.95% uptime"); + assert.equal(pct(null), "No data"); +}); + +test("every fixture service has 48 half-hour buckets, oldest first", () => { + for (const s of fixture().services) { + assert.equal(s.history.length, 48, s.id); + assert.ok(Date.parse(s.history[0].start) < Date.parse(s.history[47].start), s.id); + } +}); diff --git a/apps/status/tsconfig.json b/apps/status/tsconfig.json new file mode 100644 index 00000000..1a0ca4a3 --- /dev/null +++ b/apps/status/tsconfig.json @@ -0,0 +1,41 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": false, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": [ + "./*" + ] + } + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} From d1e1388ef18dfa074811fce936764788889d6e88 Mon Sep 17 00:00:00 2001 From: Lexirieru Date: Fri, 13 Nov 2026 03:25:03 +0700 Subject: [PATCH 2/7] feat(status): hover a bar for its half hour, and past incidents by day Axel asked for status.claude.com's hover card and Past Incidents. Each bar now opens a small card: the time range (UTC), its state, about how long it was bad (bad checks x 5 min), the last problem's detail and the number of checks (optional bucket fields from the backend). Below the services, the last 7 UTC days list the backend's incidents (runs of failed checks of one service), Ongoing or Resolved with the duration; quiet days say so. The card no longer clips the tooltip. All times are UTC and labelled, since the page is rendered on the server. Tests: typecheck clean; node:test 4/4. Checked in Chrome on localhost with the fixture (hover card near the right edge, past incidents). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q5ZrzK8une3S2YyhDG746e --- apps/status/CLAUDE.md | 2 ++ apps/status/app/globals.css | 39 +++++++++++++++++++-- apps/status/app/page.tsx | 60 +++++++++++++++++++++++++++++--- apps/status/lib/fixture.ts | 9 +++++ apps/status/lib/status.ts | 40 +++++++++++++++++++-- apps/status/tests/status.test.ts | 19 +++++++++- 6 files changed, 159 insertions(+), 10 deletions(-) diff --git a/apps/status/CLAUDE.md b/apps/status/CLAUDE.md index 538336e0..6db2acd1 100644 --- a/apps/status/CLAUDE.md +++ b/apps/status/CLAUDE.md @@ -10,6 +10,8 @@ The public status page, **status.hellonear.xyz**: whether HelloNear and the serv - One server-rendered page (`app/page.tsx`), revalidated every 30 s (`revalidate`), so it works without JavaScript. A small client component (`AutoRefresh.tsx`) refreshes it every minute while the tab is visible. - If the status API can't be read, the page says so ("Can't reach the status API"); it never shows everything as down. - 48 bars of 30 minutes (the last 24 h), each the worst check in it; uptime counts slow answers as up. A down service shows its `impact` line (what users see); a slow one says it still works. +- **Hover a bar** for its half hour: time range, state, about how long it was bad (`bad` checks × 5 min), the last problem's detail and how many checks ran (optional bucket fields `checks`, `bad`, `detail`). CSS only; hidden on touch screens. Times are UTC everywhere, said so on the page, since it is rendered on the server. +- **Past incidents:** the backend's `incidents` (runs of failed checks of one service, last 7 days) listed by UTC day like status.claude.com, Ongoing or Resolved with the duration; a quiet day reads "No incidents reported." - Styles: plain CSS (`app/globals.css`) with the web app's Stone & Lime tokens, light and dark by `prefers-color-scheme`. Icons are the landing's. ## Commands diff --git a/apps/status/app/globals.css b/apps/status/app/globals.css index b9b3ddc9..7f5b17c3 100644 --- a/apps/status/app/globals.css +++ b/apps/status/app/globals.css @@ -74,7 +74,7 @@ a { color: inherit; } .group { margin-bottom: 28px; } .group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 8px; font-weight: 600; } -.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; } +.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; } .row { padding: 16px 18px; border-top: 1px solid var(--border); } .row:first-child { border-top: 0; } .rowtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } @@ -86,7 +86,32 @@ a { color: inherit; } .state.unknown { color: var(--muted); } .bars { display: flex; gap: 2px; height: 32px; margin: 12px 0 6px; } -.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--bar-none); } +.bar { position: relative; flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--bar-none); } +.bar:hover { filter: brightness(0.85); } + +/* Hover a bar to see its half hour (CSS only, no JavaScript). */ +.tip { + position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px); + z-index: 10; width: max-content; max-width: 260px; padding: 12px 14px; border-radius: 12px; + background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); + display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg); + opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 120ms ease-out, transform 120ms ease-out; +} +.tip.left { left: 0; transform: translateY(-4px); } +.tip.right { left: auto; right: 0; transform: translateY(-4px); } +.bar:hover .tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); } +.bar:hover .tip.left, .bar:hover .tip.right { transform: translateY(0); } +.tipwhen { font-weight: 600; } +.tipstate { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: color-mix(in oklab, var(--fg) 6%, transparent); font-weight: 600; } +.tipstate .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bar-none); flex: none; } +.tipstate.operational .dot { background: var(--ok-bar); } +.tipstate.degraded .dot { background: var(--warn-bar); } +.tipstate.down .dot { background: var(--bad-bar); } +.tipmin { margin-left: auto; padding-left: 12px; font-weight: 500; color: var(--muted); } +.tipdetail { color: var(--fg); } +.tipmeta { color: var(--muted); font-size: 12px; } +@media (prefers-reduced-motion: reduce) { .tip { transition: none; } } +@media (hover: none) { .tip { display: none; } } .bar.operational { background: var(--ok-bar); } .bar.degraded { background: var(--warn-bar); } .bar.down { background: var(--bad-bar); } @@ -95,6 +120,16 @@ a { color: inherit; } .impact { margin: 10px 0 0; font-size: 14px; } .meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; } +.past { margin-top: 40px; } +.pasttitle { font-size: 22px; letter-spacing: -0.3px; margin: 0; } +.pastnote { color: var(--muted); font-size: 13px; margin: 4px 0 16px; } +.day h3 { font-size: 16px; margin: 20px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); } +.quiet { color: var(--muted); margin: 10px 0 0; } +.incident { margin-top: 12px; } +.incident p { margin: 2px 0; } +.ititle { font-weight: 600; font-size: 16px; } +.ititle.down { color: var(--bad); } +.ititle.degraded { color: var(--warn); } .foot { margin-top: 40px; color: var(--muted); font-size: 13px; } .foot p { margin: 4px 0; } diff --git a/apps/status/app/page.tsx b/apps/status/app/page.tsx index b371bf7d..40cd05ee 100644 --- a/apps/status/app/page.tsx +++ b/apps/status/app/page.tsx @@ -1,5 +1,5 @@ import { AutoRefresh } from "./AutoRefresh"; -import { GROUPS, HEADLINE, LABEL, ago, incidents, loadStatus, pct, type Service, type Status } from "@/lib/status"; +import { GROUPS, HEADLINE, LABEL, ago, bucketLines, duration, incidentDays, incidents, loadStatus, pct, type Service, type Status } from "@/lib/status"; // Rendered on the server and revalidated with the data (lib/status.ts), so the page works without JavaScript. export const revalidate = 30; @@ -24,7 +24,7 @@ export default async function Page() { {status ? : }