@atlaskit/profilecard 25.1.13 → 25.1.14
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 +9 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +5 -5
- 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 +5 -5
- 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 +5 -5
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +2 -5
- package/stories/agent-profilecard.stories.tsx +4 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3f13070221110`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f13070221110) -
|
|
8
|
+
Clean up stale feature gate `rovo_dev_themed_identity_card`. The gated code path is now
|
|
9
|
+
permanently enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 25.1.13
|
|
4
13
|
|
|
5
14
|
### 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', "
|
|
14
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
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', "
|
|
69
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -186,7 +186,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
186
186
|
}));
|
|
187
187
|
}
|
|
188
188
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
189
|
-
var shouldShowConversationStarters = !
|
|
189
|
+
var shouldShowConversationStarters = !isRovoDev && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
190
190
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
191
191
|
xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
192
192
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
@@ -194,7 +194,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
194
194
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
195
195
|
height: 48,
|
|
196
196
|
agentIdentityAccountId: agent.identity_account_id,
|
|
197
|
-
isRovoDev: isRovoDev
|
|
197
|
+
isRovoDev: isRovoDev
|
|
198
198
|
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
199
199
|
xcss: styles.avatarStyles
|
|
200
200
|
}, /*#__PURE__*/_react.default.createElement(_AgentAvatar.AgentAvatar, {
|
|
@@ -202,7 +202,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
202
202
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
203
203
|
agentIdentityAccountId: agent.identity_account_id,
|
|
204
204
|
size: "large",
|
|
205
|
-
isRovoDev: isRovoDev
|
|
205
|
+
isRovoDev: isRovoDev,
|
|
206
206
|
isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _isForgeAgent.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
207
207
|
forgeAgentIconUrl: agent.icon
|
|
208
208
|
})), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
@@ -214,7 +214,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
214
214
|
agentName: agent.name,
|
|
215
215
|
isStarred: isStarred,
|
|
216
216
|
onStarToggle: handleSetFavourite,
|
|
217
|
-
showStarButton: !
|
|
217
|
+
showStarButton: !isRovoDev,
|
|
218
218
|
isHidden: agent.visibility === 'PRIVATE',
|
|
219
219
|
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/_react.default.createElement(_AgentProfileInfo.AgentProfileCreator, {
|
|
220
220
|
creator: {
|
|
@@ -266,7 +266,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
266
266
|
prompt: conversationStarter.message
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
}))), !
|
|
269
|
+
}))), !isRovoDev && /*#__PURE__*/_react.default.createElement(_Actions.AgentActions, {
|
|
270
270
|
agent: agent,
|
|
271
271
|
onEditAgent: function onEditAgent() {
|
|
272
272
|
return _onEditAgent(agent.id);
|
|
@@ -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 = "
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== 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: "
|
|
34
|
+
packageVersion: "0.0.0-development"
|
|
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', "
|
|
9
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
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', "
|
|
81
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -138,7 +138,7 @@ const AgentProfileCard = ({
|
|
|
138
138
|
}));
|
|
139
139
|
}
|
|
140
140
|
const isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
141
|
-
const shouldShowConversationStarters = !
|
|
141
|
+
const shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
142
142
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
143
143
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
144
144
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -146,7 +146,7 @@ const AgentProfileCard = ({
|
|
|
146
146
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
147
147
|
height: 48,
|
|
148
148
|
agentIdentityAccountId: agent.identity_account_id,
|
|
149
|
-
isRovoDev: isRovoDev
|
|
149
|
+
isRovoDev: isRovoDev
|
|
150
150
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
151
151
|
xcss: styles.avatarStyles
|
|
152
152
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -154,7 +154,7 @@ const AgentProfileCard = ({
|
|
|
154
154
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
155
155
|
agentIdentityAccountId: agent.identity_account_id,
|
|
156
156
|
size: "large",
|
|
157
|
-
isRovoDev: isRovoDev
|
|
157
|
+
isRovoDev: isRovoDev,
|
|
158
158
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
159
159
|
forgeAgentIconUrl: agent.icon
|
|
160
160
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -166,7 +166,7 @@ const AgentProfileCard = ({
|
|
|
166
166
|
agentName: agent.name,
|
|
167
167
|
isStarred: isStarred,
|
|
168
168
|
onStarToggle: handleSetFavourite,
|
|
169
|
-
showStarButton: !
|
|
169
|
+
showStarButton: !isRovoDev,
|
|
170
170
|
isHidden: agent.visibility === 'PRIVATE',
|
|
171
171
|
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
172
172
|
creator: {
|
|
@@ -218,7 +218,7 @@ const AgentProfileCard = ({
|
|
|
218
218
|
prompt: conversationStarter.message
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
}))), !
|
|
221
|
+
}))), !isRovoDev && /*#__PURE__*/React.createElement(AgentActions, {
|
|
222
222
|
agent: agent,
|
|
223
223
|
onEditAgent: () => onEditAgent(agent.id),
|
|
224
224
|
onCopyAgent: () => onCopyAgent(agent.id),
|
|
@@ -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 = "
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== 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: "
|
|
22
|
+
packageVersion: "0.0.0-development",
|
|
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', "
|
|
7
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
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', "
|
|
62
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -177,7 +177,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
179
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
180
|
-
var shouldShowConversationStarters = !
|
|
180
|
+
var shouldShowConversationStarters = !isRovoDev && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
181
181
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
182
182
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
183
183
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -185,7 +185,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
185
185
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
186
186
|
height: 48,
|
|
187
187
|
agentIdentityAccountId: agent.identity_account_id,
|
|
188
|
-
isRovoDev: isRovoDev
|
|
188
|
+
isRovoDev: isRovoDev
|
|
189
189
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
190
190
|
xcss: styles.avatarStyles
|
|
191
191
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -193,7 +193,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
193
193
|
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
194
194
|
agentIdentityAccountId: agent.identity_account_id,
|
|
195
195
|
size: "large",
|
|
196
|
-
isRovoDev: isRovoDev
|
|
196
|
+
isRovoDev: isRovoDev,
|
|
197
197
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
198
198
|
forgeAgentIconUrl: agent.icon
|
|
199
199
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -205,7 +205,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
205
205
|
agentName: agent.name,
|
|
206
206
|
isStarred: isStarred,
|
|
207
207
|
onStarToggle: handleSetFavourite,
|
|
208
|
-
showStarButton: !
|
|
208
|
+
showStarButton: !isRovoDev,
|
|
209
209
|
isHidden: agent.visibility === 'PRIVATE',
|
|
210
210
|
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
211
211
|
creator: {
|
|
@@ -257,7 +257,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
257
257
|
prompt: conversationStarter.message
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
}))), !
|
|
260
|
+
}))), !isRovoDev && /*#__PURE__*/React.createElement(AgentActions, {
|
|
261
261
|
agent: agent,
|
|
262
262
|
onEditAgent: function onEditAgent() {
|
|
263
263
|
return _onEditAgent(agent.id);
|
|
@@ -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 = "
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== 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: "
|
|
27
|
+
packageVersion: "0.0.0-development"
|
|
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.1.
|
|
3
|
+
"version": "25.1.14",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/teams-avatar": "^2.6.0",
|
|
75
75
|
"@atlaskit/teams-public": "^1.1.0",
|
|
76
76
|
"@atlaskit/theme": "^23.2.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^72.
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^72.1.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
79
|
"@atlaskit/tooltip": "^21.2.0",
|
|
80
80
|
"@babel/runtime": "^7.0.0",
|
|
@@ -159,9 +159,6 @@
|
|
|
159
159
|
"jira_ai_profilecard_hide_reportinglines": {
|
|
160
160
|
"type": "boolean"
|
|
161
161
|
},
|
|
162
|
-
"rovo_dev_themed_identity_card": {
|
|
163
|
-
"type": "boolean"
|
|
164
|
-
},
|
|
165
162
|
"enable_profilecard_text_truncation_tooltip": {
|
|
166
163
|
"type": "boolean"
|
|
167
164
|
},
|
|
@@ -82,36 +82,18 @@ const baseFeatureGates = {
|
|
|
82
82
|
|
|
83
83
|
export const Standard: Story = {
|
|
84
84
|
name: 'Standard (non-Rovo Dev)',
|
|
85
|
-
decorators: [
|
|
86
|
-
withPlatformFeatureGates({ ...baseFeatureGates, rovo_dev_themed_identity_card: false }),
|
|
87
|
-
],
|
|
88
|
-
render: (props) => <AgentProfileCard {...props} />,
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export const RovoDevGateOff: Story = {
|
|
92
|
-
name: 'Rovo Dev (gate OFF)',
|
|
93
|
-
args: {
|
|
94
|
-
agent: {
|
|
95
|
-
...agent,
|
|
96
|
-
creator_type: 'ROVO_DEV',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
decorators: [
|
|
100
|
-
withPlatformFeatureGates({ ...baseFeatureGates, rovo_dev_themed_identity_card: false }),
|
|
101
|
-
],
|
|
85
|
+
decorators: [withPlatformFeatureGates({ ...baseFeatureGates })],
|
|
102
86
|
render: (props) => <AgentProfileCard {...props} />,
|
|
103
87
|
};
|
|
104
88
|
|
|
105
|
-
export const
|
|
106
|
-
name: 'Rovo Dev
|
|
89
|
+
export const RovoDev: Story = {
|
|
90
|
+
name: 'Rovo Dev',
|
|
107
91
|
args: {
|
|
108
92
|
agent: {
|
|
109
93
|
...agent,
|
|
110
94
|
creator_type: 'ROVO_DEV',
|
|
111
95
|
},
|
|
112
96
|
},
|
|
113
|
-
decorators: [
|
|
114
|
-
withPlatformFeatureGates({ ...baseFeatureGates, rovo_dev_themed_identity_card: true }),
|
|
115
|
-
],
|
|
97
|
+
decorators: [withPlatformFeatureGates({ ...baseFeatureGates })],
|
|
116
98
|
render: (props) => <AgentProfileCard {...props} />,
|
|
117
99
|
};
|