mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-26 20:27:13 +00:00
feat(web): add sidebar feedback popover
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
This commit is contained in:
@@ -100,6 +100,7 @@ import {
|
||||
} from '@/components/ui/popover';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useSidebarData, SidebarEntityItem } from './SidebarDataContext';
|
||||
import { FeedbackPopoverContent } from './FeedbackPopover';
|
||||
|
||||
// Compare two version strings, returns true if v1 > v2
|
||||
function compareVersions(v1: string, v2: string): boolean {
|
||||
@@ -2039,17 +2040,25 @@ export default function HomeSidebar({
|
||||
<CircleHelp />
|
||||
{t('common.helpDocs')}
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem
|
||||
onClick={() => {
|
||||
window.open(
|
||||
'https://github.com/langbot-app/LangBot/issues',
|
||||
'_blank',
|
||||
);
|
||||
}}
|
||||
>
|
||||
<Lightbulb />
|
||||
{t('common.featureRequest')}
|
||||
</DropdownMenuItem>
|
||||
<Popover>
|
||||
<PopoverTrigger asChild>
|
||||
<DropdownMenuItem
|
||||
onSelect={(event) => event.preventDefault()}
|
||||
>
|
||||
<Lightbulb />
|
||||
{t('common.featureRequest')}
|
||||
</DropdownMenuItem>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
side={isMobile ? 'bottom' : 'right'}
|
||||
align="start"
|
||||
className="w-auto p-3"
|
||||
>
|
||||
<FeedbackPopoverContent
|
||||
onSubmitted={() => setUserMenuOpen(false)}
|
||||
/>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
<DropdownMenuItem
|
||||
onClick={() => {
|
||||
window.open(
|
||||
|
||||
Reference in New Issue
Block a user