Skip to content

Commit

Permalink
temp: rollback point for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Dec 12, 2024
1 parent 1860c83 commit 27d4b79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import React, { useRef, useEffect } from 'react';
import { useSelector } from 'react-redux';
import PropTypes from 'prop-types';

import { useModel } from '@src/generic/model-store';

import {
Icon,
IconButton,
} from '@openedx/paragon';
import { Close } from '@openedx/paragon/icons';

// Commenting this out for now until we figure out a solution for getting the upgrade url
// import { useModel } from '@src/generic/model-store';
import { useModel } from '@src/generic/model-store'; // eslint-disable-line import/no-unresolved

import showSurvey from '../../utils/surveyMonkey';

Expand Down Expand Up @@ -105,20 +102,20 @@ const Sidebar = ({
const irtl = new Intl.RelativeTimeFormat({ style: 'long' });
return (
<div>
Your trial ends {irtl.format(daysRemaining, 'day')}. <a target='_blank' href={upgradeURL}>Upgrade</a> for full access to Xpert.
Your trial ends {irtl.format(daysRemaining, 'day')}. <a target="_blank" href={upgradeURL} rel="noreferrer">Upgrade</a> for full access to Xpert.
</div>
);
} if (daysRemaining === 1) {
return (
<div>
Your trial ends today! <a target='_blank' href={upgradeURL}>Upgrade</a> for full access to Xpert.
Your trial ends today! <a target="_blank" href={upgradeURL} rel="noreferrer">Upgrade</a> for full access to Xpert.
</div>
);
}
// TODO: Show the upgrade screen instead of this banner, to be done in future ticket
return (
<div>
Your trial has expired. <a target='_blank' href={upgradeURL}>Upgrade</a> for full access to Xpert.
Your trial has expired. <a target="_blank" href={upgradeURL} rel="noreferrer">Upgrade</a> for full access to Xpert.
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function fetchChatResponse(courseId, messageList, unitId, customQueryParam

let queryString = new URLSearchParams(queryParams);
queryString = queryString.toString();

const url = new URL(`${getConfig().CHAT_RESPONSE_URL}/${courseId}?${queryString}`);
const { data } = await getAuthenticatedHttpClient().post(url.href, payload);

Expand Down
1 change: 0 additions & 1 deletion src/data/thunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export function getLearningAssistantChatSummary(courseId) {
if (Object.keys(auditTrial).length !== 0) {
dispatch(setAuditTrial(auditTrial));
}

} catch (error) {
dispatch(setApiError());
}
Expand Down

0 comments on commit 27d4b79

Please sign in to comment.