mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 22:57:59 -04:00
chore: new segment event (invite) [INS-3938] (#7506)
This commit is contained in:
@@ -6,6 +6,7 @@ export enum SegmentEvent {
|
||||
documentCreate = 'Document Created',
|
||||
mockCreate = 'Mock Created',
|
||||
loginSuccess = 'Login Success',
|
||||
inviteTrigger = 'Invite Triggered From App',
|
||||
exportAllCollections = 'Exported All Collections',
|
||||
kongConnected = 'Kong Connected',
|
||||
kongSync = 'Kong Synced',
|
||||
|
||||
@@ -37,6 +37,7 @@ import { VCSInstance } from '../../sync/vcs/insomnia-sync';
|
||||
import { migrateProjectsIntoOrganization, shouldMigrateProjectUnderOrganization } from '../../sync/vcs/migrate-projects-into-organization';
|
||||
import { insomniaFetch } from '../../ui/insomniaFetch';
|
||||
import { invariant } from '../../utils/invariant';
|
||||
import { SegmentEvent } from '../analytics';
|
||||
import { getLoginUrl } from '../auth-session-provider';
|
||||
import { Avatar } from '../components/avatar';
|
||||
import { CommandPalette } from '../components/command-palette';
|
||||
@@ -477,6 +478,7 @@ const OrganizationRoute = () => {
|
||||
className="px-4 text-[--color-font-surprise] bg-opacity-100 bg-[rgba(var(--color-surprise-rgb),var(--tw-bg-opacity))] py-2 h-full font-semibold border border-solid border-[--hl-md] flex items-center justify-center gap-2 aria-pressed:opacity-80 rounded-md hover:bg-opacity-80 focus:ring-inset ring-1 ring-transparent focus:ring-[--hl-md] transition-all text-sm"
|
||||
onPress={() => {
|
||||
window.main.openInBrowser(`${getAppWebsiteBaseURL()}/app/dashboard/organizations/${organizationId}/collaborators`);
|
||||
window.main.trackSegmentEvent({ event: SegmentEvent.inviteTrigger });
|
||||
}}
|
||||
>
|
||||
<Icon icon="user-plus" />
|
||||
|
||||
Reference in New Issue
Block a user