Conversation
Covers in-article text search with highlight navigation, WebView JS bridge, and overflow menu integration for Article types. https://claude.ai/code/session_01FyheUqdg2xGH9J9S2W4HFH
- Reorder overflow menu per spec (text size, view toggle, search, is read, open in browser, share, delete) - Add Open in Browser menu item (ACTION_VIEW intent) - Change View Original icon from OpenInNew to Language (globe) - Split card icon into globe (in-app original) + external link (browser) - Simplify search scope: READER mode only, disabled in Original - Hide search entirely for Photo/Video types https://claude.ai/code/session_01FyheUqdg2xGH9J9S2W4HFH
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
This PR adds a "Search in Article" feature to the reading view, enabling in-content text search with match highlighting and navigation. It also introduces an "Open in Browser" menu option and updates icon semantics across the reading view menu and list view cards to properly distinguish between in-app content viewing and external browser opening.
Key Changes
Search in Article feature: New overflow menu option for Article-type bookmarks in Reader mode that enables real-time text search with yellow/orange match highlighting and up/down navigation between matches. Implemented via JavaScript bridge to the WebView with a dedicated search toolbar replacing the normal top app bar.
Open in Browser action: New menu item that opens the bookmark URL in the device's default browser (via
Intent(ACTION_VIEW)), distinct from the in-app Original view.Icon semantics update:
Icons.Filled.Language) to clarify it opens content in-appMenu restructuring: Reordered reading view overflow menu with new items and updated labels ("Mark Read" → "Is Read")
Conditional visibility:
Implementation Details
ArticleSearchStateinBookmarkDetailViewModeltracking active status, query, total matches, and current match index.mydeck-search-match(yellow) and.mydeck-search-current(orange) added to HTML templatesFiles Modified/Created
BookmarkDetailScreen.kt— search toolbar UI, menu restructuring, WebView JS integrationBookmarkDetailViewModel.kt— search state and logicBookmarkCard.kt— dual icon buttons on all card layoutsBookmarkListScreen.kt&BookmarkListViewModel.kt— Open in Browser callback wiringBookmarkListItem.kt— add URL field if neededstrings.xml— new/updated string resourcesArticleSearchBar.kt— extracted search toolbar composableWebViewSearchBridge.kt— JavaScript generation and WebView evaluation helpersTesting Recommendations
https://claude.ai/code/session_01FyheUqdg2xGH9J9S2W4HFH