Browse Source

Add entry point for reporting logging!

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
a7bc4dcf5b
  1. 4
      Clocker/Panel/ParentPanelController.swift
  2. 4
      Clocker/Preferences/About/AboutViewController.swift
  3. 3
      Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

4
Clocker/Panel/ParentPanelController.swift

@ -1151,4 +1151,8 @@ extension ParentPanelController: AppFeedbackWindowControllerDelegate {
func appFeedbackWindowWillClose() { func appFeedbackWindowWillClose() {
feedbackWindow = nil feedbackWindow = nil
} }
func appFeedbackWindoEntryPoint() -> String {
return "parent_panel_controller"
}
} }

4
Clocker/Preferences/About/AboutViewController.swift

@ -157,4 +157,8 @@ extension AboutViewController: AppFeedbackWindowControllerDelegate {
func appFeedbackWindowWillClose() { func appFeedbackWindowWillClose() {
feedbackWindow = nil feedbackWindow = nil
} }
func appFeedbackWindoEntryPoint() -> String {
return "about_view_controller"
}
} }

3
Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

@ -7,6 +7,7 @@ import FirebaseDatabase
protocol AppFeedbackWindowControllerDelegate: AnyObject { protocol AppFeedbackWindowControllerDelegate: AnyObject {
func appFeedbackWindowWillClose() func appFeedbackWindowWillClose()
func appFeedbackWindoEntryPoint() -> String
} }
extension NSNib.Name { extension NSNib.Name {
@ -31,6 +32,7 @@ enum AppFeedbackConstants {
static let CLAppFeedbackDateProperty = "date" static let CLAppFeedbackDateProperty = "date"
static let CLAppFeedbackUserPreferences = "Prefs" static let CLAppFeedbackUserPreferences = "Prefs"
static let CLCaliforniaTimezoneIdentifier = "America/Los_Angeles" static let CLCaliforniaTimezoneIdentifier = "America/Los_Angeles"
static let CLFeedbackEntryPoint = "entry_point"
} }
class AppFeedbackWindowController: NSWindowController { class AppFeedbackWindowController: NSWindowController {
@ -208,6 +210,7 @@ class AppFeedbackWindowController: NSWindowController {
AppFeedbackConstants.CLClockerVersion: versionInfo, AppFeedbackConstants.CLClockerVersion: versionInfo,
AppFeedbackConstants.CLAppFeedbackDateProperty: todaysDate(), AppFeedbackConstants.CLAppFeedbackDateProperty: todaysDate(),
AppFeedbackConstants.CLAppFeedbackUserPreferences: generateUserPreferences(), AppFeedbackConstants.CLAppFeedbackUserPreferences: generateUserPreferences(),
AppFeedbackConstants.CLFeedbackEntryPoint: appFeedbackWindowDelegate?.appFeedbackWindoEntryPoint() ?? "Error"
] ]
} }

Loading…
Cancel
Save