@atlaskit/rovo-agent-analytics 1.1.1 → 1.3.0

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,30 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6f5f7728ba6d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f5f7728ba6d1) -
8
+ [ux] Redirect deprecated `/create/<subpath>` URLs to the appropriate create entry point when agent
9
+ versioning is enabled.
10
+
11
+ When a user lands on a bookmarked or shared URL like `/create/details`, `/create/identity`,
12
+ `/create/permissions`, `/create/overview`, `/create/surfaces`, or `/create/scenarios` (anything
13
+ under `/create/...` except `/create/chat`), they're now automatically redirected:
14
+ - **v1 studio** → NL create screen (`/create/chat`)
15
+ - **v2 studio** → agents landing page with the Solutions Architect modal opened
16
+ (`?openCreateAgentModal=true`)
17
+
18
+ The Solutions Architect FE-draft escape hatch (`?draftBuildId=...`) is preserved until the SA
19
+ migration is complete.
20
+
21
+ ## 1.2.0
22
+
23
+ ### Minor Changes
24
+
25
+ - [`17f2af77c77de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/17f2af77c77de) -
26
+ Add InsightsEventPayload for insights page date filter analytics
27
+
3
28
  ## 1.1.1
4
29
 
5
30
  ### Patch Changes
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
File without changes
@@ -68,4 +68,8 @@ export type CreateFlowEventPayload = {
68
68
  actionSubject: 'rovoAgent';
69
69
  action: 'createLandInConfigure';
70
70
  attributes: {};
71
+ } | {
72
+ actionSubject: 'rovoAgent';
73
+ action: 'createSubpathRedirect';
74
+ attributes: {};
71
75
  };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Action Group: insights
3
+ *
4
+ * Actions related to the insights page (viewing, filtering, sorting data).
5
+ *
6
+ * ## Adding a new action
7
+ * 1. Add a new variant to the `InsightsEventPayload` union type below with a data-portal link
8
+ * 2. If this action doesn't fit this group, consider creating a new group file instead
9
+ * (see other files in this directory for the template)
10
+ */
11
+ /**
12
+ * Discriminated union payload type for insights events.
13
+ * Use with `trackAgentEvent()`.
14
+ */
15
+ export type InsightsEventPayload = {
16
+ actionSubject: 'rovoAgent';
17
+ action: 'insightsDateFilterChanged';
18
+ attributes: {
19
+ filterType: 'preset' | 'custom';
20
+ days?: number;
21
+ };
22
+ };
@@ -2,6 +2,7 @@ import type { AgentInteractionsEventPayload } from '../actions/groups/agent-inte
2
2
  import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
+ import type { InsightsEventPayload } from '../actions/groups/insights';
5
6
  import type { ToolsEventPayload } from '../actions/groups/tools';
6
7
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
7
8
  export type BaseAgentAnalyticsAttributes = {
@@ -28,4 +29,4 @@ export type ErrorEventPayload = {
28
29
  * Union of all event payload types.
29
30
  * Use with `trackAgentEvent()` for typed event tracking.
30
31
  */
31
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | ErrorEventPayload;
32
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
@@ -68,4 +68,8 @@ export type CreateFlowEventPayload = {
68
68
  actionSubject: 'rovoAgent';
69
69
  action: 'createLandInConfigure';
70
70
  attributes: {};
71
+ } | {
72
+ actionSubject: 'rovoAgent';
73
+ action: 'createSubpathRedirect';
74
+ attributes: {};
71
75
  };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Action Group: insights
3
+ *
4
+ * Actions related to the insights page (viewing, filtering, sorting data).
5
+ *
6
+ * ## Adding a new action
7
+ * 1. Add a new variant to the `InsightsEventPayload` union type below with a data-portal link
8
+ * 2. If this action doesn't fit this group, consider creating a new group file instead
9
+ * (see other files in this directory for the template)
10
+ */
11
+ /**
12
+ * Discriminated union payload type for insights events.
13
+ * Use with `trackAgentEvent()`.
14
+ */
15
+ export type InsightsEventPayload = {
16
+ actionSubject: 'rovoAgent';
17
+ action: 'insightsDateFilterChanged';
18
+ attributes: {
19
+ filterType: 'preset' | 'custom';
20
+ days?: number;
21
+ };
22
+ };
@@ -2,6 +2,7 @@ import type { AgentInteractionsEventPayload } from '../actions/groups/agent-inte
2
2
  import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
+ import type { InsightsEventPayload } from '../actions/groups/insights';
5
6
  import type { ToolsEventPayload } from '../actions/groups/tools';
6
7
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
7
8
  export type BaseAgentAnalyticsAttributes = {
@@ -28,4 +29,4 @@ export type ErrorEventPayload = {
28
29
  * Union of all event payload types.
29
30
  * Use with `trackAgentEvent()` for typed event tracking.
30
31
  */
31
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | ErrorEventPayload;
32
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-analytics",
3
- "version": "1.1.1",
3
+ "version": "1.3.0",
4
4
  "description": "Rovo Agents analytics",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
6
6
  "atlassian": {