feat(reports): add separate Content Scaling destination

This commit is contained in:
Дмитрий committed 2026-10-27 10:25:10 +05:00
1 parent f0e8a8c12f
commit 7888dbc763
12 files changed
+21 -3

No files matched your search

+1 -1
View File
@@ -257,7 +257,7 @@ export interface ReportContext {
bots_version: string | null;
}
export type ReportTargetId = "manager" | "companions" | "squid" | "custom-races";
export type ReportTargetId = "manager" | "companions" | "squid" | "custom-races" | "content-scaling";
/** A place a problem report can go: its GitHub repository as `owner/name`. */
export interface ReportTarget {
+1
View File
@@ -33,6 +33,7 @@ export function reportBody(r: ReportInput): string {
...(r.serverVersion ? [`**Server version:** ${r.serverVersion} `] : []),
...(r.target === "squid" || r.target === "companions" ? [`**Bot system:** ${r.target === "squid" ? "SQUID Playerbots" : "CoA Companions"}${r.botsVersion ? ` ${r.botsVersion}` : ""} `] : []),
...(r.target === "custom-races" ? ["**Component:** Custom Races "] : []),
...(r.target === "content-scaling" ? ["**Component:** Content Scaling "] : []),
"",
"**What happened?** ",
text(r.what, "Describe the problem."),