fix(web): show today-only nav badges and restore activities board height.
Nav activity/routine badges no longer include overdue, and the desk board wrapper gets the flex fill chain so columns render. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -683,7 +683,7 @@ async function loadActivityBadge() {
|
|||||||
const { data } = await api.get<ActivitySummaryDto>('/activities/summary', {
|
const { data } = await api.get<ActivitySummaryDto>('/activities/summary', {
|
||||||
params: { desk: 'mine' },
|
params: { desk: 'mine' },
|
||||||
});
|
});
|
||||||
activityBadge.value = (data.todayCount ?? 0) + (data.overdueCount ?? 0);
|
activityBadge.value = data.todayCount ?? 0;
|
||||||
} catch {
|
} catch {
|
||||||
activityBadge.value = 0;
|
activityBadge.value = 0;
|
||||||
}
|
}
|
||||||
@@ -693,7 +693,7 @@ async function loadRoutineBadge() {
|
|||||||
if (!moduleAllowed('routines')) return;
|
if (!moduleAllowed('routines')) return;
|
||||||
try {
|
try {
|
||||||
const { data } = await api.get<{ remaining: number; overdue: number }>('/routine-tasks/badge');
|
const { data } = await api.get<{ remaining: number; overdue: number }>('/routine-tasks/badge');
|
||||||
routineBadge.value = data.remaining + data.overdue;
|
routineBadge.value = data.remaining;
|
||||||
} catch {
|
} catch {
|
||||||
routineBadge.value = 0;
|
routineBadge.value = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1463,7 +1463,16 @@ onUnmounted(() => {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-tour="activities-board">
|
<div
|
||||||
|
data-tour="activities-board"
|
||||||
|
:style="{
|
||||||
|
position: 'relative',
|
||||||
|
flex: '1 1 auto',
|
||||||
|
minHeight: 0,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
}"
|
||||||
|
>
|
||||||
<ActivitiesKanban
|
<ActivitiesKanban
|
||||||
v-if="viewMode === 'board'"
|
v-if="viewMode === 'board'"
|
||||||
:stages="stages"
|
:stages="stages"
|
||||||
|
|||||||
Reference in New Issue
Block a user