summaryrefslogtreecommitdiff
path: root/addons/mail_bot/static
diff options
context:
space:
mode:
authordmonzonis <mod@odoo.com>2020-05-07 07:09:43 +0000
committerThibault Delavallée <tde@odoo.com>2020-05-27 12:47:16 +0000
commit936d206559035627b07a25e7a0f807ad43d39f54 (patch)
tree23b7d64a07f15a26b630383e70bc472fef1bbb70 /addons/mail_bot/static
parent5b20117495b908bde3877c02db3ada7249eb7993 (diff)
[IMP] mail_bot: improve OdooBot workflow
This commit attempts to improve the workflow of the OdooBot onboarding tutorial, as well as the answer given by the bot while idle. These changes come from watching how users interact with OdooBot. To improve the user's experience, the following changes have been made: 1. Move the attachment to the end of the tour, as it is where most people just close the bot. 2. Remove the quotation marks around commands that OdooBot tells the user to type, like "/" or ":)", as some users try to actually type the quotation marks too. Instead, use a light grey background around the command that the user should type. 3. Some users ask OdooBot questions, but the responses they get are useless. To solve this, use a message linking to the documentation or the videos when: - The user gives wrong answers twice for the same stage of the tour - The user talks again when the tour is completed - There's a question mark in the answer To achieve this a "failed" state field is added on user model, allowing to distinguish state in the bot workflow from state of answers (failed / not failed). Task ID: 2233014 PR #49661
Diffstat (limited to 'addons/mail_bot/static')
-rw-r--r--addons/mail_bot/static/src/scss/odoobot_style.scss8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/mail_bot/static/src/scss/odoobot_style.scss b/addons/mail_bot/static/src/scss/odoobot_style.scss
new file mode 100644
index 00000000000..aa5e187bb00
--- /dev/null
+++ b/addons/mail_bot/static/src/scss/odoobot_style.scss
@@ -0,0 +1,8 @@
+.o_odoobot_command {
+ background-color: lightgray;
+ border-radius: 4px;
+ padding: 2px;
+ padding-left: 10px;
+ padding-right: 10px;
+ font-weight: bold;
+}