Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/db #66

Open
wants to merge 6,030 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6030 commits
Select commit Hold shift + click to select a range
6473482
Merge branch 'feat/db' into feat/repeated-tasks
tiensonqin Dec 29, 2024
7960fbe
enhance: mark time as select-none
tiensonqin Dec 29, 2024
bf1fe27
instrument: report errors to sentry when kvs are missing
tiensonqin Dec 29, 2024
fe5ba4f
enhance: update entity-memoized
RCmerci Dec 29, 2024
eb2d0be
Merge branch 'feat/db' into enhance/plugin-web
xyhp915 Dec 29, 2024
7d27651
fix(plugin): persist theme mode for web theme
xyhp915 Dec 29, 2024
b3ebdb8
dev: cljfmt config add :sort-ns-references?
RCmerci Dec 29, 2024
8a5e648
enhance(plugin): disable effect plugins for the web Marketplace
xyhp915 Dec 29, 2024
eba8e78
fix(plugin): validate options for the palette command
xyhp915 Dec 29, 2024
bc362c3
suggestions from zhiyuan
tiensonqin Dec 29, 2024
1d0f6a7
fix: skip running commands when undo/redo
tiensonqin Dec 29, 2024
eff34e4
fix: don't run commands for rtc transaction
tiensonqin Dec 29, 2024
0856030
Merge branch 'feat/db' into feat/repeated-tasks
tiensonqin Dec 29, 2024
ceb8849
Merge pull request #11654 from logseq/feat/repeated-tasks
tiensonqin Dec 29, 2024
972e6e6
fix: save current block before opening date picker
tiensonqin Dec 29, 2024
985365a
fix: ensure built-in data exists
tiensonqin Dec 30, 2024
c75efab
fix: react key warning
tiensonqin Dec 30, 2024
659d64c
fix: handle asset type
tiensonqin Dec 30, 2024
dd29499
fix: react key warnings
tiensonqin Dec 30, 2024
7425e01
fix(ux): don't stop propagation for the pointer down event on the fol…
xyhp915 Dec 30, 2024
a5f5f19
Merge branch 'feat/db' into enhance/plugin-web
xyhp915 Dec 30, 2024
1760161
fix: set class scope when using class as property
tiensonqin Dec 30, 2024
deb14ed
feat: dev validate db
tiensonqin Dec 30, 2024
87906fb
fix: lint
tiensonqin Dec 30, 2024
b9a7950
fix(plugin): parse empty repo config
xyhp915 Dec 30, 2024
49227f4
enhance(plugin): ignore save package json for the web plugin
xyhp915 Dec 30, 2024
208ca93
refactor(plugin): names
xyhp915 Dec 30, 2024
109e91b
enhance(plugin): check updates for the web plugins
xyhp915 Dec 30, 2024
15f7b9c
chore(plugin): build libs core
xyhp915 Dec 30, 2024
72bf709
fix(plugin): invalid readme for the web plugin
xyhp915 Dec 30, 2024
aceaf0c
Merge branch 'feat/db' into enhance/plugin-web
xyhp915 Dec 30, 2024
4a732ba
chore: fix lint
xyhp915 Dec 31, 2024
be54a9c
chore: fix lint
xyhp915 Dec 31, 2024
6e1f511
chore: fix lint
xyhp915 Dec 31, 2024
91f3dc3
chore(dev): react keys warnings
xyhp915 Dec 31, 2024
4bcda99
enhance(rum): adapt react class for the component friendly keys warning
xyhp915 Dec 31, 2024
a2b0afb
chore(dev): fix react warnings
xyhp915 Jan 1, 2025
961e009
fix: migrate should prefer existing value
tiensonqin Jan 2, 2025
8ce12ce
fix: db migrate
tiensonqin Jan 2, 2025
c6d9f33
fix: react warning
tiensonqin Jan 2, 2025
6030ae1
fix: mark hash tag symbol as select-none
tiensonqin Jan 2, 2025
6773542
Merge branch 'feat/db' into enhance/plugin-web
xyhp915 Jan 2, 2025
0eb7666
enhance(plugin): persist updates state for the web plugin
xyhp915 Jan 2, 2025
a30c2ca
fix: update deadline to be type of :datetime
tiensonqin Jan 2, 2025
3d42cf7
fix: bump nbb-logseq so that nbb scripts
logseq-cldwalker Jan 2, 2025
b7723db
fix: importer importing some pages as both Tag and Page
logseq-cldwalker Jan 2, 2025
bc9aa08
fix: case sensitive tag creation broken by previous commit
logseq-cldwalker Jan 2, 2025
ff01282
Merge branch 'feat/db' into enhance/plugin-web
xyhp915 Jan 3, 2025
6ef1b84
enhance(plugins): load web plugins asynchronously
xyhp915 Jan 3, 2025
dd17560
refactor: add clojure.string to :consistent-alias in kondo-config
RCmerci Jan 3, 2025
b65a2d5
refactor: consistent alias of clojure.string
RCmerci Jan 3, 2025
28cfdf6
feat: add profiler(dev) rightside-tab (#11668)
RCmerci Jan 3, 2025
df41e8b
fix: file content being overwritten when running db migration
tiensonqin Jan 3, 2025
9b282d6
Merge branch 'feat/db' into enhance/plugin-web
tiensonqin Jan 3, 2025
28ae59d
Merge pull request #11664 from logseq/enhance/plugin-web
tiensonqin Jan 3, 2025
f802941
enhance: backup notice when the graph hasn't been updated
tiensonqin Jan 3, 2025
e1c9641
perf: refactor frontend.db.react/remove-query-component!
RCmerci Jan 3, 2025
d7e7924
fix(plugin): missing scripts
xyhp915 Jan 3, 2025
59d31c9
Merge branch 'feat/db' of https://github.com/logseq/logseq into feat/db
xyhp915 Jan 3, 2025
d9d9d26
fix: tweak file-block schema for migrations
logseq-cldwalker Jan 3, 2025
17ee522
fix: date label
tiensonqin Jan 3, 2025
01b40b4
enhance: show Tag and Property classes in page header
logseq-cldwalker Jan 3, 2025
2c8aaed
fix: don't allow deletion of built-in class objects or property
logseq-cldwalker Jan 3, 2025
d1748a1
fix: deleting built-in blocks from queries
logseq-cldwalker Jan 3, 2025
0b87c36
chore: remove unused deps from common
logseq-cldwalker Jan 3, 2025
96c1cc5
fix: unstable deadline tests for exporter
logseq-cldwalker Jan 3, 2025
4a0f279
fix: date time from different timezones
tiensonqin Jan 4, 2025
f7e150b
enhance(plugin): add web flag for the marketplace plugin
xyhp915 Jan 4, 2025
1bba10c
fix: graph counts after validation are wrong
logseq-cldwalker Jan 4, 2025
7101a59
fix(plugin): incorrect file path for the plugin dots settings
xyhp915 Jan 4, 2025
b24ad28
feat: time tracking (#11666)
tiensonqin Jan 5, 2025
8a0a051
refactor: remove :block/format for db graphs (#11667)
tiensonqin Jan 5, 2025
c6a222e
enhance: set font-normal for time spent
tiensonqin Jan 5, 2025
caa9d4c
chore(dev): react key warnings
xyhp915 Jan 5, 2025
9b75112
wip: replace :block/schema with corresponding properties
tiensonqin Jan 6, 2025
f28d344
fix(apis): create page for journals
xyhp915 Jan 6, 2025
87e01f1
enhance(apis): add types
xyhp915 Jan 6, 2025
25adb80
enhance(plugin): app proxy call
xyhp915 Jan 6, 2025
d504ba3
chore(libs): bump version
xyhp915 Jan 6, 2025
89f5229
handle more :block/schema cases
tiensonqin Jan 6, 2025
d7cfe41
fix: transact bootstrap properties first
tiensonqin Jan 6, 2025
c15a43b
fix: hidden pages
tiensonqin Jan 6, 2025
a45da56
fix: pprint/pprint not always work for validate errors
tiensonqin Jan 6, 2025
883293a
fix: prefer db/id instead of entity for use-effect deps
tiensonqin Jan 6, 2025
60d2d46
fix: can't change checked or unchecked choice to another one
logseq-cldwalker Jan 6, 2025
7c0e5b5
fix: Don't mention 'task' for repeating properties that have nothing …
logseq-cldwalker Jan 6, 2025
5c27b47
fix: wrong :block/title data
tiensonqin Jan 7, 2025
9b86f07
fix: don't re-create contents page when migrating db
tiensonqin Jan 7, 2025
800e30c
fix: remove duplicated contents page
tiensonqin Jan 7, 2025
f7f3963
fix: file-sync dialog when switching graphs
tiensonqin Jan 7, 2025
c1f9368
enhance(plugin): load plugin from web url for debug
xyhp915 Jan 7, 2025
890a06f
enhance(plugin): install plugin from web url
xyhp915 Jan 7, 2025
2750250
chore(libs): build libs core
xyhp915 Jan 7, 2025
e522c73
fix: Task doesn't repeat with a user :date property
tiensonqin Jan 7, 2025
6be1d0c
fix lint
RCmerci Jan 7, 2025
e9a5235
chore: use gfun/debounce as util/debounce
tiensonqin Jan 7, 2025
fd0bc93
refactor: make react hooks compatible with cljs builtin types
RCmerci Jan 7, 2025
5d8f176
refactor: replace rum/use-memo
RCmerci Jan 7, 2025
172261f
refactor: replace rum/use-layout-effect!
RCmerci Jan 7, 2025
693fa3a
refactor: add use-debounced-value hook
RCmerci Jan 7, 2025
6176d5d
refactor: replace rum/use-callback
RCmerci Jan 7, 2025
2248e5e
chore: fix lint
RCmerci Jan 7, 2025
051cada
refactor: add memo-deps to wrap hook-deps
RCmerci Jan 7, 2025
cdbe7b2
fix: forget to add scheduled to #Task
tiensonqin Jan 7, 2025
6518fd9
Merge pull request #11674 from logseq/refactor/custom-react-hooks
RCmerci Jan 7, 2025
a91d1d9
fix: db test
logseq-cldwalker Jan 7, 2025
671bc93
fix: describe table header which confused me and another user
logseq-cldwalker Jan 7, 2025
9050b88
fix: node level property config mixed with property-level config
logseq-cldwalker Jan 7, 2025
5ac24ab
fix: property history schema not specifying used properties
logseq-cldwalker Jan 7, 2025
cf4de2f
chore: update lint to check for two very common db namespaces
logseq-cldwalker Jan 7, 2025
c6f3eb6
fix: history/scalar-value schema
logseq-cldwalker Jan 7, 2025
8e2f0c9
fix: property history still exists when property is deleted
logseq-cldwalker Jan 7, 2025
b2a3559
chore: add block/format to file linter
logseq-cldwalker Jan 7, 2025
cadb002
fix: exporter :datetime tests failing locally
logseq-cldwalker Jan 7, 2025
1110e81
chore(dev): remove debug
xyhp915 Jan 8, 2025
d0cd4c2
enhance(plugin): auto updates for web plugins
xyhp915 Jan 8, 2025
6105476
refactor: replace all rum/use-effect!, add kondo :discouraged-var config
RCmerci Jan 8, 2025
73e51a8
refactor: split rtc malli-schema into its own ns
RCmerci Jan 8, 2025
e7bb904
chore(libs): build libs core
xyhp915 Jan 8, 2025
f5ffcf1
chore: update docstring of defkeyword
RCmerci Jan 8, 2025
7b9ae93
enhance: add logseq.common.defkeywords
RCmerci Jan 8, 2025
8470da1
enhance: defkeywords all built-in-properties
RCmerci Jan 8, 2025
9092481
fix: common lints
logseq-cldwalker Jan 8, 2025
b44d644
fix: deps tests failing to run due to missing var
logseq-cldwalker Jan 8, 2025
0db34bc
fix: debug check failing importer
logseq-cldwalker Jan 8, 2025
e8659d6
fix: remove unused check in class?
logseq-cldwalker Jan 8, 2025
4a245b5
fix: opening new page in sidebar and clicking first block
logseq-cldwalker Jan 8, 2025
e0b5dac
fix: can't create page with tag from cmd-k
logseq-cldwalker Jan 8, 2025
e83cb0f
enhance(apis): empty page name crash for the push state
xyhp915 Jan 9, 2025
72c09e5
enhance(libs): types
xyhp915 Jan 9, 2025
99998e2
enhance(libs): utils apis
xyhp915 Jan 9, 2025
9db946c
enhance: apply defkeywords to built-in classes, add some rtc related …
RCmerci Jan 9, 2025
3a43a81
enhance(rtc): client-ops generator ignore attrs if possible
RCmerci Jan 9, 2025
0fa7da9
fix(rtc): fix export-as-blocks when ignore-attr-set not nil
RCmerci Jan 9, 2025
68f758c
fix: invalid data
tiensonqin Jan 9, 2025
6971475
fix: importer fails to find classes with property-parent-classes option
logseq-cldwalker Jan 9, 2025
b8c569f
fix: importer failing and invalid on two page to class conversion cases
logseq-cldwalker Jan 10, 2025
72b736a
enhance(rtc): don't generate update-op if only :block/updated-at changed
RCmerci Jan 10, 2025
7e9edac
dev: parse-long redefine warning when compile test
RCmerci Jan 10, 2025
1c5761e
enhance(rtc): ignore entities if possible when init upload/download
RCmerci Jan 10, 2025
ccefc2b
fix(apis): missing exports
xyhp915 Jan 10, 2025
b113967
enhance(dev): cli validation includes dispatch key
logseq-cldwalker Jan 10, 2025
18f2bd6
fix: validator incorrectly identifying hidden blocks
logseq-cldwalker Jan 10, 2025
1adeaa3
fix: migrate command throwing 'Unserializable return value' error
logseq-cldwalker Jan 10, 2025
25d1243
chore: update docstrings in kv-entity
logseq-cldwalker Jan 10, 2025
5ccb11a
fix(regression): Can't distinguish between page and class properties
logseq-cldwalker Jan 10, 2025
2782eea
enhance(dev): CLI import prints last tx
logseq-cldwalker Jan 10, 2025
0cffd64
fix: importer failing hard on page ref when
logseq-cldwalker Jan 10, 2025
4d0fbe1
fix(pdf): incorrect styles for the external window pdf viewer
xyhp915 Jan 11, 2025
9764646
enhance: profiler now support multi-arity & variadic fns
RCmerci Jan 12, 2025
f485eee
enhance: add prop :logseq.property/created-by
RCmerci Jan 12, 2025
e318e0d
Merge branch 'feat/db' into refactor/block-schema
tiensonqin Jan 12, 2025
639ca09
Remove more usage of :block/schema
tiensonqin Jan 12, 2025
18d4afa
fix: profile multi-arity fns
RCmerci Jan 12, 2025
93a7034
Remove more cases of :block/schema
tiensonqin Jan 13, 2025
1535816
Rename position to ui-position
tiensonqin Jan 13, 2025
b9b38ce
fix: db graph test
tiensonqin Jan 13, 2025
369ef99
fix: outliner tests
tiensonqin Jan 13, 2025
509456f
fix: query dsl
tiensonqin Jan 13, 2025
ba9b84c
fix(e2e): plugin apis related tests
xyhp915 Jan 13, 2025
2c04eb7
fix: db tests
tiensonqin Jan 13, 2025
d8984a0
fix: graph-parser tests
tiensonqin Jan 13, 2025
61a895f
fix: tests
tiensonqin Jan 13, 2025
c6f7f08
fix: delete existing db for db-graph-test
tiensonqin Jan 13, 2025
6f44b66
fix: outliner tests
tiensonqin Jan 13, 2025
911d456
fix: tests
tiensonqin Jan 13, 2025
c90ab6c
fix(e2e): properties related apis
xyhp915 Jan 13, 2025
1ab6210
enhance: importer displays one notification about ignored files
logseq-cldwalker Jan 13, 2025
86807f5
fix: frontend lint
logseq-cldwalker Jan 13, 2025
63eaacd
enhance(dev): import cli and tests print original error's ex-data
logseq-cldwalker Jan 13, 2025
c87da72
enhance: allow a tag to be converted back to a page
logseq-cldwalker Jan 13, 2025
b3d6744
enhance(ui): broken line for the datetime label
xyhp915 Jan 14, 2025
8d778aa
enhance(api): upsert/get property entity with caller key from the plu…
xyhp915 Jan 14, 2025
685e825
chore: remove prn
RCmerci Jan 14, 2025
9d7e164
add migration
tiensonqin Jan 14, 2025
2e12918
Merge branch 'feat/db' into refactor/block-schema
tiensonqin Jan 14, 2025
2b55e0d
chore: disable schema fix
tiensonqin Jan 14, 2025
0ac4b77
fix: react key warning
tiensonqin Jan 14, 2025
c4e8fa1
fix: react key warning
tiensonqin Jan 14, 2025
3e025dd
enhance: add created-by prop to blocks
RCmerci Jan 14, 2025
22fcaa2
chore: update docstring
RCmerci Jan 14, 2025
7f17532
fix: react key warning
tiensonqin Jan 14, 2025
0b7c9b4
chore(dev): patch console error for React
xyhp915 Jan 14, 2025
ac3b643
chore(dev): react key warnings
xyhp915 Jan 14, 2025
868f066
enhance: use :property/hide? for hidden pages instead of public?
tiensonqin Jan 14, 2025
d7590fd
fix: schema validation for hidden pages
tiensonqin Jan 14, 2025
f05cb55
Merge branch 'feat/db' into refactor/block-schema
tiensonqin Jan 14, 2025
f28c698
fix: tests
tiensonqin Jan 14, 2025
9224df5
enhance(apis): add remove property & types
xyhp915 Jan 14, 2025
03592a2
chore: typo
xyhp915 Jan 14, 2025
2a4f49e
enhance: importer can import :logseq.task/scheduled
logseq-cldwalker Jan 14, 2025
04aa88b
fix: importer fails when misconfigure journal ref is a property value
logseq-cldwalker Jan 14, 2025
d14c439
chore: update comment
RCmerci Jan 14, 2025
a7e9d07
chore: rename :property/* to :logseq.property/*
tiensonqin Jan 15, 2025
029a3e0
enhance(apis): property prefix for the block property key
xyhp915 Jan 15, 2025
1d9fbc8
perf: reduce :block/properties calls on db graphs
tiensonqin Jan 15, 2025
bd96226
fix: lint
tiensonqin Jan 15, 2025
ab6abef
fix(apis): sanitize property key from the plugin id
xyhp915 Jan 15, 2025
c1ae8f6
fix: duplicated key
tiensonqin Jan 15, 2025
20fad17
Merge branch 'feat/db' into refactor/block-schema
tiensonqin Jan 15, 2025
59054c4
fix: tests
tiensonqin Jan 15, 2025
c26b350
chore: remove bak
tiensonqin Jan 15, 2025
50bf71a
fix: tests
tiensonqin Jan 15, 2025
a2609f4
enhance: Allow built-in properties to use most properties
logseq-cldwalker Jan 15, 2025
769e68a
enhance(dev): add :dispatch-key to validate-db! errors
logseq-cldwalker Jan 15, 2025
cd4d675
fix(e2e-tests): api related tests
xyhp915 Jan 16, 2025
e61f046
fix: publishing failing to load on undefined LSPluginCore
logseq-cldwalker Jan 16, 2025
27a8ec6
fix: publishing failing to load
logseq-cldwalker Jan 16, 2025
fb5dbaa
fix(regression): multiple ways to edit property config when published
logseq-cldwalker Jan 16, 2025
7e89dd3
fix: don't initialize rtc components in publishing
logseq-cldwalker Jan 16, 2025
961f6ec
fix: tests and incorrect schema property detection after rename
logseq-cldwalker Jan 16, 2025
68896c2
Merge branch 'feat/db' into refactor/block-schema
logseq-cldwalker Jan 16, 2025
5c52cac
fix: init properties after merge
logseq-cldwalker Jan 16, 2025
a15a9e1
enhance(plugin): install plugin from Github releases for development …
xyhp915 Jan 17, 2025
7cda45e
fix: migration
tiensonqin Jan 17, 2025
fdfcc4f
fix: public publishing pages missing tags, properties
logseq-cldwalker Jan 17, 2025
bec095e
fix(regression): properties and classes collapsed on publishing
logseq-cldwalker Jan 17, 2025
3a62177
chore: rename public property to publishing-public?
logseq-cldwalker Jan 17, 2025
0181a33
Merge branch 'feat/db' into refactor/block-schema
logseq-cldwalker Jan 17, 2025
53ed226
fix: bootstrapping of properties
logseq-cldwalker Jan 18, 2025
21ff539
enhance(plugin): install plugin from Github releases for development …
xyhp915 Jan 18, 2025
4349023
fix(plugin): node file creation for the specific plugin settings
xyhp915 Jan 19, 2025
c953fb7
enhance(ui): dom attributes warning
xyhp915 Jan 20, 2025
eed3d76
fix: migrating empty graph has one invalid property
logseq-cldwalker Jan 20, 2025
69f5818
fix: delete existing graph for properties script
logseq-cldwalker Jan 20, 2025
bcd1d33
fix(regression): can't edit property name from config
logseq-cldwalker Jan 20, 2025
bb1f200
fix(regression): changing property cardinality dropped :db/valueType
logseq-cldwalker Jan 20, 2025
7b2d5ce
fix: changing property type or cardinality
logseq-cldwalker Jan 20, 2025
fab1de6
fix(regression): changing a property type
logseq-cldwalker Jan 20, 2025
878f0f8
fix: logseq.property/value isn't a schema property
logseq-cldwalker Jan 21, 2025
9ca0ca1
chore: cleanup schema mapping spread across the app
logseq-cldwalker Jan 21, 2025
5cdc35b
chore: mv 2 helper fns that are only used in one ns
logseq-cldwalker Jan 21, 2025
455ccec
chore: rename sqlite.build edn to remove mention
logseq-cldwalker Jan 21, 2025
5e558e9
fix(dev): debug edn of schema graph had duplicated data in :block/pro…
logseq-cldwalker Jan 21, 2025
4af5095
fix: convert tag to page was possible on built-ins
logseq-cldwalker Jan 22, 2025
2131112
fix: `Show as checkbox` config showing up
logseq-cldwalker Jan 22, 2025
ddf921f
fix: mention 'task' on scheduled property
logseq-cldwalker Jan 22, 2025
2e846f7
Merge branch 'feat/db' into refactor/block-schema
logseq-cldwalker Jan 22, 2025
a1f29cc
Merge pull request #11673 from logseq/refactor/block-schema
logseq-cldwalker Jan 22, 2025
88d74cb
fix: importing namespaced tags with spaces
logseq-cldwalker Jan 23, 2025
44fa4c0
chore: add docs for dev import tasks
logseq-cldwalker Jan 23, 2025
6c58af2
enhance(dev): importing cli debug option prints all tx
logseq-cldwalker Jan 23, 2025
6170ba1
chore: disable test since its unused per rcmerci
logseq-cldwalker Jan 23, 2025
926d05c
feat: table columns pinning (#11693)
tiensonqin Jan 24, 2025
423a4b0
feat: views support multiple columns sort (#11694)
tiensonqin Jan 24, 2025
c8c0e24
fix: don't add Task tag when status is used by another class
logseq-cldwalker Jan 24, 2025
a9d8591
fix: task simple query doesn't recognize default value
logseq-cldwalker Jan 24, 2025
3bad903
enhance(ux): add global app not found page
xyhp915 Jan 25, 2025
0dc45cb
fix: regression on query builder
tiensonqin Jan 26, 2025
3f9aa71
enhance: /scheduled and /deadline to create task
tiensonqin Jan 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 7 additions & 4 deletions .carve/config.edn
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{;; Only lint production namespaces as most dev
;; namespaces are unused
:paths ["src/main" "src/electron" "src/test"]
:api-namespaces [
;; Ignore b/c too many false positives
:paths ["src/main" "src/electron" "src/test" "src/rtc_e2e_test"]
:api-namespaces [;; Ignore b/c too many false positives
frontend.db
;; Used for debugging
frontend.db.debug]
frontend.db.debug
frontend.worker.debug
;; Ignore because of dev work
helper
logseq.api]
:report {:format :ignore}}
31 changes: 17 additions & 14 deletions .carve/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
electron.core/main
electron.core/start
electron.core/stop
;; repl fn
electron.search/query
;; Used by shadow-cljs
frontend.core/stop
;; For repl
Expand Down Expand Up @@ -37,24 +35,13 @@ frontend.fs/readdir
;; Referenced in TODO
frontend.handler.metadata/update-properties!
;; Referenced in comment
frontend.handler.route/toggle-between-page-and-file!
;; Referenced in comment
frontend.handler.shell/run-pandoc-command!
;; Referenced in comment
frontend.image/get-orientation
;; For debugging
frontend.mixins/perf-measure-mixin
;; Previously useful fn
frontend.mobile.util/get-idevice-statusbar-height
;; Used in macro
frontend.modules.outliner.datascript/transact!
frontend.modules.outliner.core/*transaction-opts*
;; Referenced in comment
frontend.page/route-view
;; placeholder fn
frontend.publishing/stop
;; Referenced in comment
frontend.state/set-db-persisted!
;; Future use
frontend.storage/get-transit
;; repl fn
Expand All @@ -74,7 +61,7 @@ frontend.util/trace!
;; Repl fn
frontend.util.pool/terminate-pool!
;; Repl fn
frontend.util.property/add-page-properties
frontend.handler.file-based.property.util/add-page-properties
;; Test runners used by shadow
frontend.test.node-test-runner/main
frontend.test.frontend-node-test-runner/main
Expand All @@ -85,3 +72,19 @@ frontend.fs.sync/debug-print-sync-events-loop
frontend.fs.sync/stop-debug-print-sync-events-loop
;; Used in macro
frontend.state/get-current-edit-block-and-position
;; For debugging
frontend.db.model/get-all-classes
;; Initial loaded
frontend.ui/_emoji-init-data
;; placeholder var for defonce
frontend.worker.rtc.op-mem-layer/_sync-loop-canceler
;; Used by shadow.cljs
frontend.worker.db-worker/init
;; Future use?
frontend.worker.rtc.hash/hash-blocks
;; Repl fn
frontend.rum/use-atom-in
;; missionary utils
frontend.common.missionary/<!
;; only used in deps/common
frontend.common.missionary/background-task-running?
File renamed without changes.
144 changes: 114 additions & 30 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,26 @@
:config-in-ns
;; :used-underscored-binding is turned off for components because of false positive
;; for rum/defcs and _state.
{all-components {:linters {:used-underscored-binding {:level :off}}}
{all-components
{:linters {:used-underscored-binding {:level :off}}}
;; false positive with match/match and _
frontend.handler.paste {:linters {:used-underscored-binding {:level :off}}}
frontend.db {:linters {:aliased-namespace-symbol
{:exclude [frontend.db.conn frontend.db.react logseq.db.default]}}}}
{:exclude [frontend.db.conn frontend.db.react]}}}}

:linters
{:path-invalid-construct/string-join {:level :info}
:defkeywords/invalid-arg {:level :warning}
:regex-checks/double-escaped-regex {:level :warning}
:aliased-namespace-symbol {:level :warning}
:shadowed-var {:level :warning
:exclude [key val name binding type uuid
;; FIXME: Remove the shadowed below as shadowing core fns isn't a good practice
;; FIXME: At least remove the first two lines as they have few uses
re-pattern sequence dispatch-fn comp vec delay chunk
fn t ex-data list int? hash range
time sort-by namespace count parents exists? min
new var ns resolve identity next meta vals keys exists?]}
;; Disable until it doesn't trigger false positives on rum/defcontext
:earmuffed-var-not-dynamic {:level :off}
;; Disable until we decide to use conj! as recommended in docs
Expand All @@ -21,6 +31,18 @@
goog.string.unescapeEntities
;; TODO:lint: Fix when fixing all type hints
object]}

:discouraged-namespace
{logseq.db.sqlite.cli {:message "frontend should not depend on CLI namespace with sqlite3 dependency"}
logseq.outliner.cli {:message "frontend should not depend on CLI namespace with sqlite3 dependency"}}
:discouraged-var
{rum.core/use-effect! {:message "Use frontend.hooks/use-effect! instead" :level :info}
rum.core/use-memo {:message "Use frontend.hooks/use-memo instead" :level :info}
rum.core/use-layout-effect! {:message "Use frontend.hooks/use-layout-effect! instead" :level :info}
rum.core/use-callback {:message "Use frontend.hooks/use-callback instead" :level :info}}
:unused-namespace {:level :warning
:exclude [logseq.db.frontend.entity-plus]}

;; TODO:lint: Remove node-path excludes once we have a cleaner api
:unresolved-var {:exclude [frontend.util/node-path.basename
frontend.util/node-path.dirname
Expand All @@ -31,91 +53,150 @@
frontend.pubsub]}

:consistent-alias
{:aliases {cljs.reader reader
cljs-time.core t
{:aliases {"/electron/utils" js-utils
"path" node-path
cljs-time.coerce tc
cljs-time.core t
cljs.reader reader
clojure.string string
datascript.core d
datascript.transit dt
datascript.db ddb
datascript.transit dt
electron.ipc ipc
electron.utils utils
"/electron/utils" js-utils
frontend.commands commands
frontend.common.date common-date
frontend.common.file.core common-file
frontend.common.file.util wfu
frontend.common.missionary-util c.m
frontend.common.schema-register sr
frontend.common.search-fuzzy fuzzy
frontend.components.block.macros block-macros
frontend.components.class class-component
frontend.components.property property-component
frontend.components.query query
frontend.components.query.result query-result
frontend.components.title title
frontend.config config
frontend.date date
frontend.db db
frontend.db-mixins db-mixins
frontend.db.query-custom query-custom
frontend.db.query-dsl query-dsl
frontend.db.react react
frontend.db.query-react query-react
frontend.db.react react
frontend.db.util db-utils
frontend.diff diff
frontend.encrypt encrypt
frontend.extensions.sci sci
frontend.format.mldoc mldoc
frontend.format.block block
frontend.format.mldoc mldoc
frontend.fs fs
frontend.fs.memory-fs memory-fs
frontend.fs.capacitor-fs capacitor-fs
frontend.fs.memory-fs memory-fs
frontend.fs.nfs nfs
frontend.handler.extract extract
frontend.handler.common common-handler
frontend.handler.common.developer dev-common-handler
frontend.handler.common.file file-common-handler
frontend.handler.common.page page-common-handler
frontend.handler.common.plugin plugin-common-handler
frontend.handler.common.developer dev-common-handler
frontend.handler.config config-handler
frontend.handler.db-based.editor db-editor-handler
frontend.handler.db-based.page db-page-handler
frontend.handler.db-based.property db-property-handler
frontend.handler.db-based.property.util db-pu
frontend.handler.editor.property editor-property
frontend.handler.events events
frontend.handler.extract extract
frontend.handler.file-based.page file-page-handler
frontend.handler.file-based.page-property file-page-property
frontend.handler.file-based.property file-property-handler
frontend.handler.file-based.property.util property-util
frontend.handler.file-based.recent file-recent-handler
frontend.handler.file-based.repo file-repo-handler
frontend.handler.global-config global-config-handler
frontend.handler.ui ui-handler
frontend.handler.notification notification
frontend.handler.page page-handler
frontend.handler.plugin plugin-handler
frontend.handler.plugin-config plugin-config-handler
frontend.handler.property.file property-file
frontend.handler.property.util pu
frontend.handler.query.builder query-builder
frontend.handler.repo repo-handler
frontend.handler.repo-config repo-config-handler
frontend.handler.route route-handler
frontend.handler.search search-handler
frontend.handler.ui ui-handler
frontend.hooks hooks
frontend.idb idb
frontend.loader loader
frontend.mixins mixins
frontend.mobile.util mobile-util
frontend.modules.outliner.ui ui-outliner-tx
frontend.page page
frontend.persist-db persist-db
frontend.schema.handler.common-config common-config-schema
frontend.search search
frontend.state state
frontend.template template
frontend.test.helper test-helper
frontend.ui ui
frontend.util util
frontend.util.clock clock
frontend.util.file-based.clock clock
frontend.util.file-based.drawer drawer
frontend.util.page page-util
frontend.util.property property
frontend.util.persist-var persist-var
frontend.util.property property
frontend.util.text text-util
frontend.util.url url-util
frontend.util.thingatpt thingatpt
frontend.util.url url-util
frontend.worker.handler.page worker-page
frontend.worker.pipeline worker-pipeline
frontend.worker.state worker-state
frontend.worker.util worker-util
lambdaisland.glogi log
logseq.common.path path
logseq.common.graph common-graph
logseq.common.config common-config
logseq.common.date-time-util date-time-util
logseq.common.graph common-graph
logseq.common.path path
logseq.common.util common-util
logseq.common.util.block-ref block-ref
logseq.common.util.macro macro-util
logseq.common.util.namespace ns-util
logseq.common.util.page-ref page-ref
logseq.db ldb
logseq.db.frontend.class db-class
logseq.db.frontend.content db-content
logseq.db.frontend.db-ident db-ident
logseq.db.frontend.entity-plus entity-plus
logseq.db.frontend.entity-util entity-util
logseq.db.frontend.inputs db-inputs
logseq.db.frontend.order db-order
logseq.db.frontend.property db-property
logseq.db.frontend.property.build db-property-build
logseq.db.frontend.property.type db-property-type
logseq.db.frontend.property.util db-property-util
logseq.db.frontend.rules rules
logseq.db.frontend.schema db-schema
logseq.db.frontend.validate db-validate
logseq.db.sqlite.cli sqlite-cli
logseq.db.sqlite.util sqlite-util
logseq.db.test.helper db-test
logseq.graph-parser graph-parser
logseq.graph-parser.text text
logseq.graph-parser.block gp-block
logseq.graph-parser.db gp-db
logseq.graph-parser.mldoc gp-mldoc
logseq.graph-parser.util gp-util
logseq.graph-parser.property gp-property
logseq.graph-parser.config gp-config
logseq.graph-parser.util.page-ref page-ref
logseq.graph-parser.util.block-ref block-ref
logseq.graph-parser.util.db db-util
logseq.graph-parser.date-time-util date-time-util
logseq.graph-parser.text text
logseq.outliner.batch-tx batch-tx
logseq.outliner.core outliner-core
logseq.outliner.datascript-report ds-report
logseq.outliner.op outliner-op
logseq.outliner.pipeline outliner-pipeline
logseq.outliner.validate outliner-validate
logseq.shui.popup.core shui-popup
logseq.shui.ui shui
medley.core medley
"path" node-path
promesa.core p}}

:namespace-name-mismatch {:level :warning}
Expand All @@ -124,21 +205,24 @@
:hooks {:analyze-call {rum.core/defc hooks.rum/defc
rum.core/defcs hooks.rum/defcs
clojure.string/join hooks.path-invalid-construct/string-join
clojure.string/replace hooks.regex-checks/double-escaped-regex}}
clojure.string/replace hooks.regex-checks/double-escaped-regex
logseq.common.defkeywords/defkeywords hooks.defkeywords/defkeywords}}
:lint-as {promesa.core/let clojure.core/let
promesa.core/loop clojure.core/loop
promesa.core/recur clojure.core/recur
promesa.core/doseq clojure.core/doseq
rum.core/defcc rum.core/defc
rum.core/with-context clojure.core/let
rum.core/defcontext clojure.core/def
clojure.test.check.clojure-test/defspec clojure.core/def
clojure.test.check.properties/for-all clojure.core/for
;; src/main
frontend.modules.outliner.datascript/auto-transact! clojure.core/let
frontend.namespaces/import-vars potemkin/import-vars
;; src/test
frontend.test.helper/deftest-async clojure.test/deftest
frontend.test.helper/with-reset cljs.test/async
frontend.react/defc clojure.core/defn}
frontend.worker.rtc.idb-keyval-mock/with-reset-idb-keyval-mock cljs.test/async
frontend.react/defc clojure.core/defn
logseq.common.defkeywords/defkeyword cljs.spec.alpha/def}
:skip-comments true
:output {:progress true}}
:output {:progress true
:exclude-files ["src/test/docs-0.10.9/"]}}
27 changes: 27 additions & 0 deletions .clj-kondo/hooks/defkeywords.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
(ns hooks.defkeywords
(:require [clj-kondo.hooks-api :as api]))

(defn defkeywords
[{:keys [node]}]
(let [[_ & keyvals] (:children node)
kw->v (partition 2 keyvals)
kws (map first kw->v)]
(cond
(odd? (count keyvals))
(api/reg-finding!
(assoc (meta node)
:message "Require even number of args"
:type :defkeywords/invalid-arg))
(not (every? (comp qualified-keyword? api/sexpr) kws))
(api/reg-finding!
(assoc (meta node)
:message "Should use qualified-keywords"
:type :defkeywords/invalid-arg))
:else
(let [new-node (api/list-node
(map (fn [[kw v]]
(api/list-node
[(api/token-node 'logseq.common.defkeywords/defkeyword) kw v]))
kw->v))]
{:node (with-meta new-node
(meta node))}))))
3 changes: 3 additions & 0 deletions .cljfmt.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{:extra-indents {missionary.core/sp [[:block 0]]
missionary.core/ap [[:block 0]]}
:sort-ns-references? true}
2 changes: 1 addition & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:

env:
CLOJURE_VERSION: '1.11.1.1413'
NODE_VERSION: '18'
NODE_VERSION: '20'
JAVA_VERSION: '17'

jobs:
Expand Down
Loading