feat(ai): migrate Imagen pages to Nano Banana#1846
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request rebrands the "Imagen" features to "Nano Banana" throughout the application, updating screen names, view models, and model configurations to utilize the GenerativeModel with the gemini-2.5-flash-image model. Key changes include updating copyright headers, navigation titles, and adapting response handling to use inlineDataParts. Review feedback suggests replacing print statements with the existing logger instance for better log management and correcting a typo in the sample data titles.
| print("Image(s) Blocked: \(filteredReason)") | ||
| // 2. Print the reason images were blocked, if any. | ||
| if let blockReason = response.promptFeedback?.blockReason { | ||
| print("Image(s) Blocked: \(blockReason)") |
Contributor
| print("Image(s) Blocked: \(filteredReason)") | ||
| // 2. Print the reason images were blocked, if any. | ||
| if let blockReason = response.promptFeedback?.blockReason { | ||
| print("Image(s) Blocked: \(blockReason)") |
Contributor
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
andrewheard
approved these changes
Apr 8, 2026
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.
Per b/498982262,
This PR migrates all of our existing Imagen screens to Nano Banana alternatives. This aligns with the deprecation of the Imagen API, and should offer consumers a prime example of what migration looks like.
Note that for the template, I created a template in the Firebase console that matched the Imagen one. Although, since there's not a default dropdown for a Nano Banana template, I'd be fine with just removing that screen entirely.