From 2b1df3ea6c4c7091d65e40d31c22d5726ce306cc Mon Sep 17 00:00:00 2001 From: smathot Date: Sun, 11 Feb 2024 14:52:14 +0100 Subject: [PATCH] Some minor polish --- heymans/__init__.py | 2 +- heymans/config.py | 11 +++++------ heymans/forms.py | 3 ++- heymans/templates/header.html | 4 ++++ heymans/templates/stylesheet.css.jinja | 15 +++++++++++++++ 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/heymans/__init__.py b/heymans/__init__.py index e53e8d8..a296d84 100644 --- a/heymans/__init__.py +++ b/heymans/__init__.py @@ -1,3 +1,3 @@ """AI-based chatbot that provides sensible answers based on documentation""" -__version__ = '0.11.0' +__version__ = '0.11.1' diff --git a/heymans/config.py b/heymans/config.py index 5c6e32a..b41076c 100644 --- a/heymans/config.py +++ b/heymans/config.py @@ -55,20 +55,19 @@ # The maximum length of a user message max_message_length = 5000 # A fixed welcome message -welcome_message_with_search = '''Nice to meet you! I am Sigmund, your friendly OpenSesame assistant! +welcome_message_with_search = '''Nice to meet you! I am Sigmund, your friendly OpenSesame assistant! I am best at answering questions that are specific and that I can look up in the documentation. -I am best at answering questions that are specific and that I can look up in the documentation. I also have basic code execution abilities, can read attachments, and can look up scientific articles on Google Scholar. +If you want to discuss things that are unrelated to OpenSesame, disable "OpenSesame expert" mode in the menu (it is currently enabled). That will make me a better general-purpose chatbot. What is your name? And would you like to learn more about how to work with me? - -PS. If you want to discuss things that are unrelated to OpenSesame, disable "OpenSesame expert" mode in the menu. That will make me a better general-purpose chatbot.''' +''' welcome_message_without_search = '''Nice to meet you! I am Sigmund, your friendly AI assistant! I have basic code execution abilities, I can read attachments, and I can look up scientific articles on Google Scholar. -Let\'s get started! What would like you to disuss? +If you want help with OpenSesame, enable "OpenSesame expert" mode in the menu (it is currently disabled). That will give me access to the OpenSesame documentation. -PS. If you want help with OpenSesame, enable "OpenSesame expert" mode in the menu. That will give me access to the OpenSesame documentation. +Let\'s get started! What would like you to disuss? ''' # The default title of a new conversation default_conversation_title = 'New conversation' diff --git a/heymans/forms.py b/heymans/forms.py index aa55f05..33b95bb 100644 --- a/heymans/forms.py +++ b/heymans/forms.py @@ -4,6 +4,7 @@ class LoginForm(FlaskForm): - username = StringField('Username', validators=[DataRequired()]) + username = StringField('Username (from forum.cogsci.nl)', + validators=[DataRequired()]) password = PasswordField('Password', validators=[DataRequired()]) submit = SubmitField('Log In') diff --git a/heymans/templates/header.html b/heymans/templates/header.html index 4bbb498..2bb409e 100644 --- a/heymans/templates/header.html +++ b/heymans/templates/header.html @@ -1,3 +1,7 @@ +
+ +Sigmund is currently in closed beta and only available for selected forum accounts +
diff --git a/heymans/templates/stylesheet.css.jinja b/heymans/templates/stylesheet.css.jinja index 2b77f90..d4aa6f5 100644 --- a/heymans/templates/stylesheet.css.jinja +++ b/heymans/templates/stylesheet.css.jinja @@ -106,6 +106,21 @@ a:visited { border-radius: 4px; } +.message-info { + margin-bottom: 10px; + font-size: .8em; + color: #607D8B; +} + +#page-notification { + border-radius: 4px; + color: #fff; + background-color: #00796b; + padding: 10px; + margin: 0px 38px 10px 38px; + font-size: .8em; +} + .message-user { color: #00796b; }