Skip to content

Commit af20fd1

Browse files
Ankurrana/workday topics ux improvements (#435)
* Changed color to Default for Adaptive cards * Removed extra asterick from required fields in Adaptive card * Updated case for Open Source Scenarios * Removed comfirmation steps in Workflows --------- Co-authored-by: Ankur Rana <ankurrana@microsoft.com>
1 parent cd472a2 commit af20fd1

4 files changed

Lines changed: 12 additions & 143 deletions

File tree

  • EmployeeSelfServiceAgent/Workday/EmployeeScenarios

EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeAddDependents/topic.yaml

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ beginDialog:
191191
text: "Add New Dependent",
192192
weight: "Bolder",
193193
size: "Large",
194-
color: "Accent"
194+
color: "Default"
195195
},
196196
{
197197
type: "TextBlock",
@@ -310,70 +310,6 @@ beginDialog:
310310
variable: Topic.relationshipTypeId
311311
value: =Topic.relationshipType
312312

313-
# Step 10: Show confirmation before adding
314-
- kind: AdaptiveCardPrompt
315-
id: confirmAddCard
316-
displayName: Confirm dependent details
317-
card: |-
318-
={
319-
type: "AdaptiveCard",
320-
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
321-
version: "1.3",
322-
body: [
323-
{
324-
type: "TextBlock",
325-
text: "Confirm New Dependent",
326-
weight: "Bolder",
327-
size: "Medium",
328-
wrap: true,
329-
color: "Accent"
330-
},
331-
{
332-
type: "TextBlock",
333-
text: "Please review the dependent details:",
334-
wrap: true
335-
},
336-
{
337-
type: "FactSet",
338-
facts: [
339-
{ title: "Name", value: Topic.firstName & " " & Topic.lastName },
340-
{ title: "Date of Birth", value: Topic.dateOfBirth },
341-
{ title: "Gender", value: Topic.gender },
342-
{ title: "Relationship", value: LookUp(Global.RelatedPersonRelationshipLookupTable, ID = Topic.relationshipType).Referenced_Object_Descriptor },
343-
{ title: "Country", value: Topic.country }
344-
]
345-
},
346-
{
347-
type: "TextBlock",
348-
text: "Do you want to add this dependent?",
349-
wrap: true,
350-
weight: "Bolder"
351-
}
352-
],
353-
actions: [
354-
{ type: "Action.Submit", title: "Yes, Add Dependent" },
355-
{ type: "Action.Submit", title: "Cancel", associatedInputs: "none" }
356-
]
357-
}
358-
output:
359-
binding:
360-
actionSubmitId: Topic.confirmActionId
361-
outputType:
362-
properties:
363-
actionSubmitId: String
364-
365-
- kind: ConditionGroup
366-
id: checkConfirmation
367-
conditions:
368-
- id: notConfirmedCondition
369-
condition: =Topic.confirmActionId = "Cancel"
370-
actions:
371-
- kind: SendActivity
372-
id: sendNotConfirmedMessage
373-
activity: Request cancelled. No dependent was added.
374-
- kind: EndDialog
375-
id: endOnNotConfirmed
376-
377313
# Step 10: Call Add Dependent API
378314
- kind: BeginDialog
379315
id: addDependent_BeginDialog

EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/UpdateResidentialAddress_Topic.yaml renamed to EmployeeSelfServiceAgent/Workday/EmployeeScenarios/EmployeeUpdateResidentialAddress/topic.yaml

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ beginDialog:
224224
weight: "Bolder",
225225
size: "Medium",
226226
wrap: true,
227-
color: "Accent"
227+
color: "Default"
228228
},
229229
{
230230
type: "TextBlock",
@@ -322,7 +322,7 @@ beginDialog:
322322
body: [
323323
{
324324
type: "TextBlock",
325-
text: "Update Your Home Address",
325+
text: "Update your home address",
326326
weight: "Bolder",
327327
size: "Large"
328328
},
@@ -334,7 +334,7 @@ beginDialog:
334334
{
335335
type: "Input.Text",
336336
id: "addressLine1",
337-
label: "Address Line 1 *",
337+
label: "Address Line 1 ",
338338
placeholder: "Street address",
339339
isRequired: true,
340340
value: If(IsBlank(Topic.currentAddressLine1), "", Topic.currentAddressLine1)
@@ -349,15 +349,15 @@ beginDialog:
349349
{
350350
type: "Input.Text",
351351
id: "city",
352-
label: "City *",
352+
label: "City ",
353353
placeholder: "City",
354354
isRequired: true,
355355
value: If(IsBlank(Topic.currentCity), "", Topic.currentCity)
356356
},
357357
{
358358
type: "Input.ChoiceSet",
359359
id: "country",
360-
label: "Country *",
360+
label: "Country ",
361361
isRequired: true,
362362
value: If(IsBlank(Topic.currentCountryCode), "USA", Topic.currentCountryCode),
363363
choices: [
@@ -376,7 +376,7 @@ beginDialog:
376376
{
377377
type: "Input.ChoiceSet",
378378
id: "stateProvince",
379-
label: "State/Province *",
379+
label: "State/Province ",
380380
isRequired: true,
381381
value: If(IsBlank(Topic.currentStateProvince), "", Topic.currentStateProvince),
382382
choices: [
@@ -440,7 +440,7 @@ beginDialog:
440440
{
441441
type: "Input.Text",
442442
id: "postalCode",
443-
label: "Postal/ZIP Code *",
443+
label: "Postal/ZIP Code ",
444444
placeholder: "Postal Code",
445445
isRequired: true,
446446
value: If(IsBlank(Topic.currentPostalCode), "", Topic.currentPostalCode)
@@ -520,74 +520,7 @@ beginDialog:
520520
- kind: EndDialog
521521
id: endOnValidationError
522522

523-
# Step 8: Show confirmation before update
524-
- kind: AdaptiveCardPrompt
525-
id: confirmUpdateCard
526-
displayName: Confirm address update
527-
card: |-
528-
={
529-
type: "AdaptiveCard",
530-
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
531-
version: "1.3",
532-
body: [
533-
{
534-
type: "TextBlock",
535-
text: "Confirm Address Update",
536-
weight: "Bolder",
537-
size: "Medium",
538-
wrap: true,
539-
color: "Accent"
540-
},
541-
{
542-
type: "TextBlock",
543-
text: "Please review your new address details:",
544-
wrap: true
545-
},
546-
{
547-
type: "FactSet",
548-
facts: [
549-
{ title: "Address Line 1", value: Topic.newAddressLine1 },
550-
{ title: "Address Line 2", value: If(IsBlank(Topic.newAddressLine2), "-", Topic.newAddressLine2) },
551-
{ title: "City", value: Topic.newCity },
552-
{ title: "State/Province", value: Topic.newStateProvince },
553-
{ title: "Country", value: Topic.newCountry },
554-
{ title: "Postal Code", value: Topic.newPostalCode },
555-
{ title: "Primary Address", value: If(Topic.newIsPrimary = "true", "Yes", "No") }
556-
]
557-
},
558-
{
559-
type: "TextBlock",
560-
text: "Do you want to proceed with this update?",
561-
wrap: true,
562-
weight: "Bolder"
563-
}
564-
],
565-
actions: [
566-
{ type: "Action.Submit", title: "Yes, Update Address" },
567-
{ type: "Action.Submit", title: "Cancel", associatedInputs: "none" }
568-
]
569-
}
570-
output:
571-
binding:
572-
actionSubmitId: Topic.confirmActionId
573-
outputType:
574-
properties:
575-
actionSubmitId: String
576-
577-
- kind: ConditionGroup
578-
id: checkConfirmation
579-
conditions:
580-
- id: notConfirmedCondition
581-
condition: =Topic.confirmActionId = "Cancel"
582-
actions:
583-
- kind: SendActivity
584-
id: sendNotConfirmedMessage
585-
activity: Address update cancelled. No changes were made.
586-
587-
- kind: EndDialog
588-
id: endOnNotConfirmed
589-
590-
# Step 9: Call Update API
523+
# Step 8: Call Update API
591524
- kind: BeginDialog
592525
id: updateAddress_BeginDialog
593526
displayName: Update Residential Address

EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayEmployeeRequestTimeOff/topic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ beginDialog:
7979
weight: "Bolder",
8080
size: "Medium",
8181
wrap: true,
82-
color: "Accent"
82+
color: "Default"
8383
},
8484
{
8585
type: "TextBlock",

EmployeeSelfServiceAgent/Workday/EmployeeScenarios/WorkdayManageEmergencyContact/topic.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ beginDialog:
255255
weight: "Bolder",
256256
size: "Medium",
257257
wrap: true,
258-
color: "Accent"
258+
color: "Default"
259259
},
260260
{
261261
type: "TextBlock",
@@ -348,7 +348,7 @@ beginDialog:
348348
weight: "Bolder",
349349
size: "Medium",
350350
wrap: true,
351-
color: "Accent"
351+
color: "Default"
352352
},
353353
{
354354
type: "TextBlock",

0 commit comments

Comments
 (0)