feat(hydrogen): fetchCustomPages for sitemap support#445
Conversation
TDD red phase — 8 test cases covering success, empty, error handling, locale filtering, pagination, and cap behavior.
Public method for sitemap consumers. Paginates automatically following nextCursor, caps at 100 iterations, never throws. Returns accumulated entries on partial failure.
|
Claude finished @paul-phan's task in 55s —— View job Code Review
Code Review SummaryOverall: This is a well-implemented feature that adds sitemap support to the Weaverse Hydrogen SDK. The code is clean, follows project conventions, and has comprehensive test coverage. One minor TypeScript issue should be addressed. Issues🟡 packages/hydrogen/src/weaverse-client.ts:788 — Using Suggestions💬 packages/hydrogen/src/weaverse-client.ts:784 — Could use 💬 packages/hydrogen/src/weaverse-client.ts:790 — String concatenation in template literal could be simplified: What's Good
Agent Fix Prompts
🟡 Replace |
Summary
CustomPageEntrytype for sitemap entries (handle, locale, path, lastModified, priority, changeFrequency)fetchCustomPages()method onWeaverseClientthat wraps the new public builder endpoint (/api/public/v1/projects/:projectId/custom-pages)nextCursor, caps at 100 iterations, never throwsconsole.warnTest plan
sitemap-weaverse.xml.ts(separate PR)