Commit Graph

147 Commits

Author SHA1 Message Date
Gabriel Horner
ac975766ad chore: update doc links and remove feat\/db mentions 2025-05-30 08:41:57 -04:00
Gabriel Horner
44fa4c03b2 chore: add docs for dev import tasks 2025-01-23 14:38:37 -05:00
Gabriel Horner
1bba10c266 fix: graph counts after validation are wrong
after type->tags migration. Also update recommended validate cli options
to default to true. Also clean up graph counts spread across two
validators and importer. The property-pairs count in the UI were way off
because they were only counting pairs that are validated by malli-schema
2025-01-04 02:14:39 -05:00
Tienson Qin
665d7a817c fix: tests 2024-11-30 17:12:15 +08:00
Gabriel Horner
7d729804b0 enhance(dev): add lang --fix support for linting non-default langs
Useful for deleting no longer valid keys after merging master to feat/db
2024-10-29 21:49:41 -04:00
Gabriel Horner
29c8a4fc4a chore: remove remaining references of old tutorials
Follow up to 8b470dd455.
New tutorials will be written for db version
2024-08-22 15:06:15 -04:00
Gabriel Horner
bc18661c90 enhance(dev): Add fast kondo lint for dev 2024-08-21 13:33:01 -04:00
Gabriel Horner
14a507f4cd enhance(dev): run lint fix with an option
Linters are read only by default. Lang lint can be fixed by passing
`--fix`. We don't want CI or inexperienced contributors fixing files accidentally.
Also move deps to bb.edn as putting them inline leads to quirky/buggy
tasks listing and autocompleting as they pause when fetching an inlined dep
2024-08-20 10:17:23 -04:00
Gabriel Horner
261118d4dc refactor: finish frontend independence from worker and add lint
Remaining fixes worker all file related. Fixes LOG-3717
2024-08-09 12:16:20 -04:00
Gabriel Horner
7a40761eca refactor: organize worker namespaces and lint them
Organize them to live under src/main/frontend/worker and add a lint to ensure
that common code with frontend is only under frontend/common/.
Add a linter to ensure that worker doesn't depend on frontend.
Motivated to fix after recent worker breakage fixed by
75463c4df4
2024-08-08 23:01:57 -04:00
Tienson Qin
d847023dc1 Refactor: rename :block/content to :block/title 2024-07-10 22:33:44 +08:00
Gabriel Horner
56063ed2bf fix: tweak message and update docs for updated replace cmd flow 2024-06-14 14:22:44 -04:00
Gabriel Horner
03f797fde3 fix: outliner lint and doc formatting 2024-06-12 15:24:04 -04:00
Gabriel Horner
0e1ada2ef6 enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin
1ec4796eff refactor: replace :block/left with :block/order
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.
2024-05-02 01:12:22 +08:00
charlie
2ba9f28026 Merge branch 'master' into feat/db 2024-04-15 07:58:14 +08:00
sty
7341b27c03 docs/develop-logseq.md: specify that dependencies in /static also exist 2024-04-11 12:07:48 +08:00
Gabriel Horner
b55fe07768 Merge branch 'master' into feat/db 2024-01-24 09:08:41 -05:00
Gabriel Horner
dc5127b48a enhance: publishing --dev also watches frontend
also provide a dedicated backend command for simpler
rebuilding of backend
2024-01-24 08:53:48 -05:00
Gabriel Horner
3cd7b2d762 enhance: add a --dev mode to publishing that pairs with shadow's watch 2024-01-24 08:53:48 -05:00
Gabriel Horner
7831476c70 enhance: add a --dev mode to publishing that pairs with shadow's watch 2024-01-22 14:35:36 -05:00
Tienson Qin
b06b01b88b Merge branch 'master' into feat/db 2024-01-22 12:08:37 +08:00
Gabriel Horner
283d084de2 Simplify fn translations in light of #10868
- Reverted overly complex fn translations from #10810
- Updated guidelines so it's clear that fn translations need to remain
simple. They shouldn't be so complex that they fail for edge cases
- Updated catch so we are aware when translations fail
2024-01-18 23:39:37 +08:00
Bad3r
bf7f6dc28d enhance: doc 2024-01-10 18:44:33 +08:00
Tienson Qin
9dba6d870b Updated doc to connect to worker 2024-01-10 17:39:42 +08:00
rcmerci
4fd285743d doc: how to connect to web-worker repl 2024-01-10 17:29:45 +08:00
Gabriel Horner
72f5218b39 dev: add tasks for saving and diffing datoms
part of LOG-2974
2023-12-19 13:19:10 -05:00
Gabriel Horner
6f9143df4f chore: add db and file graph linter to CI
This has run successfully locally for weeks. Also fix install doc for
bb tasks
2023-11-17 10:35:01 -05:00
Gabriel Horner
f64f1461a3 enhance: make bb dev:db-transact usable for any task
closes LOG-2647. This task was used to update multiple graphs
that were now invalid with the removal of :block/type "object"
2023-11-16 16:40:35 -05:00
Gabriel Horner
3ccf80fcba add docs for new linter
also fix outliner lint
2023-11-02 09:32:51 -04:00
Gabriel Horner
fe7a46eac9 Move db malli schema into db dep since it's stable
Also add a validate-db task. Part of LOG-2739
2023-10-11 08:40:26 -04:00
Gabriel Horner
4b0100cb25 chore: cleanup page-property file based ns
All of frontend.util.page-property was file based except for one line.
Moved that ns to a file-based ns and moved the line out to the more
appropriate property-handler
2023-10-02 15:59:43 -04:00
Gabriel Horner
36edf87db3 Move config.edn template to a library
so it can be used outside Electron e.g. when creating graphs from CLI.
Put a symlink in the old templates/config.edn location to make new
location easier to find but it's not needed for anything to work
2023-09-08 13:52:45 -04:00
omahs
52134b3617 fix(docs): typos (#10143) 2023-09-05 11:23:21 +08:00
djm2k
7de92849dd Update develop-logseq-on-windows.md 2023-08-29 22:13:50 +08:00
Zhizhen He
4cb23ab193 ci: upgrade typos to 1.16.8 2023-08-24 10:29:51 -04:00
Andelf
eb2db96972 Add note about unsafe exposed port for dockker commands (#9857)
* fix(docs): warn about exposed container ports
2023-07-14 09:04:20 +08:00
Gabriel Horner
25c8cfc6ab Address remaining feedback for #9801 and #9757
Also add more explicit translation guidance for reviewers
2023-07-05 11:08:48 -04:00
Gabriel Horner
6b7a76e927 Forgot linebreak in doc section 2023-06-28 15:20:25 -04:00
Gabriel Horner
71fa4cb6f4 Add a relevant description about security practice for resources 2023-06-28 15:11:08 -04:00
Gabriel Horner
43df7dfd9a Translate two translations that weren't usable by all langs
See #9716. Position matters for some langs like Turkish
2023-06-23 09:51:33 -04:00
Gabriel Horner
17d9e645c1 Update section on linting translations inspired by contributor confusion
Hoping this helps contributions like #9686 and #9655
2023-06-19 13:28:35 -04:00
Gabriel Horner
cf7fd0ffc0 Add tips for new editing conventions introduced in PR 2023-06-13 12:39:05 -04:00
Konstantinos Kaloutas
516d98864c fix: typo 2023-06-12 17:05:11 +03:00
Konstantinos Kaloutas
7c17f4d110 update dev practices 2023-06-12 13:05:00 +03:00
Gabriel Horner
1765ecfb02 Fix duplicates that were caught by linter
Also undo removals in this PR of translations that were being used.
Also changed :misc/copy translation since it didn't have a meaningful
description
2023-06-05 14:00:11 -04:00
Gabriel Horner
2d60d95bc5 Update lang validation to detect duplicates
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
2023-06-05 11:09:35 -04:00
Gabriel Horner
f5771d293f Update doc missed in #9516 2023-05-30 11:58:41 -04:00
Gabriel Horner
ad3eda7c25 Tutorial fix and refactor. Update docs
* Some langs like es didn't have tutorials translated and were
  pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
2023-05-24 16:57:48 -04:00
Gabriel Horner
514b5faf6e Refactor and simplify dicts
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
2023-05-18 18:13:50 -04:00