Add kv.list() pagination playground example#2760
Merged
reynaldichernando merged 3 commits intoHeyPuter:mainfrom Apr 3, 2026
Merged
Add kv.list() pagination playground example#2760reynaldichernando merged 3 commits intoHeyPuter:mainfrom
reynaldichernando merged 3 commits intoHeyPuter:mainfrom
Conversation
Create an interactive playground example for kv.list() that demonstrates cursor-based pagination with sample data (6 items, 2 per page). Also wire the pagination docs example to the playground by changing the code fence from plain html to html;kv-list. Fixes HeyPuter#2755
reynaldichernando
requested changes
Apr 3, 2026
Member
reynaldichernando
left a comment
There was a problem hiding this comment.
hi @tmchow thank you for the changes,
i've left some review on your PR
also, make sure to add the new example in the examples.js entry (you can find other docs for this)
Contributor
Author
|
Fixed in the latest push:
|
reynaldichernando
approved these changes
Apr 3, 2026
Member
reynaldichernando
left a comment
There was a problem hiding this comment.
thank you for the updates!
i've made minor changes to improve readability, but this is already lookin good
Contributor
Author
|
Thanks for the review and merge, @reynaldichernando. |
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
Added an interactive playground example for
puter.kv.list()that shows cursor-based pagination in action. Also updated the docs to wire the existing pagination code snippet to the playground.Changes
New file:
src/docs/src/playground/examples/kv-list.htmlUpdated:
src/docs/src/KV/list.mdhtml(static snippet) tohtml;kv-list(playground-linked), matching the pattern used by other examples in the docsTesting
The example follows the same pattern as existing playground examples (
kv-incr.html,kv-del.html, etc.) and uses the documentedputer.kv.list()API withlimitandcursoroptions.Fixes #2755
This contribution was developed with AI assistance (Claude Code).