Skip to content

feat(invoiceTags): add filterByTags utility supporting any and all match modes - #721

Closed
rupesh-kumar-sah wants to merge 1 commit into
Stellar-split:mainfrom
rupesh-kumar-sah:feat/issue-709-filter-by-tags
Closed

rupesh-kumar-sah wants to merge 1 commit into
Stellar-split:mainfrom
rupesh-kumar-sah:feat/issue-709-filter-by-tags

Conversation

@rupesh-kumar-sah

Copy link
Copy Markdown

Summary of Changes

  • Implemented filterByTags(invoices: Invoice[], tags: string[], opts?: FilterByTagsOptions): Invoice[] in src/lib/invoiceTags.ts.
  • Supports default any-match mode (matchAll: false) and strict all-match mode (matchAll: true).
  • Supports tags attached directly to invoice objects or stored in tagStore.
  • Returns invoices unchanged when tags is empty or only whitespace.
  • Added comprehensive unit tests in src/lib/__tests__/invoiceTags.test.ts covering empty tags, any-match, all-match, no matches, whitespace normalization, and attached tag objects.

Closes #709

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

@rupesh-kumar-sah is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add tag filtering to invoiceTags list utility

2 participants