Skip to content

LTRAC-2729: fix(makeswift) - Sort carousel product IDs for a stable cache key - #3313

Merged
jorgemoya merged 1 commit into
integrations/makeswiftfrom
LTRAC-2729/fix/makeswift-sort-product-ids
Oct 28, 2026
Merged

jorgemoya merged 1 commit into
integrations/makeswiftfrom
LTRAC-2729/fix/makeswift-sort-product-ids

Conversation

@jorgemoya

Copy link
Copy Markdown
Contributor

What/Why?

The ProductsCarousel additional products request used the editor's order, so the same products in a different order missed the cache. This sorts a copy of the IDs for the URL. Display order still comes from the original list, so drag-and-drop reordering keeps working.

Replaces #2793, whose in-place .sort() would have reordered the carousel. Refs LTRAC-2729, #2790.

Testing

  • Lint passes.
  • In the Makeswift editor, reorder the carousel's additional products: the display order follows the editor, and the /api/products/ids URL stays the same.

Migration

None.

…ache key

The additional products request URL used the editor's order, so the same
products in a different order missed the cache. Sort a copy of the IDs for
the URL; display order still comes from the original list.

Refs LTRAC-2729
@jorgemoya
jorgemoya requested a review from a team as a code owner October 28, 2026 15:33
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
catalyst Ready Ready Preview Oct 28, 2026 3:34pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1bdb8f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-makeswift Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Unlighthouse Comparison

Comparing this deployment's Unlighthouse scores against integrations/makeswift at d6a1a34.

❌ Accessibility, SEO, and best practices regressions

These scores are stable between runs, so a drop fails the check. Open the full report to see which audits failed.

Route Device Category Before After
/shipping-returns/ Desktop Accessibility 96 95
/shipping-returns/ Mobile Accessibility 96 95
Details

Performance

Median per-route change against the baseline. Fails at a drop of 15 points on both devices.

Desktop Mobile
+1 0

Routes not compared

Lighthouse couldn't load these pages, or Vercel blocked their CSS or scripts, on one or both deployments. This usually happens on shared runners. They don't fail the check unless fewer than half the routes are left to compare.

Route Device Reason
/plants/ Desktop failed on this deployment
/pots/ Desktop failed on this deployment
/rustic-roots/ Desktop failed on this deployment
/monstera/ Desktop failed on this deployment
/zz-plant/ Desktop failed on this deployment
/3-plant-bundle/ Desktop failed on this deployment
/plants/ Mobile failed on this deployment
/pots/ Mobile failed on this deployment
/rustic-roots/ Mobile failed on this deployment
/monstera/ Mobile failed on this deployment
/zz-plant/ Mobile failed on this deployment
/3-plant-bundle/ Mobile failed on this deployment

Summary Score

Averages across the routes both scans reported, so a route that failed on one side doesn't skew them.

Before Desktop Before Mobile After Desktop After Mobile
Score 95 97 96 96

Category Scores

Category Before Desktop Before Mobile After Desktop After Mobile
Performance 85 90 87 88
Accessibility 95 95 95 95
Best Practices 100 100 100 100
SEO 100 100 100 100

Core Web Vitals

Metric Before Desktop Before Mobile After Desktop After Mobile
LCP 3.0 s 3.0 s 2.4 s 3.4 s
CLS 0.006 0.030 0.016 0.025
FCP 1.0 s 1.0 s 1.0 s 1.0 s
TBT 46 ms 19 ms 65 ms 47 ms
Max Potential FID 94 ms 82 ms 106 ms 91 ms
Time to Interactive 5.9 s 5.6 s 5.8 s 5.6 s

Full Unlighthouse report →

@jorgemoya
jorgemoya merged commit e969404 into integrations/makeswift Oct 28, 2026
18 of 20 checks passed
@jorgemoya
jorgemoya deleted the LTRAC-2729/fix/makeswift-sort-product-ids branch October 28, 2026 15:48

This branch was successfully deployed

1 active deployment
Preview — 1bdb8f6b Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants