Skip to content
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

履修情報の記憶と更新、相手の授業も考慮した日程調整 #84

Merged
merged 12 commits into from
Jan 23, 2025

Conversation

uxiun
Copy link
Contributor

@uxiun uxiun commented Jan 17, 2025

ユーザ視点での変更の説明

履修情報CSVを毎回読み込ませる必要がなくなり、学期の変わり目など履修中の授業を更新したいときだけでよくなった。
自分だけでなく相手の履修している授業も考慮した空き時間の計算がされるようになった。

開発者視点での変更の説明

adjust/candidate.tsxhandleSchedule 関数で招待相手のidをもとに授業を取得し、その授業時間を算出して、findFreePeriods() に渡す忙しい時間帯 periods に含めた
WeekViewに渡していたprops, coursecoursePeriods に変更して、重複して計算する無駄を省いた。

イシュー番号・リンク

レビュー前のチェックリスト

  • 自分でコードの振り返りをしました
    DB に dummy data を入れて簡単に確認した

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
super-koyomi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 2:37pm

@uxiun
Copy link
Contributor Author

uxiun commented Jan 17, 2025

現在の学期が正しく取得されるように直した。
new Date("2024/01/01") == new Date(2024, 0, 1) と月の指定が 0 始まりだったために学期の期間定義がずれていました。

@uxiun uxiun requested a review from Amulnesia January 17, 2025 14:42
@uxiun uxiun merged commit 6803b2c into main Jan 23, 2025
3 checks passed
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