Skip to content

目標入力で入力ができない問題を修正#44

Open
Hosoda-abo wants to merge 3 commits intomainfrom
fix-goal
Open

目標入力で入力ができない問題を修正#44
Hosoda-abo wants to merge 3 commits intomainfrom
fix-goal

Conversation

@Hosoda-abo
Copy link
Copy Markdown
Collaborator

やったこと

  • 目標の勉強した時間を勉強時間に変更
  • 目標入力で寝る時刻と起きる時刻を入力できない問題を修正
  • 寝る時間、起きる時間から寝る時刻、起きる時刻に変更

確認したこと

  • 目標の入力ができていることを確認

関連する issue

  • Close #

レビューして欲しいこと

  • コード確認
  • ロジック確認
  • 動作確認

UI差分

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

目標入力フォームで「寝る時刻/起きる時刻」を入力できない問題の解消を目的に、時刻入力UIを変更しつつ、目標表示文言の一部を整理するPRです。

Changes:

  • 寝る/起きるの時刻入力を type="time" から「時・分のselect」に変更
  • プレビュー表示用の時刻フォーマット関数を追加
  • 表示ラベル「勉強した時間」→「勉強時間」に変更

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/components/Goal/GoalInput.tsx 時刻入力UIの変更、時刻パース/プレビュー整形の追加、保存payload生成の整理
src/components/Goal/Goal.tsx 目標表示ラベルの文言更新(勉強時間)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<div style={{ fontWeight: 600, fontSize: 11 }}>
勉強した時間
</div>
<div style={{ fontWeight: 600, fontSize: 11 }}>勉強時間</div>
Comment on lines +88 to +90
const hour = part === "hour" ? value : currentHour;
const minute = part === "minute" ? value : currentMinute;
next[index] = hour || minute ? `${hour}:${minute}` : "";
Comment on lines +191 to +206
<span>:</span>
<select
value={selectedMinute}
onChange={(e) =>
handleTimePartChange(i, "minute", e.target.value)
}
style={{
flex: 1,
padding: ".5rem .75rem",
fontSize: "1rem",
borderRadius: 8,
border: "1px solid #ddd",
}}
>
<option value="">分</option>
{minuteSlots.map((minute) => (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants