feat(recipe) shared ImageSourcePicker for Galerie/Kamera on touch devices #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "image-source-picker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
AiImportDialoginto a new reusableImageSourcePickercomponent (basics/)AiImportDialogtouch branch now delegates to<ImageSourcePicker>instead of inlining the buttonsRecipeImageUploaddetects touch devices and shows aBasicDialogcontaining<ImageSourcePicker>when tapped — desktop path unchanged (direct file picker)Test plan
🤖 Generated with Claude Code
@ -0,0 +7,4 @@/*** Props for ImageSourcePicker.** The component renders two side-by-side buttons that let the user chooseShouldn't we add an explanation for the component here? Some Devices include camera into their native file picker, others don't. So this is a convenience picker allowing users of the latter devices to capture images for direct upload
@ -0,0 +16,4 @@/** Passed verbatim to the `accept` attribute of both hidden inputs (e.g. "image/*"). */accept: string/** Whether multiple files may be selected from the gallery. Defaults to false. */multiple?: booleanI'd prefer isPickMultipe