Skip to content

Commit 9fe10b3

Browse files
authored
Add feedback button to sidebar bottom (#32)
Adds a stickyt feedback button to the bottom of the task sidebar: <img width="809" height="192" alt="image" src="https://github.com/user-attachments/assets/70511ac3-c884-4690-aa5f-ff43d5cf667a" /> redirects to the [new issue page](https://github.com/scaleapi/scale-agentex/issues/new) for this repository
1 parent ba55aca commit 9fe10b3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

agentex-ui/components/agentex/task-sidebar.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useRouter } from 'next/navigation';
66
import { AnimatePresence } from 'framer-motion';
77
import {
88
Loader2,
9+
MessageSquare,
910
MessageSquarePlus,
1011
PanelLeftClose,
1112
PanelLeftOpen,
@@ -75,6 +76,14 @@ export function TaskSidebar() {
7576
setIsCollapsed(prev => !prev);
7677
}, []);
7778

79+
const handleFeedback = useCallback(() => {
80+
window.open(
81+
'https://github.com/scaleapi/scale-agentex/issues/new',
82+
'_blank',
83+
'noopener,noreferrer'
84+
);
85+
}, []);
86+
7887
return (
7988
<ResizableSidebar
8089
side="left"
@@ -131,6 +140,17 @@ export function TaskSidebar() {
131140
</>
132141
)}
133142
</div>
143+
<div className="mt-auto px-2 pt-2">
144+
<Separator className="mb-2" />
145+
<Button
146+
onClick={handleFeedback}
147+
variant="ghost"
148+
className="text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-primary-foreground flex w-full items-center justify-start gap-2"
149+
>
150+
<MessageSquare className="size-4" />
151+
Give Feedback
152+
</Button>
153+
</div>
134154
</div>
135155
</ResizableSidebar>
136156
);

0 commit comments

Comments
 (0)