Skip to content
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

[RegistryPreview] Enhanced preview for value data #37689

Draft
wants to merge 52 commits into
base: main
Choose a base branch
from

Conversation

htcfreek
Copy link
Collaborator

@htcfreek htcfreek commented Feb 28, 2025

Summary of the Pull Request

Add a button to the data grid that shows a windows for complex value preview.

Screenshots

Button
image

Preview: REG_SZ
image

Preview: REG_MULTI_SZ
image

Preview: REG_EXPAND_SZ
image

Preview: REG_DWORD and REG_QWORD
image

Preview: REG_BINARY

image
image

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@htcfreek htcfreek changed the title 🚧 [RegistryPreview] Enhanced preview windows for value data [RegistryPreview] Enhanced preview windows for value data Mar 1, 2025
@htcfreek htcfreek self-assigned this Mar 1, 2025
@htcfreek htcfreek marked this pull request as ready for review March 1, 2025 15:27
@htcfreek htcfreek added the Needs-Review This Pull Request awaits the review of a maintainer. label Mar 1, 2025
@htcfreek htcfreek requested a review from niels9001 March 1, 2025 15:28
@htcfreek htcfreek changed the title [RegistryPreview] Enhanced preview windows for value data [RegistryPreview] Enhanced preview for value data Mar 1, 2025
@htcfreek htcfreek marked this pull request as draft March 1, 2025 18:40
@htcfreek

This comment has been minimized.

This comment has been minimized.

@htcfreek
Copy link
Collaborator Author

htcfreek commented Mar 14, 2025

@jaimecbernardo , @crutkas
I copied the code of HexBox control into our sources.

  1. Before I continue to fix all build and style errors, is this the correct way to go?
  2. What changes are required in Notice.md?
  3. Do we need an attribution on the Settings page?

@jaimecbernardo
Copy link
Collaborator

jaimecbernardo commented Mar 14, 2025

@jaimecbernardo , @crutkas I copied the code of HexBox control into our sources.

  1. Before I continue to fix all build and style errors, is this the correct way to go?
  2. What changes are required in Notice.md?
  3. Do we need an attribution on the Settings page?

@htcfreek , sounds good like a good approach.

  1. Instead of fixing the build (I suppose analyzer) and style errors, it might make more sense to have them as exceptions, in order to keep the code similar to upstream. That will make updating easier. For styling, the .pipelines\applyXamlStyling.ps1 file can be changed to exclude files from that directory and for analyzers I suspect we can do the same in "src\codeAnalysis\GlobalSuppressions.cs" similar to what's done there for MouseWithoutBorders.

2 and 3. I think Notice.md would be sufficient, similar to what we do for "The Quite OK Image Format reference decoder". No need for attribution on the Settings page. Mentioning @cinnamon-msft , in case there's something else that needs to be done to attribute.

@htcfreek
Copy link
Collaborator Author

@jaimecbernardo
For 1: But doesn't this require to keep the original namespace? How show we implement it then? Or is changing the namespace okay?

@jaimecbernardo
Copy link
Collaborator

@htcfreek , I didn't quite understand what you meant. I guess idea would be to keep it as similar as possible to the original code 🤔 But if changes are required to make it work, it makes sense to make those changes.

@htcfreek
Copy link
Collaborator Author

for analyzers I suspect we can do the same in "src\codeAnalysis\GlobalSuppressions.cs"

@jaimecbernardo
Do we need each of the 100+ error in a single definition or can we configure something like supress all for namespace x?

@jaimecbernardo
Copy link
Collaborator

for analyzers I suspect we can do the same in "src\codeAnalysis\GlobalSuppressions.cs"

@jaimecbernardo Do we need each of the 100+ error in a single definition or can we configure something like supress all for namespace x?

@htcfreek Ouch, I think the suppression needs to be for category of errors, not single errors. We shouldn't be getting 100+ different category of errors, right? Even for MouseWithoutBorders 5 supressions were enough for all the code analysis errors we were getting there.

@jaimecbernardo
Copy link
Collaborator

For spellcheck ignoring, it's possible to set the path in ".github\actions\spell-check\excludes.txt" as well

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@htcfreek
Copy link
Collaborator Author

@jaimecbernardo
The control's code is ported now.

But the control isn't working. It looks like the Build is ignoring the Generic.xaml file. Can you please take a look.

@@ -64,6 +64,7 @@
<PackageVersion Include="ReverseMarkdown" Version="4.1.0" />
<PackageVersion Include="ScipBe.Common.Office.OneNote" Version="3.0.1" />
<PackageVersion Include="SharpCompress" Version="0.37.2" />
<PackageVersion Include="SkiaSharp.Views.WinUI" Version="2.88.9" />
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can't update to 3.* branch as it breaks the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Needs-Review This Pull Request awaits the review of a maintainer. Product-Registry Preview Refers to the Registry Preview PowerToy
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants