readest/apps/readest-app/src-tauri/plugins/tauri-plugin-native-bridge/src
Huang Xin 6e2390fe5e
feat(metadata): search for book covers in app (#7290)
Add Google, Bing and DuckDuckGo image search from Edit Metadata, using the
book title and author. Allow device-local custom search engine templates.
Show the original engine page with explicit image selection, then require
app-owned confirmation before a native fetch so remote pages cannot silently
forge a cover selection. Stage the confirmed image through the existing
cover-save flow. Support desktop and mobile native browsers, with an external search
and file-import fallback on web.

Verification on origin/main 617db1aa3:
- Five affected frontend suites: 50 tests passed; pnpm lint passed.
- Rust formatting and CEF Clippy passed; 202 Rust library tests and four
  native bridge model tests passed.
- Regression for editing a search field beneath an overlapping notification
  failed before the fix (expected aria-pressed false, received true) and
  passes with the fix. Chooser regression failed with the old query input.
- Forged native browser results now wait for app-owned confirmation before
  fetching; confirmation and cancellation tests pass. Verified on Android
  that a forged result stops there, then fetch and Save pass after confirmation.
- Native CEF app: Bing cover selection/save/reload, DuckDuckGo native keyboard
  editing, custom engines and phone/dark/RTL/e-ink layouts exercised.
- Android 15 emulator, WebView 124: Bing query editing, iframe selection,
  confirmation, native download and persisted cover after app restart passed.
  DuckDuckGo input editing and selection passed; two proxy downloads timed out.
  Custom engine add/persist/launch/remove passed.
- Google presented a network challenge on Android; iOS was not built or run.
- Full unit suite is run by the pre-push hook and CI.

Fixes #6653
Reported by lifesucksdude101 on GitHub

Co-authored-by: Claude Code <noreply@anthropic.com>
2026-11-03 15:07:39 +01:00
..
platform feat(reader): Page Flip page-turn style on Android, iOS and desktop (#7160) 2026-10-30 12:57:43 +01:00
commands.rs feat(android): choose the system dictionary lookup app (#4937) (#7272) 2026-11-02 20:20:05 +01:00
desktop.rs feat(android): choose the system dictionary lookup app (#4937) (#7272) 2026-11-02 20:20:05 +01:00
error.rs refactor: rename plugin safari-auth to native-bridge (#749) 2025-03-29 07:27:18 +01:00
lib.rs feat(android): choose the system dictionary lookup app (#4937) (#7272) 2026-11-02 20:20:05 +01:00
mobile.rs feat(android): choose the system dictionary lookup app (#4937) (#7272) 2026-11-02 20:20:05 +01:00
models.rs feat(metadata): search for book covers in app (#7290) 2026-11-03 15:07:39 +01:00