Skip to content

Conversation

@fulleni
Copy link
Member

@fulleni fulleni commented Dec 5, 2025

Status

READY

Description

This pull request integrates updates from the core package, leading to significant refactoring and enhancements in the application's feedback and community management features. The changes provide administrators with more precise control over the conditions that trigger app review prompts by allowing them to define specific positive user interactions. Additionally, it improves the robustness of engagement data display and clarifies terminology for reportable content types, ensuring a more consistent and user-friendly experience.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

- Update git ref in pubspec.yaml and pubspec.lock
- Change ref from b3bf1fbe84c51006c55c0eed7fb5de2f11a95208 to e66e076572bd326e50e9d5286ef5059ff658ed65
- Add new positive interaction types for app review settings
- Introduce interaction cycle threshold as a replacement for positive interaction threshold
- Update descriptions and labels for app review prompt settings
- Rename positiveInteractionThreshold to interactionCycleThreshold
- Add localization support for interaction cycle threshold label and description
- Implement switchable list for eligible positive interactions
- Update UI to display new interaction types and their descriptions
- Update the color mapping for ReportableEntity.comment in the _ReportsDataSource class
-
…lization

- Change ReportableEntity.engagement to ReportableEntity.comment
- Ensure proper localization key is used for comment entity
… types

- Add null check for engagement.reaction and display "N/A" if null
- Implement extension method to provide localized names for reaction types
- Update UI to use localized reaction type names
- Modify the style of the 'not available' text in the engagements page
- Use onSurface color with 60% opacity for better visibility
@fulleni fulleni self-assigned this Dec 5, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @fulleni, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates updates from the core package, leading to significant refactoring and enhancements in the application's feedback and community management features. The changes provide administrators with more precise control over the conditions that trigger app review prompts by allowing them to define specific positive user interactions. Additionally, it improves the robustness of engagement data display and clarifies terminology for reportable content types, ensuring a more consistent and user-friendly experience.

Highlights

  • App Review Logic Refinement: The 'positive interaction threshold' has been renamed to 'interaction cycle threshold' across the app review settings, along with updated descriptions for improved clarity and precision in defining when app review prompts are triggered.
  • Configurable Positive Interactions: A new user interface section has been added to the app review settings, allowing administrators to select specific types of positive user interactions (e.g., saving an item, following an entity, sharing content, saving a filter) that contribute to the app review prompt trigger.
  • Enhanced Localization Support: New localization strings have been introduced for the newly configurable positive interaction types, and existing localization keys have been updated to reflect the terminology changes, ensuring a consistent experience across supported languages.
  • Robust Engagement Display: The engagements page now gracefully handles cases where reaction data might be absent, displaying 'not available' to prevent errors and provide clearer information to the user.
  • Reportable Entity Clarification: The ReportableEntity.engagement type has been renamed to ReportableEntity.comment in relevant sections, providing a more accurate and precise categorization for reportable content.
  • Core Package Synchronization: The application's dependency on the core package has been updated to a new commit hash, integrating the latest changes and improvements from the core library.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily focuses on refactoring the codebase to synchronize with an update in the core package. The changes include renaming variables and enums for improved clarity, updating localization strings, and introducing a new feature for configuring eligible positive interactions for app reviews. The overall code quality is high, and the changes are consistent and well-implemented. I have provided one suggestion to enhance the readability and maintainability of a newly added callback by simplifying its structure and adhering to a more functional programming style.

@fulleni fulleni merged commit 7d8fb37 into main Dec 5, 2025
1 check failed
@fulleni fulleni deleted the refactor/sync-with-core-package-update branch December 5, 2025 04:43
@github-project-automation github-project-automation bot moved this from Backlog to Done in Flutter News App Project Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants