+ Understand a concept
+
+
+ “How does photosynthesis work?”
+
+
+
+
+
+
+
+
+ Summarize your learning
+
+
+ “Can you help me review pivot tables?”
+
+
+
+
+
+
+
+
+
+
+
+ Free trial, then upgrade course for full access to Xpert features.
+
+
+
+
+
+
+ Note: This chat is AI generated, mistakes are possible. By using it you agree that edX may create a record of this chat. Your personal data will be used as described in our
+
+ privacy policy
+
+ .
+
+
+ Children
+
+
+
+`;
+
+exports[` When trial upgrade is not being showed should match snapshot 1`] = `
+
+
+
+ Xpert Learning Assistant
+
+
+ An AI-powered educational tool
+
+
+
+
+
+
+
+ Understand a concept
+
+
+ “How does photosynthesis work?”
+
+
+
+
+
+
+
+
+ Summarize your learning
+
+
+ “Can you help me review pivot tables?”
+
+
+
+
+
+ Note: This chat is AI generated, mistakes are possible. By using it you agree that edX may create a record of this chat. Your personal data will be used as described in our
+
+ privacy policy
+
+ .
+
+
+ Children
+
+
+
+`;
diff --git a/src/components/Disclosure/index.jsx b/src/components/Disclosure/index.jsx
index 1c6edada..4be1b43a 100644
--- a/src/components/Disclosure/index.jsx
+++ b/src/components/Disclosure/index.jsx
@@ -1,42 +1,53 @@
import PropTypes from 'prop-types';
import React from 'react';
-import { Hyperlink, Icon } from '@openedx/paragon';
-import { Chat } from '@openedx/paragon/icons';
+import { Hyperlink, Icon, Button } from '@openedx/paragon';
+import { QuestionAnswerOutline, LightbulbCircle, AutoAwesome } from '@openedx/paragon/icons';
import { ensureConfig, getConfig } from '@edx/frontend-platform/config';
import './Disclosure.scss';
ensureConfig(['PRIVACY_POLICY_URL']);
-const Disclosure = ({ children }) => (
-
- Stuck on a concept? Need more clarification on a complicated topic?
-
- Ask Xpert a question!
+ Understand a concept
+ “How does photosynthesis work?”
-
-
-
Could you explain how to multiply two numbers?
-
How should an essay be structured?
-
How does photosynthesis work?
-
+
+
+
+ Summarize your learning
+ “Can you help me review pivot tables?”
+
-
- Note:
- This chat is AI generated (powered by ChatGPT). Mistakes are possible.
+ {showTrial ? (
+
+
+
+
+
+ Free trial, then upgrade course for full access to Xpert features.
+
+
+
+
+
+ ) : null}
+
+ Note: This chat is AI generated, mistakes are possible.
By using it you agree that edX may create a record of this chat.
- Your personal data will be used as described in our
+ Your personal data will be used as described in our
(
);
Disclosure.propTypes = {
+ showTrial: PropTypes.bool,
children: PropTypes.node.isRequired,
};
+Disclosure.defaultProps = {
+ showTrial: false,
+};
+
export default Disclosure;
diff --git a/src/components/MessageForm/MessageForm.scss b/src/components/MessageForm/MessageForm.scss
new file mode 100644
index 00000000..9a3c1eb6
--- /dev/null
+++ b/src/components/MessageForm/MessageForm.scss
@@ -0,0 +1,12 @@
+.message-form {
+ .send-message-input {
+ .pgn__form-control-floating-label {
+ color: #ADADAD;
+ }
+
+ input {
+ border-radius: 1rem;
+ }
+ }
+
+}
diff --git a/src/components/MessageForm/index.jsx b/src/components/MessageForm/index.jsx
index 8d8d92e0..b86353bd 100644
--- a/src/components/MessageForm/index.jsx
+++ b/src/components/MessageForm/index.jsx
@@ -12,6 +12,8 @@ import {
} from '../../data/thunks';
import { usePromptExperimentDecision } from '../../experiments';
+import './MessageForm.scss';
+
const MessageForm = ({ courseId, shouldAutofocus, unitId }) => {
const { apiIsLoading, currentMessage, apiError } = useSelector(state => state.learningAssistant);
const dispatch = useDispatch();
@@ -55,7 +57,7 @@ const MessageForm = ({ courseId, shouldAutofocus, unitId }) => {
);
return (
- {
trailingElement={getSubmitButton()}
value={currentMessage}
ref={inputRef}
+ className="send-message-input"
/>
diff --git a/src/components/Sidebar/Sidebar.scss b/src/components/Sidebar/Sidebar.scss
index 4f45f55d..4cf600f0 100644
--- a/src/components/Sidebar/Sidebar.scss
+++ b/src/components/Sidebar/Sidebar.scss
@@ -7,7 +7,9 @@
background-color: white;
z-index: 9999;
- width: 30%;
+ width: 100%;
+ max-width: 25rem;
+
right: 0;
/* Add smooth scrolling behavior */