From 28be00ea53666fd5500a702a3c187c0e27dd90ad Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 27 Jun 2026 16:26:30 +0800
Subject: [PATCH] Simplify SmartStart default categories
---
src/Apptag/SmartCategorization/SmartCategory.swift | 56 +++++++++++++++++++++++++-------------------------------
1 files changed, 25 insertions(+), 31 deletions(-)
diff --git a/src/Apptag/SmartCategorization/SmartCategory.swift b/src/Apptag/SmartCategorization/SmartCategory.swift
index b1b7093..dac8b71 100644
--- a/src/Apptag/SmartCategorization/SmartCategory.swift
+++ b/src/Apptag/SmartCategorization/SmartCategory.swift
@@ -66,7 +66,7 @@
case .meeting:
return "Meetings"
case .office:
- return "Office"
+ return "Office & Docs"
case .pdf:
return "PDF"
case .fileManagement:
@@ -76,7 +76,7 @@
case .productivity:
return "Productivity"
case .development:
- return "Development"
+ return "Coding"
case .design:
return "Design"
case .aiTools:
@@ -110,13 +110,13 @@
case .audio:
return "Audio"
case .picturePhoto:
- return "Pictures & Photos"
+ return "Photos"
case .utilities:
return "Utilities"
case .system:
return "System Apps"
case .systemEnhancement:
- return "System Enhancements"
+ return "System Tools"
case .systemMaintenance:
return "System Maintenance"
case .windowManagement:
@@ -248,6 +248,24 @@
return 0
}
}
+
+ var smartStartDefaultCategoryID: SmartCategoryID {
+ switch self {
+ case .pdf, .productivity, .writing:
+ return .office
+ case .fileManagement, .transfer, .utilities, .system, .systemMaintenance,
+ .windowManagement, .deviceManagement, .inputTools, .networkTools, .security:
+ return .systemEnhancement
+ case .apiTools, .databaseTools, .devops, .ide, .runtimeSDK, .terminalTools, .automation:
+ return .development
+ case .font, .uiPrototyping, .threeDCAD, .diagramming:
+ return .design
+ case .media, .video, .audio, .game:
+ return .entertainment
+ default:
+ return self
+ }
+ }
}
struct SmartCategoryDefinition: Codable, Hashable, Identifiable {
@@ -277,38 +295,14 @@
.notes,
.meeting,
.office,
- .pdf,
- .fileManagement,
- .transfer,
+ .systemEnhancement,
.aiTools,
- .apiTools,
- .databaseTools,
- .devops,
- .ide,
- .runtimeSDK,
- .terminalTools,
- .font,
- .uiPrototyping,
- .threeDCAD,
- .diagramming,
- .writing,
- .media,
- .video,
- .audio,
+ .development,
+ .design,
.picturePhoto,
- .utilities,
- .system,
- .systemMaintenance,
- .windowManagement,
- .deviceManagement,
- .inputTools,
- .automation,
- .networkTools,
.entertainment,
- .game,
.finance,
.education,
- .security,
.other
]
--
Gitblit v1.9.3