From 77b090fc77df793ba661abce79d54a93ba8bbd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E9=A6=99=E4=B8=B8=E5=AD=90?= <15518898337@163.com> Date: Tue, 25 Aug 2026 10:47:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=A6=96=E9=A1=B5=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E9=A1=B9=E7=9B=AE=E6=8F=90=E7=A4=BA=20(#188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首页默认项目状态改为空 移除最近项目标题下的解释性副标题 补充首页视觉规则并更新界面测试 --------- Co-authored-by: 段舒康 Co-authored-by: kdletters Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/188 Co-authored-by: 五香丸子 <15518898337@163.com> Co-committed-by: 五香丸子 <15518898337@163.com> --- apps/ai-game-creator-shell/src/App.tsx | 6 +- .../features/app-shell/WorkspaceLauncher.tsx | 3 +- .../ProjectSupervisorView.tsx | 11 +- apps/ai-game-creator-shell/src/styles.css | 359 +++++++++++++++++- .../src/view/home/index.tsx | 10 - .../src/view/project-development/index.tsx | 193 +++++++--- .../tests/appSurface/home.suite.ts | 7 +- .../appSurface/project-development.suite.ts | 33 +- ...AI游戏创作】项目开发工作台PRD-2026-07-20.md | 2 + 9 files changed, 526 insertions(+), 98 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 9cf7ad4c0..ea305a8bc 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -1243,6 +1243,9 @@ export function App({ const initialProjectOpenedRef = useRef(false); const pendingUiConfirmationActionRef = useRef<(() => void) | null>(null); const queueRunLocalShortcutRef = useRef<() => void>(() => undefined); + const executeRunLocalRef = useRef<(announceToChat: boolean) => void>( + () => undefined, + ); function requestRuntimeConfigOpen() { if (projectSupervisorOnly && !supervisorChatOnly && !gameChatOnly) { @@ -3283,6 +3286,7 @@ export function App({ ]); } queueRunLocalShortcutRef.current = queueRunLocalShortcut; + executeRunLocalRef.current = executeRunLocal; useEffect(() => { const nextProjectPath = localProject?.projectPath; @@ -3300,7 +3304,7 @@ export function App({ } handledPlayRequestRef.current = requestKey; onPlayRequestHandled?.(playRequest.requestId); - queueRunLocalShortcutRef.current(); + void executeRunLocalRef.current(true); }, [ localProject?.projectPath, onPlayRequestHandled, diff --git a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx index 139446dee..10e4fd343 100644 --- a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx +++ b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx @@ -34,7 +34,7 @@ export function WorkspaceLauncherShell({ ProjectSupervisor, }: WorkspaceLauncherShellProps) { const accountWallet = useAccountWallet(currentUser.id); - const [status, setStatus] = useState('请选择项目'); + const [status, setStatus] = useState(''); const recentProjects = useRecentProjects(setStatus); const { recentProjectRows, rememberRecentWorkspace } = recentProjects; const [launcherView, setLauncherView] = useState(initialView); @@ -273,7 +273,6 @@ export function WorkspaceLauncherShell({ {launcherView === 'home' ? ( 0} - status={status} onStatusChange={setStatus} recentProjectRows={recentProjectRows} onCreateDraftAutomatically={createHomeDraftAutomatically} diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx index 10a88f942..d7f3dbd3b 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx @@ -1,4 +1,4 @@ -import { Send } from 'lucide-react'; +import { ArrowUp } from 'lucide-react'; import type { ComponentProps, Dispatch, @@ -251,14 +251,7 @@ export function ProjectSupervisorView({ type="submit" disabled={runtimePanelProps.controlBusy || needsUserInput} > -