@atlaskit/profilecard 25.8.9 → 25.9.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 +32 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +6 -1
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +6 -1
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +6 -1
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6b637cd3a7ff3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b637cd3a7ff3) -
|
|
8
|
+
Fix Jira Coding Agent profilecard showing old green Rovo Dev avatar and banner.
|
|
9
|
+
|
|
10
|
+
The `creator_type` field for the Jira Coding Agent is still `'ROVO_DEV'` (not updated at the
|
|
11
|
+
source), which caused `isRovoDev` to be `true` and the profilecard to render the legacy green
|
|
12
|
+
avatar and banner header.
|
|
13
|
+
|
|
14
|
+
When the `devai-rdij-to-jira-coding-agent` gate is enabled, the `isRovoDev` check now also
|
|
15
|
+
verifies the agent name is `'rovo dev'` (case-insensitive). If the name is anything else (e.g.
|
|
16
|
+
`'Jira Coding Agent'`), `isRovoDev` is `false` and the agent falls through to the named-avatar
|
|
17
|
+
lookup via `external_config_reference`.
|
|
18
|
+
|
|
19
|
+
A new `jira_coding_agent` entry has been added to `outOfTheBoxAgentAvatar` with a Jira icon on a
|
|
20
|
+
blue hexagon background, matching the backfilled identity avatar.
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
24
|
+
## 25.9.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- [`e4c5ae488aad4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4c5ae488aad4) -
|
|
29
|
+
Update i18n NPM package versions for people-and-teams,identity (Group 8)
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 25.8.9
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "25.
|
|
14
|
+
headers.append('atl-client-version', "25.9.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "25.
|
|
69
|
+
headers.append('atl-client-version', "25.9.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -189,7 +189,12 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
189
189
|
fireAnalytics: fireEvent
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
|
|
193
|
+
// creator_type is 'ROVO_DEV' for both the original Rovo Dev agent and the renamed Jira Coding
|
|
194
|
+
// Agent (creator_type was never updated at the source). We use the agent name to distinguish
|
|
195
|
+
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
196
|
+
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
197
|
+
var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
193
198
|
var shouldShowConversationStarters = !isRovoDev && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
194
199
|
var shouldShowAgentActions = !isRovoDev && !(hideAgentActions && (0, _platformFeatureFlags.fg)('issue_view_agent_discovery_fast_follows'));
|
|
195
200
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
14
14
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
15
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "25.
|
|
34
|
+
packageVersion: "25.9.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "25.
|
|
9
|
+
headers.append('atl-client-version', "25.9.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "25.
|
|
81
|
+
headers.append('atl-client-version', "25.9.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -139,7 +139,12 @@ const AgentProfileCard = ({
|
|
|
139
139
|
fireAnalytics: fireEvent
|
|
140
140
|
}));
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
|
|
143
|
+
// creator_type is 'ROVO_DEV' for both the original Rovo Dev agent and the renamed Jira Coding
|
|
144
|
+
// Agent (creator_type was never updated at the source). We use the agent name to distinguish
|
|
145
|
+
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
146
|
+
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
147
|
+
const isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
143
148
|
const shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
144
149
|
const shouldShowAgentActions = !isRovoDev && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
145
150
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
|
2
2
|
import { getPageTime } from './performance';
|
|
3
3
|
export const PACKAGE_META_DATA = {
|
|
4
4
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
5
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "25.
|
|
22
|
+
packageVersion: "25.9.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "25.
|
|
7
|
+
headers.append('atl-client-version', "25.9.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "25.
|
|
62
|
+
headers.append('atl-client-version', "25.9.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -180,7 +180,12 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
180
180
|
fireAnalytics: fireEvent
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
|
|
184
|
+
// creator_type is 'ROVO_DEV' for both the original Rovo Dev agent and the renamed Jira Coding
|
|
185
|
+
// Agent (creator_type was never updated at the source). We use the agent name to distinguish
|
|
186
|
+
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
187
|
+
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
188
|
+
var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
184
189
|
var shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
185
190
|
var shouldShowAgentActions = !isRovoDev && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
186
191
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { getPageTime } from './performance';
|
|
6
6
|
export var PACKAGE_META_DATA = {
|
|
7
7
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
8
|
-
packageVersion: (_process$env$_PACKAGE2 = "25.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.9.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "25.
|
|
27
|
+
packageVersion: "25.9.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.9.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.
|
|
49
|
+
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.152.0",
|
|
50
50
|
"@atlaskit/atlassian-context": "^0.10.0",
|
|
51
51
|
"@atlaskit/avatar": "^25.15.0",
|
|
52
52
|
"@atlaskit/avatar-group": "^12.10.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/teams-app-internal-analytics": "^1.32.0",
|
|
74
74
|
"@atlaskit/teams-app-internal-navigation": "^1.9.0",
|
|
75
75
|
"@atlaskit/teams-avatar": "^2.7.0",
|
|
76
|
-
"@atlaskit/teams-public": "^1.
|
|
76
|
+
"@atlaskit/teams-public": "^1.5.0",
|
|
77
77
|
"@atlaskit/theme": "^25.0.0",
|
|
78
78
|
"@atlaskit/tmp-editor-statsig": "^94.0.0",
|
|
79
79
|
"@atlaskit/tokens": "^13.3.0",
|