-
Notifications
You must be signed in to change notification settings - Fork 156
Add searchByMemo full-text search to search.ts #614
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official CampaignThird CampaignCampaign: Third CampaignCampaign: Third Campaigncomplexity: highfeatureNew SDK featureNew SDK featuregrantfoxIssue for GrantFox programIssue for GrantFox program
Description
Activity
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignCampaign: Official CampaignThird CampaignCampaign: Third CampaignCampaign: Third Campaigncomplexity: highfeatureNew SDK featureNew SDK featuregrantfoxIssue for GrantFox programIssue for GrantFox program
Description
src/search.tssearches invoices by fields like status and recipient but has no memo-content search. Payment memo text is a common way users tag invoices (e.g."split:INV-001") and cannot currently be searched across a local invoice array.Acceptance Criteria
searchByMemo(invoices: Invoice[], query: string, opts?: { caseSensitive?: boolean }): Invoice[]exported fromsrc/search.tsinvoice.memocontainsqueryas a substring; case-insensitive by defaultqueryreturns all invoices unchangedmemoofundefinedornullare skipped without erroropts.caseSensitive = trueenables exact-case matchingsrc/index.tsContext
src/search.ts,src/index.tsInvoice.memois a string field insrc/types.ts— may be optional