Merged
Conversation
Two-tier search: instant client-side substring matching against loaded messages, supplemented by debounced Typesense relay search for stemmed/ fuzzy hits. Find bar with match counter, prev/next navigation, keyboard shortcuts (Enter/Shift+Enter/Escape), auto-scroll to active match, and inline text highlighting via a rehype plugin. New files: - ChannelFindBar.tsx — find bar UI component - useChannelFind.ts — search state, two-tier matching, keyboard shortcut - rehypeSearchHighlight.ts — rehype plugin for <mark> highlighting Backend: added channel_id filter to relay search API, Tauri command, and TypeScript types. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The browser default yellow background on <mark> elements was overriding the Tailwind bg-primary/20 class set by the rehype search highlight plugin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
channel_idfilter<mark>elements with accent-colored background (bg-primary/20)Key files (16 changed, 520 insertions)
ChannelFindBar.tsx— find bar UI (input, match counter, prev/next/close)useChannelFind.ts— hook: state, two-tier matching, keyboard shortcut, channel-switch cleanuprehypeSearchHighlight.ts— rehype plugin wrapping matches in<mark>during HAST phasesearch.rs(relay) —channel_idfilter with ACL validationmessages.rs/models.rs(Tauri) — passchannel_idthrough to relayglobals.css— reset native<mark>yellow background so accent color shows throughTest plan
bg-primary/30)🤖 Generated with Claude Code