WarUI

Change tracking and batch transactions

GRID-A15-F13P0baselinePlanned

Track added, updated and deleted rows as a pending transaction with original values. The changes can then be committed or discarded together. This underpins optimistic updates, undo and conflict detection.

Planned. This page shows the specification from issue #195. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Clean 20-row grid with a 'Changes: 0' badge.

Expected behavior

Edits mark cells as dirty and the badge counts them. Rollback restores the original values exactly. Editing a value back to its original clears the dirty state.

Planned API surface

getPendingChanges()beginTransaction()commitTransaction()rollbackTransaction()hasChangesdirtyIndicatorrowChangeState

Acceptance criteria

  • The change set includes the original and current value per field. (pending)
  • Rollback restores row order and deleted rows. (pending)
  • Reverting a value to the original clears the dirty flag. (pending)
  • Change state is exposed per row (added/updated/deleted/unchanged). (pending)