Skip to content

Collections: Add single-row actions menu (open, duplicate, delete)#187

Merged
priethor merged 4 commits into
mainfrom
priethor/add/rows-bulk-reorder
May 14, 2026
Merged

Collections: Add single-row actions menu (open, duplicate, delete)#187
priethor merged 4 commits into
mainfrom
priethor/add/rows-bulk-reorder

Conversation

@priethor

@priethor priethor commented May 14, 2026

Copy link
Copy Markdown
Collaborator

What

Closes #107.

Adds row actions to open rows on a selected detail surface, duplicate rows, and delete rows from collection views. Row duplication creates a new copy with the copied field values, document icon, featured media, and relation handling, while deletion prompts confirmation before permanently removing the row (will change to send to trash in #179).

How

  • Adding a REST endpoint for duplicating collection rows.
  • Moving the table + add-field control into the DataViews actions column instead of using a synthetic ghost column.
  • Documenting the remaining DataViews actions-column dependency in tech debt.
  • Preserving existing row-detail save/transition behavior when opening, deleting, or refreshing rows.

Testing Instructions

  1. Open a collection in table, grid, and list views.
  2. Use a row action to open a row in side peek, center modal, and full page.
  3. Duplicate a row and confirm the new row appears with copied values and a Copy of title.
  4. Delete a row and confirm it is removed after accepting the confirmation dialog.
  5. In table view, verify the + add-field button appears in the right-side actions column and opens the add-field popover.
  6. Open a custom field header menu and verify field actions like rename, duplicate, delete, and move still appear.

Screen recording

Grabacion.de.pantalla.2026-05-14.a.las.12.27.23.mov

priethor added 2 commits May 14, 2026 12:06
Closes #107.

Every row gets a kebab with three Open-in entries (side peek, center
modal, full page), Duplicate, and Delete with a confirm step. Delete
force-deletes for now; trash and restore tracks in #179. Duplicate
copies title (prefixed "Copy of ..."), content, status, document icon,
featured media, and every stored field value. Relations sync to the new
row only when the reverse side is multi-valued, so a duplicate never
steals the source row's exclusive reverse pointer.

The "+ add field" affordance is folded into the dataviews actions
column header so the right edge of the table has one column instead of
two. The synthetic ghost column is gone.
@priethor priethor changed the title Add per-row actions menu (open, duplicate, delete) Collections: Add single-row actions menu (open, duplicate, delete) May 14, 2026
priethor added 2 commits May 14, 2026 12:23
…k-reorder

# Conflicts:
#	src/components/fields/ColumnHeaderActions.js
@priethor priethor force-pushed the priethor/add/rows-bulk-reorder branch from 12d893e to 46b2dc5 Compare May 14, 2026 10:26
@priethor priethor merged commit 5712097 into main May 14, 2026
6 checks passed
@priethor priethor deleted the priethor/add/rows-bulk-reorder branch May 14, 2026 13:28
@priethor priethor added this to the 0.1.0 milestone May 28, 2026
@priethor priethor added type: enhancement Improvement to existing behavior. area: collections Fields, rows, views, DataViews, relations, rollups, formulas, and row properties. labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: collections Fields, rows, views, DataViews, relations, rollups, formulas, and row properties. type: enhancement Improvement to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add per-row actions menu (open, duplicate, delete)

1 participant