Skip to content

feat(#207): trust feedback UI (thumbs up/down) - #214

Merged
ajianaz merged 1 commit into
developfrom
feat/207-trust-feedback
Aug 6, 2026
Merged

feat(#207): trust feedback UI (thumbs up/down)#214
ajianaz merged 1 commit into
developfrom
feat/207-trust-feedback

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What

Trust feedback feature — lets users mark a memory as helpful or unhelpful via the Uteke endpoint POST /memory/feedback.

Why

Uteke v0.12.0 exposes /memory/feedback but Corin never adopted it. User feedback adjusts the memory's importance score (+0.05 helpful / -0.10 unhelpful), enabling community-driven ranking without manual importance editing.

Changes (6 files, +136/-2)

File Change
uteke_client.rs memory_feedback() method — POST to /memory/feedback
commands.rs memory_feedback Tauri command (lock, clone, call, map error)
lib.rs Handler registration in generate_handler![]
types.ts MemoryFeedbackResponse interface
ipc.ts memoryFeedback() invoke wrapper
MemoryDetail.svelte Thumbs up/down UI with delta display and toast feedback

How it works

  1. User opens a memory in the detail panel
  2. New "Was this helpful?" bar appears below metadata
  3. Click thumbs up = POST feedback helpful = importance +0.05
  4. Click thumbs down = POST feedback unhelpful = importance -0.10
  5. Delta shown as colored badge (+5% green / -10% red)
  6. Buttons disabled after click (one vote per session)

Validation

  • cargo fmt --all pass
  • svelte-check 0 errors (44 pre-existing warnings)
  • Lucide icons verified (thumbs-up.svelte, thumbs-down.svelte)
  • Cora review no issues
  • CI will validate on PR

API Reference

POST /memory/feedback
Request: id + feedback ("helpful" or "unhelpful")
Response: id + feedback + delta + importance

Closes #207

Comment thread src-tauri/src/commands.rs
/// Submits "helpful" or "unhelpful" signal for ranking.
#[tauri::command]
pub async fn memory_feedback(
state: tauri::State<'_, Arc<Mutex<AppState>>>,
let loading = $state(true);
let showDeleteConfirm = $state(false);

// Trust feedback state (#207)
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review could not complete. Cora was unable to reach the LLM API after retries. Check the workflow logs for errors.


Review powered by cora-code · BYOK · MIT

Full 5-file pattern + Svelte UI:
- uteke_client.rs: memory_feedback() method
- commands.rs: memory_feedback Tauri command
- lib.rs: handler registration
- types.ts: MemoryFeedbackResponse interface
- ipc.ts: memoryFeedback() invoke wrapper
- MemoryDetail.svelte: thumbs up/down buttons with delta display

Users can mark a memory as helpful (+0.05) or unhelpful (-0.10),
adjusting its importance score in Uteke.
@ajianaz
ajianaz force-pushed the feat/207-trust-feedback branch from fb2faa5 to 0a15122 Compare August 6, 2026 03:09
@ajianaz
ajianaz merged commit bc43dd7 into develop Aug 6, 2026
8 checks passed
@ajianaz
ajianaz deleted the feat/207-trust-feedback branch August 6, 2026 03:12
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.

feat: adopt uteke 0.8–0.10 endpoints (trust feedback, room/remember, room↔doc junction, cross-entity, context)

2 participants