Add Markdown export for preset differences#11503
Conversation
|
@BenJule This PR looks great. But you may have noticed in #11311 this dialog can only show one different value at a time. Many presets have more variants, X2D may have up to 6 variants. We are working on this internally, but it's still on UX stage, we hope it will be shipped at the end of the month. If we merge this PR now you may need to create a new PR for this feature. Also, will the table layout work for the cases with up to 6 variants? |
|
@tonghao-bbl Thanks for pointing this out. I updated the Markdown export so it no longer relies on fixed
The export helper accepts a variable-length list of labeled values. The current comparison passes the two selected presets, while a future comparison UI can pass up to six variants, or more, without requiring another table-format change. The preset names are currently used as the row labels. Validation performed:
A full application build and interactive UI test have not been performed. |
Summary
This PR adds a Copy differences button to the Compare presets dialog.
The button copies the currently displayed preset differences as a Markdown table, making it easier to share profile differences in GitHub issues, support tickets, forums, and release/debug notes.
Why
The Compare presets dialog already shows differences between two presets, but those differences are hard to share without screenshots or manual transcription.
Copying the diff as Markdown makes preset comparisons portable and much easier to review.
Implementation
DiffPresetDialog.<br>.Test plan