Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.98.12 #2333

Merged
merged 4 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -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)
---------------

Expand Down
1 change: 1 addition & 0 deletions ecommerce/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class Meta:
"lines",
"created_on",
"titles",
"updated_on",
]
model = models.Order
depth = 1
Expand Down
24 changes: 23 additions & 1 deletion frontend/public/src/components/NotificationContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,27 @@ type State = {
}

export class NotificationContainer extends React.Component<Props, State> {
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
Expand All @@ -59,7 +76,11 @@ export class NotificationContainer extends React.Component<Props, State> {
const { hiddenNotifications } = this.state

return (
<div className="notifications order-2" id="notifications-container">
<div
className="notifications order-2"
id="notifications-container"
ref={this.headingRef}
>
{Object.keys(userNotifications).map((notificationKey, i) => {
const dismiss = partial(this.onDismiss, [notificationKey])
const notification = userNotifications[notificationKey]
Expand All @@ -81,6 +102,7 @@ export class NotificationContainer extends React.Component<Props, State> {
toggle={dismiss}
fade={true}
closeClassName="btn-close-white"
closeAriaLabel="Close Enrollment Notification Button"
>
<AlertBodyComponent dismiss={dismiss} {...notification.props} />
</Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class OrderHistory extends React.Component<Props> {
const orderTitle =
order.titles.length > 0 ? order.titles.join("<br />") : <em>No Items</em>
const orderDate = formatPrettyDateTimeAmPmTz(
parseDateString(order.created_on)
parseDateString(order.updated_on)
)
return (
<tr scope="row" key={`ordercard_${order.id}`}>
Expand Down
2 changes: 1 addition & 1 deletion main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Loading