diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..6ffbc30 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: / + diff --git a/src/components/skills/ChatSkill/ChatSkill.module.scss b/src/components/skills/ChatSkill/ChatSkill.module.scss index f7aa2df..43cb279 100644 --- a/src/components/skills/ChatSkill/ChatSkill.module.scss +++ b/src/components/skills/ChatSkill/ChatSkill.module.scss @@ -63,6 +63,16 @@ } } + .ratingDialogTitle { + text-align: center; + text-indent: 1rem; + font-size: 1rem; + + .override { + margin-top: 0px !important; + } + } + .inputs { flex-grow: 2; flex-shrink: 0; diff --git a/src/components/skills/ChatSkill/ChatSkill.tsx b/src/components/skills/ChatSkill/ChatSkill.tsx index 1451171..59e281a 100644 --- a/src/components/skills/ChatSkill/ChatSkill.tsx +++ b/src/components/skills/ChatSkill/ChatSkill.tsx @@ -82,14 +82,35 @@ class ChatSkill extends Component { const rest = { ...mes }; delete rest.answer; delete rest.question; + const text = mes.answer; let answer: any = mes.answer; + var idx; + var temp_dlg; + if (text.includes("#+#")) + { + idx = (text.indexOf("#") - 1); + answer = text.slice(0, idx); + } + if (text.includes("Oh, and remember this dialog's id: ")) + { + temp_dlg = (text.indexOf("Oh, and remember this dialog's id: ") -1) + answer = text.slice(0, temp_dlg) + temp_dlg = temp_dlg + 36 + } return [

{mes.question}

,

{answer}

-
, + + ]; + } + + /* + + moved from renderBasic + ,
{mes.rating === 0 &&
@@ -100,8 +121,8 @@ class ChatSkill extends Component { {mes.rating === 1 && 👍} {mes.rating === 2 && 👎}
- ]; - } + + */ setUttRating = async (i: number, rating: number) => { const { updateStore, answers, utteranceRating, dispatchLoading } = this.props; @@ -293,7 +314,12 @@ class ChatSkill extends Component {
- {dialog_id &&
{this.renderScore(rating)}
} + {dialog_id &&
+
Rate Your Dialog:
+
{this.renderScore(rating)}
+
Dialog Id: {dialog_id}
+
Share Your Feedback With Us!
+
}