Repository navigation
feat: introduce feedback feature - #728
Conversation
There was a problem hiding this comment.
ℹ️ No critical issues — a few small refinements inline.
Reviewed changes
The full 30-file diff was read end-to-end, plus the touched route/loader, i18n config, and repo test conventions.
- Send feedback menu item —
UserMenugains an item that opens GitHub's issue chooser in a new tab, leaving the app in place. - Report this issue on route errors —
RouteErrorComponentrenders a second button that opens the bug-report form pre-filled from the caught error, and hides it for 403s. - Issue forms —
bug_report.md/feature_request.mdare replaced bybug_report.yml/feature_request.ymlforms with per-field ids, plus aconfig.ymlsecurity contact link. lib/feedback.ts— URL builder with iterative truncation, error formatting, non-identifying environment collection, and draft helpers, with unit tests.- E2E coverage —
feedback.feature/feedback.spec.ts, stubbing github.com and forcing 400/403 on/api/v1/agents/llm-models. - i18n —
userMenu.sendFeedbackandcommon.reportIssueadded to all nine locales.
ℹ️ The prefill URL shape matches GitHub's documented contract
The PR body flags real-GitHub prefill as unverified, so worth recording what the docs actually promise: a form field's id is the canonical key for query-parameter prefills, and form-field params may also be passed to the template chooser. The ids used here (summary, area, environment, logs) therefore line up with the new YAML forms.
Technical details
# GitHub issue-form prefill contract
## Sources
- https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#keys
— `id`: "the canonical identifier for the field in URL query parameter prefills".
- https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-an-issue#creating-an-issue-from-a-url-query
— "You can also use URL query parameters to fill custom text fields ... Query parameters for issue form fields can also be passed to the issue template chooser."
## Caveat
- The docs explicitly name text fields; the `area` dropdown prefill relies on the
generic `id` wording, so it is the one field still worth a manual click on
github.com.
## Affected sites
- `apps/web/src/lib/feedback.ts:16` — `TEMPLATE_BY_KIND`.
- `apps/web/src/lib/feedback.ts:176` — field ids produced by `draftFromError`.
- `.github/ISSUE_TEMPLATE/bug_report.yml:12-68` — matching `id`s.deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…arious error states
There was a problem hiding this comment.
ℹ️ No new issues found in the changes since the last review.
Reviewed changes
Reviewed the delta from 431ea1e to c9e1445 (17 files): the extracted report action plus its integration across inline error states. No behavioral regressions or missing wiring found; the web check/test/build check succeeded on this head.
- Extracted
ReportIssueButton— moved the in-page report action intocomponents/report-issue-button.tsx, preserving the 403 suppression and the pre-filled bug-report draft. - Reused it in the route error screen —
RouteErrorComponentnow renders the shared button beside Retry instead of duplicating the markup. - Added it to inline error states — admin users, global roles, service accounts, login security, SSO settings, admin changelog, and home assigned tasks now offer the button with their query's error; the users/roles state components gained an optional
errorprop. - Extended it to not-found screens — project, sprint, and document error screens pass their query error through, leaving the 403 branch unchanged.
- Added coverage — a component test for the URL and the 403 case, plus an e2e scenario forcing
/api/v1/admin/usersto 400 and asserting the inline error's pre-filledbug_report.ymlURL.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta from c9e1445 to e29b52a (4 files). All three threads from the initial review are addressed, and I did not find any new problems in the changes.
- Corrected the issue-form tips — the bug-report tip now points only at the error-screen button, and the feature tip describes Send feedback as leading to the chooser rather than pre-filling the form.
- Hardened the popup assertions — all three e2e cases await
popup.waitForURL(...)before readingpopup.url(), so they no longer race the popup's initialabout:blankon Firefox/WebKit. - Settled the truncation contract —
openIssuenow returnsvoidinstead of an unusedtruncatedflag, its doc comment matches, and the in-text marker reads… [truncated to fit the link].
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Important
The new response-body redaction drops the error envelope used by the e2e stubs, so two feedback.spec.ts assertions now fail.
Reviewed changes
Reviewed the delta from e29b52a to 4713fb7: the instance-wide feedback toggle and the error-detail redaction.
- Added the feedback toggle — migration
000084addsworkspace_settings.feedback_enabled, wired through the domain entity, service, repository, DTO, and handler, with aSwitchinBrandingSettings; the user menu andReportIssueButtonnow hide themselves when the cached branding says feedback is off. - Redacted error details —
formatErrorDetailsstrips query strings/fragments from the request URL and keeps only top-level diagnostic keys from the response body, with unit tests for both cases. - Tightened the button contract —
ReportIssueButtonnow requireserrorand reads the cached feedback flag synchronously viaisFeedbackEnabledCached().
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta from 4713fb7 to a68bf611 (1 file): the test-only fix that aligns the e2e error stubs with the API's flat error envelope.
- Updated both e2e stubs —
failAgentsLoaderand the inline/api/v1/admin/usersroute now return{ success: false, error_code: "E2E_FORCED_ERROR", error: "forced e2e failure" }instead of a nested{ code, message }object, soredactResponsekeeps the diagnostic fields and thelogsassertions onE2E_FORCED_ERRORhold again.
The previously open thread on feedback.ts:124 is now addressed and resolved.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Makes it easier for users to open a GitHub issue from inside the app, and upgrades the issue templates from a single description field to structured, multi-field forms.
/issues/new/choose) in a new tab, where the user picks "Bug report" or "Feature request".bug_report.mdandfeature_request.mdare replaced by issue forms (.yml) with separate required/optional fields.config.ymlpoints security reports to the private advisory page.The form field ids in
.github/ISSUE_TEMPLATE/*.ymlmust match the keys inapps/web/src/lib/feedback.ts, otherwise the pre-fill silently stops working.Type of Change
Testing
lib/feedback.test.ts(URL building, truncation, error formatting) androute-error-boundary.test.tsx(button opens the pre-filled issue, hidden for 403). Full web suite passes (157 files, 1,636 tests);tsc -band biome are clean.apps/e2e/tests/ui/feedback.spec.ts(+features/ui/feedback.feature) covering the menu item, the pre-filled bug report from a forced load error, and the hidden button on a 403. Passes onchromiumandmobile-chrome. GitHub is stubbed, never contacted.Notes
userMenu.sendFeedbackandcommon.reportIssuewere added, in all nine locales. The eight non-English strings were machine-written and could use a native-speaker skim.Checklist