Repository navigation
feat(Assemble): carry the request query on edgePage's links (#569) - #571
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMx5cf5KQSi9sQ4tu1
8 tasks done
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
Part of #569 (item O8 of gardeneria#1263, tracked in #570). This covers the
edgePagehalf. The issue stays open forlinkTotal/lastUnknown, which wait on gardeneria's semantics.Assemble.edgePage(segment, page, input, base, viewer?)'sinputgainsquery?: ReadonlyArray<Query.Pair>, forwarded tocollectionasPagination.query. Every pagination link of an edge page (self,first,prev,next,last) then carries the request'sfilter[…]/sortpairs, asAssemble.collectionalready does. Leaving it out builds the links exactly as before. The doc comment gains an@example.Verification
pnpm install --frozen-lockfile: passvp run build: passvp check: passvp run check: passvp run -r test:unit: pass, including the new "carries the request's other query pairs on every link (Assemble.edgePage drops the request query from its links; Pagination lacks linkTotal / lastUnknown (gardeneria#1263 O8) #569)" casevp run docgen: pass (the new example runs)vp run test:coverage, thenfallow audit --base origin/trunk: pass ("No issues in 3 changed files")Changeset
.changeset/edge-page-query.md, minor (additive option)Notes
The exported signature
Assemble.edgePagegains an optional member on itsinputparameter. Existing calls compile unchanged.Generated by Claude Code