mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
29f07a8a4f
Allows bidirectional / cyclic linking for same-record cursor links. This should allow multiple sections to all synchronize their cursors, such that clicking in any one of them will move all the others. Works even if some sections in the cycle have rows filtered out (the filtered-out sections might desync their cursors, but the correct cursor position will still propagate downstream, and they'll re-sync if clicking on a row that is present in them) Under the hood, each cursor has a _lastEditedAt counter, updated when a user's action changes the cursor in a section, such that we can always tell which section was touched most recently. This is used to resolve conflicts stably when dealing with cycles or chains of cursor-links. Updated selectBy and recursiveMoveToCursorPos to handle cycles Updated tests for selectBy behavior However, main bidirectional-linking tests are not in this commit, they'll come in a subsequent PR |
||
---|---|---|
.. | ||
ACLRuleRec.ts | ||
CellRec.ts | ||
ColumnRec.ts | ||
DocInfoRec.ts | ||
FilterRec.ts | ||
PageRec.ts | ||
TabBarRec.ts | ||
TableRec.ts | ||
ValidationRec.ts | ||
ViewFieldRec.ts | ||
ViewRec.ts | ||
ViewSectionRec.ts |