feat: epics, subtasks and checklists

Tickets can hang from another one of the same project, three levels deep
at most (epic → ticket → subtask). The ticket page lists its subtasks with
their progress, creates new ones and moves the ticket under an epic; a new
Épicas tab shows every epic and how far it has got. Each ticket also gets a
checklist for the small steps that don't deserve a ticket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 13:52:43 +02:00
parent 75323115fb
commit d4da33d4e8
84 changed files with 4719 additions and 79 deletions

View File

@@ -26,3 +26,7 @@ export * from './issue-attachment-added.event';
export * from './issue-attachment-removed.event';
export * from './issue-watched.event';
export * from './issue-unwatched.event';
export * from './issue-parent-changed.event';
export * from './issue-checklist-item-added.event';
export * from './issue-checklist-item-updated.event';
export * from './issue-checklist-item-removed.event';

View File

@@ -0,0 +1,16 @@
import { AutowiredEvent } from '@task-stream/api/shared/domain';
import { ChecklistItem } from '../issue/issue-checklist';
import { TrackerEvent } from './tracker.event';
/** A step was added to a ticket's checklist. */
@AutowiredEvent
export class IssueChecklistItemAddedEvent extends TrackerEvent {
constructor(
actorId: string,
issueId: string,
projectId: string,
readonly item: ChecklistItem,
) {
super(actorId, issueId, projectId);
}
}

View File

@@ -0,0 +1,16 @@
import { AutowiredEvent } from '@task-stream/api/shared/domain';
import { TrackerEvent } from './tracker.event';
/** A step was removed from a ticket's checklist. */
@AutowiredEvent
export class IssueChecklistItemRemovedEvent extends TrackerEvent {
constructor(
actorId: string,
issueId: string,
projectId: string,
readonly itemId: string,
readonly text: string,
) {
super(actorId, issueId, projectId);
}
}

View File

@@ -0,0 +1,17 @@
import { AutowiredEvent } from '@task-stream/api/shared/domain';
import { ChecklistItem } from '../issue/issue-checklist';
import { TrackerEvent } from './tracker.event';
/** A checklist step was reworded, ticked or unticked (only what changed). */
@AutowiredEvent
export class IssueChecklistItemUpdatedEvent extends TrackerEvent {
constructor(
actorId: string,
issueId: string,
projectId: string,
readonly itemId: string,
readonly changes: Partial<Pick<ChecklistItem, 'text' | 'done'>>,
) {
super(actorId, issueId, projectId);
}
}

View File

@@ -0,0 +1,17 @@
import { AutowiredEvent } from '@task-stream/api/shared/domain';
import { TrackerEvent } from './tracker.event';
/** A ticket was placed under another one (or taken out: `parentId` null). */
@AutowiredEvent
export class IssueParentChangedEvent extends TrackerEvent {
constructor(
actorId: string,
issueId: string,
projectId: string,
readonly parentId: string | null,
readonly parentKey: string | null,
readonly previousParentId: string | null,
) {
super(actorId, issueId, projectId);
}
}