From 9bea9a0a16a55728685c4f2b82a790314e1bc1e1 Mon Sep 17 00:00:00 2001 From: I4cDeath Date: Thu, 16 Apr 2026 16:07:56 +0800 Subject: [PATCH] fix(ui): controllers page crash from missing Alert.Content wrapper The Alert component on the error state was missing the required Alert.Content wrapper around Alert.Title and Alert.Description, causing a React render crash in the Electron production build. Bump version to 0.8.10. Made-with: Cursor --- electron/package.json | 2 +- electron/renderer/next-env.d.ts | 2 +- electron/renderer/src/app/controllers/page.tsx | 10 ++++++---- pyproject.toml | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/electron/package.json b/electron/package.json index 9616e6b..045d487 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "protonshift", - "version": "0.8.9", + "version": "0.8.10", "description": "Linux game configuration toolkit", "main": "dist/main.js", "scripts": { diff --git a/electron/renderer/next-env.d.ts b/electron/renderer/next-env.d.ts index 9edff1c..24c7c90 100644 --- a/electron/renderer/next-env.d.ts +++ b/electron/renderer/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./out/dev/types/routes.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/electron/renderer/src/app/controllers/page.tsx b/electron/renderer/src/app/controllers/page.tsx index f35c7d6..9b096ba 100644 --- a/electron/renderer/src/app/controllers/page.tsx +++ b/electron/renderer/src/app/controllers/page.tsx @@ -143,10 +143,12 @@ export default function ControllersPage() { ) : error ? ( - Failed to detect controllers - - Check that the backend is running and /proc/bus/input/devices or /dev/input/js* is accessible, then try refreshing. - + + Failed to detect controllers + + Check that the backend is running and /proc/bus/input/devices or /dev/input/js* is accessible, then try refreshing. + + /* Empty state */ diff --git a/pyproject.toml b/pyproject.toml index 1fbdeb4..6c844f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "protonshift" -version = "0.8.9" +version = "0.8.10" description = "Linux game configuration toolkit: GPU, launch options, Proton, env vars" readme = "README.md" requires-python = ">=3.12"