Skip to content

feat(web): add feedback widget - #152

Merged
setkyar merged 4 commits into
mainfrom
feat/web-feedback-widget
Aug 28, 2026
Merged

feat(web): add feedback widget#152
setkyar merged 4 commits into
mainfrom
feat/web-feedback-widget

Conversation

@setkyar

@setkyar setkyar commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a dismissible floating "Feedback" tab (docked to the right edge) that opens a dialog and posts to the existing public POST /api/feedback endpoint.

What's included

  • apps/web/src/components/feedback/FeedbackWidget.tsx — vertical tab with a ✕ dismiss (persisted in localStorage) and a Radix dialog form (message + optional email, live char counter).
  • apps/web/src/lib/api/feedback.tssubmitFeedback() client using a plain fetch (no auth/tenant headers, matching the endpoint's public nature).
  • apps/web/src/App.tsx — mounts <FeedbackWidget /> globally.
  • apps/web/src/locales/en.json / zh-CN.jsonfeedback translation section.

Notes

  • The /api/feedback endpoint was previously orphaned (no frontend caller); this wires it up.
  • Dark-mode aware, i18n'd (EN + ZH-CN), and matches existing UI conventions (Radix Dialog, Button/Input/Textarea, sonner toasts).

Validation

  • tsc -b (web) ✅
  • biome lint
  • biome format

Add a dismissible floating "Feedback" tab that opens a dialog posting to the public POST /api/feedback endpoint. Includes EN/ZH-CN translations and a plain-fetch client (no auth/tenant headers, matching the endpoint's public nature).
@setkyar
setkyar force-pushed the feat/web-feedback-widget branch from 8f02931 to c103e01 Compare August 27, 2026 17:56
@setkyar
setkyar merged commit 35b6fca into main Aug 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant