Skip to content

Commit

Permalink
fix(llm.gblib): Fix in doc. publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 4, 2024
1 parent a443927 commit 6168275
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
22 changes: 13 additions & 9 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1287,16 +1287,20 @@ export class GBMinService {
*/
private async processEventActivity(min, user, context, step: GBDialogStep) {
const pid = step.context.activity['pid'];
if (context.activity.name === 'whoAmI') {
await step.beginDialog('/whoAmI');
} else if (context.activity.name === 'showSubjects') {
await step.beginDialog('/menu', undefined);
} else if (context.activity.name === 'giveFeedback') {
await step.beginDialog('/feedback', {
fromMenu: true
});

const contentLocale = min.core.getParam(
min.instance,
'Default Content Language',
GBConfigService.get('DEFAULT_CONTENT_LANGUAGE')
);

if (context.activity.name === 'showSubjects') {
await step.replaceDialog('/answer', { query: `Show a list of subjects you can help me in ${contentLocale} language.` });


} else if (context.activity.name === 'showFAQ') {
await step.beginDialog('/faq');
await step.replaceDialog('/answer', { query: `Show a FAQ for me about how can you help me in a bullet list, in ${contentLocale} language.` });

} else if (context.activity.name === 'answerEvent') {
await step.beginDialog('/answerEvent', <AskDialogArgs>{
questionId: context.activity.data,
Expand Down
10 changes: 7 additions & 3 deletions packages/default.gbui/src/components/SidebarMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ class SideBarMenu extends React.Component {
</span>
</div>
<div className="iconMenu">
<span className="iconText" onClick={() => this.send("whoAmI")}>
Who are You?
<span className="iconText"
onClick={() => window.open(`https://pragmatismo.sharepoint.com/sites/bots/Online/${this.props.instance.botId}.gbai`)}
>
Drive
</span>
</div>
<div className="iconMenu">
Expand All @@ -75,9 +77,11 @@ class SideBarMenu extends React.Component {
<div className="iconMenu">
<span
className="iconText"
onClick={() => this.send("giveFeedback")}>
onClick={() => window.open('mailto:[email protected]')}
>
Suggestions
</span>

</div>
</div>
</div>
Expand Down

0 comments on commit 6168275

Please sign in to comment.