-
Notifications
You must be signed in to change notification settings - Fork 0
プロジェクト新規作成時に、メンバーの加入時期のデフォルト値を、プロジェクト開始時期にする #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the default join date for new project members to use the project’s start date (formValues.duration.since) instead of defaulting to the current year’s first semester.
- Removed hardcoded
new Date().getFullYear()andsemester: 0 - Now reuses
formValues.duration.sinceforsinceinuserWithDurations
Comments suppressed due to low confidence (1)
src/pages/ProjectNew.vue:95
- Add a unit test verifying that new members inherit the project’s start date as their default join date, ensuring this behavior remains correct in future changes.
since: formValues.duration.since,
Pugma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一点だけコメントを付けました!
確認をお願いします
src/pages/ProjectNew.vue
Outdated
| year: new Date().getFullYear(), | ||
| semester: 0 | ||
| }, | ||
| since: formValues.duration.since, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copilot や agent などにも指摘されていますが、オブジェクトをそのまま代入すると参照型になると思います
値のコピーをするために内部のプリミティブな要素を展開するようにしたほうがいいと思います
agent の方で指摘されている null 合体演算子によるフォールバックについては、ここではしてもしなくても良いかと思います
|
あと、 |
Co-authored-by: Copilot <[email protected]>
|
/improve |
PR Code Suggestions ✨Latest suggestions up to ab8640a
Previous suggestionsSuggestions up to commit 4272b7a
|
Pugma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!
現状の実装で大丈夫そうです!
merge しちゃってください
|
了解です |
User description
#461 を修正
プロジェクト新規作成の際にメンバーを登録すると、メンバーの参加時期のデフォルトの値が、現在の年の前期になっている。これを、プロジェクトの開始時期に変更する。
PR Type
Bug fix
Description
プロジェクト新規作成時のメンバー加入時期を修正
既存実装は現在年の前期を初期値としていた
プロジェクト開始時期(
formValues.duration.since)を使用Changes walkthrough 📝
ProjectNew.vue
メンバー加入時期の初期値変更src/pages/ProjectNew.vue
duration.sinceの初期値にformValues.duration.sinceを使用new Date()とsemesterのデフォルト設定を削除untilは従来通りundefined