Maintaining the Currency of Recently Added and Updated Samples #1727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses the issue of outdated samples in the "Recently Added" and "Recently Updated" sections of the homepage, the only change is set the recently updated and added samples in
ControlInfoData.json
Motivation and Context
How Has This Been Tested?
Manually Tested
How Were the Samples Selected?
I hope this approach will be adopted and implemented with every new release.
For Latest Updated Samples:
To determine the latest updated samples, I created a PowerShell script that identifies files that have been modified based on their latest commit status. The script works by retrieving the last commit date and the status of each file, filtering out only those that have been modified. The resulting list is then sorted by the commit date to ensure the most recent updates are displayed.
Based on the results of this script, the latest 15 updated samples are:
TreeView
,ListView
,TeachingTip
,TitleBar
,ScrollView
,FilePicker
,CompactSizing
,ScratchPad
,CaptureElementPreview
,SplitView
,NumberBox
,TabView
,MenuFlyout
,XamlUICommand
,AutoSuggestBox
.For Latest Added Samples:
To identify the latest added samples, I created a PowerShell script that looks for the first commit where a file was added. The script checks for files that were added to the repository and sorts them by their addition date. This provides a list of the most recently introduced samples.
Based on the results of this script, the latest 10 added samples are:
Popup
,ScratchPad
,MapControl
,SelectorBar
,CaptureElementPreview
,AnnotatedScrollBar
,ItemsView
,ScrollView
,InfoBadge
,Viewbox
.Screenshots:
Home page
Scripts results
Types of changes