Skip to content

Let callers set the preview's side headlines - #1194

Merged
KevinJump merged 1 commit into
v17/mainfrom
v17/feature/preview-labels
Nov 3, 2026
Merged

KevinJump merged 1 commit into
v17/mainfrom
v17/feature/preview-labels

Conversation

@KevinJump

Copy link
Copy Markdown
Owner

Follow-up to #1192 and #1193.

A preview built from somewhere other than the site's uSync folders, such as a sync pack, a snapshot or another server, still had "Incoming (uSync files)" over its second side. For a push previewed on the receiving server, the first side isn't "this site" either.

Changes

  • uSyncPreviewLabels ({ current?, incoming? }) and an optional labels on uSyncItemPreviewElement.
  • previewLabels on uSyncDetailsModalData and usync-results. The dialog passes it to the preview element as labels.
  • The data type, content type and content previews use those labels over their own headlines. Without them nothing changes.
  • The extension docs (docs/item-previews.md) show how to use it.

Testing

  • The client builds, including tsc.
  • Not yet tried in a running site.

🤖 Generated with Claude Code

Previews built from somewhere other than this site's uSync folders (a
sync pack, a snapshot, another server) got the "Incoming (uSync files)"
headline, and a push previewed on the target isn't "this site" either.

previewLabels on the details dialog data and usync-results is passed to
the preview element as labels, and the uSync data type, content type and
content previews use it over their own headlines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/17.6.1 uSync 17.6.1 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant