diff --git a/src/core/issue.test.ts b/src/core/issue.test.ts index bff238f..bc96fd6 100644 --- a/src/core/issue.test.ts +++ b/src/core/issue.test.ts @@ -6,7 +6,6 @@ const base = { apiDocs: "https://api.gandi.net/docs/", why: "My domain lives there.", extra: "", - willing: false, }; describe("pluginRequestUrl", () => { @@ -46,13 +45,4 @@ describe("pluginRequestUrl", () => { expect(provider.searchParams.get("auth")).toBe("plain text"); expect(retriever.searchParams.get("details")).toBe("plain text"); }); - - test("adds the willingness to the reason", () => { - const url = new URL( - pluginRequestUrl("provider", { ...base, willing: true }), - ); - expect(url.searchParams.get("why")).toBe( - "My domain lives there.\n\nI'd be willing to write and test this plugin myself.", - ); - }); }); diff --git a/src/core/issue.ts b/src/core/issue.ts index 6708283..a236f57 100644 --- a/src/core/issue.ts +++ b/src/core/issue.ts @@ -7,7 +7,6 @@ export interface PluginRequest { why: string; /** The last field of the form: how the API authenticates, or what a retriever answers with. */ extra: string; - willing: boolean; } const newIssue = "https://github.com/dnspatch/dnspatch/issues/new"; @@ -34,18 +33,12 @@ const titlePrefix: Record = { */ export function pluginRequestUrl(kind: RequestKind, r: PluginRequest): string { const service = r.service.trim(); - const why = [ - r.why.trim(), - r.willing ? "I'd be willing to write and test this plugin myself." : "", - ] - .filter(Boolean) - .join("\n\n"); const params = new URLSearchParams({ template: `${kind}_request.yml`, title: `${titlePrefix[kind]}: ${service}`, service, "api-docs": r.apiDocs.trim(), - why, + why: r.why.trim(), }); const extra = r.extra.trim(); if (extra) params.set(extraField[kind], extra); diff --git a/src/i18n.ts b/src/i18n.ts index 127a3fa..562a43d 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -111,7 +111,6 @@ const ru = { noNotifierService: "Название сервиса или протокола", noNotifierDocs: "Ссылка на документацию", noNotifierAuth: "Как к нему подключаются (необязательно)", - noPluginWilling: "Готов(а) сам(а) написать и проверить этот плагин", noPluginNote: "Форма откроется на GitHub уже заполненной. Там её можно поправить и отправить; для этого нужен аккаунт GitHub.", noPluginSubmit: "Открыть заявку на GitHub", @@ -256,7 +255,6 @@ const en: Record = { noNotifierService: "Service or protocol name", noNotifierDocs: "Link to the documentation", noNotifierAuth: "How a client connects to it (optional)", - noPluginWilling: "I'd be willing to write and test this plugin myself", noPluginNote: "The form opens on GitHub already filled in. You can edit and submit it there; that needs a GitHub account.", noPluginSubmit: "Open the request on GitHub", diff --git a/src/tools/config/MissingPlugin.tsx b/src/tools/config/MissingPlugin.tsx index 0ab3024..de78a9d 100644 --- a/src/tools/config/MissingPlugin.tsx +++ b/src/tools/config/MissingPlugin.tsx @@ -49,7 +49,6 @@ export function MissingPlugin({ kind }: { kind: RequestKind }) { const [apiDocs, setApiDocs] = useState(""); const [why, setWhy] = useState(""); const [extra, setExtra] = useState(""); - const [willing, setWilling] = useState(false); useBackdropClose(dialog); @@ -60,7 +59,6 @@ export function MissingPlugin({ kind }: { kind: RequestKind }) { apiDocs, why, extra, - willing, }); window.open(url, "_blank", "noopener"); dialog.current?.close(); @@ -137,15 +135,6 @@ export function MissingPlugin({ kind }: { kind: RequestKind }) { onInput={(e) => setExtra(e.currentTarget.value)} /> - -

{t("noPluginNote")}