MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / feedbackLabel

Function feedbackLabel

frontend/dashboard/src/components/Feedback.tsx:42–47  ·  view source on GitHub ↗
(result: FeedbackResult)

Source from the content-addressed store, hash-verified

40}
41
42function feedbackLabel(result: FeedbackResult): string {
43 if (result.action === "updated") return `${result.from_tier} \u2192 ${result.to_tier}`;
44 if (result.action === "reinforced" || result.action === "no_change") return "confirmed";
45 if (result.action === "rate_limited") return "rate limited";
46 return result.action;
47}
48
49function feedbackTone(result: FeedbackResult): string {
50 if (result.action === "updated") return "text-n-interactive";

Callers 1

FeedbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected