Skip to content

Feature: Less annoying review prompt #17212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged

Feature: Less annoying review prompt #17212

merged 1 commit into from
Jun 23, 2025

Conversation

yaira2
Copy link
Member

@yaira2 yaira2 commented Jun 23, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • Closes #

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Confirmed logic, however will need to test in release to ensure everything works properly.

@yaira2 yaira2 requested a review from Copilot June 23, 2025 21:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the old modal ContentDialog review prompt with a non-blocking TeachingTip that appears after a set number of launches and binds to new view-model commands.

  • Removes PromptForReviewAsync and related dialog code from MainPage.xaml.cs
  • Adds a TeachingTip in XAML for the review prompt
  • Introduces ShowReviewPrompt, ReviewAppCommand, and DismissReviewPromptCommand in the main page view-model
  • Updates localized strings for the new UI

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/Files.App/Views/MainPage.xaml.cs Deleted legacy review dialog logic and imports
src/Files.App/Views/MainPage.xaml Added TeachingTip markup for the review prompt
src/Files.App/ViewModels/MainPageViewModel.cs Added prompt visibility property and commands
src/Files.App/Strings/en-US/Resources.resw Added new resource keys and values
Comments suppressed due to low confidence (1)

src/Files.App/Strings/en-US/Resources.resw:2016

  • [nitpick] The title Hello! is generic. Consider updating to something like Enjoying Files? to better match the prompt's intent.
    <value>Hello!</value>

@yaira2 yaira2 force-pushed the ya/ReviewPrompt branch from a82b9dd to 9d95122 Compare June 23, 2025 21:15
@yaira2 yaira2 merged commit c65a77f into main Jun 23, 2025
9 checks passed
@yaira2 yaira2 deleted the ya/ReviewPrompt branch June 23, 2025 22:13
@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant