diff --git a/RELEASE.rst b/RELEASE.rst index baeb83a0aa..6ddd5b9603 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,6 +1,12 @@ Release Notes ============= +Version 0.98.12 +--------------- + +- Make the enrollment alert read by screen reader (#2324) +- MITx Online receipt displays wrong date (#2331) + Version 0.98.11 (Released August 07, 2024) --------------- diff --git a/ecommerce/serializers.py b/ecommerce/serializers.py index bc786ed5d0..2114b5e1ef 100644 --- a/ecommerce/serializers.py +++ b/ecommerce/serializers.py @@ -427,6 +427,7 @@ class Meta: "lines", "created_on", "titles", + "updated_on", ] model = models.Order depth = 1 diff --git a/frontend/public/src/components/NotificationContainer.js b/frontend/public/src/components/NotificationContainer.js index e1a0136808..fa091a17a1 100644 --- a/frontend/public/src/components/NotificationContainer.js +++ b/frontend/public/src/components/NotificationContainer.js @@ -31,10 +31,27 @@ type State = { } export class NotificationContainer extends React.Component { + headingRef: { current: null | HTMLDivElement } + + constructor(props: Props) { + super(props) + this.headingRef = React.createRef() + } state = { hiddenNotifications: new Set() } + componentDidMount() { + if (this.headingRef.current) { + this.headingRef.current.focus() + } + } + componentDidUpdate() { + if (this.headingRef.current) { + this.headingRef.current.focus() + } + } + onDismiss = (notificationKey: string) => { const { removeUserNotification, messageRemoveDelayMs } = this.props const { hiddenNotifications } = this.state @@ -59,7 +76,11 @@ export class NotificationContainer extends React.Component { const { hiddenNotifications } = this.state return ( -
+
{Object.keys(userNotifications).map((notificationKey, i) => { const dismiss = partial(this.onDismiss, [notificationKey]) const notification = userNotifications[notificationKey] @@ -81,6 +102,7 @@ export class NotificationContainer extends React.Component { toggle={dismiss} fade={true} closeClassName="btn-close-white" + closeAriaLabel="Close Enrollment Notification Button" > diff --git a/frontend/public/src/containers/pages/checkout/OrderHistory.js b/frontend/public/src/containers/pages/checkout/OrderHistory.js index ea4abd0f6c..fd4264bb00 100644 --- a/frontend/public/src/containers/pages/checkout/OrderHistory.js +++ b/frontend/public/src/containers/pages/checkout/OrderHistory.js @@ -73,7 +73,7 @@ export class OrderHistory extends React.Component { const orderTitle = order.titles.length > 0 ? order.titles.join("
") : No Items const orderDate = formatPrettyDateTimeAmPmTz( - parseDateString(order.created_on) + parseDateString(order.updated_on) ) return ( diff --git a/main/settings.py b/main/settings.py index 1b9a69dfe1..e066d3e0e4 100644 --- a/main/settings.py +++ b/main/settings.py @@ -29,7 +29,7 @@ from main.celery_utils import OffsettingSchedule from main.sentry import init_sentry -VERSION = "0.98.11" +VERSION = "0.98.12" log = logging.getLogger()