Feedback
In-app feedback capture from any signed-in user, triaged by platform operators, message plus page, device, and screenshot context.
Feedback lets any signed-in user report a problem or suggestion from inside the app. The row captures the message plus debugging context: currentPage, browser / os / device, location, an optional screenshotStorageId, and a free-form metadata jsonb.
| Method and path | operationId | Who |
|---|---|---|
POST /api/v1/feedback | createFeedback | Student, staff, guardian, or guest. Audited as a create. The snapshot keeps id, school, user, user type, screenshot id, browser, os, and device. It leaves out the message, page, location, and metadata. |
GET /api/v1/feedback | listFeedback | Platform admin |
GET /api/v1/feedback/:id | getFeedback | Platform admin |
GET /api/v1/feedback/:id/screenshot-url | getFeedbackScreenshotUrl | Platform admin. Declared before the :id route. |
DELETE /api/v1/feedback/:id | deleteFeedback | Platform admin. Returns { "message": "Feedback deleted successfully" }. |
Create requires message. Optional fields are currentPage, browser, os, device, location, metadata (an object), and screenshotStorageId (a UUID). FeedbackService.create throws Feedback can only be submitted by tenant users with a school context when the caller has no school. A bad screenshot id is Invalid screenshot storage record, and a missing storage row is Storage record not found. findOne throws Feedback not found. A screenshot URL for a row with no file is Feedback has no screenshot. The Swagger texts add a full stop, and the screenshot operation says Feedback or screenshot not found. List applies a read scope on FEEDBACK only when an ability is already on the request. The route itself has no permission decorator. The generic filters query is This list does not support filters.
Read at API 9991a5c7bc43aba704aa484d4b23298e8c4de906: feedback.controller.ts, create-feedback.dto.ts, and FeedbackService create, list, findOne, getScreenshotUrl, and remove. No feedback was submitted.
Two things that make it unusual in this codebase:
- The entity carries a
schoolIdcolumn but is not@TenantScoped(): reads happen platform-side, across tenants, so the school is recorded as context rather than used as a filter. - The screenshot lives in storage;
screenshot-urlmints a signed URL on demand rather than exposing the file.