Fix to match non-english titles in document-list filter#311
Conversation
TanStack Table's default includesString filter compares Unicode code points as-is. Korean text from sources that emit decomposed jamo (macOS file system, some pasted content) does not match a query typed through an IME that emits NFC-precomposed syllables (the common case) — so a query of "이" missed titles like "이력서" when the stored title was NFD. Apply NFC normalization on both sides of the includes check in a custom filterFn on the title column.
📝 WalkthroughWalkthroughThe PR modifies the document list's title column filter to normalize Unicode characters and perform case-insensitive substring matching. A custom ChangesTitle Filter Enhancement
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Verification: verify:selfResult: ✅ PASS in 228.2s
Verification: verify:integrationResult: ✅ PASS |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
TanStack Table's default includesString filter compares Unicode code points as-is. Korean text from sources that emit decomposed jamo (macOS file system, some pasted content) does not match a query typed through an IME that emits NFC-precomposed syllables (the common case) — so a query of "이" missed titles like "이력서" when the stored title was NFD. Apply NFC normalization on both sides of the includes check in a custom filterFn on the title column.
Why
Linked Issues
Fixes #
Author checklist
Verification
CI automatically posts a verification summary comment on this PR with
per-lane results for both
verify:selfandverify:integration.Skip reason (if applicable):
Risk Assessment
Notes for Reviewers
Summary by CodeRabbit