Skip to content

cleanup: remove orphaned SearchBar + hide OCR on Linux - #250

Merged
omercelikdev merged 1 commit into
mainfrom
cleanup/orphan-searchbar-ocr-linux
Jul 12, 2026
Merged

cleanup: remove orphaned SearchBar + hide OCR on Linux#250
omercelikdev merged 1 commit into
mainfrom
cleanup/orphan-searchbar-ocr-linux

Conversation

@omercelikdev

Copy link
Copy Markdown
Owner

Two small hygiene fixes.

Dead file

src/components/layout/SearchBar.tsx was orphaned — the live SearchBar is exported from DragBar.tsx, and nothing imported the standalone file (tsc confirms). Deleted.

OCR on Linux

"Extract Text" was offered for every image on every platform, but ocr_image only has a real backend on macOS (Vision) and Windows (Windows.Media.Ocr) — on Linux it returns "OCR is not yet available on Linux". Added isLinux() and gated the menu item off Linux, so we don't advertise an action that always errors.

Tests: isLinux platform cases. tsc clean · 565 tests green.

🤖 Generated with Claude Code

- src/components/layout/SearchBar.tsx was dead code — the live SearchBar is
  exported from DragBar.tsx and nothing imported the standalone file. tsc
  confirms nothing referenced it. Deleted.
- "Extract Text" (OCR) was offered for every image on every platform, but
  the ocr_image command only has a real backend on macOS (Vision) and
  Windows (Windows.Media.Ocr) — on Linux it just returns "not yet
  available". Added isLinux() and gated the menu item off Linux so we don't
  advertise an action that always errors there.

Tests: isLinux platform cases added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@omercelikdev
omercelikdev merged commit 1c84e13 into main Jul 12, 2026
@omercelikdev
omercelikdev deleted the cleanup/orphan-searchbar-ocr-linux branch July 12, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant