Finally no need to worry about parent-left conflicts and broken chain.
With :block/order, we only need to re-compute new orders for siblings
with same order (it can happens if there're bugs in our code, or
updates from rtc), but it doesn't break UI.
Another huge potential benefit after discussing with Zhiyuan is:
Ee might be able to simplify both RTC and undo/redo, currently, we
need to handle each new op for both of them, with recently
refactorings like properties being db attributes, :block/order
is a string instead of a ref, we can handle most property value
conflicts using last-write-wins, and others (e.g. :block/parent,
property with :default type) specifically.
I haven't fixed the issues of using :block/left in RTC and undo/redo,
because we might change both soon.
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]
Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.
Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
* i18n: fix translation of switch to in zh-CN.
* fix: Enable i18n for create or search graph in the context of whiteboard.
* i18n: Add Chinese translations for whiteboard feature.
* i18n: Add more Chinese translations for whiteboard feature.
* i18n: Add i18n for "Properties settings for this query:"
* i18n: Add i18n for "No matched result"
* i18n: Add i18n for "Tips: press f to go full screen"
* i18n: Add i18n for "redo/undo history"
* i18n: Add i18n for "help documents"
* i18n: Add i18n for "bug report"
* fix: Make translate for Tips press f go fullscreen
* fix: Remove placeholder zh-cn that is not used.
* fix: Add a hidden element to use :whiteboard/create-or-search-graph so it will not be reported as unused.
* i18n: Add i18n for "check update"
* i18n: Add i18n for "export current page"
* i18n: Add i18n for "Grant permission"
* i18n: Fix for Chinese, "These translations keys are invalid because they are just copying the English value"
* revert: Translation for whiteboard/create-or-search-graph blocked by bb lang:validate-translations
* i18n: Fix translation for Chinese with help from amazing andelf.
* Update src/resources/dicts/zh-cn.edn
Co-authored-by: Andelf <andelf@gmail.com>
* Update src/resources/dicts/zh-cn.edn
Co-authored-by: Andelf <andelf@gmail.com>
* Update src/resources/dicts/zh-cn.edn
Co-authored-by: Andelf <andelf@gmail.com>
---------
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
Co-authored-by: Andelf <andelf@gmail.com>
* chore: remove unused dictionary keys
* wip: add dictionary keys for hardcoded strings
* resolve conflicts
* Add linter to detect :en ui translation keys match used ones
- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
:help/open-link-in-sidebar as translation keys shouldn't be reused in
multiple contexts, especially when it's across ui and shortcut dicts
* fix: remove dead keys
* chore: reuse dict keys
* chore: reintroduce useful keys
---------
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context