feat: add allow_remove and allow_reorder flags#7573
Merged
martinjagodic merged 2 commits intodecaporg:mainfrom Aug 12, 2025
Merged
feat: add allow_remove and allow_reorder flags#7573martinjagodic merged 2 commits intodecaporg:mainfrom
martinjagodic merged 2 commits intodecaporg:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds new configuration flags allow_remove and allow_reorder to list widgets, allowing users to control whether list items can be removed or reordered. The changes implement conditional rendering of UI controls based on these flags.
- Added
allow_removeandallow_reorderboolean properties to list widget schemas - Modified UI components to conditionally render drag handles and remove buttons based on these flags
- Updated TypeScript definitions and test snapshots to reflect the new properties
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/decap-cms-widget-list/src/schema.js | Adds allow_remove and allow_reorder boolean properties to the widget schema |
| packages/decap-cms-widget-list/src/ListControl.js | Passes the new flags from field configuration to the UI component |
| packages/decap-cms-ui-default/src/ListItemTopBar.js | Implements conditional rendering logic for drag handles and remove buttons |
| packages/decap-cms-core/src/types/redux.ts | Adds TypeScript type definitions for the new properties |
| packages/decap-cms-widget-list/src/tests/snapshots/ListControl.spec.js.snap | Updates test snapshots to include the new props |
kyoshino
added a commit
to sveltia/sveltia-cms
that referenced
this pull request
Aug 11, 2025
demshy
approved these changes
Aug 12, 2025
martinjagodic
added a commit
to poslovnimediji/decap-cms
that referenced
this pull request
Sep 4, 2025
* feat: add allow_remove and allow_reorder flags * fix: update snapshots
martinjagodic
added a commit
to decaporg/decap-website
that referenced
this pull request
Oct 10, 2025
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.
Fixes #4702