@@ -19,9 +19,12 @@ param(
1919
2020# Prohibited UIDs (exact match, case-insensitive by default)
2121$ProhibitedUids = @ (
22- # TODO CARLOS: AddRemainingProfiles should probably be allowed
23- ' NewTabMenu_AddRemainingProfiles' ,
24- ' Extensions_Scope'
22+ ' Extensions_Scope' ,
23+ ' Profile_MissingFontFaces' ,
24+ ' Profile_ProportionalFontFaces' ,
25+ ' ColorScheme_InboxSchemeDuplicate' ,
26+ ' ColorScheme_ColorsHeader' ,
27+ ' ColorScheme_Rename'
2528)
2629
2730# Prohibited XAML files
@@ -130,7 +133,7 @@ Get-ChildItem -Path $SourceDir -Recurse -Filter *.xaml | ForEach-Object {
130133 HelpTextUid = " std::nullopt"
131134 HelpTextLocalized = " std::nullopt"
132135 ParentPage = $pageClass
133- NavigationParam = " winrt::box_value(hstring{L`" Appearance_Nav `" })"
136+ NavigationParam = " winrt::box_value(hstring{L`" GlobalAppearance_Nav `" })"
134137 SubPage = " BreadcrumbSubPage::None"
135138 ElementName = ' L""'
136139 File = $filename
@@ -234,6 +237,46 @@ Get-ChildItem -Path $SourceDir -Recurse -Filter *.xaml | ForEach-Object {
234237 File = $filename
235238 }
236239 }
240+ elseif ($filename -eq ' Profiles_Base.xaml' )
241+ {
242+ $entries += [pscustomobject ]@ {
243+ DisplayTextUid = " L`" Nav_ProfileDefaults/Content`" "
244+ DisplayTextLocalized = " RS_(L`" Nav_ProfileDefaults/Content`" )"
245+ HelpTextUid = " std::nullopt"
246+ HelpTextLocalized = " std::nullopt"
247+ ParentPage = $pageClass
248+ NavigationParam = " winrt::box_value(hstring{L`" GlobalProfile_Nav`" })"
249+ SubPage = " BreadcrumbSubPage::None"
250+ ElementName = ' L""'
251+ File = $filename
252+ }
253+ }
254+ elseif ($filename -eq ' AddProfile.xaml' )
255+ {
256+ $entries += [pscustomobject ]@ {
257+ DisplayTextUid = " L`" Nav_AddNewProfile/Content`" "
258+ DisplayTextLocalized = " RS_(L`" Nav_AddNewProfile/Content`" )"
259+ HelpTextUid = " std::nullopt"
260+ HelpTextLocalized = " std::nullopt"
261+ ParentPage = $pageClass
262+ NavigationParam = " winrt::box_value(hstring{L`" AddProfile`" })"
263+ SubPage = " BreadcrumbSubPage::None"
264+ ElementName = ' L""'
265+ File = $filename
266+ }
267+
268+ $entries += [pscustomobject ]@ {
269+ DisplayTextUid = " L`" AddProfile_AddNewTextBlock/Text`" "
270+ DisplayTextLocalized = " RS_(L`" AddProfile_AddNewTextBlock/Text`" )"
271+ HelpTextUid = " std::nullopt"
272+ HelpTextLocalized = " std::nullopt"
273+ ParentPage = $pageClass
274+ NavigationParam = " winrt::box_value(hstring{L`" AddProfile`" })"
275+ SubPage = " BreadcrumbSubPage::None"
276+ ElementName = ' L"AddNewButton"'
277+ File = $filename
278+ }
279+ }
237280
238281 # Find all local:SettingContainer start tags
239282 $pattern = ' <local:SettingContainer\b([^>/]*)(/?>)'
@@ -313,17 +356,8 @@ Get-ChildItem -Path $SourceDir -Recurse -Filter *.xaml | ForEach-Object {
313356 }
314357 elseif ($pageClass -match ' Editor::Extensions' )
315358 {
316- # TODO CARLOS: There's actually no UIDs for extension view! But I want the page to still exist in the index at runtime for each extension.
317- # if ($uid -match 'NewTabMenu_CurrentFolder')
318- # {
319- # $navigationParam = 'vm'
320- # $subPage = 'BreadcrumbSubPage::Extensions_Extension'
321- # }
322- # else
323- # {
324359 $navigationParam = ' Extensions_Nav'
325360 $subPage = ' BreadcrumbSubPage::None'
326- # }
327361 }
328362 elseif ($pageClass -match ' Editor::Profiles_Base' -or
329363 $pageClass -match ' Editor::Profiles_Appearance' -or
@@ -337,6 +371,13 @@ Get-ChildItem -Path $SourceDir -Recurse -Filter *.xaml | ForEach-Object {
337371 {
338372 # populate with color scheme name at runtime
339373 $navigationParam = ' nullptr'
374+
375+ # TODO CARLOS: Not sure if I need this. Turns out the issue is that EditColorScheme doesn't have a BringIntoViewWhenLoaded()!
376+ if ($uid -match ' ColorScheme_SetAsDefault' )
377+ {
378+ # SetAsDefault should focus SetAsDefaultButton, not wrapping SetAsDefaultContainer
379+ $name = ' SetAsDefaultButton'
380+ }
340381 }
341382 elseif ($pageClass -match ' Editor::GlobalAppearance' )
342383 {
0 commit comments