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:
@@ -58,3 +58,6 @@ export enum NotificationKind {
|
||||
ADDED_TO_PROJECT = 'ADDED_TO_PROJECT',
|
||||
REMINDER = 'REMINDER',
|
||||
}
|
||||
|
||||
/** The reactions a comment takes, in the order they are offered (GitHub's). */
|
||||
export const REACTIONS = ['👍', '👎', '😄', '🎉', '😕', '❤️', '🚀', '👀'];
|
||||
|
||||
@@ -17,6 +17,24 @@ export interface UpdateProjectInput {
|
||||
name?: string;
|
||||
description?: string | null;
|
||||
isPublic?: boolean;
|
||||
acceptsProposals?: boolean;
|
||||
}
|
||||
|
||||
/** A bug report or an idea from anyone, through a public project's form. */
|
||||
export interface ProposalInput {
|
||||
kind: 'BUG' | 'IDEA';
|
||||
title: string;
|
||||
description: string;
|
||||
/** How they sign it (optional; no e-mail: it would be public). */
|
||||
author: string;
|
||||
/** Left empty by people; bots fill it in. */
|
||||
website: string;
|
||||
}
|
||||
|
||||
export interface ProposalResult {
|
||||
/** The ticket it became (null when it was dropped as spam). */
|
||||
key: string | null;
|
||||
path: string | null;
|
||||
}
|
||||
|
||||
export interface CreateIssueInput {
|
||||
@@ -68,6 +86,19 @@ export interface CreateReleaseInput {
|
||||
targetDate?: string | null;
|
||||
}
|
||||
|
||||
/** The list view of a project: every ticket that fits, any status. */
|
||||
export interface IssueListFilter {
|
||||
projectId: string;
|
||||
/** Matches key, title or description. */
|
||||
search?: string;
|
||||
categories?: StatusCategory[];
|
||||
types?: string[];
|
||||
priorities?: IssuePriority[];
|
||||
assigneeId?: string;
|
||||
unassigned?: boolean;
|
||||
limit: number;
|
||||
}
|
||||
|
||||
/** "My work": tickets across all my projects. */
|
||||
export interface MyIssuesFilter {
|
||||
/** true: assigned to me. false: any ticket of my projects. */
|
||||
|
||||
@@ -26,6 +26,8 @@ export interface Project {
|
||||
description: string | null;
|
||||
/** Anyone can read it, also without signing in. */
|
||||
isPublic: boolean;
|
||||
/** Takes bug reports and ideas from anyone (while public). */
|
||||
acceptsProposals: boolean;
|
||||
owner: UserRef;
|
||||
members: ProjectMember[];
|
||||
settings: ProjectSettings;
|
||||
@@ -112,6 +114,11 @@ export interface IssueSummary {
|
||||
labels: string[];
|
||||
/** The epic or ticket this one breaks down. */
|
||||
parent: IssueParent | null;
|
||||
/** Open tickets it waits for: the ones that block it or it depends on. */
|
||||
blockedBy: IssueParent[];
|
||||
/** How many want it done, and whether I am one of them. */
|
||||
votes: number;
|
||||
voted: boolean;
|
||||
/** Place in the backlog and in its board column (ascending, as text). */
|
||||
rank: string;
|
||||
/** Estimate; null when nobody estimated it. */
|
||||
@@ -275,6 +282,8 @@ export interface Comment {
|
||||
replyTo: string | null;
|
||||
/** Deleted, but kept (without its text) while it has replies. */
|
||||
deleted: boolean;
|
||||
/** 👍… and who chose each (only the ones somebody chose). */
|
||||
reactions: { emoji: string; users: UserRef[] }[];
|
||||
createdAt: string;
|
||||
editedAt: string | null;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,9 @@ import {
|
||||
CreateReleaseInput,
|
||||
LinkIssuesInput,
|
||||
MemberInput,
|
||||
IssueListFilter,
|
||||
ProposalInput,
|
||||
ProposalResult,
|
||||
MyIssuesFilter,
|
||||
UpdateIssueInput,
|
||||
UpdateProjectInput,
|
||||
@@ -88,9 +91,15 @@ export abstract class IssuesGateway {
|
||||
abstract board(filter: BoardFilter): Observable<BoardColumn[]>;
|
||||
abstract issue(idOrKey: string): Observable<Issue>;
|
||||
abstract search(projectId: string, text: string): Observable<IssueSummary[]>;
|
||||
/** A project's tickets for the list view (most recently updated first). */
|
||||
abstract list(filter: IssueListFilter): Observable<IssuePage>;
|
||||
/** Tickets across all my projects (most recently updated first). */
|
||||
abstract mine(filter: MyIssuesFilter): Observable<IssuePage>;
|
||||
abstract create(input: CreateIssueInput): Observable<CommandResult>;
|
||||
/** Votes for it (`on`) or takes the vote back. */
|
||||
abstract vote(issueId: string, on: boolean): Observable<CommandResult>;
|
||||
/** A copy of what the ticket says; the result carries its key. */
|
||||
abstract duplicate(issueId: string): Observable<CommandResult>;
|
||||
abstract update(input: UpdateIssueInput): Observable<CommandResult>;
|
||||
abstract changeStatus(input: ChangeStatusInput): Observable<CommandResult>;
|
||||
abstract assign(
|
||||
@@ -236,16 +245,33 @@ export abstract class CommentsGateway {
|
||||
replyTo?: string | null,
|
||||
): Observable<CommandResult>;
|
||||
abstract edit(commentId: string, body: string): Observable<CommandResult>;
|
||||
/** Adds (`on`) or takes back one's reaction. */
|
||||
abstract react(
|
||||
commentId: string,
|
||||
emoji: string,
|
||||
on: boolean,
|
||||
): Observable<CommandResult>;
|
||||
abstract remove(commentId: string): Observable<CommandResult>;
|
||||
}
|
||||
|
||||
/** A ticket's files. Uploads and downloads go through the REST API. */
|
||||
/** The ticket's acknowledgement and the new file's id. */
|
||||
export type AttachmentUploaded = CommandResult & { attachmentId: string };
|
||||
|
||||
/** The public form: no session needed. */
|
||||
export abstract class ProposalsGateway {
|
||||
abstract submit(
|
||||
projectKey: string,
|
||||
proposal: ProposalInput,
|
||||
): Observable<ProposalResult>;
|
||||
}
|
||||
|
||||
export abstract class AttachmentsGateway {
|
||||
abstract upload(
|
||||
issueId: string,
|
||||
file: File,
|
||||
commentId?: string | null,
|
||||
): Observable<CommandResult>;
|
||||
): Observable<AttachmentUploaded>;
|
||||
/** The file's bytes, to show (images) or save. */
|
||||
abstract download(issueId: string, attachment: Attachment): Observable<Blob>;
|
||||
abstract remove(
|
||||
|
||||
Reference in New Issue
Block a user