From 958ed75a6533fa571a5201542f0afc525ed810fa Mon Sep 17 00:00:00 2001
From: "coderabbitai[bot]"
<136622811+coderabbitai[bot]@users.noreply.github.com>
Date: Mon, 16 Mar 2026 20:29:47 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Implement?=
=?UTF-8?q?=20requested=20code=20changes?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Models/Workspace/ContentTypePriority.cs | 23 ++++++++++--
GenHub/GenHub/Common/Views/MainView.axaml | 35 +++++++++++++++----
.../Content/Services/ContentStorageService.cs | 26 ++++++++++++--
3 files changed, 72 insertions(+), 12 deletions(-)
diff --git a/GenHub/GenHub.Core/Models/Workspace/ContentTypePriority.cs b/GenHub/GenHub.Core/Models/Workspace/ContentTypePriority.cs
index 88dd778ad..79570a50e 100644
--- a/GenHub/GenHub.Core/Models/Workspace/ContentTypePriority.cs
+++ b/GenHub/GenHub.Core/Models/Workspace/ContentTypePriority.cs
@@ -1,3 +1,4 @@
+using System;
using GenHub.Core.Models.Enums;
namespace GenHub.Core.Models.Workspace;
@@ -22,8 +23,26 @@ public static int GetPriority(ContentType contentType)
ContentType.Patch => 90, // Patches override base content
ContentType.GameClient => 50, // Community executables override official
ContentType.Addon => 40, // Addons (maps, etc.)
- ContentType.GameInstallation => 10, // Lowest: Base game files
- _ => 0, // Unknown/undefined types
+ ContentType.MapPack => 40, // Map collections (same tier as Addon)
+ ContentType.Mission => 40, // Story missions (same tier as Addon)
+ ContentType.Map => 40, // Individual maps (same tier as Addon)
+ ContentType.LanguagePack => 30, // Localization packs
+ ContentType.Skin => 30, // UI/visual customizations
+ ContentType.Video => 20, // Video content
+ ContentType.Replay => 20, // Replay files
+ ContentType.Screensaver => 20, // Screensaver files
+ ContentType.Executable => 20, // Standalone executables
+ ContentType.ModdingTool => 20, // Modding/mapping tools
+ ContentType.ContentBundle => 0, // Meta: collection of other content
+ ContentType.PublisherReferral => 0, // Meta: link to publisher content
+ ContentType.ContentReferral => 0, // Meta: link to specific content
+ ContentType.UnknownContentType => 0, // Unknown: lowest priority
+ ContentType.GameInstallation => 10, // Lowest physical: Base game files
+ _ => throw new ArgumentOutOfRangeException(
+ nameof(contentType),
+ contentType,
+ $"ContentType '{contentType}' is not mapped in {nameof(ContentTypePriority)}. " +
+ "Add an explicit priority entry for this type.")
};
}
diff --git a/GenHub/GenHub/Common/Views/MainView.axaml b/GenHub/GenHub/Common/Views/MainView.axaml
index 7866c0e14..53521f23c 100644
--- a/GenHub/GenHub/Common/Views/MainView.axaml
+++ b/GenHub/GenHub/Common/Views/MainView.axaml
@@ -93,6 +93,22 @@
+
+
+