diff --git a/frontend/src/components/dashboard/ProjectsTab.vue b/frontend/src/components/dashboard/ProjectsTab.vue index 810b32f..c9a2110 100644 --- a/frontend/src/components/dashboard/ProjectsTab.vue +++ b/frontend/src/components/dashboard/ProjectsTab.vue @@ -39,7 +39,7 @@ import type { HiveProject, HiveTask } from '@/types' /** Enough projects and tasks for an overview; the Projects page paginates. */ const PROJECT_LIMIT = 100 -const TASK_LIMIT = 500 +const TASK_LIMIT = 2000 interface TaskCounts { total: number @@ -75,6 +75,7 @@ const tasks = useList({ doctype: 'Hive Task', fields: ['name', 'project', 'status', 'is_internal'], filters: { is_archived: 0 }, + orderBy: 'modified desc', limit: TASK_LIMIT, cacheKey: 'dashboard-project-tasks', }) diff --git a/frontend/src/pages/ProjectDetailPage.vue b/frontend/src/pages/ProjectDetailPage.vue index 23385f8..5651fa2 100644 --- a/frontend/src/pages/ProjectDetailPage.vue +++ b/frontend/src/pages/ProjectDetailPage.vue @@ -273,8 +273,8 @@ const tasks = useList({ 'modified', ], filters: () => ({ project: projectName.value, is_archived: 0 }), - orderBy: 'due_date asc', - limit: 500, + orderBy: 'due_date asc, modified desc', + limit: 2000, immediate: false, }) diff --git a/frontend/src/pages/TasksPage.vue b/frontend/src/pages/TasksPage.vue index 533dad7..6a38228 100644 --- a/frontend/src/pages/TasksPage.vue +++ b/frontend/src/pages/TasksPage.vue @@ -230,6 +230,10 @@ const hideProject = computed(() => Boolean(projectFilter.value) || groupBy.value // -- data ---------------------------------------------------------------- +const taskFilters = computed(() => + projectFilter.value ? { is_archived: 0, project: projectFilter.value } : { is_archived: 0 }, +) + const tasks = useList({ doctype: 'Hive Task', fields: [ @@ -251,9 +255,9 @@ const tasks = useList({ 'creation', 'modified', ], - filters: { is_archived: 0 }, - orderBy: 'due_date asc', - limit: 500, + filters: taskFilters, + orderBy: 'due_date asc, modified desc', + limit: 2000, cacheKey: 'tasks-page', })