diff --git a/app/(manage)/manage/benchmarks/benchmarks-client.tsx b/app/(manage)/manage/benchmarks/benchmarks-client.tsx index 3b0be44..0a5888e 100644 --- a/app/(manage)/manage/benchmarks/benchmarks-client.tsx +++ b/app/(manage)/manage/benchmarks/benchmarks-client.tsx @@ -33,7 +33,6 @@ interface PerformanceEntry { launchOptions: string | null settingsJson: string | null userNotes: string | null - estimatedBatteryMin: number | null customSystem: string | null isRemoved: boolean removedReason: string | null diff --git a/app/game/[id]/game-page-client.tsx b/app/game/[id]/game-page-client.tsx index 639bfaa..17b0755 100644 --- a/app/game/[id]/game-page-client.tsx +++ b/app/game/[id]/game-page-client.tsx @@ -137,7 +137,6 @@ interface Preset { launchOptions: string | null loadTimeSsd: number | null loadTimeSd: number | null - estimatedBatteryMin: number | null tdpWatts: number | null youtubeVideoId: string | null screenshots: Array<{ @@ -233,7 +232,6 @@ interface StatsResponse { id: string hardwareSlug: string tdpWatts: number - estimatedBatteryMin: number estimatedBatteryHours: number wattHours: number | null tdpMax: number | null diff --git a/app/game/[id]/page.tsx b/app/game/[id]/page.tsx index 7d23954..93db355 100644 --- a/app/game/[id]/page.tsx +++ b/app/game/[id]/page.tsx @@ -178,7 +178,6 @@ export default async function GamePage({ launchOptions: performanceEntries.launchOptions, loadTimeSsd: performanceEntries.loadTimeSsd, loadTimeSd: performanceEntries.loadTimeSd, - estimatedBatteryMin: performanceEntries.estimatedBatteryMin, tdpWatts: performanceEntries.tdpWatts, youtubeVideoId: performanceEntries.youtubeVideoId, customSystem: performanceEntries.customSystem, @@ -281,7 +280,6 @@ export default async function GamePage({ launchOptions: p.launchOptions, loadTimeSsd: p.loadTimeSsd ?? null, loadTimeSd: p.loadTimeSd ?? null, - estimatedBatteryMin: p.estimatedBatteryMin ?? null, tdpWatts: p.tdpWatts ?? null, youtubeVideoId: p.youtubeVideoId ?? null, screenshots: null as Array<{ id: string; url: string; width: number; height: number; orderIndex: number }> | null, diff --git a/app/game/[id]/preset-detail-modal.tsx b/app/game/[id]/preset-detail-modal.tsx index 4718d1d..bf92084 100644 --- a/app/game/[id]/preset-detail-modal.tsx +++ b/app/game/[id]/preset-detail-modal.tsx @@ -42,7 +42,6 @@ interface Preset { launchOptions: string | null loadTimeSsd: number | null loadTimeSd: number | null - estimatedBatteryMin: number | null tdpWatts: number | null youtubeVideoId: string | null screenshots: Array<{ id: string; url: string; width: number; height: number }> | null @@ -535,9 +534,7 @@ export function PresetDetailModal({ {preset.loadTimeSd !== null && ( )} - {preset.estimatedBatteryMin !== null && ( - - )} + {preset.customSystem && ( )} diff --git a/components/charts/BatteryLifeChart.tsx b/components/charts/BatteryLifeChart.tsx index 163eb15..4c9a5c2 100644 --- a/components/charts/BatteryLifeChart.tsx +++ b/components/charts/BatteryLifeChart.tsx @@ -6,7 +6,6 @@ interface BatteryLifePoint { id: string hardwareSlug: string tdpWatts: number - estimatedBatteryMin: number estimatedBatteryHours: number wattHours: number | null tdpMax: number | null diff --git a/components/wizard/game-entry-wizard.tsx b/components/wizard/game-entry-wizard.tsx index a0f7063..66e32d7 100644 --- a/components/wizard/game-entry-wizard.tsx +++ b/components/wizard/game-entry-wizard.tsx @@ -117,7 +117,6 @@ export function GameEntryWizard({ gameId, gameVersions, defaultVersionId, editEn upscalerVersion: editEntry.upscalerVersion ?? undefined, frameGenMethod: editEntry.frameGenMethod ?? "none", launchOptions: editEntry.launchOptions ?? undefined, - estimatedBatteryMin: editEntry.estimatedBatteryMin ?? undefined, customSystem: editEntry.customSystem ?? false, youtubeVideoId: editEntry.youtubeVideoId ?? undefined, } @@ -272,7 +271,6 @@ export function GameEntryWizard({ gameId, gameVersions, defaultVersionId, editEn upscalerVersion: environment.upscalerVersion || null, frameGenMethod: environment.frameGenMethod ?? "none", launchOptions: environment.launchOptions || null, - estimatedBatteryMin: environment.estimatedBatteryMin ?? null, customSystem: environment.customSystem ?? false, settingsJson: settingsJson.length > 0 ? settingsJson : null, userNotes: userNotes || null, diff --git a/components/wizard/steps/environment-step.tsx b/components/wizard/steps/environment-step.tsx index 6216da5..d67dd51 100644 --- a/components/wizard/steps/environment-step.tsx +++ b/components/wizard/steps/environment-step.tsx @@ -29,7 +29,6 @@ export interface EnvironmentData { upscalerVersion?: string frameGenMethod?: string launchOptions?: string - estimatedBatteryMin?: number customSystem?: boolean youtubeVideoId?: string // NEW } @@ -259,30 +258,6 @@ export function EnvironmentStep({ value, onChange }: EnvironmentStepProps) {
-
- - { - const val = e.target.value - onChange({ - ...value, - estimatedBatteryMin: val === "" ? undefined : Number(val), - }) - }} - placeholder="e.g. 90" - className="w-full px-4 py-3 rounded-lg border border-border bg-text/5 text-text text-sm placeholder:text-text/40 outline-none focus:border-primary focus:ring-2 focus:ring-primary/50 transition-colors" - /> -

- Approximate battery life in minutes while playing this game. -

-
-