Repository navigation
Mobile: smart capture (M18) - #69
Merged
Merged
Conversation
Capture in the browser's bottom bar saves the page into the trail being recorded: address, title, DOI or PMID (citation meta, address, doi.org links, page text), time with time zone, the selected text and a JPEG thumbnail (react-native-view-shot, in Expo Go). It becomes a capture card linked "captured from" the page card, as desktop's captureCard does; the page becomes a card (B104: capture is an engagement signal). A note with Undo shows; no screen change. Sign-in and payment pages are refused. Card preview shows the thumbnail, the capture line with time zone, and Open DOI / PubMed. The shared file carries the quote and the "Captured from ... · DOI ..." line through fromText; thumbnails stay on the phone. Bottom bar: "Suggestions" shortened to "Suggest" and Settings to a gear so five buttons fit on a phone. Only mobile/ changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X9wDmS5VvrWmyHhcWA9MoL
This was referenced Nov 8, 2026
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.
M18 smart capture on the phone. Only
mobile/changes.What it does
doi.orglinks and the page text.captureCard. The page becomes a card too, since a capture counts as engagement (B104)..trail.md, the capture keeps its quote and the line "Captured from nature.com · phone 14:02 GMT-5 · DOI 10.1038/…". Thumbnails stay on the phone.New module:
react-native-view-shot6.1.1 (the SDK 58 version, included in Expo Go).Not in this PR (needs a development build or more work)
Checks
npm testinmobile/: 11 passed (6 trail and 5 capture tests). They cover DOI cleaning (URL-encoded, trailing punctuation, brackets), metadata order, PMIDs, refused pages, cards and links, Undo, and the shared-file round trip.bundle:check: iOS and Android bundles build.Generated by Claude Code