Skip to content

fix(editor): preserve custom title property through UI edit cycle#1189

Open
perber wants to merge 2 commits into
mainfrom
fix/title-property-preserved-on-edit
Open

fix(editor): preserve custom title property through UI edit cycle#1189
perber wants to merge 2 commits into
mainfrom
fix/title-property-preserved-on-edit

Conversation

@perber

@perber perber commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Pages with title + leafwiki_title in frontmatter lost the title value on every UI save because it was treated as a reserved key.

  • HasLeafWikiTitle flag distinguishes explicit leafwiki_title from the alias case
  • IsSystemKey() replaces three diverging local reserved-key maps
  • UpsertContentAndMetadata: new UI-edit path taking structured body/tags/props
  • title removed from frontend property key validation

Pages with `title` + `leafwiki_title` in frontmatter lost the `title`
value on every UI save because it was treated as a reserved key.

- `HasLeafWikiTitle` flag distinguishes explicit `leafwiki_title` from the alias case
- `IsSystemKey()` replaces three diverging local reserved-key maps
- `UpsertContentAndMetadata`: new UI-edit path taking structured body/tags/props
- `title` removed from frontend property key validation
Copilot AI review requested due to automatic review settings June 21, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…operty

Removes the HasLeafWikiTitle sentinel flag from Frontmatter and the
associated conditional filtering in extractPageMetadata,
ExtractPropertiesFromContent, and validatePageMetadataInput. A 'title'
key in ExtraFields is now unconditionally a user-defined custom property
that round-trips through the editor unchanged.
@perber perber linked an issue Jun 22, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom frontmatter property "title" is removed when editing through LeafWiki UI

2 participants