Disambiguate camera picker labels and raise recent files row#6448
Conversation
|
@CodeRabbit review |
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
✅ Actions performedReview triggered.
|
SDK Size Comparison 📏
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (10)
WalkthroughFiles picker enforces minimum interactive component height via a Compose modifier. Camera picker refactors its label and call-to-action text into separate string resources across nine locales, with the implementation updated to reference the new CTA string key. ChangesCompose UI Component Refinements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
🚀 Available in v7.2.0 |



Goal
Two small TalkBack improvements in the attachment picker surfaced by an accessibility scan:
Stream_FindFilesButtonrow was 47 dp tall. One dp short of the 48 dp minimum interactive component size.Implementation
stream_compose_attachment_camera_pickerfrom "Open Camera" → "Camera" (and across all 7 locales: es / fr / hi / in / it / ja / ko). The tab references this string and now reads as a noun.stream_compose_attachment_camera_picker_cta= "Open Camera" (same translations preserved on the action side). The body button inAttachmentCameraPickernow uses this key, mirroring the existingstream_compose_attachment_poll_picker_ctapattern.defaultMinSize(minHeight = LocalMinimumInteractiveComponentSize.current)to the "Recent files" row inFilesPicker.🎨 UI Changes
The "Recent files" row picks up an extra 1 dp of height (47 → 48 dp). Paparazzi snapshots for
FilesPickerTestandAttachmentFilePickerTestrebaselined.Testing
Enable TalkBack on a physical device, run the Compose sample.
+attachments button.Summary by CodeRabbit
Bug Fixes
UI Updates
Localization