Skip to content

feat: render /queries panel as a proper ResourceView with dropdown menu#474

Merged
tkuhn merged 1 commit into
masterfrom
feat/queries-page-as-proper-view
May 28, 2026
Merged

feat: render /queries panel as a proper ResourceView with dropdown menu#474
tkuhn merged 1 commit into
masterfrom
feat/queries-page-as-proper-view

Conversation

@tkuhn
Copy link
Copy Markdown
Contributor

@tkuhn tkuhn commented May 28, 2026

Summary

  • Replace the bespoke QueryList / QueryItem panel on /queries with a published gen:ListView, so the panel becomes a regular ResourceView with the standard filter, paging, and ▼ menu (Show query / Show view / Refresh now) — same machinery as the views on /userlist.
  • Add a new get-queries query (v2) that emits view-friendly columns: ?query_iri ?query_iri_label ?creator ?date ?np ?np_label. Linked via prov:wasDerivedFrom to the original — different signing key, so no npx:supersedes.
  • Add a query_iri column handler to QueryResultList that links to QueryPage (mirrors the existing template_iriPublishPage branch).
  • Delete QueryList / QueryItem — no remaining references.

Backing nanopubs (live):

Test plan

  • /queries renders the list with each row showing query label → QueryPage, creator, date, and the ^ link to the nanopub
  • The ▼ menu appears on the panel and exposes Show query / Show view / Refresh now (when logged in)
  • Filter field narrows the list client-side; paging works for >page-size results
  • No regressions on other views that use QueryResultList (existing template_iri rendering unchanged)

🤖 Generated with Claude Code

Replaces the bespoke QueryList/QueryItem panel with a published gen:ListView
backed by an updated get-queries query that emits view-friendly columns
(?query_iri ?query_iri_label ?creator ?date ?np ?np_label). The page now
goes through QueryResultListBuilder, so it inherits the standard filter
field, paging, and ViewDisplayMenu (▼) actions for free.

Adds a query_iri column handler to QueryResultList that links to QueryPage,
mirroring the existing template_iri → PublishPage handling.

Backing nanopubs (live):
- query: https://w3id.org/np/RAYEV8FlQFlZvSQ2Qctl5FU8OW0vTNU3HYyG10t_jEIc4
- view:  https://w3id.org/np/RAHfLCMk5jF0yaamDU9d0tQAaKKRZaYwWFH1HdbW35Qwo

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tkuhn tkuhn merged commit 03dc49b into master May 28, 2026
8 checks passed
@tkuhn tkuhn deleted the feat/queries-page-as-proper-view branch May 28, 2026 18:43
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