From bcf218c1f1c67359cf421aba1931c070e0e964e3 Mon Sep 17 00:00:00 2001 From: Jeong Daseul <98886223+goodaseul@users.noreply.github.com> Date: Thu, 1 Jan 2026 21:17:55 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=92=84=20Style=20:=20=EB=AA=A9?= =?UTF-8?q?=ED=91=9C=EC=83=81=EC=84=B8=20=EB=85=B8=ED=8A=B8=20=EB=AA=A8?= =?UTF-8?q?=EC=95=84=EB=B3=B4=EA=B8=B0=20=EB=A7=81=ED=81=AC=20=EC=98=81?= =?UTF-8?q?=EC=97=AD=20=ED=99=95=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goals/[goalId]/_components/GoalNotesCard.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/(protected)/goals/[goalId]/_components/GoalNotesCard.tsx b/src/app/(protected)/goals/[goalId]/_components/GoalNotesCard.tsx index e5a8a06..387c3f0 100644 --- a/src/app/(protected)/goals/[goalId]/_components/GoalNotesCard.tsx +++ b/src/app/(protected)/goals/[goalId]/_components/GoalNotesCard.tsx @@ -11,13 +11,13 @@ type GoalNotesCardProps = { export default function GoalNotesCard({ goalId, todoId }: GoalNotesCardProps) { return ( -
- + +
노트 모아보기 - -
+
+ ); } From 90c838125496f3eef9f58a836422fa8a2795d145 Mon Sep 17 00:00:00 2001 From: Jeong Daseul <98886223+goodaseul@users.noreply.github.com> Date: Thu, 1 Jan 2026 21:31:57 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20:=20=EB=AA=A9=ED=91=9C?= =?UTF-8?q?=EC=83=81=EC=84=B8=20=EB=AA=A9=ED=91=9C=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=8B=9C=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=9D=B8=ED=92=8B?= =?UTF-8?q?=EC=97=90=20=EB=98=91=EA=B0=99=EC=9D=B4=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx b/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx index 08427b2..8e62a89 100644 --- a/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx +++ b/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx @@ -42,7 +42,7 @@ export default function GoalHeader({ goalId }: GoalHeaderProps) { text: "수정하기", onClick: () => { closeDropdown(); - setEditTitle(""); + setEditTitle(goal?.title ?? ""); setIsEditing(true); }, }, From b099678146ab350d8849d4ed16c9c194f116e776 Mon Sep 17 00:00:00 2001 From: Jeong Daseul <98886223+goodaseul@users.noreply.github.com> Date: Thu, 1 Jan 2026 21:45:16 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E2=9C=A8=20feature=20:=20=EB=AA=A9?= =?UTF-8?q?=ED=91=9C=EC=83=81=EC=84=B8=20=EC=88=98=EC=A0=95=EB=88=84?= =?UTF-8?q?=EB=A5=BC=EC=8B=9C=20=EC=9D=B8=ED=92=8B=EC=97=90=20=20focus=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goals/[goalId]/_components/GoalHeader.tsx | 41 +++++++++++-------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx b/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx index 8e62a89..e16976b 100644 --- a/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx +++ b/src/app/(protected)/goals/[goalId]/_components/GoalHeader.tsx @@ -5,7 +5,7 @@ import { useUpdateGoalMutation } from "@/hooks/queries/goals/useUpdateGoalMutati import { useGoalDetail } from "@/hooks/queries/goals/useGoalDetail"; import { useDropdown } from "@/hooks/useDropdown"; import { EllipsisVerticalIcon } from "@heroicons/react/24/outline"; -import { useState } from "react"; +import { useEffect, useRef, useState } from "react"; import TextButton from "@/components/common/button/TextButton"; import { useDeleteGoalMutation } from "@/hooks/queries/goals/useDeleteGoalMutation"; import ConfirmModal from "@/components/common/popup-modal/ConfirmModal"; @@ -19,12 +19,18 @@ type GoalHeaderProps = { export default function GoalHeader({ goalId }: GoalHeaderProps) { const numericGoalId = Number(goalId); + const inputRef = useRef(null); const router = useRouter(); const { data: goal } = useGoalDetail(numericGoalId); const [confirmOpen, setConfirmOpen] = useState(false); const [isEditing, setIsEditing] = useState(false); + useEffect(() => { + if (isEditing && inputRef.current) { + inputRef.current.focus(); + } + }, [isEditing]); const [editTitle, setEditTitle] = useState(""); const { mutate: updateGoal } = useUpdateGoalMutation(numericGoalId); @@ -92,21 +98,24 @@ export default function GoalHeader({ goalId }: GoalHeaderProps) {

{goal?.title}

) : (
- setEditTitle(e.target.value)} - placeholder="수정할 목표를 적어주세요." - onKeyDown={(e) => { - if (e.key === "Enter") { - e.preventDefault(); - handleSave(); - } - }} - /> - +
+ setEditTitle(e.target.value)} + placeholder="수정할 목표를 적어주세요." + onKeyDown={(e) => { + if (e.key === "Enter") { + e.preventDefault(); + handleSave(); + } + }} + /> +