@atlaskit/teams-app-internal-analytics 1.26.0 → 1.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/teams-app-internal-analytics
2
2
 
3
+ ## 1.27.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2c34be51e4045`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c34be51e4045) -
8
+ Remove code related to the teams_app_auto_container_create_universal_create experiment (we are not
9
+ going ahead with this)
10
+
11
+ ## 1.27.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`5f4ff6a2dd06d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f4ff6a2dd06d) -
16
+ Added analytics events for team hierarchy tree
17
+
3
18
  ## 1.26.0
4
19
 
5
20
  ### Minor Changes
@@ -203,14 +203,6 @@ events:
203
203
  description: fired when the member picker error is triggered
204
204
  attributes:
205
205
  <<: *PackageMetaDataContext
206
- - requestedContainers requested:
207
- type: track
208
- description: fired when the teams containers are requested
209
- attributes:
210
- <<: *PackageMetaDataContext
211
- containers:
212
- type: object
213
- description: the containers that are requested
214
206
  - teamCreateDialog viewed:
215
207
  type: screen
216
208
  description: fired when the team create dialog is viewed
@@ -3307,30 +3299,6 @@ events:
3307
3299
  error:
3308
3300
  type: string
3309
3301
  description: The error that was thrown
3310
- - requestedContainers tryAgain:
3311
- type: track
3312
- description: Fired when the user tries to add requested containers again
3313
- attributes:
3314
- containers:
3315
- type: []
3316
- description: The containers that the user tried to add
3317
- teamId:
3318
- type: string
3319
- description: The id of the team
3320
- - requestedContainers failed:
3321
- type: track
3322
- description: Fired when the user fails to add requested containers
3323
- attributes:
3324
- containers:
3325
- type: []
3326
- description: The containers that the user tried to add
3327
- teamId:
3328
- type: string
3329
- description: The id of the team
3330
- tryAgainCount:
3331
- required: false
3332
- type: number
3333
- description: The number of times the user has tried to add requested containers
3334
3302
  - starred succeeded (team):
3335
3303
  type: track
3336
3304
  description: fired when a team is starred or unstarred succeeds
@@ -3364,6 +3332,77 @@ events:
3364
3332
  type: string
3365
3333
  required: false
3366
3334
  description: Specific type of error encountered
3335
+ - teamProfileHierarchyTab viewed:
3336
+ type: screen
3337
+ description: fired when the team profile hierarchy tab is viewed
3338
+ attributes:
3339
+ teamId:
3340
+ type: string
3341
+ description: the id of the team
3342
+ - teamHierarchyTreeShowMoreChildren clicked:
3343
+ type: ui
3344
+ description: fired when the show more children button in the team hierarchy tree is clicked
3345
+ attributes:
3346
+ <<: *PackageMetaDataContext
3347
+ teamId:
3348
+ type: string
3349
+ description: the id of the team
3350
+ - teamHierarchyTreeCollapseChildren clicked:
3351
+ type: ui
3352
+ description: fired when the collapse children button in the team hierarchy tree is clicked
3353
+ attributes:
3354
+ <<: *PackageMetaDataContext
3355
+ teamId:
3356
+ type: string
3357
+ description: the id of the team
3358
+ - teamHierarchyTreeShowMoreAncestors clicked:
3359
+ type: ui
3360
+ description: fired when the show more ancestors button in the team hierarchy tree is clicked
3361
+ attributes:
3362
+ <<: *PackageMetaDataContext
3363
+ teamId:
3364
+ type: string
3365
+ description: the id of the team
3366
+ - teamHierarchyTreeCollapseAncestors clicked:
3367
+ type: ui
3368
+ description: fired when the collapse ancestors button in the team hierarchy tree is clicked
3369
+ attributes:
3370
+ <<: *PackageMetaDataContext
3371
+ teamId:
3372
+ type: string
3373
+ description: the id of the team
3374
+ - teamHierarchyTreeCard hovered:
3375
+ type: ui
3376
+ description: fired when the team hierarchy card is hovered
3377
+ attributes:
3378
+ <<: *PackageMetaDataContext
3379
+ teamId:
3380
+ type: string
3381
+ description: the id of the team
3382
+ - teamHierarchyTreeCard clicked:
3383
+ type: ui
3384
+ description: fired when the team hierarchy card is clicked
3385
+ attributes:
3386
+ <<: *PackageMetaDataContext
3387
+ teamId:
3388
+ type: string
3389
+ description: the id of the team
3390
+ - teamHierarchyErrorState viewed:
3391
+ type: screen
3392
+ description: fired when the team hierarchy error state is viewed
3393
+ attributes:
3394
+ <<: *PackageMetaDataContext
3395
+ teamId:
3396
+ type: string
3397
+ description: the id of the team
3398
+ - teamHierarchyEmptyState viewed:
3399
+ type: screen
3400
+ description: fired when the team hierarchy empty state is viewed
3401
+ attributes:
3402
+ <<: *PackageMetaDataContext
3403
+ teamId:
3404
+ type: string
3405
+ description: the id of the team
3367
3406
  - parentTeamPicker opened:
3368
3407
  type: ui
3369
3408
  description: fired when the parent team picker is opened
@@ -3395,3 +3434,27 @@ events:
3395
3434
  type: string
3396
3435
  required: false
3397
3436
  description: the error type
3437
+ - subTeamPicker opened:
3438
+ type: ui
3439
+ description: fired when the sub team picker is opened
3440
+ attributes:
3441
+ <<: *PackageMetaDataContext
3442
+ - subTeamPicker closed:
3443
+ type: ui
3444
+ description: fired when the sub team picker is closed
3445
+ attributes:
3446
+ <<: *PackageMetaDataContext
3447
+ teamId:
3448
+ type: string
3449
+ description: the id of the team
3450
+ - subTeamPicker updated:
3451
+ type: ui
3452
+ description: fired when the sub team picker is updated
3453
+ attributes:
3454
+ <<: *PackageMetaDataContext
3455
+ subTeamId:
3456
+ type: string
3457
+ description: the id of the team
3458
+ action:
3459
+ type: string
3460
+ description: the action that was performed
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::59c4bdd833e5deaf51ba7b43a7658597>>
6
+ * @codegen <<SignedSource::cbc269295ed6028e0abc5d33a2165ed0>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -33,9 +33,6 @@ export type AssignTeamToASiteConfirmButtonClickedAttributesType = {
33
33
  };
34
34
  export type AssignTeamToASiteCancelButtonClickedAttributesType = {};
35
35
  export type MemberPickerErrorAttributesType = {};
36
- export type RequestedContainersRequestedAttributesType = {
37
- containers: Record<string, unknown>;
38
- };
39
36
  export type TeamCreateDialogViewedAttributesType = {
40
37
  proposedMembersLength: number;
41
38
  };
@@ -1487,15 +1484,6 @@ export type FeatureExposedAttributesType = {
1487
1484
  export type InvitePromptShowContainerAddedFlagFailedAttributesType = {
1488
1485
  error: string;
1489
1486
  };
1490
- export type RequestedContainersTryAgainAttributesType = {
1491
- containers: unknown[];
1492
- teamId: string;
1493
- };
1494
- export type RequestedContainersFailedAttributesType = {
1495
- containers: unknown[];
1496
- teamId: string;
1497
- tryAgainCount: number | null;
1498
- };
1499
1487
  export type StarredSucceededTeamAttributesType = {
1500
1488
  starred: boolean;
1501
1489
  };
@@ -1508,6 +1496,33 @@ export type StarTeamFailedAttributesType = {
1508
1496
  errorMessage: string;
1509
1497
  errorType: string | null;
1510
1498
  };
1499
+ export type TeamProfileHierarchyTabViewedAttributesType = {
1500
+ teamId: string;
1501
+ };
1502
+ export type TeamHierarchyTreeShowMoreChildrenClickedAttributesType = {
1503
+ teamId: string;
1504
+ };
1505
+ export type TeamHierarchyTreeCollapseChildrenClickedAttributesType = {
1506
+ teamId: string;
1507
+ };
1508
+ export type TeamHierarchyTreeShowMoreAncestorsClickedAttributesType = {
1509
+ teamId: string;
1510
+ };
1511
+ export type TeamHierarchyTreeCollapseAncestorsClickedAttributesType = {
1512
+ teamId: string;
1513
+ };
1514
+ export type TeamHierarchyTreeCardHoveredAttributesType = {
1515
+ teamId: string;
1516
+ };
1517
+ export type TeamHierarchyTreeCardClickedAttributesType = {
1518
+ teamId: string;
1519
+ };
1520
+ export type TeamHierarchyErrorStateViewedAttributesType = {
1521
+ teamId: string;
1522
+ };
1523
+ export type TeamHierarchyEmptyStateViewedAttributesType = {
1524
+ teamId: string;
1525
+ };
1511
1526
  export type ParentTeamPickerOpenedAttributesType = {};
1512
1527
  export type ParentTeamPickerClosedAttributesType = {
1513
1528
  newParentTeamId: string;
@@ -1518,6 +1533,14 @@ export type TeamPickerFailedAttributesType = {
1518
1533
  errorMessage: string;
1519
1534
  errorType: string | null;
1520
1535
  };
1536
+ export type SubTeamPickerOpenedAttributesType = {};
1537
+ export type SubTeamPickerClosedAttributesType = {
1538
+ teamId: string;
1539
+ };
1540
+ export type SubTeamPickerUpdatedAttributesType = {
1541
+ subTeamId: string;
1542
+ action: string;
1543
+ };
1521
1544
  export type AnalyticsEventAttributes = {
1522
1545
  /**
1523
1546
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1552,9 +1575,6 @@ export type AnalyticsEventAttributes = {
1552
1575
  /**
1553
1576
  * fired when the member picker error is triggered */
1554
1577
  'track.memberPicker.error': MemberPickerErrorAttributesType;
1555
- /**
1556
- * fired when the teams containers are requested */
1557
- 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
1558
1578
  /**
1559
1579
  * fired when the team create dialog is viewed */
1560
1580
  'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
@@ -2545,12 +2565,6 @@ export type AnalyticsEventAttributes = {
2545
2565
  /**
2546
2566
  * Fired when something fails horribly inside of showContainerAddedFlagFailed */
2547
2567
  'operational.invitePrompt.showContainerAddedFlagFailed': InvitePromptShowContainerAddedFlagFailedAttributesType;
2548
- /**
2549
- * Fired when the user tries to add requested containers again */
2550
- 'track.requestedContainers.tryAgain': RequestedContainersTryAgainAttributesType;
2551
- /**
2552
- * Fired when the user fails to add requested containers */
2553
- 'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
2554
2568
  /**
2555
2569
  * fired when a team is starred or unstarred succeeds */
2556
2570
  'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
@@ -2560,6 +2574,33 @@ export type AnalyticsEventAttributes = {
2560
2574
  /**
2561
2575
  * fired when fetching starred teams or rendering the star team component fails */
2562
2576
  'track.starTeam.failed': StarTeamFailedAttributesType;
2577
+ /**
2578
+ * fired when the team profile hierarchy tab is viewed */
2579
+ 'screen.teamProfileHierarchyTab.viewed': TeamProfileHierarchyTabViewedAttributesType;
2580
+ /**
2581
+ * fired when the show more children button in the team hierarchy tree is clicked */
2582
+ 'ui.teamHierarchyTreeShowMoreChildren.clicked': TeamHierarchyTreeShowMoreChildrenClickedAttributesType;
2583
+ /**
2584
+ * fired when the collapse children button in the team hierarchy tree is clicked */
2585
+ 'ui.teamHierarchyTreeCollapseChildren.clicked': TeamHierarchyTreeCollapseChildrenClickedAttributesType;
2586
+ /**
2587
+ * fired when the show more ancestors button in the team hierarchy tree is clicked */
2588
+ 'ui.teamHierarchyTreeShowMoreAncestors.clicked': TeamHierarchyTreeShowMoreAncestorsClickedAttributesType;
2589
+ /**
2590
+ * fired when the collapse ancestors button in the team hierarchy tree is clicked */
2591
+ 'ui.teamHierarchyTreeCollapseAncestors.clicked': TeamHierarchyTreeCollapseAncestorsClickedAttributesType;
2592
+ /**
2593
+ * fired when the team hierarchy card is hovered */
2594
+ 'ui.teamHierarchyTreeCard.hovered': TeamHierarchyTreeCardHoveredAttributesType;
2595
+ /**
2596
+ * fired when the team hierarchy card is clicked */
2597
+ 'ui.teamHierarchyTreeCard.clicked': TeamHierarchyTreeCardClickedAttributesType;
2598
+ /**
2599
+ * fired when the team hierarchy error state is viewed */
2600
+ 'screen.teamHierarchyErrorState.viewed': TeamHierarchyErrorStateViewedAttributesType;
2601
+ /**
2602
+ * fired when the team hierarchy empty state is viewed */
2603
+ 'screen.teamHierarchyEmptyState.viewed': TeamHierarchyEmptyStateViewedAttributesType;
2563
2604
  /**
2564
2605
  * fired when the parent team picker is opened */
2565
2606
  'ui.parentTeamPicker.opened': ParentTeamPickerOpenedAttributesType;
@@ -2569,5 +2610,14 @@ export type AnalyticsEventAttributes = {
2569
2610
  /**
2570
2611
  * fired when the team picker fails */
2571
2612
  'track.teamPicker.failed': TeamPickerFailedAttributesType;
2613
+ /**
2614
+ * fired when the sub team picker is opened */
2615
+ 'ui.subTeamPicker.opened': SubTeamPickerOpenedAttributesType;
2616
+ /**
2617
+ * fired when the sub team picker is closed */
2618
+ 'ui.subTeamPicker.closed': SubTeamPickerClosedAttributesType;
2619
+ /**
2620
+ * fired when the sub team picker is updated */
2621
+ 'ui.subTeamPicker.updated': SubTeamPickerUpdatedAttributesType;
2572
2622
  };
2573
2623
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::59c4bdd833e5deaf51ba7b43a7658597>>
6
+ * @codegen <<SignedSource::cbc269295ed6028e0abc5d33a2165ed0>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen teams-app-internal-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -33,9 +33,6 @@ export type AssignTeamToASiteConfirmButtonClickedAttributesType = {
33
33
  };
34
34
  export type AssignTeamToASiteCancelButtonClickedAttributesType = {};
35
35
  export type MemberPickerErrorAttributesType = {};
36
- export type RequestedContainersRequestedAttributesType = {
37
- containers: Record<string, unknown>;
38
- };
39
36
  export type TeamCreateDialogViewedAttributesType = {
40
37
  proposedMembersLength: number;
41
38
  };
@@ -1487,15 +1484,6 @@ export type FeatureExposedAttributesType = {
1487
1484
  export type InvitePromptShowContainerAddedFlagFailedAttributesType = {
1488
1485
  error: string;
1489
1486
  };
1490
- export type RequestedContainersTryAgainAttributesType = {
1491
- containers: unknown[];
1492
- teamId: string;
1493
- };
1494
- export type RequestedContainersFailedAttributesType = {
1495
- containers: unknown[];
1496
- teamId: string;
1497
- tryAgainCount: number | null;
1498
- };
1499
1487
  export type StarredSucceededTeamAttributesType = {
1500
1488
  starred: boolean;
1501
1489
  };
@@ -1508,6 +1496,33 @@ export type StarTeamFailedAttributesType = {
1508
1496
  errorMessage: string;
1509
1497
  errorType: string | null;
1510
1498
  };
1499
+ export type TeamProfileHierarchyTabViewedAttributesType = {
1500
+ teamId: string;
1501
+ };
1502
+ export type TeamHierarchyTreeShowMoreChildrenClickedAttributesType = {
1503
+ teamId: string;
1504
+ };
1505
+ export type TeamHierarchyTreeCollapseChildrenClickedAttributesType = {
1506
+ teamId: string;
1507
+ };
1508
+ export type TeamHierarchyTreeShowMoreAncestorsClickedAttributesType = {
1509
+ teamId: string;
1510
+ };
1511
+ export type TeamHierarchyTreeCollapseAncestorsClickedAttributesType = {
1512
+ teamId: string;
1513
+ };
1514
+ export type TeamHierarchyTreeCardHoveredAttributesType = {
1515
+ teamId: string;
1516
+ };
1517
+ export type TeamHierarchyTreeCardClickedAttributesType = {
1518
+ teamId: string;
1519
+ };
1520
+ export type TeamHierarchyErrorStateViewedAttributesType = {
1521
+ teamId: string;
1522
+ };
1523
+ export type TeamHierarchyEmptyStateViewedAttributesType = {
1524
+ teamId: string;
1525
+ };
1511
1526
  export type ParentTeamPickerOpenedAttributesType = {};
1512
1527
  export type ParentTeamPickerClosedAttributesType = {
1513
1528
  newParentTeamId: string;
@@ -1518,6 +1533,14 @@ export type TeamPickerFailedAttributesType = {
1518
1533
  errorMessage: string;
1519
1534
  errorType: string | null;
1520
1535
  };
1536
+ export type SubTeamPickerOpenedAttributesType = {};
1537
+ export type SubTeamPickerClosedAttributesType = {
1538
+ teamId: string;
1539
+ };
1540
+ export type SubTeamPickerUpdatedAttributesType = {
1541
+ subTeamId: string;
1542
+ action: string;
1543
+ };
1521
1544
  export type AnalyticsEventAttributes = {
1522
1545
  /**
1523
1546
  * fired when the teams-app-internal-analytics example button is clicked */
@@ -1552,9 +1575,6 @@ export type AnalyticsEventAttributes = {
1552
1575
  /**
1553
1576
  * fired when the member picker error is triggered */
1554
1577
  'track.memberPicker.error': MemberPickerErrorAttributesType;
1555
- /**
1556
- * fired when the teams containers are requested */
1557
- 'track.requestedContainers.requested': RequestedContainersRequestedAttributesType;
1558
1578
  /**
1559
1579
  * fired when the team create dialog is viewed */
1560
1580
  'screen.teamCreateDialog.viewed': TeamCreateDialogViewedAttributesType;
@@ -2545,12 +2565,6 @@ export type AnalyticsEventAttributes = {
2545
2565
  /**
2546
2566
  * Fired when something fails horribly inside of showContainerAddedFlagFailed */
2547
2567
  'operational.invitePrompt.showContainerAddedFlagFailed': InvitePromptShowContainerAddedFlagFailedAttributesType;
2548
- /**
2549
- * Fired when the user tries to add requested containers again */
2550
- 'track.requestedContainers.tryAgain': RequestedContainersTryAgainAttributesType;
2551
- /**
2552
- * Fired when the user fails to add requested containers */
2553
- 'track.requestedContainers.failed': RequestedContainersFailedAttributesType;
2554
2568
  /**
2555
2569
  * fired when a team is starred or unstarred succeeds */
2556
2570
  'track.starred.succeeded.team': StarredSucceededTeamAttributesType;
@@ -2560,6 +2574,33 @@ export type AnalyticsEventAttributes = {
2560
2574
  /**
2561
2575
  * fired when fetching starred teams or rendering the star team component fails */
2562
2576
  'track.starTeam.failed': StarTeamFailedAttributesType;
2577
+ /**
2578
+ * fired when the team profile hierarchy tab is viewed */
2579
+ 'screen.teamProfileHierarchyTab.viewed': TeamProfileHierarchyTabViewedAttributesType;
2580
+ /**
2581
+ * fired when the show more children button in the team hierarchy tree is clicked */
2582
+ 'ui.teamHierarchyTreeShowMoreChildren.clicked': TeamHierarchyTreeShowMoreChildrenClickedAttributesType;
2583
+ /**
2584
+ * fired when the collapse children button in the team hierarchy tree is clicked */
2585
+ 'ui.teamHierarchyTreeCollapseChildren.clicked': TeamHierarchyTreeCollapseChildrenClickedAttributesType;
2586
+ /**
2587
+ * fired when the show more ancestors button in the team hierarchy tree is clicked */
2588
+ 'ui.teamHierarchyTreeShowMoreAncestors.clicked': TeamHierarchyTreeShowMoreAncestorsClickedAttributesType;
2589
+ /**
2590
+ * fired when the collapse ancestors button in the team hierarchy tree is clicked */
2591
+ 'ui.teamHierarchyTreeCollapseAncestors.clicked': TeamHierarchyTreeCollapseAncestorsClickedAttributesType;
2592
+ /**
2593
+ * fired when the team hierarchy card is hovered */
2594
+ 'ui.teamHierarchyTreeCard.hovered': TeamHierarchyTreeCardHoveredAttributesType;
2595
+ /**
2596
+ * fired when the team hierarchy card is clicked */
2597
+ 'ui.teamHierarchyTreeCard.clicked': TeamHierarchyTreeCardClickedAttributesType;
2598
+ /**
2599
+ * fired when the team hierarchy error state is viewed */
2600
+ 'screen.teamHierarchyErrorState.viewed': TeamHierarchyErrorStateViewedAttributesType;
2601
+ /**
2602
+ * fired when the team hierarchy empty state is viewed */
2603
+ 'screen.teamHierarchyEmptyState.viewed': TeamHierarchyEmptyStateViewedAttributesType;
2563
2604
  /**
2564
2605
  * fired when the parent team picker is opened */
2565
2606
  'ui.parentTeamPicker.opened': ParentTeamPickerOpenedAttributesType;
@@ -2569,5 +2610,14 @@ export type AnalyticsEventAttributes = {
2569
2610
  /**
2570
2611
  * fired when the team picker fails */
2571
2612
  'track.teamPicker.failed': TeamPickerFailedAttributesType;
2613
+ /**
2614
+ * fired when the sub team picker is opened */
2615
+ 'ui.subTeamPicker.opened': SubTeamPickerOpenedAttributesType;
2616
+ /**
2617
+ * fired when the sub team picker is closed */
2618
+ 'ui.subTeamPicker.closed': SubTeamPickerClosedAttributesType;
2619
+ /**
2620
+ * fired when the sub team picker is updated */
2621
+ 'ui.subTeamPicker.updated': SubTeamPickerUpdatedAttributesType;
2572
2622
  };
2573
2623
  export type EventKey = keyof AnalyticsEventAttributes;
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
32
32
  "@atlaskit/analytics-next": "^11.1.0",
33
33
  "@babel/runtime": "^7.0.0",
34
- "@compiled/react": "^0.18.6"
34
+ "@compiled/react": "^0.20.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^18.2.0"
@@ -84,7 +84,7 @@
84
84
  }
85
85
  },
86
86
  "name": "@atlaskit/teams-app-internal-analytics",
87
- "version": "1.26.0",
87
+ "version": "1.27.1",
88
88
  "description": "A package used by the teams app and platform packages to handle people and teams analytics",
89
89
  "author": "Atlassian Pty Ltd",
90
90
  "license": "Apache-2.0",