refactor: 항해일지 작성 모달로 변경 및 꾹 눌러서 종료
This commit is contained in:
@@ -11,7 +11,6 @@ export default function DebriefPage() {
|
||||
|
||||
const [status, setStatus] = useState<VoyageStatus | null>(null);
|
||||
const [progress, setProgress] = useState('');
|
||||
const [nextAction, setNextAction] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
const current = getCurrentVoyage();
|
||||
@@ -29,7 +28,6 @@ export default function DebriefPage() {
|
||||
...voyage,
|
||||
status: status,
|
||||
debriefProgress: progress,
|
||||
nextAction: nextAction,
|
||||
endedAt: voyage.endedAt || Date.now(), // Fallback if missed in flight
|
||||
};
|
||||
|
||||
@@ -46,9 +44,9 @@ export default function DebriefPage() {
|
||||
if (!voyage) return null;
|
||||
|
||||
const statusOptions: { value: VoyageStatus; label: string; desc: string }[] = [
|
||||
{ value: 'completed', label: '✅ 계획대로', desc: '목표를 달성했습니다' },
|
||||
{ value: 'partial', label: '🌓 부분 진행', desc: '절반의 성공입니다' },
|
||||
{ value: 'reoriented', label: '🧭 방향 재설정', desc: '새로운 발견을 했습니다' },
|
||||
{ value: 'completed', label: '계획대로', desc: '목표를 달성했습니다' },
|
||||
{ value: 'partial', label: '부분 진행', desc: '절반의 성공입니다' },
|
||||
{ value: 'reoriented', label: '방향 재설정', desc: '새로운 발견을 했습니다' },
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -97,19 +95,6 @@ export default function DebriefPage() {
|
||||
/>
|
||||
</section>
|
||||
|
||||
{/* Question 3: Next Action */}
|
||||
<section>
|
||||
<label className="block text-sm font-medium text-slate-300 mb-2">
|
||||
다음 항해의 첫 행동 (Next)
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
value={nextAction}
|
||||
onChange={(e) => setNextAction(e.target.value)}
|
||||
placeholder="예: 본문 1챕터 초안 쓰기"
|
||||
className="w-full bg-slate-900/30 border border-slate-800 rounded-lg px-4 py-3 text-slate-200 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 outline-none transition-all"
|
||||
/>
|
||||
</section>
|
||||
<button
|
||||
type="submit"
|
||||
disabled={!status}
|
||||
|
||||
Reference in New Issue
Block a user