feat(orders): ORDERS-7965 align date format and status badge between returns listing and details page - #2732
Merged
Conversation
…returns listing and details page
denis-bc
approved these changes
Aug 26, 2026
There was a problem hiding this comment.
Pull request overview
Aligns return details presentation with the returns listing.
Changes:
- Reuses shared return status badge classes.
- Standardizes submitted and updated date formats.
- Adds scoped badge typography overrides.
Accessibility verification: Static audit completed; rendered Lighthouse and screen-reader checks remain manual.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
templates/pages/account/return-details.html |
Aligns status badges and dates. |
assets/scss/components/stencil/returnDetails/_returnDetails.scss |
Replaces badge styles with scoped shared-class overrides. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| {{#if return_detail.status '===' 'OPEN'}} | ||
| <span class="aria-description--hidden">{{lang 'account.returns.details.status_label'}}</span> | ||
| <span class="returnDetails-statusBadge returnDetails-statusBadge--open">{{lang 'account.returns.status.open'}}</span> | ||
| <span class="account-orderStatus-label account-orderStatus-label--open">{{lang 'account.returns.status.open'}}</span> |
matt-evangelidis
approved these changes
Aug 26, 2026
jpajar
merged commit Aug 26, 2026
5b6890b
into
feature/PROJECT-7525-new-returns-flow
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
This PR aligns the date format and status badge between the returns listing and details pages.
Requirements
Tickets / Documentation
https://bigcommercecloud.atlassian.net/browse/ORDERS-7965
Screenshots (if appropriate)
Before:

After:

Note
Low Risk
Presentation-only template and stylesheet changes for visual consistency; no API, auth, or data-handling impact.
Overview
Return details now uses the same status badge styling as the returns listing (
account-orderStatus-labeland status modifiers), replacing the page-specificreturnDetails-statusBadgemarkup and SCSS.Date submitted and last update in the summary sidebar use the
Do MMM YYYYmoment format to matchreturns-list-v2, instead ofMMMM D, YYYY.SCSS only adds light overrides on the title group for the shared badge (header font, uppercase, margin).
Reviewed by Cursor Bugbot for commit 699bbfe. Bugbot is set up for automated code reviews on this repo. Configure here.