-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVPROD-8371 Rename all spruce analytics events (#242)
- Loading branch information
Showing
127 changed files
with
579 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { useAnalyticsRoot } from "analytics/useAnalyticsRoot"; | ||
|
||
type Action = { name: "2024 Boilerplate!" }; | ||
type Action = { name: "Used 2024 Boilerplate!" }; | ||
|
||
export const useAprilFoolsAnalytics = () => | ||
useAnalyticsRoot<Action>("April Fools"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
apps/spruce/src/analytics/hostsTable/useHostsTableAnalytics.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { useAnalyticsRoot } from "analytics/useAnalyticsRoot"; | ||
|
||
type Action = | ||
| { name: "Filter Hosts"; filterBy: string | string[] } | ||
| { name: "Sort Hosts" } | ||
| { name: "Change Page Size" } | ||
| { name: "Restart Jasper" } | ||
| { name: "Reprovision Host" } | ||
| { name: "Update Status"; status: string }; | ||
| { name: "Filtered hosts table"; filterBy: string | string[] } | ||
| { name: "Sorted hosts table" } | ||
| { name: "Changed page size"; pageSize: number } | ||
| { name: "Clicked restart jasper button" } | ||
| { name: "Clicked reprovision host button" } | ||
| { name: "Clicked update host status button"; status: string }; | ||
|
||
export const useHostsTableAnalytics = (isHostPage?: boolean) => | ||
useAnalyticsRoot<Action>(isHostPage ? "HostPage" : "HostsTable"); | ||
useAnalyticsRoot<Action>(isHostPage ? "HostPage" : "AllHostsPage"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import { useAnalyticsRoot } from "analytics/useAnalyticsRoot"; | ||
|
||
type Action = | ||
| { name: "Click Admin Link" } | ||
| { name: "Click Legacy UI Link" } | ||
| { name: "Click Logo Link" } | ||
| { name: "Click Waterfall Link" } | ||
| { name: "Click Legacy Waterfall Link" } | ||
| { name: "Click My Patches Link" } | ||
| { name: "Click My Hosts Link" } | ||
| { name: "Click All Hosts Link" } | ||
| { name: "Click Distros Link" } | ||
| { name: "Click Projects Link" } | ||
| { name: "Click Project Patches Link" } | ||
| { name: "Click EVG Wiki Link" } | ||
| { name: "Click Preferences Link" } | ||
| { name: "Click Notifications Link" } | ||
| { name: "Click Task Queue Link" } | ||
| { name: "Click Commit Queue Link" }; | ||
| { name: "Clicked admin settings link" } | ||
| { name: "Clicked legacy UI link" } | ||
| { name: "Clicked logo link" } | ||
| { name: "Clicked waterfall link" } | ||
| { name: "Clicked my patches link" } | ||
| { name: "Clicked my hosts link" } | ||
| { name: "Clicked all hosts link" } | ||
| { name: "Clicked distro settings link" } | ||
| { name: "Clicked project settings link" } | ||
| { name: "Clicked project patches link" } | ||
| { name: "Clicked EVG wiki link" } | ||
| { name: "Clicked preferences link" } | ||
| { name: "Clicked notifications link" } | ||
| { name: "Clicked task queue link" } | ||
| { name: "Clicked commit queue link" }; | ||
|
||
export const useNavbarAnalytics = () => useAnalyticsRoot<Action>("Navbar"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
apps/spruce/src/analytics/patches/useUserPatchesAnalytics.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { useAnalyticsRoot } from "analytics/useAnalyticsRoot"; | ||
|
||
type Action = | ||
| { name: "Change Page Size" } | ||
| { name: "Click Patch Link" } | ||
| { name: "Click Variant Icon"; variantIconStatus: string } | ||
| { name: "Filter Commit Queue" } | ||
| { name: "Filter Hidden"; includeHidden: boolean } | ||
| { name: "Filter Patches"; filterBy: string }; | ||
| { name: "Changed page size" } | ||
| { name: "Clicked patch link" } | ||
| { | ||
name: "Filtered for patches"; | ||
filterBy: string; | ||
includeHidden: boolean; | ||
includeCommitQueue: boolean; | ||
}; | ||
|
||
export const useUserPatchesAnalytics = () => | ||
useAnalyticsRoot<Action>("UserPatches"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.