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

Bad3r:feat/db #184

Open
wants to merge 4,280 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4280 commits
Select commit Hold shift + click to select a range
1cf4ba9
fix(rtc): update :block/type wrong when download-graph
RCmerci Jul 31, 2024
43bfedd
fix(rtc): fix rollback fn
RCmerci Jul 31, 2024
d26e620
refactor: update :block/type to cardinality one instead of many
tiensonqin Jul 31, 2024
2e13c97
enhance: add a table for property pages
logseq-cldwalker Jul 31, 2024
0c03b7a
enhance: object names in table appear as links
logseq-cldwalker Jul 31, 2024
d5e7243
fix: clicking on an empty :node many or :date many fails
logseq-cldwalker Jul 31, 2024
bf0e838
fix: can't edit :default cells when its value is the placeholder
tiensonqin Aug 1, 2024
a727b8b
fix: toggle properties
tiensonqin Aug 1, 2024
76f7bae
fix: remove repeated clause
tiensonqin Aug 1, 2024
685df8c
fix: typo
xyhp915 Aug 1, 2024
e0e19c6
enhance(ux): more shui popups for the editor commands
xyhp915 Aug 1, 2024
8c81895
refactor: don't store :checkbox as ref type
tiensonqin Aug 1, 2024
ea58da6
enhance(ui): simplify codes for modals
xyhp915 Aug 1, 2024
7226378
enhance(ui): polish details of the command popups
xyhp915 Aug 1, 2024
4e3211f
fix(rtc): typo in merge-update-ops
RCmerci Aug 1, 2024
e32561a
enhance(ui): polish icon size for the heading block
xyhp915 Aug 1, 2024
9a93442
Fix :default :one property not editable when set to empty-placeholder
logseq-cldwalker Aug 1, 2024
636e395
fix gp tests from #11433
logseq-cldwalker Aug 1, 2024
0c4f6b2
chore: remove event no longer used in the frontend
logseq-cldwalker Aug 1, 2024
d3e934d
fix: sorting :node columns like :block/tags
logseq-cldwalker Aug 1, 2024
2d50f56
chore: mv table property idents to their own ns
logseq-cldwalker Aug 1, 2024
daaac27
fix(test): api unit tests
xyhp915 Aug 2, 2024
169f678
enhance(ui): repos dropdown
xyhp915 Aug 2, 2024
0e1829e
fix(plugin): package.json item cause ui error #11449
xyhp915 Aug 2, 2024
0cc30ca
fix(ui): incorrect checkbox value for the task marker
xyhp915 Aug 2, 2024
e743091
fix: :property dsl query
tiensonqin Aug 2, 2024
bb365b0
fix: task rule uses :property-ref-type
tiensonqin Aug 2, 2024
36e3366
enhance: dynamic query in :property rule depends on db/valueType
tiensonqin Aug 2, 2024
d1ef3fb
enhance: use identity to avoid multiple vals binding error
tiensonqin Aug 2, 2024
914a21c
fix: replace outdated :page type with :node type
tiensonqin Aug 2, 2024
55f211b
fix: query-dsl tests
tiensonqin Aug 2, 2024
0769583
fix: more missed renames of :page to :node type
logseq-cldwalker Aug 2, 2024
227437f
fix: replace outdated :page type with :node type
tiensonqin Aug 2, 2024
04e32b3
fix: more outdated :page type
tiensonqin Aug 2, 2024
3a9fc06
fix: db test
tiensonqin Aug 2, 2024
870ff09
fix: db rules tests
tiensonqin Aug 2, 2024
fb681d3
fix: move [?p ?prop ?pv] to the front
tiensonqin Aug 2, 2024
09ad9d6
fix: outliner tests
tiensonqin Aug 2, 2024
f9a0ae0
enhance(dev): no more renamed schema.org classes
logseq-cldwalker Aug 2, 2024
b2f1f79
fix: graph-parser tests
tiensonqin Aug 2, 2024
5869681
Migrate checkbox ref type to non-ref type
tiensonqin Aug 2, 2024
ea0a26e
Merge branch 'feat/db' into refactor/boolean-not-ref-type
tiensonqin Aug 2, 2024
8155d06
fix: properties on a property page don't load correctly
tiensonqin Aug 2, 2024
eb63add
enhance: provide a built-in description property
logseq-cldwalker Aug 3, 2024
8653f06
fix: schema graph generation with description property
logseq-cldwalker Aug 3, 2024
a85fcdb
Merge branch 'feat/db' into refactor/boolean-not-ref-type
tiensonqin Aug 3, 2024
390b449
chore: bump mldoc to 1.5.9
tiensonqin Aug 3, 2024
cb7b154
fix: shouldn't hide markers/priorities for db graphs
tiensonqin Aug 3, 2024
4cb9cb6
Merge branch 'feat/db' into refactor/single-block-type
tiensonqin Aug 3, 2024
8bef1d7
Merge branch 'refactor/boolean-not-ref-type' into refactor/single-blo…
tiensonqin Aug 3, 2024
8e41e1d
fix: block type filter
tiensonqin Aug 4, 2024
cd12e4e
fix(api): properties for the selected blocks
xyhp915 Aug 5, 2024
adda2b6
fix(plugin): unnecessary re-render for the page header slots
xyhp915 Aug 5, 2024
2683ecb
enhance(ui): polish details for the page title elements
xyhp915 Aug 5, 2024
14f4085
fix(ui): empty graphs for the global repos dropdown
xyhp915 Aug 5, 2024
4083a2d
enhance: prefer tag instead of class on UI
tiensonqin Aug 5, 2024
8f4bd7d
refactor: updates :checkbox type to store Boolean values instead of r…
tiensonqin Aug 5, 2024
4507684
Merge branch 'feat/db' into refactor/single-block-type
tiensonqin Aug 5, 2024
69912f3
fix: lint
tiensonqin Aug 5, 2024
4d7e3d3
Merge branch 'feat/db' into refactor/single-block-type
tiensonqin Aug 5, 2024
ccc9c99
fix: outliner test
tiensonqin Aug 5, 2024
bbfdf92
fix: lint warning
tiensonqin Aug 5, 2024
12aa626
feat(ui): custom editor font
xyhp915 Aug 5, 2024
6d69336
enhance(ui): shortcut label
xyhp915 Aug 5, 2024
9332087
fix: tests
tiensonqin Aug 5, 2024
0a9320c
Disable lint rules for db :property and :page-property
tiensonqin Aug 5, 2024
411b05e
Prefer to use ldb/{type}? check when possible
tiensonqin Aug 5, 2024
825b6d0
fix: allow closed values to be deleted when they've been refed
tiensonqin Aug 5, 2024
f88ae50
fix: edit state lost after zoom in and back
tiensonqin Aug 5, 2024
004806d
fix: can't switch type back to :node when no value created yet
tiensonqin Aug 5, 2024
1f8788f
enhance(ux): unlink graphs
xyhp915 Aug 5, 2024
5d2cd70
Support db migration for :block/type update
tiensonqin Aug 5, 2024
e9d1ec1
fix: db import of properties that conflict with new built-in property…
logseq-cldwalker Aug 5, 2024
94b67d9
fix: db import from UI having some intermittent invalid blocks
logseq-cldwalker Aug 5, 2024
512dd6b
chore: update linters to use latest deps
logseq-cldwalker Aug 5, 2024
e5c72f9
fix: show db graph import for file graphs
logseq-cldwalker Aug 5, 2024
beb3472
Disable lint rules for db :property and :page-property
tiensonqin Aug 5, 2024
f46372b
chore: keep using class instead of tag for internal usage
tiensonqin Aug 5, 2024
9c60742
Merge branch 'feat/db' into refactor/single-block-type
tiensonqin Aug 5, 2024
38533ae
Merge pull request #11458 from logseq/refactor/single-block-type
tiensonqin Aug 5, 2024
5b22451
fix: block/type filter limits to :is and :is-not operators
tiensonqin Aug 5, 2024
07ad321
enhance(ux): quick modal pane for the appearance customize
xyhp915 Aug 6, 2024
b0ce9a0
fix(ui): font class
xyhp915 Aug 6, 2024
e388382
fix: block self reference
tiensonqin Aug 6, 2024
c1c6197
fix: pages of different types can use the same name
tiensonqin Aug 6, 2024
8fe21b2
enhance(ui): refs link
xyhp915 Aug 6, 2024
d151ec7
enhance(ux): catch component errors
xyhp915 Aug 6, 2024
72552d6
fix: avoid :block/refs self cycle
tiensonqin Aug 6, 2024
85dcd53
fix: node name should have the same rendering for page && block
tiensonqin Aug 6, 2024
4b4fa45
fix: db import broken by type changes in #11458 and other import bugs
logseq-cldwalker Aug 6, 2024
f811ab2
fix: test count changed by #11458
logseq-cldwalker Aug 6, 2024
f74e5fb
fix: remove unused built-in property
logseq-cldwalker Aug 6, 2024
6c05ca3
fix copying non-png images
sprocketc Aug 2, 2024
b1e53f4
fix(ui): repos dropdown
xyhp915 Aug 6, 2024
ccba2ef
fix(export): replace page-ref-id with its block/title
RCmerci Aug 7, 2024
8faef71
chore: clean code
RCmerci Aug 7, 2024
337ae48
fix: dev mode should still be able to nav to built-ins
logseq-cldwalker Aug 7, 2024
66439dd
fix: db import of markdown tables and multiline blocks
logseq-cldwalker Aug 7, 2024
dcb73b1
fix: db import of advanced queries
logseq-cldwalker Aug 7, 2024
3d8e579
refactor: decouple block extraction for db graphs and exporting
logseq-cldwalker Aug 7, 2024
75463c4
fix: don't depend frontend.(db|state) in worker ns
tiensonqin Aug 8, 2024
e7520cb
chore: add GitHub workflow
xyhp915 Aug 8, 2024
a6e0b0a
chore: remove ar support
tiensonqin Aug 8, 2024
a89c012
chore: debug image paste
tiensonqin Aug 8, 2024
a11e66b
Merge branch 'test/db' into feat/db
xyhp915 Aug 8, 2024
27a47af
fix(export): replace page-ref-ids when export page
RCmerci Aug 8, 2024
bf2df9e
chore: debug image paste
tiensonqin Aug 8, 2024
9b8a8e7
enhance: implement ISeqable and IPrintwithwriter for EntityPlus
tiensonqin Aug 8, 2024
beaa170
fix: image paste not work on production
tiensonqin Aug 8, 2024
12d3fc9
chore: remove debug
tiensonqin Aug 8, 2024
fbe3564
enhance(dev): check worker scope
xyhp915 Aug 8, 2024
a6004f4
fix: ensure all pages list pages only
tiensonqin Aug 8, 2024
159c0bf
enhance(ux): disable file based graph for web
xyhp915 Aug 8, 2024
d132f41
enhance: validate :block/type change
RCmerci Aug 8, 2024
d70ef31
enhance: allow Tag and Property to have notes
tiensonqin Aug 8, 2024
4c2d641
fix: page preview accept page uuid instead of name
tiensonqin Aug 8, 2024
b4a887c
fix: can't paste headings
tiensonqin Aug 8, 2024
ae746f1
feat: convert page to Tag
tiensonqin Aug 8, 2024
b050d47
enhance: different title-key for tag and property nodes
tiensonqin Aug 8, 2024
c660096
fix: common test failing due to code organization
logseq-cldwalker Aug 8, 2024
b901371
fix typos
logseq-cldwalker Aug 8, 2024
48df03a
fix: finish removing arweave
logseq-cldwalker Aug 8, 2024
e9ac9d2
fix: lang lint
logseq-cldwalker Aug 8, 2024
05fa4d8
fix: inline display for elements in block title
tiensonqin Aug 8, 2024
1f0bac9
fix: diff merge tests
tiensonqin Aug 8, 2024
4a69e75
fix: import doesn't fail if it has a page with new class name
logseq-cldwalker Aug 8, 2024
a2df956
refactor: list file-graph properties that are supported
logseq-cldwalker Aug 8, 2024
b62715e
enhance: replace inline tags with node references
tiensonqin Aug 9, 2024
7a40761
refactor: organize worker namespaces and lint them
logseq-cldwalker Aug 9, 2024
ce11e09
enhance: disable (()) to trigger node embed to avoid confusion
tiensonqin Aug 9, 2024
dce8459
enhance: don't show tag icon when choosing tags
tiensonqin Aug 9, 2024
2333d42
enhance(ui): polish details
xyhp915 Aug 9, 2024
e6c73e8
enhance(ui): alignment for block title marker
xyhp915 Aug 9, 2024
d3057f6
refactor: remove unused css
xyhp915 Aug 9, 2024
c7c17e3
fix: able to delete properties not built-in for the specific class
RCmerci Aug 9, 2024
4b9875c
fix: don't mark a page as loaded if it doesn't ask for children
tiensonqin Aug 9, 2024
bbe28d1
fix(ui): sticky header for the tagged table
xyhp915 Aug 9, 2024
7e8ae14
fix: hide blocks with the current property in page body
tiensonqin Aug 9, 2024
fcb92a5
fix(ui): sticky header for all pages table
xyhp915 Aug 9, 2024
59103a1
fix: can't edit notes for class and property page
tiensonqin Aug 9, 2024
8b9cf51
fix: missing nodes on tag page
tiensonqin Aug 9, 2024
dff4668
fix: include node embed in linked references
tiensonqin Aug 9, 2024
20eac03
refactor: mv common worker/frontend ns to frontend/common
logseq-cldwalker Aug 9, 2024
261118d
refactor: finish frontend independence from worker and add lint
logseq-cldwalker Aug 9, 2024
31c6cd3
chore: update overview docs
logseq-cldwalker Aug 9, 2024
fc518f0
fix: block not collapsing for simple queries
logseq-cldwalker Aug 9, 2024
9ec71e1
fix: file-specific imports showing up for db version
logseq-cldwalker Aug 9, 2024
0439270
Enhance (dev) (#10981)
sprocketc Aug 9, 2024
b9f9fa0
wip: Demo switch to use db graph
tiensonqin Aug 10, 2024
8a07162
enhance(ux): place the importer progress indicator into shui modal
xyhp915 Aug 10, 2024
6c403fe
fix: sort nodes by closed value properties and task deadline
tiensonqin Aug 11, 2024
56874a5
fix: file not saved for file graphs
tiensonqin Aug 11, 2024
1f70958
fix: lint warning
tiensonqin Aug 12, 2024
ffbadb0
fix: switch repo error for the new db graph
xyhp915 Aug 12, 2024
1190f55
fix: remove the hack on blocks list virtualization
tiensonqin Aug 12, 2024
bcf2fb9
fix: class properties
tiensonqin Aug 12, 2024
3783090
fix(ux): table sticky header in viewport
xyhp915 Aug 12, 2024
3218508
enhance: skip choosing tag
tiensonqin Aug 12, 2024
a91a38a
fix: page type icon in the right sidebar
tiensonqin Aug 12, 2024
faecfd6
fix: safe check block/title
tiensonqin Aug 12, 2024
d32985b
fix: sort by name crash
tiensonqin Aug 12, 2024
528aa48
fix(ux): sticky table header within the right sidebar
xyhp915 Aug 12, 2024
b0d8b6c
fix: update db importer wording to be consistent with rest of ui
logseq-cldwalker Aug 12, 2024
cc9881f
enhance(ux): virtualized blocks list for the first journal
xyhp915 Aug 13, 2024
7e5c195
chore: disable advanced commands for db graph
tiensonqin Aug 12, 2024
4293e83
fix: disable virtualization for journal list
tiensonqin Aug 13, 2024
bfdbc20
enhance(ui): add appearance option to the global app menus
xyhp915 Aug 13, 2024
9614324
fix: page blink when editing dummy block
tiensonqin Aug 13, 2024
eaa514b
fix: align start button "+ add choice"
tiensonqin Aug 13, 2024
dc0acec
fix(ui): persist wide mode state
xyhp915 Aug 13, 2024
a0b8b3c
fix: property description not loaded
tiensonqin Aug 13, 2024
440fed8
fix: disable whiteboards for db version
tiensonqin Aug 13, 2024
4d91bc3
fix: disable default behavior when right clicking node in sidebar
tiensonqin Aug 13, 2024
2b36f67
fix: enable property value blocks to be moved
tiensonqin Aug 13, 2024
6c72bca
fix: can't delete multiple tags
tiensonqin Aug 13, 2024
977bdde
fix: don't show table items in property linked refs
tiensonqin Aug 13, 2024
046e81b
fix: property sort column
tiensonqin Aug 13, 2024
ce3503d
fix: Page and Tag with same name defaults to using Page
tiensonqin Aug 13, 2024
e30872a
fix: page graph crash
tiensonqin Aug 13, 2024
f39e626
fix: convert page to tag does not work with special chars
tiensonqin Aug 13, 2024
406c40d
fix(ui): custom query table overflow
xyhp915 Aug 14, 2024
aaf352c
enhance(ui): polish details from right sidebar
xyhp915 Aug 14, 2024
7dd0b47
enhance: i18n
xyhp915 Aug 14, 2024
b6508ed
fix(ui): table ui from right sidebar
xyhp915 Aug 14, 2024
25f93f9
fix(api): load scripts
xyhp915 Aug 14, 2024
4a0f1d7
chore(libs): next version for libs package
xyhp915 Aug 14, 2024
136325a
fix(plugin): extension hooks
xyhp915 Aug 15, 2024
4fe1c86
fix(editor): upload asset action
xyhp915 Aug 15, 2024
b755369
enhance(apis): get blocks from batch blocks insertion
xyhp915 Aug 15, 2024
837a32f
fix(pdf): incorrect highlight value
xyhp915 Aug 15, 2024
e3dd075
enhance: Tag support inline display
tiensonqin Aug 15, 2024
d0f83cc
fix: display as block ref if a node's title includes [[]]
tiensonqin Aug 15, 2024
8f3cdc9
fix: inline tag are not created if it doesn't exist in db
tiensonqin Aug 15, 2024
c21e8c5
fix: cut paste inline tags
tiensonqin Aug 15, 2024
5c63b9f
fix: safe check block title when saving inline tags
tiensonqin Aug 15, 2024
138900c
fix(shui): limit value's type before compare when sorting
RCmerci Aug 15, 2024
7971b0c
fix: toggle Properties twice without reload doesn't work
tiensonqin Aug 16, 2024
28f8d82
fix: lint
tiensonqin Aug 16, 2024
8ce71bd
fix: can't create a new date property
tiensonqin Aug 16, 2024
f88ab18
enhance(ux): icon picker for searching mode
xyhp915 Aug 16, 2024
3aae90b
fix: can't create tag from existing page
tiensonqin Aug 16, 2024
f1cedc3
fix(ux): when opening the settings, "Language" is selected #16
xyhp915 Aug 16, 2024
2562bcf
enhance(ux): i18n
xyhp915 Aug 16, 2024
162befc
fix: show #task when hovering the block
tiensonqin Aug 16, 2024
cd28ec8
enhance: move delete property to the configure popup
tiensonqin Aug 16, 2024
ec4cdc7
enhance(ui): polish details
xyhp915 Aug 16, 2024
8b470dd
enhance: remove unused dicts automatically
tiensonqin Aug 16, 2024
2ee0b8d
fix: tests
tiensonqin Aug 16, 2024
b465ec7
fix: db ident can't start with number
tiensonqin Aug 16, 2024
0e7413a
fix: class match
tiensonqin Aug 16, 2024
dacbf11
fix: assert will be skipped in release, use throw instead
RCmerci Aug 16, 2024
7778e0f
fix: unable to create page if tag exists
tiensonqin Aug 16, 2024
c59fac6
fix: distinct initial datoms
tiensonqin Aug 16, 2024
f28ab33
fix: block property lost cursor when there're multiple instances
tiensonqin Aug 17, 2024
c20f8ff
fix: disable property drag&&drop when editing or selecting
tiensonqin Aug 17, 2024
a752060
enhance: hide #task only if the block has only one tag
tiensonqin Aug 17, 2024
319f076
fix: property selector odd behavior
tiensonqin Aug 17, 2024
525ebed
fix: block reference reverts to uuid after block is edited
tiensonqin Aug 17, 2024
ae27032
fix: node ref changed after modifying block content
tiensonqin Aug 18, 2024
562c83e
fix: cut and Paste does not copy the contents of properties
tiensonqin Aug 19, 2024
0876198
fix: favorite page prefer id instead of name
tiensonqin Aug 19, 2024
cab7cc7
fix(ui): input command popups not working for /link and /image-link h…
xyhp915 Aug 19, 2024
36cb047
fix(ui): invalid input for command popups in block editing mode
xyhp915 Aug 19, 2024
de45337
enhance: set height for right position properties
tiensonqin Aug 19, 2024
738f0d3
enhance(ux): icon picker
xyhp915 Aug 19, 2024
656f332
fix: style issue
tiensonqin Aug 19, 2024
0631ed6
fix: style issue
tiensonqin Aug 19, 2024
c1c3b41
enhance(ux): WIP dropdown property editor
xyhp915 Aug 19, 2024
77463bf
enhance(ux): WIP dropdown property editor
xyhp915 Aug 19, 2024
fff3fb9
enhance(ui): alignment for the inline tag
xyhp915 Aug 19, 2024
658ea25
fix: two db importer bugs introduced last week
logseq-cldwalker Aug 19, 2024
eff0d5e
refactor: db ident generation with tests
logseq-cldwalker Aug 19, 2024
3a4cc55
fix: graph-parser test and lint
logseq-cldwalker Aug 19, 2024
7f7c876
doc: using a CLI generated graph
logseq-cldwalker Aug 19, 2024
aa0b079
fix(ui): property Key performs line-break on words instead of normal.…
xyhp915 Aug 20, 2024
ac2417a
enhance(ux): WIP dropdown property editor
xyhp915 Aug 20, 2024
9d62813
enhance(ux): WIP interaction for the dropdown property editor
xyhp915 Aug 20, 2024
21b55fa
enhance(ux): WIP interaction for the dropdown property editor
xyhp915 Aug 20, 2024
14a507f
enhance(dev): run lint fix with an option
logseq-cldwalker Aug 20, 2024
cabb24e
chore: tweak doc wording
logseq-cldwalker Aug 20, 2024
6c0e40e
fix: frontend lint /cc @xyhp915
logseq-cldwalker Aug 20, 2024
85e358e
fix: not able to create case sensitive classes
logseq-cldwalker Aug 20, 2024
fbcaeb5
fix: example edn uses outdated property type
logseq-cldwalker Aug 20, 2024
c703ebd
fix: remove deleted lang keys from English config
logseq-cldwalker Aug 20, 2024
91b39e7
enhance(ui): polish dropdown property editor
xyhp915 Aug 21, 2024
b813153
enhance(ux): WIP dropdown property editor
xyhp915 Aug 21, 2024
95cc518
enhance(ux): WIP dropdown property editor
xyhp915 Aug 21, 2024
7116398
enhance(ui): put login into app dots menu
xyhp915 Aug 21, 2024
75c8f1b
enhance(ui): put login into app dots menu
xyhp915 Aug 21, 2024
8f371a1
enhance(ux): WIP functionality for the dropdown property editor
xyhp915 Aug 21, 2024
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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .carve/config.edn
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{;; 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
:api-namespaces [;; Ignore b/c too many false positives
frontend.db
;; Used for debugging
frontend.db.debug]
frontend.db.debug
frontend.worker.debug]
:report {:format :ignore}}
29 changes: 17 additions & 12 deletions .carve/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,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 +63,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 +74,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
;; WIP fn, remove when it's ready
frontend.worker.rtc.asset-sync/<loop-for-assets-sync
;; Future use?
frontend.worker.rtc.hash/hash-blocks
;; Repl fn
frontend.rum/use-atom-in
;; missionary utils
frontend.common.missionary-util/<!
File renamed without changes.
87 changes: 75 additions & 12 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
;; 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}
Expand All @@ -21,6 +21,14 @@
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"}}

: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 @@ -44,12 +52,21 @@
frontend.components.block.macros block-macros
frontend.components.query query
frontend.components.query.result query-result
frontend.components.class class-component
frontend.components.property property-component
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.config config
frontend.date date
frontend.db db
frontend.db-mixins db-mixins
frontend.db.query-dsl query-dsl
frontend.db.react react
frontend.db.query-custom query-custom
frontend.db.query-react query-react
frontend.db.util db-utils
frontend.diff diff
Expand All @@ -66,15 +83,28 @@
frontend.handler.common.file file-common-handler
frontend.handler.common.plugin plugin-common-handler
frontend.handler.common.developer dev-common-handler
frontend.handler.common.page page-common-handler
frontend.handler.config config-handler
frontend.handler.editor.property editor-property
frontend.handler.events events
frontend.handler.global-config global-config-handler
frontend.handler.ui ui-handler
frontend.handler.notification notification
frontend.handler.page page-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.file-based.page file-page-handler
frontend.handler.file-based.property file-property-handler
frontend.handler.file-based.page-property file-page-property
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.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
Expand All @@ -83,8 +113,10 @@
frontend.idb idb
frontend.loader loader
frontend.mixins mixins
frontend.modules.outliner.ui ui-outliner-tx
frontend.mobile.util mobile-util
frontend.page page
frontend.persist-db persist-db
frontend.schema.handler.common-config common-config-schema
frontend.search search
frontend.state state
Expand All @@ -93,27 +125,56 @@
frontend.ui ui
frontend.util util
frontend.util.clock clock
frontend.util.drawer drawer
frontend.util.page page-util
frontend.util.property property
frontend.util.persist-var persist-var
frontend.util.text text-util
frontend.util.url url-util
frontend.util.thingatpt thingatpt
frontend.worker.pipeline worker-pipeline
frontend.worker.util worker-util
frontend.worker.state worker-state
frontend.worker.handler.page worker-page
lambdaisland.glogi log
logseq.common.path path
logseq.common.graph common-graph
logseq.common.config common-config
logseq.common.graph common-graph
logseq.common.date-time-util date-time-util
logseq.common.path path
logseq.common.util common-util
logseq.common.util.page-ref page-ref
logseq.common.util.block-ref block-ref
logseq.common.util.macro macro-util
logseq.db ldb
logseq.db.frontend.content db-content
logseq.db.frontend.class db-class
logseq.db.frontend.db-ident db-ident
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.entity-plus entity-plus
logseq.db.frontend.entity-util entity-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.graph-parser graph-parser
logseq.graph-parser.text text
logseq.graph-parser.db gp-db
logseq.graph-parser.block gp-block
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.outliner.batch-tx batch-tx
logseq.outliner.core outliner-core
logseq.outliner.op outliner-op
logseq.outliner.pipeline outliner-pipeline
logseq.outliner.datascript-report ds-report
logseq.shui.ui shui
logseq.shui.popup.core shui-popup
medley.core medley
"path" node-path
promesa.core p}}
Expand All @@ -134,11 +195,13 @@
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
frontend.common.schema-register/defkeyword cljs.spec.alpha/def}
:skip-comments true
:output {:progress true}}
:output {:progress true
:exclude-files ["src/test/docs-0.10.9/"]}}
72 changes: 65 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check spelling with custom config file
uses: crate-ci/[email protected]
with:
Expand All @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -77,17 +77,21 @@ jobs:
- name: Fetch yarn deps
run: yarn install --frozen-lockfile

- name: Build test asset
run: clojure -M:test compile test

- name: Run some ClojureScript tests against DB version
run: DB_GRAPH=1 node static/tests.js -r frontend.db.query-dsl-test

- name: Run ClojureScript tests
run: |
yarn cljs:test
node static/tests.js
run: node static/tests.js -e fix-me

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c #v3
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
Expand Down Expand Up @@ -116,12 +120,66 @@ jobs:
- name: Lint invalid translation entries
run: bb lang:validate-translations

- name: Lint to keep worker independent of frontend
run: bb lint:worker-and-frontend-separate

- name: Lint to keep db and file graph code separate
run: bb lint:db-and-file-graphs-separate

db-graph-test:
strategy:
matrix:
operating-system: [ubuntu-latest]

runs-on: ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
cache-dependency-path: |
deps/db/yarn.lock
scripts/yarn.lock

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}

- name: Set up Clojure
uses: DeLaGuardo/[email protected]
with:
cli: ${{ env.CLOJURE_VERSION }}
bb: ${{ env.BABASHKA_VERSION }}

- name: Fetch scripts yarn deps
run: cd scripts && yarn install --frozen-lockfile

- name: Create DB graph with properties
run: cd scripts && yarn nbb-logseq src/logseq/tasks/db_graph/create_graph_with_properties.cljs ./db-graph-with-props

# TODO: Use a smaller, test-focused graph to test classes
- name: Create DB graph with classes
run: cd scripts && yarn nbb-logseq src/logseq/tasks/db_graph/create_graph_with_schema_org.cljs ./db-graph-with-schema

- name: Fetch deps/db yarn deps
run: cd deps/db && yarn install --frozen-lockfile

- name: Validate created DB graphs
run: cd deps/db && yarn nbb-logseq script/validate_client_db.cljs ../../scripts/db-graph-with-props ../../scripts/db-graph-with-schema --closed-maps --group-errors

e2e-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- name: Fetch yarn deps
run: yarn install --frozen-lockfile

- name: Run nbb-logseq tests
run: yarn test

# In this job because it depends on an npm package
- name: Load namespaces into nbb-logseq
run: bb test:load-all-namespaces-with-nbb .
Expand All @@ -80,7 +83,7 @@ jobs:
bb: ${{ env.BABASHKA_VERSION }}

- name: Run clj-kondo lint
run: clojure -M:clj-kondo --parallel --lint src
run: clojure -M:clj-kondo --lint src test

- name: Carve lint for unused vars
run: bb lint:carve 2>/dev/null
Expand Down
Loading
Loading