Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/scaling/runs/lib/dataService.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -111,8 +109,3 @@ export function getDataService(): DataService {
}
return dataServiceInstance;
}

// Allow resetting the service instance (useful for testing)
export function resetDataService(): void {
dataServiceInstance = null;
}
29 changes: 0 additions & 29 deletions app/vibenet/data/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
}
Loading