feat: remove estimatedBatteryMin references from 11 files (Tasks 3.1-3.14)
This commit is contained in:
@@ -6,7 +6,6 @@ interface BatteryLifePoint {
|
||||
id: string
|
||||
hardwareSlug: string
|
||||
tdpWatts: number
|
||||
estimatedBatteryMin: number
|
||||
estimatedBatteryHours: number
|
||||
wattHours: number | null
|
||||
tdpMax: number | null
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 pt-2">
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-medium text-text/60">
|
||||
Estimated Battery Life (minutes)
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
min={1}
|
||||
step={1}
|
||||
value={value.estimatedBatteryMin ?? ""}
|
||||
onChange={(e) => {
|
||||
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"
|
||||
/>
|
||||
<p className="text-xs text-text/40">
|
||||
Approximate battery life in minutes while playing this game.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-medium text-text/60">
|
||||
Custom / Modified System
|
||||
|
||||
@@ -153,7 +153,6 @@ export function ReviewStep({
|
||||
<SummaryRow label="OS Version" value={environment.osVersion || "Not set"} />
|
||||
<SummaryRow label="Upscaler" value={upscalerLabel} />
|
||||
<SummaryRow label="Frame Gen" value={frameGenLabel} />
|
||||
<SummaryRow label="Estimated Battery" value={environment.estimatedBatteryMin ? `${environment.estimatedBatteryMin} min` : "Not set"} />
|
||||
<SummaryRow label="Custom System" value={environment.customSystem ? "Yes" : "No"} />
|
||||
{environment.launchOptions && (
|
||||
<SummaryRow
|
||||
|
||||
Reference in New Issue
Block a user