From e2649636b6304abc8f575947c50b54768172fd8e Mon Sep 17 00:00:00 2001 From: peisonger Date: Fri, 5 Jun 2026 02:58:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?revert=20:=20=EA=B8=B0=EB=A1=9D=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=ED=86=B5=EA=B3=84=20=ED=95=98=EB=93=9C=EC=BD=94?= =?UTF-8?q?=EB=94=A9=20=EC=A0=9C=EA=B1=B0,=20API=20=EC=97=B0=EB=8F=99?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=B5=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/record/[id].tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/record/[id].tsx b/app/record/[id].tsx index 3e7228d..da9f18e 100644 --- a/app/record/[id].tsx +++ b/app/record/[id].tsx @@ -272,9 +272,9 @@ export default function RecordScreen() { {/* 통계 */} {[ - { label: "소요시간", value: "3시간 24분" }, - { label: "고도", value: "642m" }, - { label: "칼로리", value: "1128kcal" }, + { label: "소요시간", value: formatDuration(recordDetail?.durationSeconds ?? durationSec) }, + { label: "고도", value: recordDetail?.ascentMeters != null ? `${Math.round(recordDetail.ascentMeters)}Nm` : "--" }, + { label: "칼로리", value: recordDetail?.calories != null ? `${recordDetail.calories}kcal` : "--" }, ].map((stat) => ( {stat.label} From 675ddd789e7dea78935fca81bc0b236c0309ef87 Mon Sep 17 00:00:00 2001 From: peisonger Date: Fri, 5 Jun 2026 05:45:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20demo=20API=20=EC=A0=9C=EA=B1=B0?= =?UTF-8?q?=20=EB=B0=8F=20=EC=8B=A4=EC=A0=9C=20API=20=EB=B3=B5=EC=9B=90,?= =?UTF-8?q?=20=EA=B3=A0=EB=8F=84=20=EB=8B=A8=EC=9C=84=20Nm=20=EC=9C=A0?= =?UTF-8?q?=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/tracking/hooks/use-clive-photos.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/features/tracking/hooks/use-clive-photos.ts b/features/tracking/hooks/use-clive-photos.ts index 722d357..f1302bd 100644 --- a/features/tracking/hooks/use-clive-photos.ts +++ b/features/tracking/hooks/use-clive-photos.ts @@ -2,15 +2,27 @@ import { useQuery } from "@tanstack/react-query"; import { api } from "@/lib/api"; import { ENDPOINTS } from "@/types/api.generated"; +type ClivePhoto = { + photoId: number; + trackingSessionId: number; + milestoneIndex: number; + milestoneDistanceM: number; + imageUrl: string; + capturedAt: string; + lat: number; + lng: number; + altitude: number; +}; + export function useClivePhotos(sessionId: number | null) { return useQuery({ queryKey: ["clivePhotos", sessionId], enabled: sessionId != null, queryFn: async () => { - const res = await api.get({ - path: `${ENDPOINTS.DEMO_TRACKING_SESSIONS_BY_SESSIONID_PHOTOS(sessionId!)}?count=2`, + const res = await api.get({ + path: ENDPOINTS.TRACKING_SESSIONS_BY_SESSIONID_PHOTOS(sessionId!), }); - return res.data ?? []; + return (res.data ?? []).map((p) => p.imageUrl); }, }); }