v0.1.51 - 통계 차트와 플래너 하단 정렬 보정

This commit is contained in:
2026-04-23 15:20:43 +09:00
parent bebd8ed8a6
commit 6c69658d33
4 changed files with 63 additions and 15 deletions

View File

@@ -959,7 +959,7 @@ const overviewCards = computed(() => [
},
{
label: 'COMPLETED TASKS',
value: `${completedRecordedTasks.value}/${totalRecordedTasks.value || 0}`,
value: `${completedRecordedTasks.value} / ${totalRecordedTasks.value || 0}`,
caption: '완료된 할 일과 전체 입력된 할 일 수',
},
])
@@ -985,6 +985,7 @@ const weeklyRecords = computed(() => {
return {
key,
weekday: weekdayShort,
dateLabel: `${`${date.getMonth() + 1}`.padStart(2, '0')}.${`${date.getDate()}`.padStart(2, '0')}`,
focusedMinutes,
focusedTime: formatMinutesKorean(focusedMinutes),
}
@@ -1211,6 +1212,14 @@ function closeRightPanel() {
rightPanelOpen.value = false
}
function applyStatsQuickRange(days) {
const endDate = new Date()
const startDate = new Date(endDate)
startDate.setDate(endDate.getDate() - (days - 1))
statsRangeStart.value = toKey(startDate)
statsRangeEnd.value = toKey(endDate)
}
function setScreenMode(mode) {
if (mode === 'admin' && !isAdmin.value) {
return
@@ -1218,6 +1227,10 @@ function setScreenMode(mode) {
screenMode.value = mode
if (mode === 'stats') {
statsRangeEnd.value = toKey(new Date())
}
if (mode === 'admin') {
void loadAdminDashboard()
}
@@ -2829,6 +2842,7 @@ onBeforeUnmount(() => {
:range-end="normalizedStatsRange.endKey"
@update:range-start="statsRangeStart = $event"
@update:range-end="statsRangeEnd = $event"
@quick-range="applyStatsQuickRange"
/>
<section v-if="isAuthenticated" class="print-only">