Repository navigation
[No QA] Docs updates for E/A#96458 in-app camera for chat attachment photos - #101478
Conversation
Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
|
||
| ## How to take a photo to attach to a chat message | ||
|
|
||
| In the Expensify mobile app, **Take photo** opens a camera inside Expensify, so you stay in the app while you capture the photo. On web and mobile web, **Add attachment** opens your device's file picker instead, so there is no in-app camera. |
There was a problem hiding this comment.
Agreed — removed. Whether the camera is in-app or the system picker is an implementation detail, not something a reader needs.
Instead of explaining the platform difference in prose, I folded it into the heading using the existing house convention (## ... (Mobile only), as in Create-an-Expense.md:73 and Distance-Expenses.md:14):
-## How to take a photo to attach to a chat message
-
-In the Expensify mobile app, **Take photo** opens a camera inside Expensify, so you stay in the app while you capture the photo. On web and mobile web, **Add attachment** opens your device's file picker instead, so there is no in-app camera.
+## How to take a photo to attach to a chat message (Mobile only)I also dropped the now-orphaned in-app camera keyword from the front matter, since the article no longer uses that term.
Pushed as 017e395 — see Chat-Features-and-Moderation-Tools.md:33.
Let me know if you'd rather cut the whole section, or trim the flash/flip-camera detail in steps 5 and 7 too.
Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
|
@MelvinBot Mark as ready |
This comment has been minimized.
This comment has been minimized.
|
There's nothing to fix in the code — every automated check on this PR passes. The one failing check, It will go green once an eligible reviewer other than the author approves. Full check status
Next step: this PR is still a draft. Reply with |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Done — this PR is now marked Ready for review. Current check status on This also confirms the earlier cleanup is clean — |
| 2. Tap the **plus icon**, then select **Add attachment**. | ||
| 3. Tap **Take photo**. | ||
| 4. If Expensify asks for camera access, tap **Continue**, then allow camera access on your device. | ||
| 5. Tap the **flash** icon on the left to turn the flash on or off, or the **flip camera** icon on the right to switch between the front and back cameras. |
There was a problem hiding this comment.
Step formatting: This numbered step bundles two distinct optional actions (toggling flash and using flip camera) into one step. Per HELP_AUTHORING_GUIDELINES.md Section 5, steps should be sequential and action-oriented (one action per step). Consider splitting into two steps, or moving these optional controls out of the numbered sequence since they are not required to complete the capture.
|
HelpDot Documentation Review Overall Assessment Scores Summary
Key Findings
Recommendations
Files Reviewed
Note: Detailed line-by-line feedback has been provided as inline comments. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 017e395fa2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| 4. If Expensify asks for camera access, tap **Continue**, then allow camera access on your device. | ||
| 5. Tap the **flash** icon on the left to turn the flash on or off, or the **flip camera** icon on the right to switch between the front and back cameras. | ||
| 6. Tap the **shutter** button in the center to capture the photo. | ||
| 7. Review the photo in the preview, then send it to the chat. |
There was a problem hiding this comment.
Remove the nonexistent native preview step
After the shutter is tapped in the native chat flow, AttachmentCamera passes the photo to handleCameraCapture, and useAttachmentPicker immediately calls addAttachment() and clearComposer(), which submits the attachment; no review screen or separate send action is shown. Telling users to review the photo and then send it therefore describes controls they cannot access and should be replaced with the actual automatic-send behavior.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed and fixed — there is no preview screen. On native, onFilesValidated short-circuits on isNative and calls addAttachment() directly (useAttachmentPicker.ts:50-57) instead of navigating to REPORT_ADD_ATTACHMENT. addAttachment then calls clearComposer(), which is itself the send trigger — see the comment at ComposerProvider.tsx:131-133 — landing in addAttachmentWithComment at useComposerSubmit.ts:85-90.
Step 7 is gone; step 6 now states the real behavior, including that any text already in the composer is sent as the photo's comment (text: draftMessageTrimmed in that same call):
-6. Tap the **shutter** button in the center to capture the photo.
-7. Review the photo in the preview, then send it to the chat.
+6. Tap the **shutter** button in the center to capture the photo. The photo is sent to the chat immediately — there is no preview screen and no separate send step. If you already typed a message, it is sent along with the photo.Pushed as 051951a — see Chat-Features-and-Moderation-Tools.md:41.
| 2. Use the message bar to type a message, add an attachment, or insert an emoji. | ||
| 3. Tap the **Send** icon. | ||
| 2. Tap the field labeled **Write something...**, then type your message. | ||
| 3. To add an attachment, tap the **plus icon**, select **Add attachment**, then choose **Take photo**, **Choose from gallery**, or **Choose file**. |
There was a problem hiding this comment.
Limit these attachment options to the native app
This instruction is not valid for users accessing Expensify from a mobile browser: the web/mobile-web AttachmentPicker uses a hidden file input directly and never renders the Take photo, Choose from gallery, and Choose file menu. Since the article elsewhere distinguishes mobile web from the native mobile app, label this flow as native-app-only (and clarify that mobile web opens the device file picker) so mobile-web users are not directed to nonexistent options.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@MelvinBot Mention that these steps are applicable for native Android and iOS apps
There was a problem hiding this comment.
Done — the steps now say they apply to the iOS and Android apps, and mobile web is called out separately.
Verified the distinction in code: web and mobile web use a hidden <input type="file"> and never render the three-option menu (AttachmentPicker/index.tsx:55-60), while Take photo / Choose from gallery / Choose file only exist in index.native.tsx.
-**On Mobile:**
+**On the Expensify mobile app (iOS and Android):**
1. Tap any chat from your inbox.
…
+
+✏️ **Note:** The **Take photo**, **Choose from gallery**, and **Choose file** options are available on the iOS and Android apps only. On mobile web, **Add attachment** opens your device’s file picker instead.I also retitled the camera section from (Mobile only) to (iOS and Android only), since "Mobile" was the ambiguous part — it reads as including mobile web. The ✏️ **Note:** pattern and the "available on iOS and Android only" phrasing match the existing convention in Distance-Expenses.md:30.
Pushed as 051951a — see Chat-Features-and-Moderation-Tools.md:26-35.
There was a problem hiding this comment.
🤖 Android test steps verification results: ✅ pass
All 6 documented steps for attaching a photo via chat behaved as the article describes on Android NewDot: plus icon → Add attachment → three correctly-ordered options → in-app camera → shutter sends immediately with no preview screen, and the composer placeholder is exactly Write something....
The run also caught one thing I had gotten wrong in step 4, now fixed in 264d1e9. The Continue button is not the first thing you see — on first use the OS permission dialog is auto-requested, because refreshCameraPermissionStatus(true) calls requestCameraPermission as soon as the status reads DENIED (AttachmentCamera.tsx:115-134). The Expensify Continue screen renders only while permission is not granted (AttachmentCamera.tsx:232-252), so it is the retry path after a refusal, not the initial prompt:
-4. If Expensify asks for camera access, tap **Continue**, then allow camera access on your device.
+4. The first time you do this, your device asks for camera access — allow it. If you declined earlier, Expensify shows a **Take photo** screen with a **Continue** button instead; tap **Continue** to ask for access again.The missing flip-camera icon is expected and already documented — canFlipCamera requires both a front and a back device (AttachmentCamera.tsx:90), and the icon is hidden when that is false, which the article's closing line already covers.
…tent photo preview step Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
|
Both review comments are addressed in 1. Removed the nonexistent preview step. On native there is no preview screen — the photo is sent the moment you tap the shutter. 2. Scoped the attachment options to the iOS and Android apps. Web and mobile web use a hidden Full diff-**On Mobile:**
+**On the Expensify mobile app (iOS and Android):**
1. Tap any chat from your inbox.
2. Tap the field labeled **Write something...**, then type your message.
3. To add an attachment, tap the **plus icon**, select **Add attachment**, then choose **Take photo**, **Choose from gallery**, or **Choose file**.
4. To add an emoji, tap the **emoji icon**.
5. Tap the **Send** icon.
-## How to take a photo to attach to a chat message (Mobile only)
+✏️ **Note:** The **Take photo**, **Choose from gallery**, and **Choose file** options are available on the iOS and Android apps only. On mobile web, **Add attachment** opens your device’s file picker instead.
+
+## How to take a photo to attach to a chat message (iOS and Android only)
1. Open any chat from your inbox.
2. Tap the **plus icon**, then select **Add attachment**.
3. Tap **Take photo**.
4. If Expensify asks for camera access, tap **Continue**, then allow camera access on your device.
5. Tap the **flash** icon on the left to turn the flash on or off, or the **flip camera** icon on the right to switch between the front and back cameras.
-6. Tap the **shutter** button in the center to capture the photo.
-7. Review the photo in the preview, then send it to the chat.
+6. Tap the **shutter** button in the center to capture the photo. The photo is sent to the chat immediately — there is no preview screen and no separate send step. If you already typed a message, it is sent along with the photo.I retitled the section from (Mobile only) to (iOS and Android only) because "Mobile" was the ambiguous word — it reads as including mobile web, which is exactly the gap the review flagged. The AI tests run
Markdown-only change, so no app behavior to exercise. The camera flow itself is native-only and cannot be checked on web. One review comment is still open and not from you: |
|
A preview of your ExpensifyHelp changes have been deployed to https://05653ba2.helpdot.pages.dev ⚡️ Updated articles: |
…vior Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
|
🤖 Android test steps verification results: ✅ pass All 6 documented steps for attaching a photo via chat behaved as the article describes on Android NewDot: plus icon → Add attachment → three correctly-ordered options → in-app camera → shutter sends immediately with no preview screen, and the composer placeholder is exactly Write something.... The run also caught one thing I had gotten wrong in step 4, now fixed in -4. If Expensify asks for camera access, tap **Continue**, then allow camera access on your device.
+4. The first time you do this, your device asks for camera access — allow it. If you declined earlier, Expensify shows a **Take photo** screen with a **Continue** button instead; tap **Continue** to ask for access again.The missing flip-camera icon is expected and already documented — |
|
The failing What failed: the Why it's unrelated: this PR changes exactly one Markdown file, What to do: re-run the failed job on run 35382438175. I tried to trigger this myself but the re-run was blocked by my permissions in this run, so someone with write access needs to click Re-run failed jobs. Failure output and step resultsStep results for the
The other failing check, I could not verify anything in a browser on this run because the web test environment failed to come up, but nothing here needed it: the diff is documentation-only and the conclusion comes from the CI logs. |
|
@stephanieelliott looks like this was merged without a test passing. These checks had not passed on 264d1e9 when it was merged:
Please add a note explaining why this was done and remove the |
|
🚀 Deployed to staging by https://github.com/stephanieelliott in version: 9.4.92-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.92-8 🚀
Bundle Size Analysis (Sentry): |






Explanation of Change
Help site follow-up for fix: use in-app VisionCamera for chat attachment photos (re-land).
That PR replaced the external system camera with an in-app VisionCamera modal when a member taps Take photo in the chat attachment picker, so Expensify stays in the foreground during capture. The in-app camera screen has its own controls (close, flash, shutter, flip camera) and its own camera-permission prompt, none of which were documented.
docs/articles/new-expensify/chat/Chat-Features-and-Moderation-Tools.mdpreviously described the mobile flow only as "Use the message bar to type a message, add an attachment, or insert an emoji" — it never named the attachment options and never mentioned a camera.Changes in this PR (one file):
## How to take a photo to attach to a chat messagesection covering the in-app camera: the camera permission prompt and its Continue button, the flash icon (left), shutter button (center), and flip camera icon (right), the X to close, and the fact that flash and flip camera are hidden when the device lacks a flash or a second camera.add attachment,take photo, andin-app camerakeywords so the article is retrievable for these searches.How UI labels were verified
Write something..., and the + menu shows Create expense, Track distance, Split expense, Pay Expensify, Assign task, Add attachment — with no Take photo option, confirming the in-app camera is native-only.AttachmentCameralayout.What was reviewed and left unchanged
docs/articles/new-expensify/reports-and-expenses/Attach-and-edit-receipts-on-expenses.md,Create-an-Expense.md,Track-Expenses.md, andTrack-Personal-Expenses.mddescribe the receipt-scanning camera, which already used an in-app camera and is not changed by the linked PR.flip camerastring added in the linked PR is an accessibility label, not visible on-screen text, so it is documented as an icon rather than a button label.Tests
Documentation only — no code changes, so there is nothing to test in the app. Verified the Markdown renders correctly and the article still uses only
#and##headings.Offline tests
Not applicable — documentation only.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveScreenshots/Videos
Documentation only — no UI changes.
@ShridharGoel, please review the files changed and confirm they reflect the current behavior. Then post a new comment saying
@MelvinBot mark this PR as ready for review.