Expose foreign key targets to create table UI

- Add foreignKeyTargetsPath to create table page data
- Filter hidden tables from database-level foreign key target results
- Update JSON API docs and tests for filtered targets
This commit is contained in:
Simon Willison 2026-06-18 08:13:28 -07:00
commit 21c156dfb1
4 changed files with 21 additions and 2 deletions

View file

@ -994,6 +994,7 @@ async def test_database_create_table_action_button_and_data():
assert database_data_from_soup(soup) == {
"createTable": {
"path": "/data/-/create",
"foreignKeyTargetsPath": "/data/-/foreign-key-targets",
"databaseName": "data",
"columnTypes": ["text", "integer", "float", "blob"],
},