Repository navigation
Conversation
Adds a Take photo entry above Attach files in the mobile + menu, using capture=environment to open the rear camera directly. Reuses the existing attachment flow; hidden on desktop via md:hidden. Closes HKUDS#3291. Related to HKUDS#366.
A fixed "camera-input" id would cross-link the label to another composer instance if more than one ChatComposer is mounted. Generate a unique id with useId() in ChatComposer and pass it to ChatSpaceMenu as an optional prop; the entry does not render when the prop is absent.
ant-cave
marked this pull request as ready for review
December 5, 2026 18:55
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On mobile there's no direct way to snap a photo and send it to the tutor — the system file picker usually has no camera option.
Adds a "Take photo" row at the top of the
+menu. It usescapture="environment"to open the rear camera, triggered by a<label>(a programmatic.click()makes Chrome ignorecapture). The photo goes through the existing attachment flow, and the row is hidden on desktop withmd:hidden. Also adds theTake photokey to all 14 locales.Screenshot at 390px:
npm run typecheckandnpm run i18n:checkpass.Closes #3291