Skip to content

Settings: Generate bug report should tell user there is bug report generating #40060

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 18 commits into from
Jun 17, 2025

Conversation

vanzue
Copy link
Contributor

@vanzue vanzue commented Jun 16, 2025

Summary of the Pull Request

Bug report tool status tracking:

Currently, After clicking the generate package button, button is still active, as we do not have bug report progress, this will confuse user whether they actually clicks the button.
Add an enable status to acknowledge the bug generating

PR Checklist

  • Closes: #xxx
  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

  1. Progress bar should be present in generating report place when there is bug report going on.
  2. Runner&Settings should know each other when they trigger the bug report.
  3. Runner tray icon menu item should be disabled when there is one bug report going on.
  4. After bug report generation, everything should be like before.

Validation Steps Performed

bug_report_status.mp4

Copilot AI and others added 6 commits June 14, 2025 08:43
Co-authored-by: vanzue <69313318+vanzue@users.noreply.github.com>
Co-authored-by: vanzue <69313318+vanzue@users.noreply.github.com>
Add visual feedback and state handling for bug report in progress

This comment has been minimized.

@vanzue vanzue added this to the PowerToys 0.92 milestone Jun 16, 2025
@htcfreek
Copy link
Collaborator

htcfreek commented Jun 16, 2025

My two cents: This should affect tray menu entry/quick access too. And can we add a ProgressRing control?

@yeelam-gordon yeelam-gordon requested a review from Copilot June 17, 2025 04:03
@yeelam-gordon yeelam-gordon added the Area-Bug Report Tool Issues around the Bug Report Tool from PowerToys label Jun 17, 2025
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 improves the bug report generation feedback by tracking the bug report status and reflecting it in the UI. Key changes include:

  • Adding functions to check if a bug report is running and integrating this status via IPC.
  • Enhancing the view models and UI pages to enable/disable the bug report button and show a progress indicator during bug report generation.
  • Implementing corresponding changes in the runner modules to support status inquiries via IPC.

Reviewed Changes

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

Show a summary per file
File Description
src/settings-ui/Settings.UI/ViewModels/GeneralViewModel.cs Introduced IsBugReportRunning property and CheckBugReportStatus method.
src/settings-ui/Settings.UI/ViewModels/Flyout/LauncherViewModel.cs Added GetBugReportStatus method for IPC status requests.
src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.cs Added a timer and IPC handlers to periodically check and update the bug report status.
src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml Updated the UI to show/hide the Report Bug button and a progress indicator based on bug report status.
src/runner/settings_window.cpp Added IPC message handling for bug_report_status requests.
src/runner/bug_report.h & bug_report.cpp Added declaration and implementation for is_bug_report_running().
Comments suppressed due to low confidence (1)

src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml:466

  • The x:Uid 'GeneralPage_ReportBugPackage' is used for two different SettingsCard elements, which may cause conflicts in localization or resource lookup. Consider renaming one of the identifiers to ensure uniqueness.
<tkcontrols:SettingsCard x:Uid="GeneralPage_ReportBugPackage" ...

This comment has been minimized.

@vanzue
Copy link
Contributor Author

vanzue commented Jun 17, 2025

My two cents: This should affect tray menu entry/quick access too. And can we add a ProgressRing control?

Thanks for feedback, these are valuable, more than that, I implement observer pattern for bug report status, to enable event driven notification instead of polling.

So icon change should be immediately instead of having to wait for a polling interval

Copy link
Contributor

@shuaiyuanxx shuaiyuanxx left a comment

Choose a reason for hiding this comment

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

LGTM

@vanzue vanzue self-assigned this Jun 17, 2025
@vanzue vanzue merged commit 252dbb5 into microsoft:main Jun 17, 2025
10 checks passed
yeelam-gordon pushed a commit that referenced this pull request Jun 20, 2025
…nerating (#40060)

### <!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request
### Bug report tool status tracking:

Currently, After clicking the generate package button, button is still
active, as we do not have bug report progress, this will confuse user
whether they actually clicks the button.
Add an enable status to acknowledge the bug generating

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [ ] **Closes:** #xxx
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [x] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

## Detailed Description of the Pull Request / Additional comments
1. Progress bar should be present in generating report place when there
is bug report going on.
2. Runner&Settings should know each other when they trigger the bug
report.
3. Runner tray icon menu item should be disabled when there is one bug
report going on.
4. After bug report generation, everything should be like before.


## Validation Steps Performed


https://github.com/user-attachments/assets/dcbf8e6e-c5e1-4d23-9dab-f16c11ed56cf

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Bug Report Tool Issues around the Bug Report Tool from PowerToys
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants