Repository navigation
Redesigned homepage: one searchable catalog of tables, views and queries - #3049
Merged
Merged
Conversation
Homepage now lists every table and view across all databases in one paginated list built from the internal catalog tables, with live search over names, descriptions, columns and stored queries, a database filter, a queries section and a new makeHomepageSections() JS plugin hook. /.json is unchanged. Existing homepage HTML tests still need updating. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- recent.js records table, view, query and database visits in localStorage; Jump to's Recent list and a homepage Recently visited section read it - Queries show as compact rows: config/plugin queries, then your own - Searching hides the other sections; matching queries follow the tables - Live search fetches /?_fragment=results instead of the whole page - Labelled database filter, table-page style pagination - makeHomepageSections() sections can pass a title Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces a hidden_table_names() call per database on every page load with a join against the hidden flag now stored in the catalog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Rewrite homepage HTML and permission tests for the new layout - Single-database homepage links to the database from the summary line - Up/down/Enter navigate search results, with a clear highlight - Search box is focused on load; / in the empty box opens Jump to - Pagination links jump to #tables Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Homepage search includes items plugins add with jump_items_sql (apps, for example) under Other matches, via a reusable JumpView.matches() - Fix empty Recently visited heading showing with no history - Homepage actions sit below the title - New tests/test_homepage.py and Playwright tests for recent visits, keyboard navigation, the / shortcut and makeHomepageSections - Documented IndexContext template context, covered by contract tests - Homepage docs in pages.rst, partial templates in custom_templates.rst Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3049 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 78 79 +1
Lines 13661 13869 +208
======================================
- Misses 13661 13869 +208 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Owner
Author
|
Claude described it in the documentation here: That's going to need some cleanup and a screenshot. |
Table cards show how many other tables they link to or are linked from by foreign keys, with the names in a tooltip, limited to tables the actor can see. The row count moves to the meta line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… homepage-prototype
# Conflicts: # datasette/static/app.css
The global and per-database query lists now use the homepage's search box, chips and compact query rows: - Live search with ?_fragment=results, sharing homepage.js: up/down and Enter pick a query, Escape clears. On these pages the arrow keys work even with an empty search box. - Database chips with matching counts that keep the current search. - Mode and visibility filters as chips, shown only when they offer a choice. - Rows show database, description or SQL, inputs (read from the SQL when not declared) and owner, tagged yours, writes, private, or trusted for non-config queries. - Homepage-style pagination footer. Also de-duplicates inputs derived from SQL on the homepage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cursor does not record how far into the list it is, so HTML Next links now carry ?_start= and the footer reads "Showing 21-40 of 87". The last page keeps the footer without a Next link. The JSON API's next_url is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

A redesigned homepage:
Claude Opus 5.5 Medium
What's on the page
/?_fragment=results. Up/down and Enter move through the results and open one, and/in the empty box still opens Jump to.makeHomepageSections()JavaScript plugin hook. It uses the same section shape asmakeJumpSections(), plus an optionaltitle.recent.js, kept separate for each signed-in user, and ranked by how often and how recently you visited. Jump to's "Recent" list now reads the same history instead of only remembering picks from the dialog.?database=), shown when more than one database is attached./-/queries. Other people's saved queries only appear in search results.catalog_*tables so it stays fast with thousands of tables. Hidden tables are left out usingcatalog_tables.hidden. Results are paged 30 at a time, with links that jump back to#tables.While you search, the other sections are hidden. Matching tables and views come first, then matching queries, then "Other matches": items plugins add with
jump_items_sql, such as datasette-apps apps, through a new reusableJumpView.matches().Compatibility
/.jsonis unchanged.index.htmltemplate context has changed. It's now documented asIndexContextindocs/template_context.rstand checked by the contract tests. Customindex.htmltemplates that relied on the old keys, such astables_and_views_truncatedortable_rows_sum, will need updating.Tests and docs
tests/test_homepage.py, plus Playwright tests for recent visits, keyboard navigation, the/shortcut and plugin sections. The old homepage tests are rewritten for the new markup.pages.rst,template_context.rst,custom_templates.rst,javascript_plugins.rst(the newmakeHomepageSections()hook) andplugin_hooks.rst.There's a companion change in datasette-agent, on its
homepage-sectionbranch: it adds a "Datasette Agent" chat box to the homepage using the new hook, with#tagging there and in the Jump to menu.🤖 Generated with Claude Code