修复资源画布布局 CI 检查
Project CI / Repository checks (pull_request) Successful in 1m16s
Project CI / Frontend tests (pull_request) Successful in 2m32s
Project CI / Native shell tests (pull_request) Successful in 10m53s
Project CI / Backend tests (pull_request) Successful in 2m48s

移除资源布局 Hook 的冗余 useMemo 依赖
按仓库规则整理工作台测试类型导入
This commit is contained in:
2026-07-28 15:41:55 +08:00
parent 4c503b7fc3
commit 61f1306fee
2 changed files with 5 additions and 5 deletions
@@ -49,7 +49,7 @@ export function useProjectResourceCanvasLayout({
createEmptyResourceCanvasLayout(projectId, mode),
resources,
).layout,
[mode, projectId, resourceSignature, resources],
[mode, projectId, resources],
);
const [layout, setLayout] = useState<ProjectResourceCanvasLayout>(fallback);
const [notice, setNotice] = useState<LayoutNotice>('');
@@ -1,3 +1,7 @@
import type {
ProjectResourceCanvasLayout,
ProjectResourceCanvasPosition,
} from '../../../../packages/shared/src/contracts/gameCreationApp';
import {
act,
agentRuntimeUserInputRequest,
@@ -27,10 +31,6 @@ import {
waitFor,
within,
} from './harness';
import type {
ProjectResourceCanvasLayout,
ProjectResourceCanvasPosition,
} from '../../../../packages/shared/src/contracts/gameCreationApp';
export function registerProjectWorkbenchFoundationTests() {
it('renders the first project workbench slice with honest disabled run and local approval UI', () => {