From b3d91170662accdd48cdfc42ca2180521b096669 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 12 Aug 2024 01:56:57 +0900 Subject: refactor: rename verification_steps for consistant naming --- frontend/app/.server/api/schema.d.ts | 4 ++-- frontend/app/components/GolfWatchApp.client.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'frontend') diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 157a96f..5b37081 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -113,9 +113,9 @@ export interface components { started_at?: number; problem: components["schemas"]["Problem"]; players: components["schemas"]["User"][]; - verification_steps: components["schemas"]["VerificationStep"][]; + exec_steps: components["schemas"]["ExecStep"][]; }; - VerificationStep: { + ExecStep: { /** @example 1 */ testcase_id: number | null; /** @example Test case 1 */ diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx index 7041572..481b997 100644 --- a/frontend/app/components/GolfWatchApp.client.tsx +++ b/frontend/app/components/GolfWatchApp.client.tsx @@ -127,7 +127,7 @@ export default function GolfWatchApp({ ...prev, submitResult: { status: "running", - execResults: game.verification_steps.map((r) => ({ + execResults: game.exec_steps.map((r) => ({ testcase_id: r.testcase_id, status: "running", label: r.label, @@ -217,7 +217,7 @@ export default function GolfWatchApp({ } } }, [ - game.verification_steps, + game.exec_steps, game.started_at, lastJsonMessage, readyState, -- cgit v1.2.3-70-g09d2