New version v2.3.6
This commit is contained in:
@@ -38,7 +38,7 @@ struct AgentSkillsView: View {
|
||||
@Bindable private var settings = SettingsService.shared
|
||||
|
||||
@State private var editContext: SkillEditContext? = nil
|
||||
@State private var statusMessage: String? = nil
|
||||
@State private var statusMessage: LocalizedStringKey? = nil
|
||||
|
||||
private var activeCount: Int { settings.agentSkills.filter { $0.isActive }.count }
|
||||
|
||||
@@ -166,7 +166,7 @@ struct AgentSkillsView: View {
|
||||
if importMarkdown(url) { imported += 1 }
|
||||
}
|
||||
}
|
||||
if imported > 0 { show("Imported \(imported) skill\(imported == 1 ? "" : "s")") }
|
||||
if imported > 0 { show("^[\(imported) skill](inflect: true) imported") }
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
@@ -256,7 +256,7 @@ struct AgentSkillsView: View {
|
||||
}
|
||||
exported += 1
|
||||
}
|
||||
show("Exported \(exported) skill\(exported == 1 ? "" : "s") to Downloads")
|
||||
show("^[\(exported) skill](inflect: true) exported to Downloads")
|
||||
}
|
||||
|
||||
private func exportOne(_ skill: AgentSkill) {
|
||||
@@ -335,7 +335,7 @@ struct AgentSkillsView: View {
|
||||
return ""
|
||||
}
|
||||
|
||||
private func show(_ text: String) {
|
||||
private func show(_ text: LocalizedStringKey) {
|
||||
statusMessage = text
|
||||
Task { try? await Task.sleep(for: .seconds(3)); statusMessage = nil }
|
||||
}
|
||||
@@ -380,7 +380,7 @@ private struct AgentSkillRow: View {
|
||||
|
||||
// File count badge
|
||||
if fileCount > 0 {
|
||||
Label("\(fileCount) file\(fileCount == 1 ? "" : "s")", systemImage: "doc")
|
||||
Label("^[\(fileCount) file](inflect: true)", systemImage: "doc")
|
||||
.font(.caption2).foregroundStyle(.secondary)
|
||||
.padding(.horizontal, 6).padding(.vertical, 3)
|
||||
.background(.blue.opacity(0.1), in: Capsule())
|
||||
@@ -411,7 +411,7 @@ struct AgentSkillsTabContent: View {
|
||||
@Bindable private var settings = SettingsService.shared
|
||||
|
||||
@State private var editContext: SkillEditContext? = nil
|
||||
@State private var statusMessage: String? = nil
|
||||
@State private var statusMessage: LocalizedStringKey? = nil
|
||||
|
||||
private var activeCount: Int { settings.agentSkills.filter { $0.isActive }.count }
|
||||
|
||||
@@ -431,7 +431,7 @@ struct AgentSkillsTabContent: View {
|
||||
.background(.purple.opacity(0.07), in: RoundedRectangle(cornerRadius: 8))
|
||||
|
||||
if activeCount > 0 {
|
||||
Label("\(activeCount) skill\(activeCount == 1 ? "" : "s") active — appended to every system prompt", systemImage: "checkmark.circle.fill")
|
||||
Label("^[\(activeCount) skill](inflect: true) active — appended to every system prompt", systemImage: "checkmark.circle.fill")
|
||||
.font(.caption).foregroundStyle(.green)
|
||||
}
|
||||
|
||||
@@ -516,7 +516,7 @@ struct AgentSkillsTabContent: View {
|
||||
if importMarkdown(url) { imported += 1 }
|
||||
}
|
||||
}
|
||||
if imported > 0 { show("Imported \(imported) skill\(imported == 1 ? "" : "s")") }
|
||||
if imported > 0 { show("^[\(imported) skill](inflect: true) imported") }
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
@@ -602,7 +602,7 @@ struct AgentSkillsTabContent: View {
|
||||
}
|
||||
exported += 1
|
||||
}
|
||||
show("Exported \(exported) skill\(exported == 1 ? "" : "s") to Downloads")
|
||||
show("^[\(exported) skill](inflect: true) exported to Downloads")
|
||||
}
|
||||
|
||||
private func exportOne(_ skill: AgentSkill) {
|
||||
@@ -671,7 +671,7 @@ struct AgentSkillsTabContent: View {
|
||||
return ""
|
||||
}
|
||||
|
||||
private func show(_ text: String) {
|
||||
private func show(_ text: LocalizedStringKey) {
|
||||
statusMessage = text
|
||||
Task { try? await Task.sleep(for: .seconds(3)); statusMessage = nil }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user