Add delete for stops #80

Merged
maxtkc merged 6 commits from 48-delete-objects into main 2026-04-09 00:07:13 +00:00
Owner

Closes #48

Closes #48
maxtkc self-assigned this 2026-04-09 00:07:07 +00:00
- Add recordBatchDelete to PatchManager: all delete ops go into a single
  BatchGTFSPatch with one appendAndPush, producing one 'change' event,
  one notification, and one async refresh instead of N+1
- Update handleDeleteStop to do all db.deleteRow calls first then record
  one atomic patch — fixes sticking notifications and console warnings
  (layer-manager 'stop not found' + gtfs-parser 'index miss')
- Fix revertPatch batch inversion: was hardcoded to 'update' for all ops;
  now correctly inverts delete→insert and insert→delete within batches
- Add recordBatchDelete to patchManager type in page-content-renderer and
  browse-navigation
- history-controller renderFieldDiffs now shows 'deleted'/'inserted'/'updated'
  based on actual batch op types instead of always 'updated'
maxtkc merged commit 5e635f489f into main 2026-04-09 00:07:13 +00:00
maxtkc deleted branch 48-delete-objects 2026-04-09 00:07:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gtfs.zone/coloring-book!80
No description provided.