-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
developmentNew features or functionality implementationNew features or functionality implementationenhancementMinor improvements to existing functionalityMinor improvements to existing functionalitysmartem-devtools:webuiDeveloper dashboard web interfaceDeveloper dashboard web interface
Description
Summary
Highlight matched search terms within surrounding context text in results.
Implementation
For Documentation (MiniSearch)
- Extract ~50 characters before/after matched terms
- Display as snippet in result item
For GitHub API
- Use
text_matchesfield with header:Accept: application/vnd.github.text-match+json - GitHub provides pre-computed fragments with match info
UI
- Render snippets with
<mark>tags for visual emphasis - Style highlighted terms distinctly
Files to Modify
webui/src/hooks/useSearch.ts(snippet extraction)webui/src/types/search.ts(add snippet field)webui/src/components/widgets/SearchPalette/SearchPalette.tsx(display)webui/src/components/widgets/SearchPalette/SearchPalette.css(styling)
From PR #124 review comment (Item 12)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentNew features or functionality implementationNew features or functionality implementationenhancementMinor improvements to existing functionalityMinor improvements to existing functionalitysmartem-devtools:webuiDeveloper dashboard web interfaceDeveloper dashboard web interface