Skip to content

Move row properties into the document editor#248

Merged
priethor merged 16 commits into
mainfrom
priethor/add/document-properties-block-v2
May 22, 2026
Merged

Move row properties into the document editor#248
priethor merged 16 commits into
mainfrom
priethor/add/document-properties-block-v2

Conversation

@priethor

@priethor priethor commented May 22, 2026

Copy link
Copy Markdown
Collaborator

What

Closes #131.

Row properties now live inside the editor canvas, between the title and body, as a locked cortext/document-properties block. The same block is used in full-page rows and row detail, with controls to hide/show fields and add new ones from the toolbar or inspector.

Why

This removes the odd split where row fields looked like document content but still lived in Cortext chrome outside the editor. Rows now behave more like documents, and the block is in place for the later public render work.

How

  • Treats properties as part of the locked header area, alongside cover, icon, and title.
  • Pauses header sync during document switches so the outgoing row does not lose its properties block.
  • Registers the block on the server with an empty frontend render for now.
  • Restores the skeleton/progress styles still used by loading states.

Testing Instructions

  1. Open a collection row in full-page mode and check that properties appear between the title and body.
  2. Open a row in side detail and use Hide fields / Show fields.
  3. Add a field from the Row inspector and confirm it appears in the document.
  4. Navigate away and back to the row, then confirm the properties block is still there.

Screen recording

Grabacion.de.pantalla.2026-05-22.a.las.20.45.22.mov

priethor added 16 commits May 22, 2026 11:42
…-properties-block-v2

# Conflicts:
#	docs/tech-debt.md
#	includes/CLI/PerfBench.php
#	includes/Documents.php
#	includes/PostType/Collection.php
#	includes/Rest/DocumentsController.php
#	src/blocks/data-view/edit.js
#	src/components/Canvas.js
#	src/components/CollectionRow.js
#	src/components/PageRow.js
#	src/components/PublishToggle.js
#	src/components/Sidebar.js
#	src/index.scss
#	tests/js/components/CollectionRow.test.js
#	tests/js/components/PageRow.test.js
Unpinned side peeks dismiss on certain interactions during row
navigation; the assertions raced against the dialog closing, causing
the route handler to error and the post-navigation expect to hit a
closed page.
The properties block also exposes Hide/Show fields in its block
toolbar, so a dialog-level locator hits two buttons. Also wrap the
delayed route handler in try/catch so it does not error if the
route was already handled by the time the timeout elapses.
…-properties-block-v2

# Conflicts:
#	src/components/Canvas.js
@priethor priethor merged commit 1a39883 into main May 22, 2026
10 checks passed
@priethor priethor deleted the priethor/add/document-properties-block-v2 branch May 22, 2026 20:02
@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.

Move row properties into the document body

1 participant