-
Notifications
You must be signed in to change notification settings - Fork 374
feat: allow users to select PVA topics when beginning new dialog #6691
Conversation
There has been a change in how content diff is calculated that no longer requires this.
| export const DialogRef: WidgetComponent<DialogRefCardProps> = ({ id, onEvent, dialog }) => { | ||
| export const DialogRef: WidgetComponent<DialogRefCardProps> = ({ id, onEvent, dialog, data }) => { | ||
| const { ElementWrapper } = useContext(RendererContext); | ||
| const { dialogs, topics } = useContext(NodeRendererContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yeze322 Can you take a look at this and let me know your thoughts?
I wanted to do 2 things:
- Use the dialog's display name instead of its id
- Differentiate from dialogs and topics
This is your domain so I want to make sure that this approach is fine, or work with you to do something better.
| const isRoot = file.relativePath.includes('/') === false; // root dialog should be in root path | ||
| const dialog: DialogInfo = { | ||
| isRoot, | ||
| isTopic: file.relativePath.startsWith('topics/'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the answer is yes, but just confirming: We are fine with not indexing the topic if the user decides to muck around with the folder structure right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should engage the PVA team on that. My assumption is that the folder structure is necessary when publishing back to PVA, but I don't know for sure.
Composer/packages/server/src/externalContentProvider/powerVirtualAgentsProvider.ts
Show resolved
Hide resolved
tonyanziano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but going to wait until Ze responds to your comment before approving.
…rosoft#6691) * add includeTopics query when downloading bot content * include topics when loading bots * do not show topics in the main dialog navigation * move icons into shared * add more icons * add isTopic to DialogInfo * expose topics through shell api * show topics in begin dialog action * link to PVA topic * include pva topics by default for electron task * update query string to be boolean value * do not include etag when publishing with topics There has been a change in how content diff is calculated that no longer requires this. * make icons in dropdowns blue * revert If-Match header change Bug was fixed in PVA * default to using oneauth in electron launch task * silence console output for tests in CI * fix select dialog test
Description
Task Item
refs #6047
Screenshots