Repository navigation
0.4a0
Pre-release
Pre-release
- Apps can now keep view state in the URL fragment.
location.hash, thehashchangeevent and<a href="#/customer/42">links all work inside the sandbox, and the fragment is mirrored to the page URL in both directions, so the current view of an app can be bookmarked, reloaded, shared and navigated with the browser back and forward buttons. #44 history.pushState()andhistory.replaceState()now setlocation.hashwhen passed a fragment-only URL such as#/customer/42.replaceState()does this without adding a browser history entry.- Apps can link to a view in another app using a root-relative URL such as
/-/apps/ULID#/customer/42. - Apps can advertise the fragment URLs they support using a
<script type="application/json" id="datasette-app-links">manifest in their HTML. Manifests are extracted into a newapp_linkstable each time the app is saved. External apps can pass the same list asmetadata={"links": [...]}toRegistry.add_app(). - New
app_linkstool for datasette-agent, listing the links advertised by every app the current user can view, optionally filtered to those that accept a value from a given table. This lets the agent link rows in a new app to views in existing apps. - The
app_debugagent tool accepts a newhashoption, for checking that a link shows the right view. - Redesigned the
/-/appslist for consistency with thedatasette-agentindex page, with a full-width search bar and pagination. - Now requires
datasette>=1.0a42.