You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔶 Medium — useMemo missing content dependency causes stale slide content
File:packages/pluggableWidgets/carousel-web/src/Carousel.tsx line 34 Problem:content is read inside the useMemo callback but is absent from the dependency array. If content (a ListWidgetValue) changes while dataSource.items stays the same (e.g. when the widget template is reconfigured), the memoized value will return stale item content. Fix:
🔶 Medium — Missing CHANGELOG entry for new feature and major dependency upgrade
File:packages/pluggableWidgets/carousel-web/CHANGELOG.md Problem: Two user-visible changes are not documented: (1) slidesPerView and slidesPerGroup are new configurable XML properties, and (2) swiper was upgraded from v12 to v14 (two major versions, potentially carrying breaking behavior changes). The [Unreleased] section is empty. Fix: Run pnpm -w changelog or add manually:
## [Unreleased]### Added- Added **Slides per view** and **Slides per group** properties to control how many slides are visible and advanced at once.
### Changed- Updated swiper dependency from v12 to v14.
🔶 Medium — No guard against animation (fade) + slidesPerView > 1 conflict
File:packages/pluggableWidgets/carousel-web/src/components/Carousel.tsx line 65–85 Problem: Swiper's EffectFade module requires slidesPerView: 1. When a user sets slidesPerView > 1 with animation: true, Swiper will log a console error and render incorrectly (slides overlap or disappear). There is nothing in the widget to prevent or warn about this combination. Fix: Either clamp slidesPerView to 1 when animation is enabled, or disable animation when slidesPerView > 1:
Alternatively, add a Studio Pro validation error in an editorConfig.ts to warn the user.
⚠️ Low — PR title does not follow conventional commits convention
Problem: Title Carousel/updatefeatures does not match the required format (feat:, fix:, [XX-000]:, etc.) enforced by conventional commits. This blocks the changelog tooling and release automation. Fix: Rename to something like feat(carousel-web): add slidesPerView and slidesPerGroup options.
⚠️ Low — ul.swiper-wrapper override not scoped to widget class in Carousel.scss
File:packages/pluggableWidgets/carousel-web/src/ui/Carousel.scss line 68–70 Problem: The new ul.swiper-wrapper { padding-inline-start: 0; } rule is added at file root scope, so it affects every Swiper instance on the page — not just this widget's carousel. The same rule in CarouselPreview.scss is correctly scoped under .widget-carousel-editor-preview. Fix: Scope it consistently:
{...options} spread moved after named event props (onClick, onSwiper) — prevents the spread from accidentally overriding those handlers, a subtle correctness improvement.
Separate CarouselPreview.scss introduced for editor-only styles keeps the production runtime bundle clean.
XML property keys slidesPerView and slidesPerGroup are lowerCamelCase and align exactly with the TypeScript interface — no XML/TS mismatch.
The no-datasource branch in the editor preview ([No datasource selected]) provides a clear feedback state to Studio Pro users instead of a silent empty render.
typings/CarouselProps.d.ts updated to reflect both container (number) and preview (number | null) types correctly.
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
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.
continue on #2245
add: