staging

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package staging records pending UI edits into the staged_changes buffer so they apply as one reviewed transaction (see internal/stackconf/staging.go for how the buffer is drained). It is the shared write-side used by every structural UI handler on a UI-managed stack.

Index

Constants

View Source
const (
	OpUpdate = "update" // sparse patch onto the committed tile
	OpCreate = "create" // patch is a full TileConf, added as a new tile
	OpDelete = "delete" // tile dropped so apply emits a strict-mode delete
)

Ops for a staged change.

Variables

This section is empty.

Functions

func Stage

func Stage(ctx context.Context, store repo.Store, tile *repo.Tile, authorID, authorName, summary, op string, patch any) error

Stage records (or replaces) a pending change for a tile's field-group. One row per (env, tile_slug, summary): re-staging the same group replaces its prior row, so per-group last-write-wins. patch is the sparse (update) or full (create) config; nil for delete.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL