Skip to content

Shop: Add "Most Popular" sort option to product listing - #44

Open
JKinnez wants to merge 4 commits into
feature/sc-3044-shop-update-sorting-optionsfrom
feature/sc-3124-shop-update-sorting-options-part-2
Open

JKinnez wants to merge 4 commits into
feature/sc-3044-shop-update-sorting-optionsfrom
feature/sc-3124-shop-update-sorting-options-part-2

Conversation

@JKinnez

@JKinnez JKinnez commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Extends the product sorting selector with popularity option.

Shop: Update sorting options Part 2

Captura de pantalla 2026-09-10 a las 12 08 25

Copilot AI lite review requested due to automatic review settings September 10, 2026 10:15
@JKinnez JKinnez added review Please look at my code shop-team Shop and commerce labels Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is small, localized to the sorting UI, and integrates with the existing sort_by selection mechanism without introducing additional logic.

Pull request overview

Extends the collection product sorting selector to include a “popularity” sort option, enabling users to sort products by popularity via the existing sort_by query parameter flow.

Changes:

  • Adds a new <option> to the sorting dropdown with value="popularity".
  • Uses a new translation key (store.sorting_popularity) for the option label.
File summaries
File Description
snippets/sorting-select.liquid Adds a “popularity” option to the existing sorting <select> so it can be chosen and reflected as the selected value.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JKinnez JKinnez changed the title add popularity option Shop: Add "Most Popular" sort option Sep 10, 2026
@JKinnez JKinnez changed the title Shop: Add "Most Popular" sort option Shop: Add "Most Popular" sort option to product listing Sep 10, 2026
@JKinnez JKinnez removed the review Please look at my code label Sep 11, 2026
Copilot AI review requested due to automatic review settings September 14, 2026 09:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The selector may display the wrong sort after reload because its selected-state check mismatches the submitted value.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread snippets/sorting-select.liquid Outdated
Copilot AI review requested due to automatic review settings September 14, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The selected-state check must match the submitted popularity sort value.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread snippets/sorting-select.liquid Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 15, 2026 07:11
@JKinnez JKinnez added the review Please look at my code label Sep 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@dabrorius
dabrorius self-requested a review September 15, 2026 08:05

@dabrorius dabrorius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Please look at my code shop-team Shop and commerce

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants