Skip to content

feat(keystatic): support configurable post-save publish notice in UI config (#1643) - #1659

Open
thinhnx128 wants to merge 1 commit into
Thinkmill:mainfrom
thinhnx128:fix/issue-1643-post-save-publish-notice
Open

thinhnx128 wants to merge 1 commit into
Thinkmill:mainfrom
thinhnx128:fix/issue-1643-post-save-publish-notice

Conversation

@thinhnx128

Copy link
Copy Markdown

Summary

Adds an optional ui.publishNotice configuration in @keystatic/core (packages/keystatic/src/config.tsx) and renders a dismissible Notice banner in packages/keystatic/src/app/updating.tsx after an entry is saved.

Root Cause

Projects using Keystatic with CI/CD pipelines (such as GitHub Actions or scheduled static builds) had no built-in way to inform editors after clicking Save that their changes require a background deployment before appearing on the live site.

Changes

  • packages/keystatic/src/config.tsx: add optional publishNotice (string | { message: string; tone?: "info" | "caution" | "positive" }) to UserInterfaceConfig.
  • packages/keystatic/src/app/updating.tsx: add resolvePublishNotice helper and render the configured notice when state.kind === "updated".
  • packages/keystatic/src/app/updating.test.ts: add unit tests covering string, object, empty, and undefined publishNotice configurations.
  • .changeset/post-save-publish-notice.md: include patch changeset for @keystatic/core.

Testing

  • pnpm --filter @keystatic/core test packages/keystatic/src/app/updating.test.ts

Fixes #1643

…allback (Thinkmill#1643)

Signed-off-by: Xuan Thinh <thinhnx128@users.noreply.github.com>
@thinhnx128
thinhnx128 requested a review from emmatown as a code owner November 10, 2026 14:25
@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d981685

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@keystatic/core Minor
@keystatic/templates-astro Patch
@keystatic/templates-nextjs Patch
@keystatic/templates-remix Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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.

Feature: post-save "publishing" notice / onCommit hook so editors know changes aren't live yet

1 participant