Launch analytics events, changelog, better filter styles

This commit is contained in:
Gregory Schier
2024-01-18 14:42:02 -08:00
parent b800f00b7e
commit d932c19513
22 changed files with 631 additions and 275 deletions

View File

@@ -3,13 +3,24 @@ import { invoke } from '@tauri-apps/api';
export function trackEvent(
resource:
| 'App'
| 'Sidebar'
| 'Workspace'
| 'Environment'
| 'Folder'
| 'HttpRequest'
| 'HttpResponse'
| 'KeyValue',
action: 'Launch' | 'Create' | 'Update' | 'Delete' | 'DeleteMany' | 'Send' | 'Duplicate',
action:
| 'Toggle'
| 'Show'
| 'Hide'
| 'Launch'
| 'Create'
| 'Update'
| 'Delete'
| 'DeleteMany'
| 'Send'
| 'Duplicate',
attributes: Record<string, string | number> = {},
) {
invoke('track_event', {

View File

@@ -21,6 +21,7 @@ export interface Settings extends BaseModel {
readonly model: 'settings';
theme: string;
appearance: string;
updateChannel: string;
}
export interface Workspace extends BaseModel {