add day-detail view to monthly history calendar
날짜 셀 클릭 시 그 날 예정된 습관별 완료/실패/미완료 상태를 htmx로 불러와 보여준다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,14 @@ class WeeklyMatrixRow(BaseModel):
|
||||
completion_rate: float # 이번 주, 오늘까지 지난 예정일 중 체크한 비율 (%)
|
||||
|
||||
|
||||
class DayDetailItem(BaseModel):
|
||||
habit_id: int
|
||||
name: str
|
||||
habit_type: str
|
||||
condition_text: str | None
|
||||
status: str # "checked" | "failed" | "missed"(과거, 미결정) | "pending"(오늘/미래, 미결정)
|
||||
|
||||
|
||||
class HabitStats(BaseModel):
|
||||
completion_rate: float # 습관 생성일부터 오늘까지, 예정된 날 중 체크한 비율 (%)
|
||||
current_streak: int # 오늘(또는 어제)부터 거슬러 올라가며 끊기지 않고 체크한 예정일 수
|
||||
|
||||
Reference in New Issue
Block a user