Commit 31e19ab
committed
feat: track last_changed_field for time-travel navigation
Add last_changed_field property to ObjectState that tracks the field
that most recently changed VALUE (not just dirty status).
Key difference from last_dirty_field:
- last_dirty_field: tracks dirty status changes (clean->dirty or dirty->clean)
- last_changed_field: tracks actual value changes regardless of saved state
This is essential for time-travel navigation because:
- When undoing and a field goes from dirty->clean, we still want to scroll to it
- Shows what changed in the transition, not just current dirty state
Stores _last_changed_paths from _recompute_fields() and exposes via property.1 parent 70c8eb6 commit 31e19ab
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2418 | 2418 | | |
2419 | 2419 | | |
2420 | 2420 | | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2421 | 2428 | | |
2422 | 2429 | | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
2423 | 2439 | | |
2424 | 2440 | | |
2425 | 2441 | | |
| |||
0 commit comments