Fix editor slide layout wrappers, harden loop initialization, and add Slides per view (v0.1.2)#3
Draft
Copilot wants to merge 2 commits into
Draft
Fix editor slide layout wrappers, harden loop initialization, and add Slides per view (v0.1.2)#3Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/bradhogan/sliderpress/sessions/b09a001a-4a65-4746-aa18-86e9c3d05ba3 Co-authored-by: bradhogan <1781226+bradhogan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SliderPress issues and add Slides Per View
Fix editor slide layout wrappers, harden loop initialization, and add Slides per view (v0.1.2)
Apr 16, 2026
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.
This addresses the v0.1.1 regressions where editor slides still stacked vertically and loop mode produced Swiper warnings/unreliable behavior. It also adds a configurable Slides per view control wired from block settings to frontend runtime.
Editor UX: horizontal slide strip in Gutenberg wrappers
.swiper-wrapper→.block-editor-inner-blocks/.block-editor-block-list__layout)..slider-press .swiperthe horizontal scroll container.flex: 0 0 auto), without relying on brittle direct-child selectors.Frontend reliability: loop safety + grouping
.swiper-slide.slidesPerGroup: 1and keep config stable for loop/non-loop operation.New setting: Slides per view
slidesPerView(default1).RangeControl(1–6), labeled Slides per view.data-slides-per-view.slidesPerView), integrated with loop safety checks.Versioning + artifacts
build/assets.Editor horizontal layout screenshot:
https://github.com/user-attachments/assets/8c56f356-acce-4a42-af4b-ed7759453c15
Frontend behavior screenshot:
https://github.com/user-attachments/assets/5ac5b7ec-ce76-40b9-a104-3ba26489464c
Original prompt
Fix SliderPress issues in repo
bradhogan/sliderpressand add Slides Per View.Context / bugs:
.swiper-wrappercontains.block-editor-inner-blocks/.block-editor-block-list__layoutwrappers and slide blocks have classblock-editor-block-list__block ... swiper-slide ....Tasks:
src/editor.cssso the slide list in editor lays out horizontally with scrollbar..slider-press .swiperthe horizontal scroll container..slider-press .swiper-wrapper(and possibly the.block-editor-block-list__layoutinside it)display:flex; flex-direction:row; flex-wrap:nowrap.flex: 0 0 autowith a fixed-ish width so they appear side-by-side.>selector that misses wrapped children.src/frontend.js, make loop safe:.swiper-slide.slidesPerGroupto 1 (or match slidesPerView) and ensure config supports loop.slidesPerView(number) default 1.data-slides-per-viewon frontend markup.src/frontend.js, read it and pass to Swiper config.build/assets and commit.Deliverable: PR with these fixes and updated build artifacts.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: @copilot Accepted Confirmation: Confirm agent session
Assistant: I’ve started working on the updates (rename to SliderPress, add a proper release ZIP that unzips to a
sliderpress/folder, and improve the horizontal slide editing UX in the editor). You can track progress at the task link below.User: once you're done with those changes, can you move the contents of this repo to this repo instead to better match the plugin name > @bradhogan/sliderpress
Assistant: Yes—I can move/duplicate the plugin into
bradhogan/sliderpress, but I need one decision from you because there are two “correct” ways to do this on GitHub:Choose how you want to “move” it
A) GitHub rename (best, keeps history, issues/PRs):
Rename the repo
bradhogan/Slider-Press→bradhogan/sliderpressin GitHub settings. This preserves commits, PRs, stars, etc., and GitHub will redirect the old URL.B) Copy contents (new repo history):
I’ll copy the plugin files into the new repo
bradhogan/sliderpress. This won’t preserve PR history fromSlider-Press(it becomes a separate project history unless we do a full git history migration, which is more involved).Given you already created
bradhogan/sliderpress, option B is likely what you mean—but I want to confirm.One more question
Should the old repo
bradhogan/Slider-Pressbe:Reply with:
Once you answer, I’ll proceed accordingly after the current change set finishes.
User: let's go with (A) and then we can completely archive or remove the Slider-Press repo
Assistant: I can’t perform repo rename/archive/delete operations from here (my tools can write files and open PRs, but they don’t have admin control over repository settings). You’ll need to do the rename + archive/remove in GitHub’s UI, and I’ll adjust anything in the codebase that depends on the repo name if needed.
Do this (recommended sequence)
1) Rename the repo
GitHub →
bradhogan/Slider-Press→ Settings → General → Repository nameRename to:
sliderpressGitHub will automatically create redirects from:
bradhogan/Slider-Press→bradhogan/sliderpress2) Confirm the default branch stays
mainIt usually will, but just verify under Settings.
3) After rename: tell me the new canonical repo URL
Reply with just:
bradhogan/sliderpressonce the rename is complete....This pull request was created from Copilot chat.