Files
windmill/frontend/src/lib/components/DbForeignKeyTooltip.svelte
T
Diego ImbertandClaude Fable 5.1 e2b63d177a feat: go to referenced row from foreign-keyed cells in the database manager (#10998)
* feat: go to referenced row from foreign-keyed cells in the database manager

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157Kw1ukbQo7eZnmyM63G4t

* fix: pin foreign keys to their table and escape backslashes on snowflake

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157Kw1ukbQo7eZnmyM63G4t

* fix: address review on foreign key navigation (stale fetch, qualifiers, chip)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157Kw1ukbQo7eZnmyM63G4t

* fix: unicode literals on sql server and hide unreachable foreign key targets

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157Kw1ukbQo7eZnmyM63G4t

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 16:46:00 +02:00

24 lines
658 B
Svelte

<script lang="ts">
import { ArrowRight } from 'lucide-svelte'
import Button from './common/button/Button.svelte'
type Props = {
targetTable: string
targetColumn: string
onGoToRow: () => void
}
let { targetTable, targetColumn, onGoToRow }: Props = $props()
</script>
<div
class="flex flex-col gap-1.5 rounded-md border bg-surface-tertiary p-2 text-xs shadow-md"
data-testid="db-fk-tooltip"
>
<div class="text-secondary">
References <span class="font-mono text-primary">{targetTable}.{targetColumn}</span>
</div>
<Button unifiedSize="xs" variant="default" startIcon={{ icon: ArrowRight }} onClick={onGoToRow}>
Go to row
</Button>
</div>