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 |
||
---|---|---|
.. | ||
client | ||
client-harness | ||
common | ||
deployment | ||
fixtures | ||
formula-dataset | ||
gen-server | ||
nbrowser | ||
server | ||
timings | ||
.eslintrc.js | ||
chai-as-promised.js | ||
declarations.d.ts | ||
init-mocha-webdriver.js | ||
mocha.opts | ||
report-why-tests-hang.js | ||
setupPaths.js | ||
split-tests.js | ||
test_under_docker.sh | ||
testUtils.ts | ||
tsconfig.json | ||
upgradeDocument | ||
upgradeDocumentImpl.ts | ||
utils.js | ||
xunit-file.js |