From a7bc4dcf5b47b462684df08baccd17a05a6d92d3 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sat, 9 Apr 2022 14:50:51 -0400 Subject: [PATCH] Add entry point for reporting logging! --- Clocker/Panel/ParentPanelController.swift | 4 ++++ Clocker/Preferences/About/AboutViewController.swift | 4 ++++ .../App Feedback/AppFeedbackWindowController.swift | 3 +++ 3 files changed, 11 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index bbb847d..535180c 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -1151,4 +1151,8 @@ extension ParentPanelController: AppFeedbackWindowControllerDelegate { func appFeedbackWindowWillClose() { feedbackWindow = nil } + + func appFeedbackWindoEntryPoint() -> String { + return "parent_panel_controller" + } } diff --git a/Clocker/Preferences/About/AboutViewController.swift b/Clocker/Preferences/About/AboutViewController.swift index bd2e01f..afc91fb 100644 --- a/Clocker/Preferences/About/AboutViewController.swift +++ b/Clocker/Preferences/About/AboutViewController.swift @@ -157,4 +157,8 @@ extension AboutViewController: AppFeedbackWindowControllerDelegate { func appFeedbackWindowWillClose() { feedbackWindow = nil } + + func appFeedbackWindoEntryPoint() -> String { + return "about_view_controller" + } } diff --git a/Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift b/Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift index 88ddc8b..88e1640 100644 --- a/Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift +++ b/Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift @@ -7,6 +7,7 @@ import FirebaseDatabase protocol AppFeedbackWindowControllerDelegate: AnyObject { func appFeedbackWindowWillClose() + func appFeedbackWindoEntryPoint() -> String } extension NSNib.Name { @@ -31,6 +32,7 @@ enum AppFeedbackConstants { static let CLAppFeedbackDateProperty = "date" static let CLAppFeedbackUserPreferences = "Prefs" static let CLCaliforniaTimezoneIdentifier = "America/Los_Angeles" + static let CLFeedbackEntryPoint = "entry_point" } class AppFeedbackWindowController: NSWindowController { @@ -208,6 +210,7 @@ class AppFeedbackWindowController: NSWindowController { AppFeedbackConstants.CLClockerVersion: versionInfo, AppFeedbackConstants.CLAppFeedbackDateProperty: todaysDate(), AppFeedbackConstants.CLAppFeedbackUserPreferences: generateUserPreferences(), + AppFeedbackConstants.CLFeedbackEntryPoint: appFeedbackWindowDelegate?.appFeedbackWindoEntryPoint() ?? "Error" ] }