Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatbot 630 documentary resources display && Chatbot 624 / 671 / 673 platform redesign #251

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0f8c56e
[CHATBOT-630 Export documentary resources and create documentaryResou…
romaricspklee Sep 3, 2024
bd3916d
[CHATBOT-630 add type to AttachmentExport class]
romaricspklee Sep 3, 2024
703563b
[CHATBOT-630 simplify DocumentaryResourceExport class]
romaricspklee Sep 3, 2024
9f31d23
[CHATBOT-630 Export and init documentary resources and documentary re…
romaricspklee Sep 4, 2024
9a237d7
[CHATBOT-630 Platform layout update]
romaricspklee Sep 9, 2024
5ca20cf
[CHATBOT-630 Creating chatbot q&a and documentary resources display p…
romaricspklee Sep 9, 2024
1e33239
[CHATBOT-630 Small bug fix]
romaricspklee Sep 10, 2024
27cb093
[CHATBOT-630 Setting up changeable platform layout + layout changes]
romaricspklee Sep 10, 2024
acc249d
[CHATBOT-630 Small layout update]
romaricspklee Sep 11, 2024
0a1ba92
[CHATBOT-630 Small layout update]
romaricspklee Sep 12, 2024
48d196a
[CHATBOT-630 flexible platform refresh]
romaricspklee Sep 18, 2024
fc26ee8
[CHATBOT-630 small layout changes]
romaricspklee Sep 18, 2024
262f359
[CHATBOT-630 small layout changes]
romaricspklee Sep 19, 2024
35d1c0e
[CHATBOT-630 Export chatbotDisplay qAndADisplay and documentaryResour…
romaricspklee Sep 19, 2024
aee31a5
[CHATBOT-630 rename qAndADisplay param in ChatbotCustomConfigExport]
romaricspklee Sep 19, 2024
4202114
[CHATBOT-630 enable chatbot layout parameters]
romaricspklee Sep 24, 2024
bab00b2
[CHATBOT-630 small layout changes]
romaricspklee Sep 25, 2024
7602916
[CHATBOT-630 create services for chatbot.js]
romaricspklee Sep 27, 2024
6842a8b
[CHATBOT-630 delete text type of documentaryResources]
romaricspklee Sep 27, 2024
f8f5079
[CHATBOT-630 platform refresh on tab change]
romaricspklee Sep 30, 2024
fe72d4c
[CHATBOT-630 small changes]
romaricspklee Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions vertigo-bot-executor/src/main/webapp/static/chatbot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<q-layout view="hHh lpr fFf" class="row col">
<q-layout-header class="bg-white">
<div class="custom-header row items-center non-selectable" >
<div class="title col-grow q-ml-md">
{{ botName }}
<div class="title col-grow q-ml-sm">
{{ platformName }}
</div>
<!--<q-btn-dropdown color="primary" icon="language">
<q-list style="text-align: center; padding: 0">
Expand Down Expand Up @@ -67,14 +67,14 @@
</div>
<q-page id="page"
class="row col column animate-fade">
<div v-if="!menu && tab ==='bot'"
<div v-if="footerMenu ==='bot'"
id="main"
class="column col-grow no-wrap chatbot-qanda-container"
>
<q-scroll-area class="col row no-wrap q-px-sm"
ref="scroller">
<div class="q-pr-md q-pt-md">
<div v-for="(msg, index) in messages">
<div v-for="(msg, index) in botConfig.messages">
<q-chat-message
v-if="msg.text"
class="animate-fade"
Expand All @@ -98,7 +98,7 @@
</div>
<div class="sys-chat">
<q-chat-message
v-if="error"
v-if="botConfig.error"
class="animate-fade"
bg-color="orange-4"
text-color="black"
Expand All @@ -119,7 +119,7 @@

<div class="message-processing sys-chat non-selectable">
<q-chat-message
v-if="processing"
v-if="botConfig.processing"
class="animate-fade"
bg-color="grey-grdf"
>
Expand Down Expand Up @@ -197,25 +197,25 @@
@keyup.enter="inputConfig.modeTextarea || inputConfig.responseText.trim() === '' ? false : postAnswerText(false)"
v-model="inputConfig.responseText"
placeholder="Ecrire un message..."
:disable="processing || error || (!acceptNlu && !isEnded) || customConfig.disableNlu"
:loading="processing"></q-input>
:disable="botConfig.processing || botConfig.error || (!botConfig.acceptNlu && !botConfig.isEnded) || customConfig.disableNlu"
:loading="botConfig.processing"></q-input>
</div>
<q-btn
:style="'margin-top: 0px;'"
style="margin-top: 0px;"
class="btn-send"
icon="send"
@click="postAnswerText(false)"
:disable="processing || inputConfig.responseText.trim() === ''"></q-btn>
:disable="botConfig.processing || inputConfig.responseText.trim() === ''"></q-btn>
<q-btn round
color="red"
@click="restart"
v-if="devMode === true && false"
v-if="botConfig.devMode === true && false"
icon="refresh"></q-btn>
</div>
</div>

<div v-if="tab === 'qAndA'" class="column col-grow no-wrap chatbot-qanda-container">
<div v-if="footerMenu === 'qAndA'" class="column col-grow no-wrap chatbot-qanda-container">
<div class="column col-grow" v-if="!qAndAConfig.selectedQuestion">
<div class="custom-input-qanda">
<q-input v-model="qAndAConfig.filterInput"
Expand All @@ -234,6 +234,7 @@
</div>
<div style="height: 30px"></div>
</q-scroll-area>

</div>

<q-scroll-area v-if="qAndAConfig.selectedQuestion"
Expand Down Expand Up @@ -278,8 +279,8 @@
</q-page-container>

<q-layout-footer v-if="customConfig.chatbotDisplay && customConfig.qandaDisplay" style="display: flex">
<q-btn icon="smart_toy" class="q-btn-footer" :class="{'q-btn-footer-selected': tab==='bot'}" @Click="tabChange('bot')"></q-btn>
<q-btn icon="question_answer" class="q-btn-footer" :class="{'q-btn-footer-selected': tab==='qAndA'}" @Click="tabChange('qAndA')"></q-btn>
<q-btn icon="smart_toy" class="q-btn-footer" :class="{'q-btn-footer-selected': footerMenu === 'bot'}" @Click="footerMenuChange('bot')"></q-btn>
<q-btn icon="question_answer" class="q-btn-footer" :class="{'q-btn-footer-selected': footerMenu === 'qAndA'}" @Click="footerMenuChange('qAndA')"></q-btn>
</q-layout-footer>
</q-layout>
</div>
Expand All @@ -292,5 +293,8 @@
integrity="sha512-QpQT1tpnIGTHF8DZQmL2Xp9QhAYp7Kfl8yJwlyjoYNe1YDWgE1kd9NfnzPVo2GPDpHtLyixEKaSNL/CNe6ZzYg=="
crossorigin="anonymous"></script>
<script src="js/chatbot.js"></script>
<script src="js/botService.js"></script>
<script src="js/documentaryResourceService.js"></script>
<script src="js/qAndAService.js"></script>
</body>
</html>
Loading