TLDRocket
Sign in

datasette-apps 0.2a0

Simon Willison Simon Willison Covered by 2 sources

Datasette-apps released version 0.2a0 with new tools for the Datasette Agent to test and manage applications. The update includes an app_debug() tool that runs JavaScript in hidden iframes and an app_list() tool for discovering editable apps. This enables agents to automatically test applications and perform smoke testing without user interaction.

Why it matters

Release: datasette-apps 0.2a0 Changes that improve Datasette Apps when created and edited using Datasette Agent: New app_debug() tool allowing agent to open an app (invisibly) and test it using JavaScript. #33 New app_list() tool for listing apps the user has permission to edit, so the agent can edit them. #36 The app_debug() tool is pretty neat: it works by displaying the app in a opacity: 0 iframe with pointer-events: none (so it can't be seen or interacted with) and then executing agent-provided JavaScript inside that sandboxed iframe. This means the agent can smoke test that the app is working and even do things like measure the dimensions of different elements. This uses the new context.browser_task() mechanism added in datasette-agent 0.4a0. Tags: iframes, datasette, datasette-apps

Also covered by

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads 60+ sources, removes duplicate coverage, and summarises the day in two minutes. Free, no spam, unsubscribe anytime.