mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-24 22:15:18 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
919 B
TypeScript
30 lines
919 B
TypeScript
import { X } from 'lucide-react'
|
|
|
|
import { useHotKey } from 'hooks/ui/useHotKey'
|
|
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
|
|
import { Kbd } from './primitives/Kbd'
|
|
import { useDataTable } from './providers/DataTableProvider'
|
|
|
|
export function DataTableResetButton() {
|
|
const { table } = useDataTable()
|
|
useHotKey(() => table.resetColumnFilters(), 'Escape')
|
|
|
|
return (
|
|
<Tooltip>
|
|
<TooltipTrigger asChild>
|
|
<Button type="default" size="tiny" onClick={() => table.resetColumnFilters()} icon={<X />}>
|
|
Reset
|
|
</Button>
|
|
</TooltipTrigger>
|
|
<TooltipContent side="left">
|
|
<p>
|
|
Reset filters with{' '}
|
|
<Kbd className="ml-1 text-muted-foreground group-hover:text-accent-foreground">
|
|
<span className="mr-1">⌘</span>
|
|
<span>Esc</span>
|
|
</Kbd>
|
|
</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
)
|
|
}
|