feat: saved views of my work, across my projects
A person saves named views of «my work»: projects, assigned to me, that I follow, status categories, priorities, bugs only, overdue and text. They are private (Mongo my_views, no history), listed and deleted by their owner (GraphQL myViews / saveMyView / deleteMyView, REST /api/me/views), and run as the cross-project search, which gains project, priority, bugsOnly and overdue filters (also in MCP my_issues). The home page shows them as a bar above «my work», with a drawer to save a new one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
WorkflowsService,
|
||||
} from '@task-stream/api/tracker/application';
|
||||
import {
|
||||
IssuePriority,
|
||||
IssueReadModel,
|
||||
StatusCategory,
|
||||
} from '@task-stream/api/tracker/domain';
|
||||
@@ -121,6 +122,26 @@ export class IssueResolver {
|
||||
description: 'Matches key, title or description (global search)',
|
||||
})
|
||||
search?: string | null,
|
||||
@Args('projectIds', {
|
||||
type: () => [ID],
|
||||
nullable: true,
|
||||
description: 'Only these of my projects',
|
||||
})
|
||||
projectIds?: string[] | null,
|
||||
@Args('priorities', { type: () => [IssuePriority], nullable: true })
|
||||
priorities?: IssuePriority[] | null,
|
||||
@Args('bugsOnly', {
|
||||
type: () => Boolean,
|
||||
nullable: true,
|
||||
description: 'Only types drawn with the bug icon',
|
||||
})
|
||||
bugsOnly?: boolean | null,
|
||||
@Args('overdue', {
|
||||
type: () => Boolean,
|
||||
nullable: true,
|
||||
description: 'Only open tickets past their due date',
|
||||
})
|
||||
overdue?: boolean | null,
|
||||
) {
|
||||
return this.issuesService.mine(me.id, {
|
||||
assignedToMe,
|
||||
@@ -128,6 +149,10 @@ export class IssueResolver {
|
||||
statuses: statuses ?? undefined,
|
||||
categories: categories ?? undefined,
|
||||
search: search ?? undefined,
|
||||
projectIds: projectIds ?? undefined,
|
||||
priorities: priorities ?? undefined,
|
||||
bugsOnly: bugsOnly ?? undefined,
|
||||
overdue: overdue ?? undefined,
|
||||
limit,
|
||||
offset,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user