Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

[SDUI][P0] RuntimeDraftBar for record pages & forms #1542

Closed as not planned
Closed as not planned

Description

@xuyushun441-sys

Context

Dashboards and reports show an "unpublished changes" bar with Publish/Discard. Record pages and forms have no such affordance, so runtime page edits (once persisted, see the page-persistence issue) have no publish UI.

Goal

A reusable RuntimeDraftBar surfaced on record pages (and forms) that indicates an unpublished draft exists and offers Publish / Discard, wired to the ADR-0034 seam.

Scope

  • Extract/reuse the dashboard/report draft-bar pattern into a shared component.
  • Mount it on RecordDetailView (and RecordFormPage) when readRuntimeDraft returns a draft.
  • Publish → publishRuntimeMetadata; Discard → discardRuntimeMetadata; both refresh the rendered schema.

Acceptance

  • Bar appears only when an unpublished draft exists for the current page/form
  • Publish/Discard call the seam and update the view without a full reload
  • Live e2e covers appear → publish → disappear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    designerenhancementNew feature or requestsduiServer-Driven UI runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions