Repository navigation
feat: 寒暑假輔導學期,各頁預設選今天所在的學期(v1.4.22) - #87
Merged
Merged
Conversation
- 學期別多「寒假輔導」(term 3)、「暑期輔導」(term 4),沿用 term 欄,沒有資料表變更 - 輔導學期起訖日期必填,且不能和其他學期重疊(建立、複製、修改日期都檢查;一般學期之間照舊不擋) - 學期清單改照日期由新到舊;各頁預設選今天落在起訖日期內的學期 - 輔導學期不比基本鐘點、不受超鐘點上限、排課前檢查不提示超出應授鐘點;配課畫面改列教師輔導節數 - 複製成輔導學期:預設同一學年度、年級不進位、日期清空 - 調課單抬頭「115學年暑期輔導」 - 測試:後端 7 項、前端 3 項、e2e tutoring-semester.spec.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
寒暑假輔導學期(v1.4.22)
組長許願「可以設定寒暑假輔導」。使用者定案的規則:
不做:授課節數統計、輔導費、學生名單、和一般學期日期重疊。
實作
term欄(3 寒假輔導、4 暑期輔導),沒有資料表變更;(學年度, term)一樣不能重複Semester.is_tutoring/label/sort_date、sorted_semesters(學期清單與已發布學期清單都改照日期排序;沒填日期用學年度推估,舊資料順序不變)_check_dates:輔導學期日期必填;有一邊是輔導的學期才檢查重疊(一般學期之間照舊不擋),建立、複製、修改日期都檢查teacher_loads回tutoring、輔導學期over_limit一律 false(配課與匯入的上限檢核跟著不擋);Problem.is_tutoring→ 排課前檢查不出teacher_over_hoursTERM_OPTIONS、defaultSemester()——15 個頁面預設選今天落在起訖日期內的學期(輔導學期常在學期進行中就先建好,只取第一個會讓每天的請假、代課跳到還沒開始的輔導);複製成輔導學期時預設同一學年度、年級不進位、日期清空;配課側欄改列「教師輔導節數」測試
test_tutoring_semester_v1422.py7 項)、ruff、mypysemesters.test.ts3 項)tutoring-semester.spec.ts)文件
CHANGELOG、README、.env.example、升級說明、roadmap、功能總覽、操作手冊(第 10 章「寒暑假輔導」、FAQ)
🤖 Generated with Claude Code