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,8 @@ import { FindProjectsRepository } from '../ports/find-projects.repository';
|
||||
import { FindReleasesRepository } from '../ports/find-releases.repository';
|
||||
import { FindSprintsRepository } from '../ports/find-sprints.repository';
|
||||
|
||||
import { PROPOSAL_LABEL } from '../commands/submit-proposal.command-handler';
|
||||
|
||||
/** Tickets with this label are offered to newcomers on public pages. */
|
||||
export const GOOD_FIRST_LABEL = 'good-first-issue';
|
||||
|
||||
@@ -35,6 +37,8 @@ export interface Showcase {
|
||||
dueDate: string | null;
|
||||
percent: number;
|
||||
done: boolean;
|
||||
/** How many want it. */
|
||||
votes: number;
|
||||
path: string;
|
||||
}[];
|
||||
releases: {
|
||||
@@ -46,6 +50,20 @@ export interface Showcase {
|
||||
notes: string | null;
|
||||
}[];
|
||||
goodFirst: { key: string; title: string; type: string; path: string }[];
|
||||
/** Bug reports and ideas from the public: whether it takes them, where, and the open ones. */
|
||||
proposals: {
|
||||
open: boolean;
|
||||
/** The form in the web app, while it takes them. */
|
||||
path: string | null;
|
||||
/** Open proposals, most voted first. */
|
||||
top: {
|
||||
key: string;
|
||||
title: string;
|
||||
type: string;
|
||||
votes: number;
|
||||
path: string;
|
||||
}[];
|
||||
};
|
||||
}
|
||||
|
||||
export class GetShowcaseQuery extends Query<Showcase> {
|
||||
@@ -55,6 +73,11 @@ export class GetShowcaseQuery extends Query<Showcase> {
|
||||
}
|
||||
|
||||
const FINISHED = [StatusCategory.DONE, StatusCategory.CANCELLED];
|
||||
const OPEN = [
|
||||
StatusCategory.TODO,
|
||||
StatusCategory.IN_PROGRESS,
|
||||
StatusCategory.QA,
|
||||
];
|
||||
|
||||
@QueryHandler(GetShowcaseQuery)
|
||||
export class GetShowcaseQueryHandler
|
||||
@@ -74,7 +97,7 @@ export class GetShowcaseQueryHandler
|
||||
(await this.findProjects.findByKey(query.project.toUpperCase()));
|
||||
if (!project?.isPublic) throw new NotFoundError('Project', query.project);
|
||||
const path = (key: string) => `/p/${project.key}/issues/${key}`;
|
||||
const [epics, releases, sprint, goodFirst] = await Promise.all([
|
||||
const [epics, releases, sprint, goodFirst, proposals] = await Promise.all([
|
||||
this.findIssues.epics(project.id),
|
||||
this.findReleases.findByProject(project.id),
|
||||
this.findSprints.findActive(project.id),
|
||||
@@ -85,6 +108,13 @@ export class GetShowcaseQueryHandler
|
||||
limit: 20,
|
||||
offset: 0,
|
||||
}),
|
||||
this.findIssues.search({
|
||||
projectId: project.id,
|
||||
labels: [PROPOSAL_LABEL],
|
||||
categories: OPEN,
|
||||
limit: 100,
|
||||
offset: 0,
|
||||
}),
|
||||
]);
|
||||
const visible = releases
|
||||
.filter((r) => r.status !== ReleaseStatus.ARCHIVED)
|
||||
@@ -120,6 +150,7 @@ export class GetShowcaseQueryHandler
|
||||
dueDate: issue.dueDate,
|
||||
percent: p.percent,
|
||||
done: FINISHED.includes(issue.statusCategory),
|
||||
votes: issue.votes,
|
||||
path: path(issue.key),
|
||||
})),
|
||||
releases: visible.map((r, i) => ({
|
||||
@@ -136,6 +167,20 @@ export class GetShowcaseQueryHandler
|
||||
type: i.type,
|
||||
path: path(i.key),
|
||||
})),
|
||||
proposals: {
|
||||
open: project.acceptsProposals,
|
||||
path: project.acceptsProposals ? `/p/${project.key}/proponer` : null,
|
||||
top: [...proposals.items]
|
||||
.sort((a, b) => b.votes - a.votes)
|
||||
.slice(0, 10)
|
||||
.map((i) => ({
|
||||
key: i.key,
|
||||
title: i.title,
|
||||
type: i.type,
|
||||
votes: i.votes,
|
||||
path: path(i.key),
|
||||
})),
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user