Skip to content

feat(web): delete tracked queries from the dashboard#680

Merged
arberx merged 1 commit into
mainfrom
arberx/delete-queries-ui
Jun 4, 2026
Merged

feat(web): delete tracked queries from the dashboard#680
arberx merged 1 commit into
mainfrom
arberx/delete-queries-ui

Conversation

@arberx
Copy link
Copy Markdown
Member

@arberx arberx commented Jun 4, 2026

Queries were add-only in the dashboard even though the DELETE /queries endpoint, the canonry query remove CLI, and the canonry_queries_remove MCP tool already shipped — this wires that existing capability into the SPA.

  • The project page's "+ Add queries" affordance becomes a Manage queries panel: every tracked query is listed with an inline Remove button (delete → refetch → error toast), with the add textarea retained below.
  • Backed by a new removeQueries() wrapper over the generated SDK (no raw fetch); the manage list reuses the same evidence-derived query set as the existing "N queries tracked" count, so they never diverge.
  • Adds a wrapper contract test (asserts DELETE path + body + response) and bumps the package to 4.70.0.

Queries were add-only in the SPA even though DELETE /queries, the
`canonry query remove` CLI, and the canonry_queries_remove MCP tool
already shipped. The project page's "+ Add queries" affordance becomes
a "Manage queries" panel that lists every tracked query with an inline
Remove button (delete -> refetch -> error toast), backed by a new
removeQueries() wrapper over the generated SDK. Adds a wrapper contract
test and bumps to 4.70.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@arberx arberx merged commit 35bd209 into main Jun 4, 2026
12 checks passed
@arberx arberx deleted the arberx/delete-queries-ui branch June 4, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant