feat: render /queries panel as a proper ResourceView with dropdown menu#474
Merged
Conversation
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>
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.
Summary
QueryList/QueryItempanel on/querieswith a publishedgen: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.get-queriesquery (v2) that emits view-friendly columns:?query_iri ?query_iri_label ?creator ?date ?np ?np_label. Linked viaprov:wasDerivedFromto the original — different signing key, so nonpx:supersedes.query_iricolumn handler toQueryResultListthat links toQueryPage(mirrors the existingtemplate_iri→PublishPagebranch).QueryList/QueryItem— no remaining references.Backing nanopubs (live):
Test plan
/queriesrenders the list with each row showing query label →QueryPage, creator, date, and the ^ link to the nanopubQueryResultList(existingtemplate_irirendering unchanged)🤖 Generated with Claude Code