WarUI

Import commit modes: append, replace or upsert, with undo

GRID-A20-F22P1beyond-baselinePlanned

Controls how validated rows enter the grid: append them, replace all rows, or upsert by a key column, updating matches and inserting new rows. A diff summary is shown before commit, and a single undo step reverts the import.

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

Live example

Products grid with 50 rows and a sample update file.

Expected behavior

The summary shows counts of inserted, updated, unchanged and deleted rows before commit. After committing, Undo restores the exact prior state.

Planned API surface

importOptions.mode'append' | 'replace' | 'upsert'importOptions.keyFieldimportOptions.upsertFieldsimportCommitted eventundoImport()

Acceptance criteria

  • 'upsert' requires keyField and fails if the file contains duplicate keys. (pending)
  • upsertFields limits updates to the listed columns. (pending)
  • 'replace' reports the deleted count before commit. (pending)
  • undoImport() restores rows, order and selection exactly as they were before the import. (pending)
  • importCommitted includes the diff counts and changed row ids. (pending)