Codumentor logo Codumentor

User Feedback Plugin

The User Feedback plugin adds like/dislike controls to each assistant turn's action row (where the copy button is shown) and provides an admin dashboard for reviewing collected feedback.

Overview

This plugin provides:

Configuration

plugins:
  - module: "codumentor.plugins.user_feedback"
    class: "UserFeedbackPlugin"
    args:
      enabled: true

UI Placements

Message Actions (message-actions)

Custom element: x-user-feedback-actions

Behavior:

Admin Panel (admin-panel)

Custom element: x-feedback-admin-card

A summary card rendered on the /admin page showing total, likes, and dislikes counts. Clicking the card navigates to the full feedback admin page.

Admin Page (/plugins/user_feedback/admin)

Custom element: x-feedback-admin-page

A full page (requires admin access) with:

API Endpoints

All endpoints are mounted under /ui/plugins/user_feedback.

User Endpoints

Admin Endpoints (require admin:* permission)

Storage Model

Feedback is stored in a local SQLite database (user_feedback.sqlite3) keyed by:

Each record tracks:

Notes