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.
Click to show internal directories.
Click to hide internal directories.