Repository navigation
feat: 課表查詢看某一週實際課表(異動標色);新增常用假別;發布 v1.4.15 - #80
Merged
Merged
Conversation
老師建議: - 課表查詢的班級、教師課表可以選某一週,看調代課之後的樣子, 代課藍、調課紅、原本的課沒上劃線、請假待處理橘,並寫原本的老師。 - 新增身心調適假、家庭照顧假、生理假、休假、補休、產前假、陪產檢及陪產假、 公傷假與「其他」(事由必填);家庭照顧假預設自費代課。 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.
需求(老師建議)
使用者定案:
某一週實際課表
「課表查詢」的班級、教師課表上方多了「看某一週(含調代課)」,可以選日期,也可以按本週、上一週、下一週。
GET /published/week?view=class|teacher&target_id&on。所有登入者都能用,和課表查詢相同。資料用patrol_sheets.Day,和巡堂表、教師週總表同一份。patrol_sheets._Lesson多存一個original欄位。day_cells(_Builder、_day_cells改成公開名稱),回傳第幾節;前端再依第幾節對到格線。TimetableGrid依GridEntry.change加上顏色:代課、併班藍色,調課紅色,原本的課沒上劃線,請假還沒安排橘色。dayLabelsprop)。新增假別
新增:身心調適假、家庭照顧假、生理假、休假、補休、產前假(產檢假)、陪產檢及陪產假、公傷假、其他。
SELF_PAID_LEAVE_TYPES)。vacation當作不存在的假別,改成no_such_type。測試
test_timetable_week.py、test_leave_types_v1415.py);ruff、mypy 無誤。weekCells.test.ts;lint、vue-tsc 無誤。patrol-sheets.spec.ts加上課表查詢選某一週、檢查代課那一格標色。用本機新映像跑過patrol-sheets和leaves兩個 spec,都通過。文件
.env.example。🤖 Generated with Claude Code