From f126c8468639c2a8bf099d04bbf5e55aa2b47d8b Mon Sep 17 00:00:00 2001 From: Francis Li Date: Sun, 18 Oct 2026 01:42:36 -0700 Subject: [PATCH 1/3] Remove unused featuresFromConfig from vibenet features Co-authored-by: Toshi --- app/vibenet/data/features.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/app/vibenet/data/features.ts b/app/vibenet/data/features.ts index 3bf125a..e506f38 100644 --- a/app/vibenet/data/features.ts +++ b/app/vibenet/data/features.ts @@ -30,32 +30,3 @@ export const FEATURES: VibenetFeature[] = [ // the RPC payload, and the BaseTime predeploy is an uninitialized proxy). // Add the feature card back in the same PR that enables it here. ]; - -// Raw feature shape as it appears in the API `config` payload. -type ConfigFeature = { - title: string; - description?: string; - link?: string; -}; - -function isConfigFeature(value: unknown): value is ConfigFeature { - return ( - typeof value === 'object' && - value !== null && - typeof (value as { title?: unknown }).title === 'string' - ); -} - -// Adapt the vibe's dynamic `config.features` into the same model so the page has -// a single feature type to render. These are simpler (no highlights) and show -// as compact cards. -export function featuresFromConfig(raw: unknown[] | undefined): VibenetFeature[] { - if (!raw) return []; - return raw.filter(isConfigFeature).map((feature, index) => ({ - id: `config-${index}-${feature.title}`, - title: feature.title, - summary: feature.description ?? '', - status: 'live' as const, - links: feature.link ? [{ label: 'Learn more', href: feature.link, external: true }] : undefined, - })); -} From 02e1fe6076f32370dc2b3d718b820f861546d2c0 Mon Sep 17 00:00:00 2001 From: Francis Li Date: Sun, 18 Oct 2026 01:42:52 -0700 Subject: [PATCH 2/3] Remove unused resetDataService Co-authored-by: Toshi --- app/scaling/runs/lib/dataService.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/scaling/runs/lib/dataService.ts b/app/scaling/runs/lib/dataService.ts index 605bb0e..c757770 100644 --- a/app/scaling/runs/lib/dataService.ts +++ b/app/scaling/runs/lib/dataService.ts @@ -111,8 +111,3 @@ export function getDataService(): DataService { } return dataServiceInstance; } - -// Allow resetting the service instance (useful for testing) -export function resetDataService(): void { - dataServiceInstance = null; -} From 8b25eaab3bfc322dbfa16359caa20f3e4e9eb5ba Mon Sep 17 00:00:00 2001 From: Francis Li Date: Sun, 18 Oct 2026 01:43:08 -0700 Subject: [PATCH 3/3] Drop duplicated history comment in dataService Co-authored-by: Toshi --- app/scaling/runs/lib/dataService.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/scaling/runs/lib/dataService.ts b/app/scaling/runs/lib/dataService.ts index c757770..dbc54a4 100644 --- a/app/scaling/runs/lib/dataService.ts +++ b/app/scaling/runs/lib/dataService.ts @@ -1,5 +1,3 @@ -// Unified data service that works with both static files and API servers -// Since the API now emulates the static file structure, we only need one service import { BenchmarkRuns, LoadTestEntry,