瀏覽代碼

chore(s8): retire unused sidebar flag from dashboard seed

YY968XX 1 月之前
父節點
當前提交
1708f79c0a
共有 1 個文件被更改,包括 8 次插入7 次删除
  1. 8 7
      server/Plugins/Admin.NET.Plugin.AiDOP/SeedData/S8DashboardCellConfigSeedData.cs

+ 8 - 7
server/Plugins/Admin.NET.Plugin.AiDOP/SeedData/S8DashboardCellConfigSeedData.cs

@@ -4,8 +4,9 @@ namespace Admin.NET.Plugin.AiDOP;
 /// S8 大屏卡片配置基线种子(灌入 ado_s8_dashboard_cell_config)。
 /// S8 大屏卡片配置基线种子(灌入 ado_s8_dashboard_cell_config)。
 /// 全局基线:tenant_id=0 / factory_id=0;覆盖 4 个大屏的全部稳定锚点卡片。
 /// 全局基线:tenant_id=0 / factory_id=0;覆盖 4 个大屏的全部稳定锚点卡片。
 /// 依赖 S8ExceptionTypeSeedData:EXCEPTION_TYPE 绑定的 exception_type_code 必须先存在。
 /// 依赖 S8ExceptionTypeSeedData:EXCEPTION_TYPE 绑定的 exception_type_code 必须先存在。
-/// G-09 一期:补齐 UI 配置字段(icon/layout_area/display_mode/show_in_sidebar/remark),
+/// G-09 一期:补齐 UI 配置字段(icon/layout_area/display_mode/remark),
 /// 让新装环境跑 SeedData 即可获得完整渲染配置;现有环境通过手工 INSERT SQL 灌入同样数据。
 /// 让新装环境跑 SeedData 即可获得完整渲染配置;现有环境通过手工 INSERT SQL 灌入同样数据。
+/// G-09 三期 F-CLEAN-1:show_in_sidebar 当前不参与 cell→layout 派生,SeedData 不再写入;Entity/DB 列保留。
 /// </summary>
 /// </summary>
 [IncreSeed]
 [IncreSeed]
 public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.AdoS8DashboardCellConfig>
 public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.AdoS8DashboardCellConfig>
@@ -140,11 +141,14 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
         return list;
         return list;
     }
     }
 
 
+    // F-CLEAN-1:show_in_sidebar 在 Phase 2/3 当前模型下不参与 cell→layout 派生
+    // (前端 effectiveSidebarTypes 仅按 layout_area+display_mode 过滤,DTO 也不映射该字段),
+    // 因此 SeedData 不再写入。Entity/DB 列保留以避免 schema 破坏,待未来重新定义语义或下版本统一 DROP。
     private static Entity.S8.AdoS8DashboardCellConfig Custom(
     private static Entity.S8.AdoS8DashboardCellConfig Custom(
         long id, string pageCode, string cellCode, string cellTitle,
         long id, string pageCode, string cellCode, string cellTitle,
         string statMetric, string timeWindow, int sortNo, DateTime ct,
         string statMetric, string timeWindow, int sortNo, DateTime ct,
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
-        bool showInSidebar = false, string? remark = null) =>
+        string? remark = null) =>
         new()
         new()
         {
         {
             Id = id,
             Id = id,
@@ -165,7 +169,6 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
             Icon = icon,
             Icon = icon,
             LayoutArea = layoutArea,
             LayoutArea = layoutArea,
             DisplayMode = displayMode,
             DisplayMode = displayMode,
-            ShowInSidebar = showInSidebar,
             Remark = remark,
             Remark = remark,
             CreatedAt = ct,
             CreatedAt = ct,
         };
         };
@@ -174,7 +177,7 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
         long id, string pageCode, string cellCode, string cellTitle,
         long id, string pageCode, string cellCode, string cellTitle,
         string exceptionTypeCode, string statMetric, string timeWindow, int sortNo, DateTime ct,
         string exceptionTypeCode, string statMetric, string timeWindow, int sortNo, DateTime ct,
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
-        bool showInSidebar = false, string? remark = null) =>
+        string? remark = null) =>
         new()
         new()
         {
         {
             Id = id,
             Id = id,
@@ -195,7 +198,6 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
             Icon = icon,
             Icon = icon,
             LayoutArea = layoutArea,
             LayoutArea = layoutArea,
             DisplayMode = displayMode,
             DisplayMode = displayMode,
-            ShowInSidebar = showInSidebar,
             Remark = remark,
             Remark = remark,
             CreatedAt = ct,
             CreatedAt = ct,
         };
         };
@@ -205,7 +207,7 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
         string aggregateScope, string statMetric, string timeWindow, string deptGroupBy,
         string aggregateScope, string statMetric, string timeWindow, string deptGroupBy,
         int sortNo, DateTime ct,
         int sortNo, DateTime ct,
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
         string? icon = null, string layoutArea = "ANALYSIS", string displayMode = "CATEGORY_CARD",
-        bool showInSidebar = false, string? remark = null) =>
+        string? remark = null) =>
         new()
         new()
         {
         {
             Id = id,
             Id = id,
@@ -226,7 +228,6 @@ public class S8DashboardCellConfigSeedData : ISqlSugarEntitySeedData<Entity.S8.A
             Icon = icon,
             Icon = icon,
             LayoutArea = layoutArea,
             LayoutArea = layoutArea,
             DisplayMode = displayMode,
             DisplayMode = displayMode,
-            ShowInSidebar = showInSidebar,
             Remark = remark,
             Remark = remark,
             CreatedAt = ct,
             CreatedAt = ct,
         };
         };