feat: formatted text, a list view, ticket details, public proposals and votes
Formatted text
- Descriptions, comments, replies and release notes render Markdown,
sanitised with DOMPurify (tested against scripts, handlers and
javascript: links). A pasted image is uploaded and written as
; the web fetches it with the reader's session,
so it works on private projects. Every text box has a preview. The
attachment upload now answers its attachmentId.
List view
- /p/:key/list: every ticket as rows, sortable by any column, filtered by
text, open/closed, type, priority and assignee; status, priority and
assignee change in place; bulk edit (the backlog's bar, now shared).
Ticket details
- Reactions on comments (GitHub's eight), for members and viewers.
- Duplicate a ticket: what it says, not where it stands.
- blockedBy: open tickets it waits for (BLOCKS / DEPENDS_ON), worked out
when reading with one query per board or page; shown on cards, list
rows and the ticket.
Public proposals
- A public project can take bug reports and ideas from anyone
(acceptsProposals): POST /api/explore/projects/{project}/proposals and
the form at /p/:key/proponer. They become tickets labelled «propuesta»,
opened by TaskStream; a honeypot field and 5 per address every 15
minutes keep spam out. No e-mail is asked: it would be public.
Votes
- Anyone signed in votes on a public project's tickets, members on a
private one (voteIssue, PUT/DELETE /api/issues/{issue}/vote): votes and
voted on each ticket, buttons on the ticket and the roadmap, a column
in the list. The showcase carries votes and the open proposals.
MCP: vote_issue, duplicate_issue, react_to_comment; listings show
blockers and votes. Docs, Word and PDF updated; chat notifications
(Discord, Slack, Telegram) noted for later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ export const epicsPageEvents = eventGroup({
|
||||
source: 'Epics Page',
|
||||
events: {
|
||||
opened: type<{ projectId: string }>(),
|
||||
voteRequested: type<{ issueId: string; on: boolean }>(),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -14,5 +15,7 @@ export const epicsApiEvents = eventGroup({
|
||||
events: {
|
||||
loaded: type<Epic[]>(),
|
||||
loadFailed: type<string>(),
|
||||
voted: type<void>(),
|
||||
voteFailed: type<string>(),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -69,6 +69,10 @@ export const issuePageEvents = eventGroup({
|
||||
attachmentId: string;
|
||||
}>(),
|
||||
commentEditRequested: type<{ commentId: string; body: string }>(),
|
||||
reactRequested: type<{ commentId: string; emoji: string; on: boolean }>(),
|
||||
voteRequested: type<{ issueId: string; on: boolean }>(),
|
||||
/** An image pasted into a text was uploaded (it joins the ticket's files). */
|
||||
imagePasted: type<{ issueId: string }>(),
|
||||
commentDeleteRequested: type<{ commentId: string }>(),
|
||||
},
|
||||
});
|
||||
|
||||
38
libs/web/tracker/application/src/lib/events/list.events.ts
Normal file
38
libs/web/tracker/application/src/lib/events/list.events.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { type } from '@ngrx/signals';
|
||||
import { eventGroup } from '@ngrx/signals/events';
|
||||
import {
|
||||
BulkChange,
|
||||
BulkResult,
|
||||
IssueListFilter,
|
||||
IssuePage,
|
||||
IssuePriority,
|
||||
} from '@task-stream/web/tracker/domain';
|
||||
|
||||
/** What the list shows, beyond the project. */
|
||||
export type ListCriteria = Omit<IssueListFilter, 'projectId' | 'limit'>;
|
||||
|
||||
export const listPageEvents = eventGroup({
|
||||
source: 'List Page',
|
||||
events: {
|
||||
opened: type<{ projectId: string }>(),
|
||||
filtered: type<ListCriteria>(),
|
||||
statusChangeRequested: type<{ issueId: string; status: string }>(),
|
||||
priorityChangeRequested: type<{
|
||||
issueId: string;
|
||||
priority: IssuePriority;
|
||||
}>(),
|
||||
assignRequested: type<{ issueId: string; assigneeId: string | null }>(),
|
||||
bulkRequested: type<{ issueIds: string[]; change: BulkChange }>(),
|
||||
},
|
||||
});
|
||||
|
||||
export const listApiEvents = eventGroup({
|
||||
source: 'List API',
|
||||
events: {
|
||||
loaded: type<IssuePage>(),
|
||||
loadFailed: type<string>(),
|
||||
changed: type<void>(),
|
||||
changeFailed: type<string>(),
|
||||
bulkDone: type<BulkResult>(),
|
||||
},
|
||||
});
|
||||
@@ -48,6 +48,10 @@ export const projectPageEvents = eventGroup({
|
||||
analyticsRequested: type<{ projectId: string; days: number }>(),
|
||||
burnupRequested: type<{ releaseId: string }>(),
|
||||
visibilityChangeRequested: type<{ projectId: string; isPublic: boolean }>(),
|
||||
proposalsChangeRequested: type<{
|
||||
projectId: string;
|
||||
acceptsProposals: boolean;
|
||||
}>(),
|
||||
deleteRequested: type<{ projectId: string; confirmKey: string }>(),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user