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

Fix: sort SKU variations #2367

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix: sort SKU variations #2367

wants to merge 2 commits into from

Conversation

wender
Copy link

@wender wender commented Jul 3, 2024

What's the purpose of this pull request?

Currently, the SKU variations are not sorted

How it works?

It now checks if the value is a number or string and sort it alphabetically or numerically ascendant

How to test it?

Open a PDP with any of the SKU variations, number or text

Starters Deploy Preview

References

@wender wender requested a review from a team as a code owner July 3, 2024 14:12
@wender wender requested review from emersonlaurentino and eduardoformiga and removed request for a team July 3, 2024 14:12
Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ❌ Failed (Inspect) Jul 3, 2024 2:12pm

Copy link
Member

@eduardoformiga eduardoformiga left a comment

Choose a reason for hiding this comment

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

Nice! Thank you for the PR.

Do you have a store so that we can validate this change with the version generated from the codesandbox?

Also, we need to validate this rule with FastStore team since are cases we should respect the catalog order.
Finally, the build is not passing. Can you take a look?

)

const isNumeric = (value) => {
return !isNaN(value - parseFloat(value))
Copy link
Member

Choose a reason for hiding this comment

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

This looks confusing. Why do we need this to check if it is a number?

@hellofanny hellofanny changed the title Fix/sort SKU variations Fix: sort SKU variations Aug 20, 2024
@hellofanny hellofanny changed the title Fix: sort SKU variations fix: sort SKU variations Aug 20, 2024
@hellofanny hellofanny changed the title fix: sort SKU variations Fix: sort SKU variations Aug 20, 2024
@hellofanny hellofanny added the contributing Pull request submitted by the community label Sep 12, 2024
@hellofanny
Copy link
Contributor

@wender Hello! Thanks for opening this PR. I noticed it was opened some time ago. For more context, was it related to a specific store issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributing Pull request submitted by the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants