gristlabs_grist-core/app
Janet Vorobyeva 29f07a8a4f
Bidirectional Linking (#622)
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
2023-09-25 18:48:18 -04:00
..
client Bidirectional Linking (#622) 2023-09-25 18:48:18 -04:00
common (core) Polish dark mode and remove beta tag 2023-09-21 13:14:48 -04:00
gen-server (core) updates from grist-core 2023-09-18 15:04:08 -04:00
plugin (core) Support dark mode in custom widgets 2023-09-19 16:08:21 -04:00
server (core) Add documentCreated telemetry event 2023-09-13 01:13:00 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00