{{ message }}
Java Lab2: add prompter to theater#73492
Open
molly-moen wants to merge 7 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Lab2 Java Lab support for the Theater “photo prompter” workflow by overlaying a focused photo-picker button on the preview area and relaying Theater input messages back to Javabuilder via Codebridge context.
Changes:
- Wire a new
sendTypedInputMessagecallback from Java Lab2 runtime utilities throughJavalab2View→Codebridge→CodebridgeContext. - Update
TheaterPreviewto open/close a photo prompter UI and forward selected files to the Theater mini-app. - Introduce
PhotoPrompterButton(+ styles) and a unit test for focus/label/upload behavior.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
sanchitmalhotra126
approved these changes
Jun 25, 2026
Contributor
There was a problem hiding this comment.
useHiddenFileInput could be useful here (may need to add some more params)
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.

This PR adds prompter support to the theater in Java Lab on lab2. In legacy, we replace the entire console with the prompter input. That seems non-ideal accessibility wise, and in lab2 Java Lab the theater preview is right next to the console as opposed to off to the side. I opted instead to have a button appear over the preview area (which will have no preview yet since the image must be uploaded before the gif is generated), and to have focus go to the prompter button when it appears. The button text will be the text the user provided.
Legacy behavior
Screen.Recording.2026-06-25.at.11.19.43.AM.mov
Lab2 behavior
This screen recording has the chrome setting on to view the currently highlighted element, so you can see focus going to the button.
Screen.Recording.2026-06-25.at.11.21.27.AM.mov
Testing story
Tested locally and added unit tests.