Add in-client feedback form (own-hosted instance only)

- gateway: opt-in POST /api/feedback endpoint (FEEDBACK_ENABLED=1),
  logs submissions to feedback.log and optionally files a GitHub issue
  on Moepchi/webspeak3 when GITHUB_TOKEN is set and the user opts in.
  Rate-limited per IP, CORS-aware for split-hosted deployments.
- web: new "Feedback" menu entry under Extras, gated to
  client.webspeak3.de at runtime (IS_OWN_HOSTED_INSTANCE) so other
  self-hosted/forked deployments and the public demo never see it.
  New FeedbackDialog with category/message/email fields and an
  opt-in "publish as GitHub issue" checkbox. New i18n strings (DE/EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-09-10 07:29:48 +02:00
1 parent 1d20eb15de
commit e2a09fbb43
4 files changed
+396 -4

No files matched your search

+42
View File
@@ -3441,6 +3441,48 @@
opacity: 0.5;
}
.ts-dialog-field textarea {
border: 1px solid var(--border);
border-radius: 2px;
padding: 0.4rem;
font-size: 13px;
font-family: inherit;
resize: vertical;
background: var(--input-bg);
color: var(--input-text);
}
.ts-feedback-dialog {
width: 26rem;
max-width: 90vw;
}
.ts-feedback-intro,
.ts-feedback-hint {
font-size: 12px;
color: var(--text-muted);
margin: 0;
}
.ts-feedback-checkbox-field {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.4rem;
font-size: 12px;
}
.ts-feedback-error {
font-size: 12px;
color: var(--danger, #e0637a);
margin: 0;
}
.ts-feedback-success {
font-size: 13px;
margin: 0.5rem 0;
}
.ts-dialog-grid {
display: grid;
grid-template-columns: 1fr 1fr;