fix: only filter out later today tasks for today list

This commit is contained in:
Johannes Millan 2025-07-02 19:07:51 +02:00
parent 64cba1ffa4
commit f9f1049437
3 changed files with 6 additions and 5 deletions

View file

@ -372,7 +372,7 @@ export class WorkContextService {
}
// Filter out tasks scheduled for later today
if (task.dueWithTime) {
if (this.activeWorkContextId === TODAY_TAG.id && task.dueWithTime) {
const now = Date.now();
const todayEnd = new Date();
todayEnd.setHours(23, 59, 59, 999);

View file

@ -247,7 +247,7 @@
</button>
</div>
}
@if (customizedUndoneTasks$ | async; as customized) {
@if (customizedUndoneTasks(); as customized) {
@if (customized.grouped) {
@for (group of customized.grouped | keyvalue; track group.key) {
<h3>{{ group.key }}</h3>

View file

@ -54,8 +54,8 @@ import { MsToStringPipe } from '../../ui/duration/ms-to-string.pipe';
import { TranslatePipe } from '@ngx-translate/core';
import {
flattenTasks,
selectOverdueTasksWithSubTasks,
selectLaterTodayTasksWithSubTasks,
selectOverdueTasksWithSubTasks,
} from '../tasks/store/task.selectors';
import { CollapsibleComponent } from '../../ui/collapsible/collapsible.component';
import { SnackService } from '../../core/snack/snack.service';
@ -120,8 +120,9 @@ export class WorkViewComponent implements OnInit, OnDestroy, AfterContentInit {
initialValue: [],
});
undoneTasks = input<TaskWithSubTasks[]>([]);
customizedUndoneTasks$ = this.customizerService.customizeUndoneTasks(
this.workContextService.undoneTasks$,
customizedUndoneTasks = toSignal(
this.customizerService.customizeUndoneTasks(this.workContextService.undoneTasks$),
{ initialValue: { list: [] } },
);
doneTasks = input<TaskWithSubTasks[]>([]);
backlogTasks = input<TaskWithSubTasks[]>([]);