Action menu descriptions

* Refactor tests to extract get_actions_links() helper
* Table, database and query action menu items now support optional descriptions

Closes #2294
This commit is contained in:
Simon Willison 2024-03-06 22:54:06 -05:00 committed by GitHub
commit 090dff542b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 59 additions and 35 deletions

View file

@ -406,6 +406,7 @@ def query_actions(datasette, database, query_name, sql):
}
),
"label": "Explain this query",
"description": "Runs a SQLite explain",
},
]