Skip to content

Commit 017f2de

Browse files
committed
2 parents 37a7116 + ef49e9a commit 017f2de

File tree

6 files changed

+44
-10
lines changed

6 files changed

+44
-10
lines changed

.DS_Store

6 KB
Binary file not shown.

Jamf Protect ULF Uploader.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@
296296
CODE_SIGN_ENTITLEMENTS = "Jamf Protect ULF Uploader/Jamf_Protect_ULF_Uploader.entitlements";
297297
CODE_SIGN_STYLE = Automatic;
298298
COMBINE_HIDPI_IMAGES = YES;
299-
CURRENT_PROJECT_VERSION = 43;
299+
CURRENT_PROJECT_VERSION = 44;
300300
DEVELOPMENT_ASSET_PATHS = "\"Jamf Protect ULF Uploader/Preview Content\"";
301-
DEVELOPMENT_TEAM = VR4GB7TBDP;
301+
DEVELOPMENT_TEAM = CLQKFNPCCP;
302302
ENABLE_HARDENED_RUNTIME = YES;
303303
ENABLE_PREVIEWS = YES;
304304
GENERATE_INFOPLIST_FILE = YES;
@@ -309,7 +309,7 @@
309309
"@executable_path/../Frameworks",
310310
);
311311
MACOSX_DEPLOYMENT_TARGET = 13.0;
312-
MARKETING_VERSION = 1.0;
312+
MARKETING_VERSION = 1.1;
313313
PRODUCT_BUNDLE_IDENTIFIER = "uk.co.mallion.jamf-protect-ulf-uploader";
314314
PRODUCT_NAME = "$(TARGET_NAME)";
315315
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -325,9 +325,9 @@
325325
CODE_SIGN_ENTITLEMENTS = "Jamf Protect ULF Uploader/Jamf_Protect_ULF_Uploader.entitlements";
326326
CODE_SIGN_STYLE = Automatic;
327327
COMBINE_HIDPI_IMAGES = YES;
328-
CURRENT_PROJECT_VERSION = 43;
328+
CURRENT_PROJECT_VERSION = 44;
329329
DEVELOPMENT_ASSET_PATHS = "\"Jamf Protect ULF Uploader/Preview Content\"";
330-
DEVELOPMENT_TEAM = VR4GB7TBDP;
330+
DEVELOPMENT_TEAM = CLQKFNPCCP;
331331
ENABLE_HARDENED_RUNTIME = YES;
332332
ENABLE_PREVIEWS = YES;
333333
GENERATE_INFOPLIST_FILE = YES;
@@ -338,7 +338,7 @@
338338
"@executable_path/../Frameworks",
339339
);
340340
MACOSX_DEPLOYMENT_TARGET = 13.0;
341-
MARKETING_VERSION = 1.0;
341+
MARKETING_VERSION = 1.1;
342342
PRODUCT_BUNDLE_IDENTIFIER = "uk.co.mallion.jamf-protect-ulf-uploader";
343343
PRODUCT_NAME = "$(TARGET_NAME)";
344344
SWIFT_EMIT_LOC_STRINGS = YES;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Jamf Protect ULF Uploader.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>

Jamf Protect ULF Uploader/ContentView.swift

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ struct ContentView: View {
3131
if searchTerm.isEmpty {
3232
return ulfilters.filter { _ in true }
3333
} else {
34-
return ulfilters.filter { $0.name.lowercased().contains(searchTerm.lowercased()) || $0.tagsDiplay.lowercased().contains(searchTerm.lowercased()) }
34+
return ulfilters.filter {
35+
$0.name.lowercased().contains(searchTerm.lowercased()) ||
36+
$0.description.lowercased().contains(searchTerm.lowercased()) ||
37+
$0.tagsDiplay.lowercased().contains(searchTerm.lowercased())
38+
}
3539
}
3640
}
3741

@@ -56,13 +60,28 @@ struct ContentView: View {
5660
))
5761
}
5862
.width(45)
59-
TableColumn("Filter Name", value: \.name)
60-
TableColumn("Tags" ,value: \.tagsDiplay)
63+
TableColumn("Filter Name") { logfilter in
64+
Text(logfilter.name)
65+
.lineLimit(nil)
66+
.fixedSize(horizontal: false, vertical: true)
67+
}
68+
.width(ideal: 200)
69+
TableColumn("Description") { logfilter in
70+
Text(logfilter.description)
71+
.lineLimit(nil) // Allow multiple lines
72+
.fixedSize(horizontal: false, vertical: true)
73+
}
74+
.width(ideal: 650)
75+
TableColumn("Tags") { logfilter in
76+
Text(logfilter.tagsDiplay)
77+
.lineLimit(nil) // Allow multiple lines
78+
.fixedSize(horizontal: false, vertical: true)
79+
}
6180
}
6281
.onChange(of: sortOrder) { newOrder in
6382
ulfilters.sort(using: newOrder)
6483
}
65-
.searchable(text: $searchTerm, prompt: "Name or tag")
84+
.searchable(text: $searchTerm, prompt: "Search in name, description or tag")
6685
HStack {
6786
Button("Fetch Filters") {
6887
Task {

Jamf Protect ULF Uploader/JamfProtectAPI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ mutation createFilter {
4747
createUnifiedLoggingFilter(
4848
input: {
4949
name: "\(ulfilter.name)"
50+
description: "\(ulfilter.description)"
5051
filter: "\(predicate)"
5152
enabled: \(enabled)
5253
tags: [\(tags)]

0 commit comments

Comments
 (0)