Update app descriptions and friendly names

And remove redundant friendly name and descriptions from Apps.json
This commit is contained in:
Jeffrey
2026-10-26 00:50:52 +01:00
parent 72ab1f348c
commit 3ecb01efa0
17 changed files with 1290 additions and 1587 deletions
+6
View File
@@ -75,6 +75,12 @@ Describe 'Shipped language catalogs: <LanguageCode>' -ForEach $languageCases {
}
}
It 'includes every app name and description without relying on English fallback' {
foreach ($key in ($baselineValues.Keys | Where-Object { $_.StartsWith('Apps.') })) {
$translationValues.ContainsKey($key) | Should -BeTrue -Because "$LanguageCode/$key must be translated"
}
}
It 'preserves UTF-8 UI and app names when loading the catalogs' {
$lang.Chrome.SettingsTitle | Should -BeExactly $catalogs.Chrome.SettingsTitle
$lang.Apps.'Microsoft.WindowsCalculator'.FriendlyName |
+1 -1
View File
@@ -37,7 +37,7 @@ Describe 'Invoke-AppDetailsFromJsonAsync' {
$result.Count | Should -Be @($appCatalog.Apps).Count
$clipchamp = $result | Where-Object { $_.AppId -contains 'Clipchamp.Clipchamp' }
$clipchamp.FriendlyName | Should -Be 'Microsoft Clipchamp'
$clipchamp.Description | Should -Be 'Video editor from Microsoft'
$clipchamp.Description | Should -Be 'Create and edit videos with trimming, captions, and audio'
}
It 'does not return null entries when OnlyInstalled filters the runspace results' {
+13 -1
View File
@@ -189,7 +189,7 @@ Describe 'Import-AppDetailsFromJson' {
$apps | Should -HaveCount 1
$apps[0].FriendlyName | Should -Be 'Microsoft Clipchamp'
$apps[0].Description | Should -Be 'Video editor from Microsoft'
$apps[0].Description | Should -Be 'Create and edit videos with trimming, captions, and audio'
$apps[0].DisplayName | Should -Be 'Microsoft Clipchamp (Clipchamp.Clipchamp)'
}
@@ -215,6 +215,18 @@ Describe 'Import-AppDetailsFromJson' {
Should -Invoke Get-AppxPackage -Times 1 -Exactly
}
It 'detects the current PC Manager package while retaining its legacy ID' {
$script:AppsListFilePath = Join-Path $PSScriptRoot '..\Config\Apps.json'
Mock Get-AppxPackage { [PSCustomObject]@{ Name = 'Microsoft.MicrosoftPCManager' } }
Mock Test-AppInWingetList { $false }
$apps = @(Import-AppDetailsFromJson -OnlyInstalled -InstalledList @())
$apps | Should -HaveCount 1
$apps[0].FriendlyName | Should -Be 'Microsoft PC Manager'
$apps[0].AppId | Should -Be @('Microsoft.PCManager', 'Microsoft.MicrosoftPCManager')
}
It 'loads presets and preserves their ID arrays' {
$presets = @(Import-AppPresetsFromJson)