Skip to content

feat(Assemble): carry the request query on edgePage's links (#569) - #571

Merged
thomasfosterau merged 1 commit into
trunkfrom
issue-569-edge-page-query
Nov 7, 2026
Merged

thomasfosterau merged 1 commit into
trunkfrom
issue-569-edge-page-query

Conversation

@thomasfosterau

Copy link
Copy Markdown
Owner

Summary

Part of #569 (item O8 of gardeneria#1263, tracked in #570). This covers the edgePage half. The issue stays open for linkTotal / lastUnknown, which wait on gardeneria's semantics.

Assemble.edgePage(segment, page, input, base, viewer?)'s input gains query?: ReadonlyArray<Query.Pair>, forwarded to collection as Pagination.query. Every pagination link of an edge page (self, first, prev, next, last) then carries the request's filter[…] / sort pairs, as Assemble.collection already does. Leaving it out builds the links exactly as before. The doc comment gains an @example.

Verification

Changeset

  • .changeset/edge-page-query.md, minor (additive option)

Notes

The exported signature Assemble.edgePage gains an optional member on its input parameter. Existing calls compile unchanged.


Generated by Claude Code

@thomasfosterau
thomasfosterau merged commit b42b271 into trunk Nov 7, 2026
3 checks passed
@thomasfosterau
thomasfosterau deleted the issue-569-edge-page-query branch November 7, 2026 08:20
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.

2 participants