@atlaskit/rovo-agent-components 9.3.0 → 9.4.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 +15 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +409 -191
- package/dist/cjs/ui/agent-avatar/generated-avatars/refreshed-assets/jira-admin-agent.js +38 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/refreshed-assets/jira-coding-agent.js +35 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/refreshed-assets/jira-intelligent-triage-agent.js +35 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/refreshed-assets/ops-expert.js +32 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/refreshed-assets/request-resolver.js +35 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +315 -194
- package/dist/es2019/ui/agent-avatar/generated-avatars/refreshed-assets/jira-admin-agent.js +32 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/refreshed-assets/jira-coding-agent.js +29 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/refreshed-assets/jira-intelligent-triage-agent.js +29 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/refreshed-assets/ops-expert.js +26 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/refreshed-assets/request-resolver.js +29 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +399 -191
- package/dist/esm/ui/agent-avatar/generated-avatars/refreshed-assets/jira-admin-agent.js +31 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/refreshed-assets/jira-coding-agent.js +28 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/refreshed-assets/jira-intelligent-triage-agent.js +28 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/refreshed-assets/ops-expert.js +25 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/refreshed-assets/request-resolver.js +28 -0
- package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +41 -13
- package/dist/types/ui/agent-avatar/generated-avatars/refreshed-assets/jira-admin-agent.d.ts +8 -0
- package/dist/types/ui/agent-avatar/generated-avatars/refreshed-assets/jira-coding-agent.d.ts +8 -0
- package/dist/types/ui/agent-avatar/generated-avatars/refreshed-assets/jira-intelligent-triage-agent.d.ts +8 -0
- package/dist/types/ui/agent-avatar/generated-avatars/refreshed-assets/ops-expert.d.ts +8 -0
- package/dist/types/ui/agent-avatar/generated-avatars/refreshed-assets/request-resolver.d.ts +8 -0
- package/package.json +3 -3
|
@@ -26,6 +26,11 @@ const RefreshedAutoReviewAvatar = /*#__PURE__*/lazy(() => import('./refreshed-as
|
|
|
26
26
|
const RefreshedMarketingMessageMaestroAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/marketing-message-maestro'));
|
|
27
27
|
const RefreshedFeatureFlagAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/feature-flag'));
|
|
28
28
|
const RefreshedProductRequirementAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/product-requirement'));
|
|
29
|
+
const RefreshedJiraCodingAgentAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/jira-coding-agent'));
|
|
30
|
+
const RefreshedJiraIntelligentTriageAgentAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/jira-intelligent-triage-agent'));
|
|
31
|
+
const RefreshedJiraAdminAgentAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/jira-admin-agent'));
|
|
32
|
+
const RefreshedRequestResolverAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/request-resolver'));
|
|
33
|
+
const RefreshedOpsExpertAvatar = /*#__PURE__*/lazy(() => import('./refreshed-assets/ops-expert'));
|
|
29
34
|
const styles = {
|
|
30
35
|
image: "_5ral1dfr _4t3i1osq _1bsb1osq _1e0c1txw _1bah1h6o _4cvr1h6o",
|
|
31
36
|
banner: "_1bsb1osq",
|
|
@@ -94,28 +99,52 @@ const JsmServiceTriageAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackCh
|
|
|
94
99
|
*/
|
|
95
100
|
|
|
96
101
|
export const yellowColor = {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
v1: {
|
|
103
|
+
primary: '#FCA700',
|
|
104
|
+
secondary: '#FFC716',
|
|
105
|
+
cover: '#FEF7C8'
|
|
106
|
+
},
|
|
107
|
+
v2: {
|
|
108
|
+
primary: '#FFC716',
|
|
109
|
+
iconColor: '#101214',
|
|
110
|
+
cover: '#FEF7C8'
|
|
111
|
+
}
|
|
100
112
|
};
|
|
101
113
|
export const purpleColor = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
114
|
+
v1: {
|
|
115
|
+
primary: '#BF63F3',
|
|
116
|
+
secondary: '#D8A0F7',
|
|
117
|
+
cover: '#F8EEFE'
|
|
118
|
+
},
|
|
119
|
+
v2: {
|
|
120
|
+
primary: '#C97CF4',
|
|
121
|
+
iconColor: '#101214',
|
|
122
|
+
cover: '#F8EEFE'
|
|
123
|
+
}
|
|
105
124
|
};
|
|
106
125
|
export const greenColor = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
126
|
+
v1: {
|
|
127
|
+
primary: '#82B536',
|
|
128
|
+
secondary: '#B3DF72',
|
|
129
|
+
cover: '#EFFFD6'
|
|
130
|
+
},
|
|
131
|
+
v2: {
|
|
132
|
+
primary: '#94C748',
|
|
133
|
+
iconColor: '#101214',
|
|
134
|
+
cover: '#EFFFD6'
|
|
135
|
+
}
|
|
110
136
|
};
|
|
111
137
|
export const blueColor = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
138
|
+
v1: {
|
|
139
|
+
primary: '#357DE8',
|
|
140
|
+
secondary: '#669DF1',
|
|
141
|
+
cover: '#E9F2FE'
|
|
142
|
+
},
|
|
143
|
+
v2: {
|
|
144
|
+
primary: '#1868DB',
|
|
145
|
+
iconColor: '#FFFFFF',
|
|
146
|
+
cover: '#E9F2FE'
|
|
147
|
+
}
|
|
119
148
|
};
|
|
120
149
|
const colorList = [yellowColor, purpleColor, greenColor, blueColor];
|
|
121
150
|
|
|
@@ -123,166 +152,210 @@ const colorList = [yellowColor, purpleColor, greenColor, blueColor];
|
|
|
123
152
|
* NOTE: DO NOT ADD OOTB AGENTAVATARS TO THIS LIST
|
|
124
153
|
*/
|
|
125
154
|
const avatarList = [{
|
|
126
|
-
|
|
127
|
-
|
|
155
|
+
v1: CustomerInsightAvatar,
|
|
156
|
+
v2: RefreshedCustomerInsightAvatar
|
|
128
157
|
}, {
|
|
129
|
-
|
|
130
|
-
|
|
158
|
+
v1: BacklogBuddyAvatar,
|
|
159
|
+
v2: RefreshedBacklogBuddyAvatar
|
|
131
160
|
}, {
|
|
132
|
-
|
|
133
|
-
|
|
161
|
+
v1: DecisionDirectorAvatar,
|
|
162
|
+
v2: RefreshedDecisionDirectorAvatar
|
|
134
163
|
}, {
|
|
135
|
-
|
|
136
|
-
|
|
164
|
+
v1: CommsCrafterAvatar,
|
|
165
|
+
v2: RefreshedCommsCrafterAvatar
|
|
137
166
|
}, {
|
|
138
|
-
|
|
139
|
-
|
|
167
|
+
v1: AutoDevAvatar,
|
|
168
|
+
v2: RefreshedAutoDevAvatar
|
|
140
169
|
}, {
|
|
141
|
-
|
|
142
|
-
|
|
170
|
+
v1: OkrOracleAvatar,
|
|
171
|
+
v2: RefreshedOkrOracleAvatar
|
|
143
172
|
}, {
|
|
144
|
-
|
|
145
|
-
|
|
173
|
+
v1: CultureAvatar,
|
|
174
|
+
v2: RefreshedCultureAvatar
|
|
146
175
|
}, {
|
|
147
|
-
|
|
148
|
-
|
|
176
|
+
v1: SocialMediaScribeAvatar,
|
|
177
|
+
v2: RefreshedSocialMediaScribeAvatar
|
|
149
178
|
}, {
|
|
150
|
-
|
|
151
|
-
|
|
179
|
+
v1: TeamConnectionAvatar,
|
|
180
|
+
v2: RefreshedTeamConnectionAvatar
|
|
152
181
|
}, {
|
|
153
|
-
|
|
154
|
-
|
|
182
|
+
v1: HireWriterAvatar,
|
|
183
|
+
v2: RefreshedHireWriterAvatar
|
|
155
184
|
}, {
|
|
156
|
-
|
|
157
|
-
|
|
185
|
+
v1: OpsAgentAvatar,
|
|
186
|
+
v2: RefreshedOpsAgentAvatar
|
|
158
187
|
}, {
|
|
159
|
-
|
|
160
|
-
|
|
188
|
+
v1: ResearchScoutAvatar,
|
|
189
|
+
v2: RefreshedResearchScoutAvatar
|
|
161
190
|
}, {
|
|
162
|
-
|
|
163
|
-
|
|
191
|
+
v1: ReleaseNotesAvatar,
|
|
192
|
+
v2: RefreshedReleaseNotesAvatar
|
|
164
193
|
}, {
|
|
165
|
-
|
|
166
|
-
|
|
194
|
+
v1: MyUserManualAvatar,
|
|
195
|
+
v2: RefreshedMyUserManualAvatar
|
|
167
196
|
}, {
|
|
168
|
-
|
|
169
|
-
|
|
197
|
+
v1: PitchPerfectorAvatar,
|
|
198
|
+
v2: RefreshedPitchPerfectorAvatar
|
|
170
199
|
}, {
|
|
171
|
-
|
|
172
|
-
|
|
200
|
+
v1: AutoDevAvatar,
|
|
201
|
+
v2: RefreshedAutoDevAvatar
|
|
173
202
|
}, {
|
|
174
|
-
|
|
175
|
-
|
|
203
|
+
v1: AutoFixAvatar,
|
|
204
|
+
v2: RefreshedAutoFixAvatar
|
|
176
205
|
}, {
|
|
177
|
-
|
|
178
|
-
|
|
206
|
+
v1: AutoReviewAvatar,
|
|
207
|
+
v2: RefreshedAutoReviewAvatar
|
|
179
208
|
}, {
|
|
180
|
-
|
|
181
|
-
|
|
209
|
+
v1: MarketingMessageMaestroAvatar,
|
|
210
|
+
v2: RefreshedMarketingMessageMaestroAvatar
|
|
182
211
|
}, {
|
|
183
|
-
|
|
184
|
-
|
|
212
|
+
v1: FeatureFlagAvatar,
|
|
213
|
+
v2: RefreshedFeatureFlagAvatar
|
|
185
214
|
}, {
|
|
186
|
-
|
|
187
|
-
|
|
215
|
+
v1: ProductRequirementAvatar,
|
|
216
|
+
v2: RefreshedProductRequirementAvatar
|
|
188
217
|
}];
|
|
189
218
|
export const TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
|
|
190
219
|
const outOfTheBoxAgentAvatar = {
|
|
191
220
|
ai_mate_agent: {
|
|
192
221
|
getRender: size => /*#__PURE__*/React.createElement(RovoChatAvatar, {
|
|
193
222
|
size: AVATAR_SIZES[size],
|
|
194
|
-
primaryColor: blueColor.primary,
|
|
195
|
-
secondaryColor: blueColor.secondary
|
|
223
|
+
primaryColor: blueColor.v1.primary,
|
|
224
|
+
secondaryColor: blueColor.v1.secondary
|
|
196
225
|
}),
|
|
197
|
-
|
|
226
|
+
getColor: () => blueColor.v1
|
|
198
227
|
},
|
|
199
228
|
autodev_template_unit_test_creator: {
|
|
200
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
229
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedAutoFixAvatar, {
|
|
201
230
|
size: AVATAR_SIZES[size],
|
|
202
|
-
primaryColor: greenColor.primary,
|
|
203
|
-
|
|
231
|
+
primaryColor: greenColor.v2.primary,
|
|
232
|
+
iconColor: greenColor.v2.iconColor
|
|
233
|
+
}) : /*#__PURE__*/React.createElement(AutoFixAvatar, {
|
|
234
|
+
size: AVATAR_SIZES[size],
|
|
235
|
+
primaryColor: greenColor.v1.primary,
|
|
236
|
+
secondaryColor: greenColor.v1.secondary
|
|
204
237
|
}),
|
|
205
|
-
|
|
238
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
206
239
|
},
|
|
207
240
|
autodev_template_migration_config_changer_agent: {
|
|
208
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
241
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedOpsAgentAvatar, {
|
|
242
|
+
size: AVATAR_SIZES[size],
|
|
243
|
+
primaryColor: greenColor.v2.primary,
|
|
244
|
+
iconColor: greenColor.v2.iconColor
|
|
245
|
+
}) : /*#__PURE__*/React.createElement(OpsAgentAvatar, {
|
|
209
246
|
size: AVATAR_SIZES[size],
|
|
210
|
-
primaryColor: greenColor.primary,
|
|
211
|
-
secondaryColor: greenColor.secondary
|
|
247
|
+
primaryColor: greenColor.v1.primary,
|
|
248
|
+
secondaryColor: greenColor.v1.secondary
|
|
212
249
|
}),
|
|
213
|
-
|
|
250
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
214
251
|
},
|
|
215
252
|
autodev_template_vulnerable_dependency_updater_agent: {
|
|
216
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
253
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedMarketingMessageMaestroAvatar, {
|
|
217
254
|
size: AVATAR_SIZES[size],
|
|
218
|
-
primaryColor: greenColor.primary,
|
|
219
|
-
|
|
255
|
+
primaryColor: greenColor.v2.primary,
|
|
256
|
+
iconColor: greenColor.v2.iconColor
|
|
257
|
+
}) : /*#__PURE__*/React.createElement(MarketingMessageMaestroAvatar, {
|
|
258
|
+
size: AVATAR_SIZES[size],
|
|
259
|
+
primaryColor: greenColor.v1.primary,
|
|
260
|
+
secondaryColor: greenColor.v1.secondary
|
|
220
261
|
}),
|
|
221
|
-
|
|
262
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
222
263
|
},
|
|
223
264
|
autodev_template_code_standardizer_agent: {
|
|
224
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
265
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedMyUserManualAvatar, {
|
|
266
|
+
size: AVATAR_SIZES[size],
|
|
267
|
+
primaryColor: greenColor.v2.primary,
|
|
268
|
+
iconColor: greenColor.v2.iconColor
|
|
269
|
+
}) : /*#__PURE__*/React.createElement(MyUserManualAvatar, {
|
|
225
270
|
size: AVATAR_SIZES[size],
|
|
226
|
-
primaryColor: greenColor.primary,
|
|
227
|
-
secondaryColor: greenColor.secondary
|
|
271
|
+
primaryColor: greenColor.v1.primary,
|
|
272
|
+
secondaryColor: greenColor.v1.secondary
|
|
228
273
|
}),
|
|
229
|
-
|
|
274
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
230
275
|
},
|
|
231
276
|
autodev_template_code_observer_agent: {
|
|
232
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
277
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedResearchScoutAvatar, {
|
|
233
278
|
size: AVATAR_SIZES[size],
|
|
234
|
-
primaryColor: greenColor.primary,
|
|
235
|
-
|
|
279
|
+
primaryColor: greenColor.v2.primary,
|
|
280
|
+
iconColor: greenColor.v2.iconColor
|
|
281
|
+
}) : /*#__PURE__*/React.createElement(ResearchScoutAvatar, {
|
|
282
|
+
size: AVATAR_SIZES[size],
|
|
283
|
+
primaryColor: greenColor.v1.primary,
|
|
284
|
+
secondaryColor: greenColor.v1.secondary
|
|
236
285
|
}),
|
|
237
|
-
|
|
286
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
238
287
|
},
|
|
239
288
|
autodev_template_code_accessibility_checker_agent: {
|
|
240
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
289
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedHireWriterAvatar, {
|
|
290
|
+
size: AVATAR_SIZES[size],
|
|
291
|
+
primaryColor: greenColor.v2.primary,
|
|
292
|
+
iconColor: greenColor.v2.iconColor
|
|
293
|
+
}) : /*#__PURE__*/React.createElement(HireWriterAvatar, {
|
|
241
294
|
size: AVATAR_SIZES[size],
|
|
242
|
-
primaryColor: greenColor.primary,
|
|
243
|
-
secondaryColor: greenColor.secondary
|
|
295
|
+
primaryColor: greenColor.v1.primary,
|
|
296
|
+
secondaryColor: greenColor.v1.secondary
|
|
244
297
|
}),
|
|
245
|
-
|
|
298
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
246
299
|
},
|
|
247
300
|
autodev_code_documentation_writer_agent: {
|
|
248
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
301
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedSocialMediaScribeAvatar, {
|
|
302
|
+
size: AVATAR_SIZES[size],
|
|
303
|
+
primaryColor: greenColor.v2.primary,
|
|
304
|
+
iconColor: greenColor.v2.iconColor
|
|
305
|
+
}) : /*#__PURE__*/React.createElement(SocialMediaScribeAvatar, {
|
|
249
306
|
size: AVATAR_SIZES[size],
|
|
250
|
-
primaryColor: greenColor.primary,
|
|
251
|
-
secondaryColor: greenColor.secondary
|
|
307
|
+
primaryColor: greenColor.v1.primary,
|
|
308
|
+
secondaryColor: greenColor.v1.secondary
|
|
252
309
|
}),
|
|
253
|
-
|
|
310
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
254
311
|
},
|
|
255
312
|
autodev_feature_flag_cleaner_agent: {
|
|
256
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
313
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedFeatureFlagAvatar, {
|
|
257
314
|
size: AVATAR_SIZES[size],
|
|
258
|
-
primaryColor: greenColor.primary,
|
|
259
|
-
|
|
315
|
+
primaryColor: greenColor.v2.primary,
|
|
316
|
+
iconColor: greenColor.v2.iconColor
|
|
317
|
+
}) : /*#__PURE__*/React.createElement(FeatureFlagAvatar, {
|
|
318
|
+
size: AVATAR_SIZES[size],
|
|
319
|
+
primaryColor: greenColor.v1.primary,
|
|
320
|
+
secondaryColor: greenColor.v1.secondary
|
|
260
321
|
}),
|
|
261
|
-
|
|
322
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
262
323
|
},
|
|
263
324
|
decision_director_agent: {
|
|
264
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
325
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedDecisionDirectorAvatar, {
|
|
326
|
+
size: AVATAR_SIZES[size],
|
|
327
|
+
primaryColor: greenColor.v2.primary,
|
|
328
|
+
iconColor: greenColor.v2.iconColor
|
|
329
|
+
}) : /*#__PURE__*/React.createElement(DecisionDirectorAvatar, {
|
|
265
330
|
size: AVATAR_SIZES[size],
|
|
266
|
-
primaryColor: greenColor.primary,
|
|
267
|
-
secondaryColor: greenColor.secondary
|
|
331
|
+
primaryColor: greenColor.v1.primary,
|
|
332
|
+
secondaryColor: greenColor.v1.secondary
|
|
268
333
|
}),
|
|
269
|
-
|
|
334
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
270
335
|
},
|
|
271
336
|
planner_agent: {
|
|
272
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
337
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedOpsAgentAvatar, {
|
|
273
338
|
size: AVATAR_SIZES[size],
|
|
274
|
-
primaryColor: purpleColor.primary,
|
|
275
|
-
|
|
339
|
+
primaryColor: purpleColor.v2.primary,
|
|
340
|
+
iconColor: purpleColor.v2.iconColor
|
|
341
|
+
}) : /*#__PURE__*/React.createElement(OpsAgentAvatar, {
|
|
342
|
+
size: AVATAR_SIZES[size],
|
|
343
|
+
primaryColor: purpleColor.v1.primary,
|
|
344
|
+
secondaryColor: purpleColor.v1.secondary
|
|
276
345
|
}),
|
|
277
|
-
|
|
346
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? purpleColor.v2 : purpleColor.v1
|
|
278
347
|
},
|
|
279
348
|
tech_writer_agent: {
|
|
280
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
349
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedSocialMediaScribeAvatar, {
|
|
350
|
+
size: AVATAR_SIZES[size],
|
|
351
|
+
primaryColor: blueColor.v2.primary,
|
|
352
|
+
iconColor: blueColor.v2.iconColor
|
|
353
|
+
}) : /*#__PURE__*/React.createElement(SocialMediaScribeAvatar, {
|
|
281
354
|
size: AVATAR_SIZES[size],
|
|
282
|
-
primaryColor: blueColor.primary,
|
|
283
|
-
secondaryColor: blueColor.secondary
|
|
355
|
+
primaryColor: blueColor.v1.primary,
|
|
356
|
+
secondaryColor: blueColor.v1.secondary
|
|
284
357
|
}),
|
|
285
|
-
|
|
358
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? blueColor.v2 : blueColor.v1
|
|
286
359
|
},
|
|
287
360
|
content_reviewer_agent: {
|
|
288
361
|
getRender: size => /*#__PURE__*/React.createElement(ContentReviewerAvatar, {
|
|
@@ -290,107 +363,147 @@ const outOfTheBoxAgentAvatar = {
|
|
|
290
363
|
primaryColor: "",
|
|
291
364
|
secondaryColor: ""
|
|
292
365
|
}),
|
|
293
|
-
|
|
366
|
+
getColor: () => blueColor.v1
|
|
294
367
|
},
|
|
295
368
|
user_manual_writer_agent: {
|
|
296
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
369
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedMyUserManualAvatar, {
|
|
297
370
|
size: AVATAR_SIZES[size],
|
|
298
|
-
primaryColor: yellowColor.primary,
|
|
299
|
-
|
|
371
|
+
primaryColor: yellowColor.v2.primary,
|
|
372
|
+
iconColor: yellowColor.v2.iconColor
|
|
373
|
+
}) : /*#__PURE__*/React.createElement(MyUserManualAvatar, {
|
|
374
|
+
size: AVATAR_SIZES[size],
|
|
375
|
+
primaryColor: yellowColor.v1.primary,
|
|
376
|
+
secondaryColor: yellowColor.v1.secondary
|
|
300
377
|
}),
|
|
301
|
-
|
|
378
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? yellowColor.v2 : yellowColor.v1
|
|
302
379
|
},
|
|
303
380
|
product_requirements_expert_agent: {
|
|
304
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
381
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedProductRequirementAvatar, {
|
|
382
|
+
size: AVATAR_SIZES[size],
|
|
383
|
+
primaryColor: yellowColor.v2.primary,
|
|
384
|
+
iconColor: yellowColor.v2.iconColor
|
|
385
|
+
}) : /*#__PURE__*/React.createElement(ProductRequirementAvatar, {
|
|
305
386
|
size: AVATAR_SIZES[size],
|
|
306
|
-
primaryColor: yellowColor.primary,
|
|
307
|
-
secondaryColor: yellowColor.secondary
|
|
387
|
+
primaryColor: yellowColor.v1.primary,
|
|
388
|
+
secondaryColor: yellowColor.v1.secondary
|
|
308
389
|
}),
|
|
309
|
-
|
|
390
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? yellowColor.v2 : yellowColor.v1
|
|
310
391
|
},
|
|
311
392
|
document_writer: {
|
|
312
393
|
getRender: size => /*#__PURE__*/React.createElement(DocumentWriterAvatar, {
|
|
313
394
|
size: AVATAR_SIZES[size],
|
|
314
|
-
primaryColor: blueColor.primary,
|
|
315
|
-
secondaryColor: blueColor.secondary
|
|
395
|
+
primaryColor: blueColor.v1.primary,
|
|
396
|
+
secondaryColor: blueColor.v1.secondary
|
|
316
397
|
}),
|
|
317
|
-
|
|
398
|
+
getColor: () => blueColor.v1
|
|
318
399
|
},
|
|
319
400
|
issue_organizer_agent: {
|
|
320
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
401
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedBacklogBuddyAvatar, {
|
|
321
402
|
size: AVATAR_SIZES[size],
|
|
322
|
-
primaryColor: greenColor.primary,
|
|
323
|
-
|
|
403
|
+
primaryColor: greenColor.v2.primary,
|
|
404
|
+
iconColor: greenColor.v2.iconColor
|
|
405
|
+
}) : /*#__PURE__*/React.createElement(BacklogBuddyAvatar, {
|
|
406
|
+
size: AVATAR_SIZES[size],
|
|
407
|
+
primaryColor: greenColor.v1.primary,
|
|
408
|
+
secondaryColor: greenColor.v1.secondary
|
|
324
409
|
}),
|
|
325
|
-
|
|
410
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
326
411
|
},
|
|
327
412
|
ops_guide_agent: {
|
|
328
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
413
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedOpsExpertAvatar, {
|
|
414
|
+
size: AVATAR_SIZES[size],
|
|
415
|
+
primaryColor: yellowColor.v2.primary,
|
|
416
|
+
iconColor: yellowColor.v2.iconColor
|
|
417
|
+
}) : /*#__PURE__*/React.createElement(OpsAgentAvatar, {
|
|
329
418
|
size: AVATAR_SIZES[size],
|
|
330
|
-
primaryColor: yellowColor.primary,
|
|
331
|
-
secondaryColor: yellowColor.secondary
|
|
419
|
+
primaryColor: yellowColor.v1.primary,
|
|
420
|
+
secondaryColor: yellowColor.v1.secondary
|
|
332
421
|
}),
|
|
333
|
-
|
|
422
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? yellowColor.v2 : yellowColor.v1
|
|
334
423
|
},
|
|
335
424
|
discovery_and_feedback_agent: {
|
|
336
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
425
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedCommsCrafterAvatar, {
|
|
426
|
+
size: AVATAR_SIZES[size],
|
|
427
|
+
primaryColor: greenColor.v2.primary,
|
|
428
|
+
iconColor: greenColor.v2.iconColor
|
|
429
|
+
}) : /*#__PURE__*/React.createElement(CommsCrafterAvatar, {
|
|
337
430
|
size: AVATAR_SIZES[size],
|
|
338
|
-
primaryColor: greenColor.primary,
|
|
339
|
-
secondaryColor: greenColor.secondary
|
|
431
|
+
primaryColor: greenColor.v1.primary,
|
|
432
|
+
secondaryColor: greenColor.v1.secondary
|
|
340
433
|
}),
|
|
341
|
-
|
|
434
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : greenColor.v1
|
|
342
435
|
},
|
|
343
436
|
jira_workflow_builder_agent: {
|
|
344
437
|
getRender: size => /*#__PURE__*/React.createElement(WorkflowBuilderAvatar, {
|
|
345
438
|
size: AVATAR_SIZES[size],
|
|
346
|
-
primaryColor: blueColor.primary,
|
|
347
|
-
secondaryColor: blueColor.secondary
|
|
439
|
+
primaryColor: blueColor.v1.primary,
|
|
440
|
+
secondaryColor: blueColor.v1.secondary
|
|
348
441
|
}),
|
|
349
|
-
|
|
442
|
+
getColor: () => blueColor.v1
|
|
350
443
|
},
|
|
351
444
|
itops_rca_agent: {
|
|
352
|
-
getRender: size => fg('platform-dst-avatar-updated-geometry') ?
|
|
445
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedAutoReviewAvatar, {
|
|
353
446
|
size: AVATAR_SIZES[size],
|
|
354
|
-
primaryColor: yellowColor.primary,
|
|
355
|
-
|
|
447
|
+
primaryColor: yellowColor.v2.primary,
|
|
448
|
+
iconColor: yellowColor.v2.iconColor
|
|
449
|
+
}) : /*#__PURE__*/React.createElement(AutoReviewAvatar, {
|
|
450
|
+
size: AVATAR_SIZES[size],
|
|
451
|
+
primaryColor: yellowColor.v1.primary,
|
|
452
|
+
secondaryColor: yellowColor.v1.secondary
|
|
356
453
|
}),
|
|
357
|
-
|
|
454
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? yellowColor.v2 : yellowColor.v1
|
|
358
455
|
},
|
|
359
456
|
jira_trial_guide_agent: {
|
|
360
457
|
getRender: size => /*#__PURE__*/React.createElement(TrialGuideAvatar, {
|
|
361
458
|
size: AVATAR_SIZES[size],
|
|
362
|
-
primaryColor: blueColor.primary,
|
|
363
|
-
secondaryColor: blueColor.secondary
|
|
459
|
+
primaryColor: blueColor.v1.primary,
|
|
460
|
+
secondaryColor: blueColor.v1.secondary
|
|
364
461
|
}),
|
|
365
|
-
|
|
462
|
+
getColor: () => blueColor.v1
|
|
366
463
|
},
|
|
367
464
|
daily_brief_agent: {
|
|
368
465
|
getRender: size => /*#__PURE__*/React.createElement(TrialGuideAvatar, {
|
|
369
466
|
size: AVATAR_SIZES[size],
|
|
370
|
-
primaryColor: yellowColor.primary,
|
|
371
|
-
secondaryColor: yellowColor.secondary
|
|
467
|
+
primaryColor: yellowColor.v1.primary,
|
|
468
|
+
secondaryColor: yellowColor.v1.secondary
|
|
372
469
|
}),
|
|
373
|
-
|
|
470
|
+
getColor: () => yellowColor.v1
|
|
374
471
|
},
|
|
375
472
|
jira_admin_agent: {
|
|
376
|
-
getRender: size => /*#__PURE__*/React.createElement(
|
|
473
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedJiraAdminAgentAvatar, {
|
|
474
|
+
size: AVATAR_SIZES[size],
|
|
475
|
+
primaryColor: blueColor.v2.primary,
|
|
476
|
+
iconColor: blueColor.v2.iconColor
|
|
477
|
+
}) : /*#__PURE__*/React.createElement(JiraCodingAgentAvatar, {
|
|
377
478
|
size: AVATAR_SIZES[size],
|
|
378
|
-
primaryColor: blueColor.primary,
|
|
379
|
-
secondaryColor: blueColor.secondary
|
|
479
|
+
primaryColor: blueColor.v1.primary,
|
|
480
|
+
secondaryColor: blueColor.v1.secondary
|
|
380
481
|
}),
|
|
381
|
-
|
|
482
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? blueColor.v2 : blueColor.v1
|
|
382
483
|
},
|
|
383
484
|
jsm_rovo_service_agent: {
|
|
384
|
-
getRender: size =>
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
485
|
+
getRender: size => {
|
|
486
|
+
if (fg('platform-dst-avatar-updated-geometry')) {
|
|
487
|
+
return /*#__PURE__*/React.createElement(RefreshedRequestResolverAvatar, {
|
|
488
|
+
size: AVATAR_SIZES[size],
|
|
489
|
+
primaryColor: yellowColor.v2.primary,
|
|
490
|
+
iconColor: yellowColor.v2.iconColor
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
if (fg('rename-rovo-service-to-request-resolver')) {
|
|
494
|
+
return /*#__PURE__*/React.createElement(JsmRequestResolverAgentAvatar, {
|
|
495
|
+
size: AVATAR_SIZES[size],
|
|
496
|
+
primaryColor: "",
|
|
497
|
+
secondaryColor: ""
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
return /*#__PURE__*/React.createElement(JsmRovoServiceAgentAvatar, {
|
|
501
|
+
size: AVATAR_SIZES[size],
|
|
502
|
+
primaryColor: "",
|
|
503
|
+
secondaryColor: ""
|
|
504
|
+
});
|
|
505
|
+
},
|
|
506
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? yellowColor.v2 : yellowColor.v1
|
|
394
507
|
},
|
|
395
508
|
mcp_amplitude_agent: {
|
|
396
509
|
getRender: size => fg('rovo_agent_amplitude_avatar_v2') ? /*#__PURE__*/React.createElement(AmplitudeAgentAvatarV2, {
|
|
@@ -402,7 +515,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
402
515
|
primaryColor: "",
|
|
403
516
|
secondaryColor: ""
|
|
404
517
|
}),
|
|
405
|
-
|
|
518
|
+
getColor: () => blueColor.v1
|
|
406
519
|
},
|
|
407
520
|
mcp_box_agent: {
|
|
408
521
|
getRender: size => /*#__PURE__*/React.createElement(BoxAgentAvatar, {
|
|
@@ -410,7 +523,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
410
523
|
primaryColor: "",
|
|
411
524
|
secondaryColor: ""
|
|
412
525
|
}),
|
|
413
|
-
|
|
526
|
+
getColor: () => blueColor.v1
|
|
414
527
|
},
|
|
415
528
|
mcp_canva_agent: {
|
|
416
529
|
getRender: size => /*#__PURE__*/React.createElement(CanvaAgentAvatar, {
|
|
@@ -418,7 +531,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
418
531
|
primaryColor: "",
|
|
419
532
|
secondaryColor: ""
|
|
420
533
|
}),
|
|
421
|
-
|
|
534
|
+
getColor: () => blueColor.v1
|
|
422
535
|
},
|
|
423
536
|
mcp_figma_agent: {
|
|
424
537
|
getRender: size => /*#__PURE__*/React.createElement(FigmaAgentAvatar, {
|
|
@@ -426,7 +539,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
426
539
|
primaryColor: "",
|
|
427
540
|
secondaryColor: ""
|
|
428
541
|
}),
|
|
429
|
-
|
|
542
|
+
getColor: () => blueColor.v1
|
|
430
543
|
},
|
|
431
544
|
mcp_hubspot_agent: {
|
|
432
545
|
getRender: size => /*#__PURE__*/React.createElement(HubSpotAgentAvatar, {
|
|
@@ -434,7 +547,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
434
547
|
primaryColor: "",
|
|
435
548
|
secondaryColor: ""
|
|
436
549
|
}),
|
|
437
|
-
|
|
550
|
+
getColor: () => blueColor.v1
|
|
438
551
|
},
|
|
439
552
|
mcp_intercom_agent: {
|
|
440
553
|
getRender: size => /*#__PURE__*/React.createElement(IntercomAgentAvatar, {
|
|
@@ -442,7 +555,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
442
555
|
primaryColor: "",
|
|
443
556
|
secondaryColor: ""
|
|
444
557
|
}),
|
|
445
|
-
|
|
558
|
+
getColor: () => blueColor.v1
|
|
446
559
|
},
|
|
447
560
|
mcp_gamma_agent: {
|
|
448
561
|
getRender: size => /*#__PURE__*/React.createElement(GammaAgentAvatar, {
|
|
@@ -450,7 +563,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
450
563
|
primaryColor: "",
|
|
451
564
|
secondaryColor: ""
|
|
452
565
|
}),
|
|
453
|
-
|
|
566
|
+
getColor: () => blueColor.v1
|
|
454
567
|
},
|
|
455
568
|
mcp_lovable_agent: {
|
|
456
569
|
getRender: size => /*#__PURE__*/React.createElement(LovableAgentAvatar, {
|
|
@@ -458,7 +571,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
458
571
|
primaryColor: "",
|
|
459
572
|
secondaryColor: ""
|
|
460
573
|
}),
|
|
461
|
-
|
|
574
|
+
getColor: () => blueColor.v1
|
|
462
575
|
},
|
|
463
576
|
mcp_replit_agent: {
|
|
464
577
|
getRender: size => /*#__PURE__*/React.createElement(ReplitAgentAvatar, {
|
|
@@ -466,7 +579,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
466
579
|
primaryColor: "",
|
|
467
580
|
secondaryColor: ""
|
|
468
581
|
}),
|
|
469
|
-
|
|
582
|
+
getColor: () => blueColor.v1
|
|
470
583
|
},
|
|
471
584
|
rovo_agent: {
|
|
472
585
|
getRender: size => /*#__PURE__*/React.createElement(RovoAgentAvatar, {
|
|
@@ -474,7 +587,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
474
587
|
primaryColor: "",
|
|
475
588
|
secondaryColor: ""
|
|
476
589
|
}),
|
|
477
|
-
|
|
590
|
+
getColor: () => blueColor.v1
|
|
478
591
|
},
|
|
479
592
|
jira_work_agent: {
|
|
480
593
|
getRender: size => /*#__PURE__*/React.createElement(JiraWorkAgentAvatar, {
|
|
@@ -482,7 +595,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
482
595
|
primaryColor: "",
|
|
483
596
|
secondaryColor: ""
|
|
484
597
|
}),
|
|
485
|
-
|
|
598
|
+
getColor: () => blueColor.v1
|
|
486
599
|
},
|
|
487
600
|
jira_task_planner_agent: {
|
|
488
601
|
getRender: size => /*#__PURE__*/React.createElement(JiraTaskPlannerAgentAvatar, {
|
|
@@ -490,33 +603,39 @@ const outOfTheBoxAgentAvatar = {
|
|
|
490
603
|
primaryColor: "",
|
|
491
604
|
secondaryColor: ""
|
|
492
605
|
}),
|
|
493
|
-
|
|
606
|
+
getColor: () => blueColor.v1
|
|
494
607
|
},
|
|
495
608
|
jira_intelligent_triage_agent: {
|
|
496
|
-
getRender: size => /*#__PURE__*/React.createElement(
|
|
609
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedJiraIntelligentTriageAgentAvatar, {
|
|
610
|
+
size: AVATAR_SIZES[size],
|
|
611
|
+
primaryColor: blueColor.v2.primary,
|
|
612
|
+
iconColor: blueColor.v2.iconColor
|
|
613
|
+
}) : /*#__PURE__*/React.createElement(JiraIntelligentTriageAgentAvatar, {
|
|
497
614
|
size: AVATAR_SIZES[size],
|
|
498
615
|
primaryColor: "",
|
|
499
616
|
secondaryColor: ""
|
|
500
617
|
}),
|
|
501
|
-
|
|
618
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? blueColor.v2 : blueColor.v1
|
|
502
619
|
},
|
|
503
|
-
// The "Request router" agent (previously named "Service triage"). The key is the agent's
|
|
504
|
-
// external_config_reference, which stays as `jsm_service_triage_agent` after the rename.
|
|
505
620
|
jsm_service_triage_agent: {
|
|
506
621
|
getRender: size => /*#__PURE__*/React.createElement(JsmServiceTriageAgentAvatar, {
|
|
507
622
|
size: AVATAR_SIZES[size],
|
|
508
623
|
primaryColor: "",
|
|
509
624
|
secondaryColor: ""
|
|
510
625
|
}),
|
|
511
|
-
|
|
626
|
+
getColor: () => yellowColor.v1
|
|
512
627
|
},
|
|
513
628
|
jira_coding_agent: {
|
|
514
|
-
getRender: size => /*#__PURE__*/React.createElement(
|
|
629
|
+
getRender: size => fg('platform-dst-avatar-updated-geometry') ? /*#__PURE__*/React.createElement(RefreshedJiraCodingAgentAvatar, {
|
|
630
|
+
size: AVATAR_SIZES[size],
|
|
631
|
+
primaryColor: greenColor.v2.primary,
|
|
632
|
+
iconColor: greenColor.v2.iconColor
|
|
633
|
+
}) : /*#__PURE__*/React.createElement(JiraCodingAgentAvatar, {
|
|
515
634
|
size: AVATAR_SIZES[size],
|
|
516
635
|
primaryColor: "",
|
|
517
636
|
secondaryColor: ""
|
|
518
637
|
}),
|
|
519
|
-
|
|
638
|
+
getColor: () => fg('platform-dst-avatar-updated-geometry') ? greenColor.v2 : blueColor.v1
|
|
520
639
|
}
|
|
521
640
|
};
|
|
522
641
|
|
|
@@ -547,11 +666,6 @@ export const getNumberIdForAvatar = ({
|
|
|
547
666
|
}
|
|
548
667
|
return null;
|
|
549
668
|
};
|
|
550
|
-
const renderRefreshedAvatar = (Avatar, color, size) => /*#__PURE__*/React.createElement(Avatar, {
|
|
551
|
-
size: AVATAR_SIZES[size],
|
|
552
|
-
primaryColor: color === blueColor ? refreshedBlueColor.primary : color.primary,
|
|
553
|
-
iconColor: color === blueColor ? '#FFFFFF' : '#101214'
|
|
554
|
-
});
|
|
555
669
|
const ROVO_DEV_AGENT_ID = '027f0676-e8e9-4939-8962-3850987d78bb';
|
|
556
670
|
const getAvatarRender = ({
|
|
557
671
|
agentNamedId,
|
|
@@ -567,7 +681,7 @@ const getAvatarRender = ({
|
|
|
567
681
|
primaryColor: "",
|
|
568
682
|
secondaryColor: ""
|
|
569
683
|
}),
|
|
570
|
-
color: greenColor
|
|
684
|
+
color: greenColor.v1
|
|
571
685
|
};
|
|
572
686
|
}
|
|
573
687
|
|
|
@@ -580,14 +694,14 @@ const getAvatarRender = ({
|
|
|
580
694
|
primaryColor: "",
|
|
581
695
|
secondaryColor: ""
|
|
582
696
|
}),
|
|
583
|
-
color: greenColor
|
|
697
|
+
color: greenColor.v1
|
|
584
698
|
};
|
|
585
699
|
}
|
|
586
700
|
if (typeof agentNamedId === 'string' && outOfTheBoxAgentAvatar[agentNamedId]) {
|
|
587
|
-
const
|
|
701
|
+
const avatar = outOfTheBoxAgentAvatar[agentNamedId];
|
|
588
702
|
return {
|
|
589
|
-
render:
|
|
590
|
-
color:
|
|
703
|
+
render: avatar.getRender(size),
|
|
704
|
+
color: avatar.getColor()
|
|
591
705
|
};
|
|
592
706
|
}
|
|
593
707
|
const numberId = getNumberIdForAvatar({
|
|
@@ -604,30 +718,37 @@ const getAvatarRender = ({
|
|
|
604
718
|
const combinationIndex = numberId % totalCombinations;
|
|
605
719
|
const avatarIndex = Math.floor(combinationIndex / colorList.length);
|
|
606
720
|
const colorIndex = combinationIndex % colorList.length;
|
|
607
|
-
const
|
|
721
|
+
const avatar = avatarList[avatarIndex];
|
|
608
722
|
const color = colorList[colorIndex];
|
|
609
723
|
if (fg('platform-dst-avatar-updated-geometry')) {
|
|
724
|
+
const Avatar = avatar.v2;
|
|
610
725
|
return {
|
|
611
|
-
render:
|
|
612
|
-
|
|
726
|
+
render: /*#__PURE__*/React.createElement(Avatar, {
|
|
727
|
+
size: AVATAR_SIZES[size],
|
|
728
|
+
primaryColor: color.v2.primary,
|
|
729
|
+
iconColor: color.v2.iconColor
|
|
730
|
+
}),
|
|
731
|
+
color: color.v2
|
|
613
732
|
};
|
|
614
733
|
}
|
|
734
|
+
const Avatar = avatar.v1;
|
|
615
735
|
return {
|
|
616
736
|
render: /*#__PURE__*/React.createElement(Avatar, {
|
|
617
737
|
size: AVATAR_SIZES[size],
|
|
618
|
-
primaryColor: color.primary,
|
|
619
|
-
secondaryColor: color.secondary
|
|
738
|
+
primaryColor: color.v1.primary,
|
|
739
|
+
secondaryColor: color.v1.secondary
|
|
620
740
|
}),
|
|
621
|
-
color
|
|
741
|
+
color: color.v1
|
|
622
742
|
};
|
|
623
743
|
}
|
|
744
|
+
const fallbackColor = fg('platform-dst-avatar-updated-geometry') ? blueColor.v2 : blueColor.v1;
|
|
624
745
|
return {
|
|
625
746
|
render: /*#__PURE__*/React.createElement(GenericAvatar, {
|
|
626
747
|
size: AVATAR_SIZES[size],
|
|
627
|
-
primaryColor:
|
|
628
|
-
secondaryColor:
|
|
748
|
+
primaryColor: fallbackColor.primary,
|
|
749
|
+
secondaryColor: 'iconColor' in fallbackColor ? fallbackColor.iconColor : fallbackColor.secondary
|
|
629
750
|
}),
|
|
630
|
-
color:
|
|
751
|
+
color: fallbackColor
|
|
631
752
|
};
|
|
632
753
|
};
|
|
633
754
|
export const getAgentAvatarColor = props => getAvatarRender({
|