feat: highlight search matches in Team settings tables - #15985
Conversation
Added SearchHighlight component to tenant and user tables to improve search functionality by highlighting matching text in nickname and email fields. This enhancement allows users to easily identify relevant entries based on their search queries.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughA new ChangesSearch Highlighting in Tables
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds case-insensitive match highlighting to team-member and joined-team search results without introducing identified current-head merge risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. 🐰 Queries hop across the screen, Comment |
|
@JinHai-CN, @dcc123456, @wangq8, @yingfeng Could you review this pr? |
|
@dosubot please check this pr |
|
I reviewed the PR. Here's a summary: Overall: This is a clean, well-structured change. The Strengths:
Potential issue to consider: The Minor notes:
Overall this looks good to merge once the null-safety concern is addressed. |
Updated the SearchHighlight component to accept an optional text prop, ensuring it defaults to an empty string when not provided. This change improves the component's robustness by preventing potential errors when the text is null or undefined.
|
@JinHai-CN, @dcc123456, @wangq8, @yingfeng Could you review this pr? |
1 similar comment
|
@JinHai-CN, @dcc123456, @wangq8, @yingfeng Could you review this pr? |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Summary
Adds visual search result highlighting to Team Settings tables, making it easier to identify why rows match the current search query.
Previously, search filtering would correctly narrow the results, but matching text within names and email addresses was not visually emphasized. This made it difficult to quickly identify the portion of a row that matched the search term, especially in larger teams.
This change introduces a reusable
SearchHighlightcomponent and applies it across both Team Settings tables to provide consistent, case-insensitive match highlighting.Screenshots
Before
After
Test Plan
carl)CARL,Carl, andcarlproduce identical highlights)