Skip to content

Add quick photo capture and refine iOS controls - #298

Merged
tiensonqin merged 1 commit into
mainfrom
codex/ios-quick-photo-capture
Nov 27, 2026
Merged

tiensonqin merged 1 commit into
mainfrom
codex/ios-quick-photo-capture

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Long-press the bottom Capture button on iOS to open a compact, horizontally scrolling Photos picker. Choosing a thumbnail adds it to the Capture draft. A regular tap opens the text composer.
  • Use a small white × on a translucent dark circle to remove Capture attachments, with a 44-point touch target.
  • Tap Home once while already on the Journals home to return to the first block.
  • Use the adaptive primary text color for Cancel in the block-deletion alert and the system destructive red for Delete.

Screen recording

ios-capture-controls.mp4

Verification

  • dune build @shared/native/runtest passed with 1,472 tests.
  • Release simulator checks on iOS 27.2 covered photo picking and staging, tapping outside the visible remove badge within its touch target, Home reselection after scrolling, and the delete alert in light and dark modes. The 2,000-row journal fixture also verified repeated returns to the top.
  • Installed and launched the signed Release build on an iPhone 15.
  • The broader native-menu flow stopped at its simulator audio-recording check. The focused UI flows above passed.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 potential issues.

Devin Review

action "bottom-search" "Search" "button.search" Model.OpenSearch;
action "capture-circle" "Capture" "button.composer.expand" Model.ExpandComposer;
action "capture-circle" "Capture" "button.composer.expand" Model.ExpandComposer
?on_long_press:(if android then None else Some (press send (Model.ChooseAttachment "quick-photos")));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Missing task default after photo capture

On Tasks, holding Capture and choosing a photo bypasses ExpandComposer and leaves an unset task status unchanged. SendComposer then saves accompanying text as a regular block instead of a task.

Learn more

On the Tasks tab, a regular Capture tap runs ExpandComposer, which supplies a default task status when none is selected. The quick photo picker instead imports a photo and invokes addImportedAsset, which sends the composer-asset update. That update opens the composer through StageComposerAsset without applying the Tasks default. SendComposer uses task status for the text submission and still sends the photo separately.

Example: With no task status selected, open Tasks, hold Capture, choose a photo, type “Replace battery,” and tap Send. Logseq saves the text as a regular block instead of a task. Tapping Capture first and then adding a photo through the attachment menu gives the text the default task status.

Recommended fix: Apply the same Tasks default when a successful quick photo import opens the collapsed composer, without overriding an existing task status or expanding the composer on cancel. Add a test that stages a quick photo from Tasks and checks the accompanying text submission.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +5 to +8
- longPressOn:
id: button.composer.expand
- assertVisible: All Photos
- tapOn: Cancel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Quick photo staging lacks regression coverage

The native menu flow cancels the quick picker without selecting a photo. The menu test runner checks the presentation request but only requires an audio asset to be staged.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +48 to +49
.disabled(isImporting)
.interactiveDismissDisabled(isImporting)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 No exit during photo loading

importPhoto blocks Cancel and swipe dismissal while it waits for the selected photo. With an iCloud-only photo, the wait can include a download.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +272 to +273
action "capture-circle" "Capture" "button.composer.expand" Model.ExpandComposer
?on_long_press:(if android then None else Some (press send (Model.ChooseAttachment "quick-photos")));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Missing Capture opening latency measurements

Capture now shares tap and hold on one control. The PR lists no before-and-after Release device timings on a large graph with RTC active, as Mobile Performance Rules require.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@tiensonqin
tiensonqin merged commit 94b7646 into main Nov 27, 2026
11 checks passed
@tiensonqin
tiensonqin deleted the codex/ios-quick-photo-capture branch November 27, 2026 23:24
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