Commit Graph

89 Commits (7a96fc0e32d14abc318b7841eea0cd4c065bee9b)

Author SHA1 Message Date
Gabriel Horner de6c6aedd2 chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -04:00
Gabriel Horner f2b38b5963 fix: stop shadowing vars in deps and turn on related lint
Follow up to last commit. Added some exceptions for cljs.core
to minimize change for now
2024-08-23 16:58:08 -04:00
Tienson Qin b9f9fa0ca6 wip: Demo switch to use db graph 2024-08-10 13:42:37 +08:00
Gabriel Horner c660096937 fix: common test failing due to code organization
datascript based utils should be in db dep. common is for dependency free
namespaces
2024-08-08 09:24:02 -04:00
Tienson Qin 390b44985c chore: bump mldoc to 1.5.9 2024-08-03 15:19:51 +08:00
Tienson Qin b3a786db02 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-29 13:36:00 +08:00
Gabriel Horner d3f9defb6d chore: bump nbb to latest datascript 2024-07-26 21:27:10 -04:00
Tienson Qin d847023dc1 Refactor: rename :block/content to :block/title 2024-07-10 22:33:44 +08:00
Tienson Qin a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Gabriel Horner e24b386079 Bump nbb with latest datascript
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-06-27 18:07:44 -04:00
Gabriel Horner 244a86557f chore: rename :property/value to :property.value/content
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner 137f388edd enhance: property ref values can store their
original value optionally with :property/value.
Currently applies to :url and :number and not :default
as :default is meant to be a block and thus highly coupled
to :block/content. By introducing this, functionality that relies
on original property values automatically work e.g.
sorting by :number property for query results just works
2024-06-13 23:03:18 -04:00
Gabriel Horner 04e71a9a23 Bump datascript for nbb-logseq 2024-05-22 09:37:16 -04:00
Gabriel Horner 35e6ad120d chore: rename pdf specific properties to logseq.property.pdf
also remove deleted property ns
2024-05-16 15:27:24 -04:00
Gabriel Horner 2117245b28 fix: fetching built-in property values
Fixes :number properties like hl-stamp and hl-page which returned
refs instead of actual values. This will also fix it for
future usage of built-in :default props. Also fixed a db test
2024-05-15 12:23:14 -04:00
Gabriel Horner 110813accd fix: deps and frontend lints 2024-05-06 10:45:40 -04:00
Gabriel Horner b5a8f96426 fix: publishing hl-type-area for db graphs 2024-05-02 16:15:06 -04:00
Gabriel Horner 5130ced982 fix: public queries for publishing 2024-05-02 15:53:48 -04:00
Gabriel Horner 24c48e7a87 fix: multiple fixes related to lookup-by-name
- only use it for user properties
- don't use create ident fn to lookup names
- fixed get-area-block-asset-url which didn't work for db graphs without
  the frontend
2024-05-02 15:16:03 -04:00
Gabriel Horner a35bc9b0d6 Bump nbb-logseq version for datascript and ordered-map changes 2024-04-30 10:10:11 -04:00
Tienson Qin d416687b7b fix: :block/original-name shouldn't be unique
There're at least two use cases for same page original names:
1. multiple clients can create pages with the same title
2. multiple tagged blocks can have the same :block/original-name
2024-04-24 22:49:57 +08:00
Gabriel Horner 354c0c1e42 fix: built-in? helper and most deps tests
Also fix validate script's count
2024-04-12 10:04:43 -04:00
Tienson Qin 60d4fca0ba wip: remove :block/name uniqueness for db based graphs
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.
2024-04-04 15:57:48 +08:00
Gabriel Horner 12c667fabb Update nbb-logseq to latest datascript 2024-04-02 09:36:28 -04:00
Tienson Qin 1987c455e7 Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-01 15:47:43 +08:00
Gabriel Horner f728b7b9f6 fix: multiple bugs with built-in pages, fixes LOG-3046
- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
  page names
- file graphs creating default pages with incorrect format
2024-03-29 16:21:19 -04:00
Tienson Qin 98d2b92ab1 fix: schema && built-in properties 2024-03-25 10:59:09 +08:00
Gabriel Horner 67a7a0a3e9 enhance: Add default namespace of :logseq.property
for db/ident of built-in-properties. Namespacing block identities will
be important for future features. Adding namespacing also fixed some
hidden coupling between identity and name. Also converted a couple more
related :block/name queries to use :db/ident to slowly get us closer to
named blocks
2024-03-15 18:37:15 -04:00
Gabriel Horner 96b35c0252 Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -04:00
Gabriel Horner c6e358c983 fix: outliner test failing b/c not nbb compatible
bumped to latest nbb-logseq which is
2024-03-06 11:06:18 -05: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 ce2341506d fix: publishing not loading correctly
Caused by pulling in the new component system. Fixes #10893
2024-01-24 08:53:48 -05:00
Gabriel Horner 77bc1d5d6b chore: update better-sqlite3 and mldoc in deps to match app 2024-01-23 11:36:32 -05:00
Gabriel Horner 689cf34cc3 fix: lints and a test
nbb test was failing b/c outliner had graph-parser as a dependency
but we hadn't manually added the npm dependency
2024-01-23 09:38:16 -05:00
Gabriel Horner cc1b8445a8 fix: published graphs that don't have any public pages
This was failing hard but now it shows a blank graph
like before. Fix LOG-3017
2024-01-23 09:18:23 -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
Gabriel Horner 73cbcc5a1c fix: publishing not building again
caused by new ui script changes
2024-01-22 12:05:01 -05:00
Gabriel Horner a80a182a8f fix: update publishing setup since there are 2 more assets
Also add compilation flag for code splitting bug
2024-01-19 15:27:02 -05:00
Gabriel Horner 34222b3436 chore: bump nbb-logseq that points to upstream nbb 2024-01-15 18:07:49 -05:00
Gabriel Horner ca020fcdb3 fix: loading all new deps namespaces in nbb
- bb test:load-all-namespaces-with-nbb now passes for all deps
- Updated nbb-logseq to support cljs.core/Atom
- Adjusted datascript.impl.entity with previous datascript.db require
  so that correct loading occurs in nbb
- fixed missing deps in logseq.outliner
- Converted a minor cljs.spec to malli since malli is nbb compatible
- Changed exists? to some? since they are functionally equivalent for
  the given arg and some? is nbb compatible
2024-01-15 12:43:16 -05:00
Gabriel Horner a81e18e9a6 fix: update nbb-logseq and make entity-plus nbb compatible
deps can now load in nbb and all nbb tests pass except for db
2024-01-11 13:10:06 -05:00
Gabriel Horner 4fd0b65639 bump nbb-logseq to use datascript with dirty flag fix 2024-01-02 17:07:11 -05:00
Tienson Qin 822001aace Merge branch 'feat/db' into refactor/worker-search 2023-12-22 21:33:53 +08:00
Gabriel Horner d4f438f228 bump nbb-logseq for latest datascript 2023-12-21 13:00:44 -05:00
Tienson Qin 0e11226d01 fix: remove old transit file when unlink repo
Also, rename demo repo from "local" to "Logseq demo"
2023-12-21 23:41:45 +08:00
Gabriel Horner 52f7afa18f bump nbb-logseq to latest datascript with another storage delete fix
part of LOG-2974
2023-12-19 13:42:13 -05:00
Gabriel Horner de3d82baba bump to latest nbb-logseq with datascript.storage delete fix 2023-12-18 11:10:59 -05:00
Gabriel Horner 0f4cdbbadf bump outdated nbb-logseq and fix lint 2023-12-11 15:55:38 -05:00