Repository navigation
Add quick photo capture and refine iOS controls - #298
Conversation
| 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"))); |
There was a problem hiding this comment.
🟡 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
| - longPressOn: | ||
| id: button.composer.expand | ||
| - assertVisible: All Photos | ||
| - tapOn: Cancel |
There was a problem hiding this comment.
🔍 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
| .disabled(isImporting) | ||
| .interactiveDismissDisabled(isImporting) |
| action "capture-circle" "Capture" "button.composer.expand" Model.ExpandComposer | ||
| ?on_long_press:(if android then None else Some (press send (Model.ChooseAttachment "quick-photos"))); |
There was a problem hiding this comment.
🔍 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
What changed
Screen recording
ios-capture-controls.mp4
Verification
dune build @shared/native/runtestpassed with 1,472 tests.