Skip to content

✨ Adding search and multi-status filters to documentCards.list - #19

Merged
simonc merged 4 commits into
mainfrom
document-card-filters
Oct 5, 2026
Merged

simonc merged 4 commits into
mainfrom
document-card-filters

Conversation

@simonc

@simonc simonc commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • documentCards.list() accepts a search filter (exact document ID or partial filename) and a status that can be one status or an array of several.
  • Array query values are sent the Rails way: key[]=a&key[]=b. An empty array sends nothing, which means no filter.
  • DocumentTemplateListParams.folders and sort are now documented with the values they accept.
  • Fixing workspaceCards.update() to send PUT instead of PATCH, matching the API and the other update endpoints.

Testing

  • Unit tests for search with several statuses, an empty status array, and array expansion in buildURL.
  • New live-API integration test for search with matching and non-matching status sets.
  • pnpm test, pnpm lint and tsc --noEmit pass.

@simonc
simonc force-pushed the document-card-filters branch from 5a9dafd to 2b09603 Compare October 5, 2026 21:33
@simonc
simonc merged commit dfafa9f into main Oct 5, 2026
6 checks passed
@simonc
simonc deleted the document-card-filters branch October 5, 2026 21:50
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.

1 participant