refactor: enhance SidebarUserProfile component with download tracking and improved button styling

This commit is contained in:
Anish Sarkar 2026-05-14 22:53:41 +05:30
parent c77babf39b
commit 4083d33b5c
4 changed files with 49 additions and 4 deletions

View file

@ -401,6 +401,16 @@ export function trackSourcesTabViewed(searchSpaceId: number, tab: string) {
});
}
export function trackDesktopDownloadClicked(options: {
os: string;
placement: "sidebar_collapsed" | "sidebar_expanded";
}) {
safeCapture("desktop_download_clicked", {
os: options.os,
placement: options.placement,
});
}
// ============================================
// SEARCH SPACE INVITE EVENTS
// ============================================