Skip to content

feat: add FK preview popover on Cmd+Enter in data grid#558

Merged
datlechin merged 3 commits intomainfrom
feat/fk-preview
Apr 3, 2026
Merged

feat: add FK preview popover on Cmd+Enter in data grid#558
datlechin merged 3 commits intomainfrom
feat/fk-preview

Conversation

@datlechin
Copy link
Copy Markdown
Collaborator

Summary

  • Press Cmd+Enter on a foreign key cell in the data grid to preview the referenced row in a popover
  • Shows all columns of the referenced row as key-value pairs with loading/error/null/not-found states
  • Includes "Open {table}" button to navigate to the referenced table with filter applied
  • Reuses existing FK infrastructure — no protocol or model changes needed

Closes #556

Test plan

  • Connect to MySQL/PostgreSQL with FK tables
  • Open a table with FK columns → focus an FK cell → press Cmd+Enter → popover shows referenced row
  • Test with NULL FK value → shows "NULL — no referenced row"
  • Test with dangling FK (value not in referenced table) → shows "Referenced row not found"
  • Click "Open {table}" button → navigates to referenced table with filter
  • Press Cmd+Enter on a non-FK column → nothing happens
  • Verify Cmd+Enter still executes query in the SQL editor (different responder)

@datlechin datlechin merged commit 00e100a into main Apr 3, 2026
2 checks passed
@datlechin datlechin deleted the feat/fk-preview branch April 3, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant