Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(feedback): correct feedback submission to use correct user ID

Steven Enamakelf8525d7726cd
diff --git a/app/src/components/feedback/FeedbackItemRow.tsx b/app/src/components/feedback/FeedbackItemRow.tsx
index f20377c912..946adf6bc8 100644
--- a/app/src/components/feedback/FeedbackItemRow.tsx
+++ b/app/src/components/feedback/FeedbackItemRow.tsx
@@ -59,7 +59,11 @@ export default function FeedbackItemRow({
const avatarInitial = (item.createdByName?.trim() || handle).charAt(0).toUpperCase();
return (
- <div className="group flex items-start gap-3 rounded-2xl border border-line bg-surface p-4 transition-all hover:border-line-strong hover:shadow-soft dark:hover:border-line-strong">
+ // A row in the board's divided list card, not a card of its own: the list
+ // reads as one board, and each post no longer carries its own border.
+ <div
+ data-testid="feedback-item"
+ className="group flex items-start gap-3 px-4 py-3.5 transition-colors hover:bg-surface-hover/60">
<FeedbackVoteControl item={item} onVoted={onChange} />
<div className="min-w-0 flex-1">
@@ -70,7 +74,7 @@ export default function FeedbackItemRow({
<FeedbackStatusBadge status={item.status} />
</div>
- <h3 className="mt-2 wrap-break-word font-title text-[15px] font-semibold leading-snug text-content">
+ <h3 className="mt-1.5 wrap-break-word font-title text-[15px] font-semibold leading-snug text-content">
{item.title}
</h3>
@@ -81,7 +85,7 @@ export default function FeedbackItemRow({
{item.body}
</p>
- <div className="mt-3 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-xs text-content-faint">
+ <div className="mt-2 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-xs text-content-faint">
<span className="flex items-center gap-1.5">
<AvatarRoot className="h-5 w-5">
<AvatarFallback
diff --git a/app/src/components/feedback/FeedbackSubmitForm.tsx b/app/src/components/feedback/FeedbackSubmitForm.tsx
index c31de61345..3ea9b1d2e8 100644
--- a/app/src/components/feedback/FeedbackSubmitForm.tsx
+++ b/app/src/components/feedback/FeedbackSubmitForm.tsx
@@ -25,6 +25,11 @@ type SubmitStatus = 'idle' | 'loading' | 'accepted' | 'rejected' | 'error';
interface FeedbackSubmitFormProps {
/** Called with the published item when a submission is accepted. */
onAccepted: (result: CreateFeedbackResult) => void;
+ /**
+ * Drop the card surface and heading, for hosts that already frame the form
+ * (the Feedback page's compose dialog supplies its own title).
+ */
+ bare?: boolean;
}
// The card fills the pane; the fields inside it do not. A title line and a
@@ -33,7 +38,7 @@ interface FeedbackSubmitFormProps {
// mistake. 68ch keeps both comfortable without leaving the field looking stunted.
const INPUT_CLASS = 'w-full max-w-[68ch] rounded-xl bg-surface-muted px-4 py-2.5';
-export default function FeedbackSubmitForm({ onAccepted }: FeedbackSubmitFormProps) {
+export default function FeedbackSubmitForm({ onAccepted, bare = false }: FeedbackSubmitFormProps) {
const { t } = useT();
const [type, setType] = useState<FeedbackType>('feature');
const [title, setTitle] = useState('');
@@ -145,7 +150,10 @@ export default function FeedbackSubmitForm({ onAccepted }: FeedbackSubmitFormPro
: 'text-coral-600 dark:text-coral-400';
return (
- <div className="rounded-2xl border border-line bg-surface p-6 shadow-soft dark:shadow-none">
+ <div
+ className={
+ bare ? undefined : 'rounded-2xl border border-line bg-surface p-6 shadow-soft dark:shadow-none'
+ }>
{/* The type toggle used to be two full-width `size="lg"` buttons stacked
above the fields: a binary property of the draft, rendered larger and
louder than the title, the body and Submit combined, so the form read
@@ -154,12 +162,16 @@ export default function FeedbackSubmitForm({ onAccepted }: FeedbackSubmitFormPro
the billing panel gives its monthly/annual switch, which is the same
kind of control: one bit that qualifies the thing below it. */}
<div className="mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
- <div className="max-w-[52ch]">
- <h2 className="font-title text-base font-semibold text-content">
- {t('feedback.submit.heading')}
- </h2>
- <p className="mt-0.5 text-xs text-content-muted">{t('feedback.submit.subheading')}</p>
- </div>
+ {bare ? (
+ <span className="sr-only">{t('feedback.submit.heading')}</span>
+ ) : (
+ <div className="max-w-[52ch]">
+ <h2 className="font-title text-base font-semibold text-content">
+ {t('feedback.submit.heading')}
+ </h2>
+ <p className="mt-0.5 text-xs text-content-muted">{t('feedback.submit.subheading')}</p>
+ </div>
+ )}
<div
role="group"
diff --git a/app/src/components/settings/settingsRouteRegistry.ts b/app/src/components/settings/settingsRouteRegistry.ts
index 7c43f48d81..01a7149700 100644
--- a/app/src/components/settings/settingsRouteRegistry.ts
+++ b/app/src/components/settings/settingsRouteRegistry.ts
@@ -17,7 +17,6 @@ import debug from 'debug';
// 'agents' → Settings → Agents
// 'features' → Settings → Features
// 'crypto' → Settings → Crypto
-// 'notifications' → Settings → Notifications
// 'developer' → Settings → Developer & Diagnostics (devOnly entries)
//
// debug logging: [settings] registry loaded N entries