Commit Graph

108 Commits

Author SHA1 Message Date
Tienson Qin
5d2ab65d7c Merge branch 'feat/db' into feat/blocks-action-bar 2025-03-08 13:55:33 +08:00
Gabriel Horner
7917afaa45 chore: update nbb scripts to be repl friendly
With https://github.com/babashka/nbb/issues/95 done, this allows
all nbb script namespaces to required or used from a repl
2025-03-07 11:49:28 -05:00
Gabriel Horner
3a62177082 chore: rename public property to publishing-public?
Since #11673 will provide a lower level public? property,
made sense to rename to avoid confusion between public and public?.
Also start deprecating :name config in built-in-properties as it
is barely used and is somewhat confusing
2025-01-17 15:29:20 -05:00
Gabriel Horner
fdfcc4fb1a fix: public publishing pages missing tags, properties
and property values that are nodes
2025-01-17 12:41:29 -05:00
Gabriel Horner
3d42cf7522 fix: bump nbb-logseq so that nbb scripts
that have already downloaded feat-db-v16 can use the latest nbb-logseq
2025-01-02 16:09:25 -05:00
Tienson Qin
64734820df Merge branch 'feat/db' into feat/repeated-tasks 2024-12-29 16:05:24 +08:00
rcmerci
d36f1c35f2 perf: cache d/entity result for immutable entities 2024-12-27 19:46:07 +08:00
Tienson Qin
e514e02d5f bump nbb-logseq 2024-12-26 15:33:53 +08:00
Gabriel Horner
eeb9d53ef0 fix(regression): publishing using removed rules 2024-11-08 10:48:13 -05:00
Gabriel Horner
1dd3aacb5f fix: assets of published db graphs 2024-10-31 16:50:46 -04:00
Gabriel Horner
0036a5d9de fix: invalid throws and remove unused values
Caught by updating to latest kondo
2024-10-31 14:12:09 -04:00
Gabriel Horner
92cc1ce38c fix: publishing build failing b/c there are no source maps
See
https://github.com/logseq/publish-spa/actions/runs/11614252492/job/32341972020.
Decided to build and include source maps on release as it won't affect
initial load and improves debuggability
2024-10-31 12:08:09 -04:00
Gabriel Horner
2cab93b354 fix: loading private published db graphs
Initial All Pages view failed to load as did most public pages.
private db graph was also leaking datoms it shouldn't
2024-10-30 15:49:05 -04:00
Gabriel Horner
e157e818cb chore: mv publishing.cljs to deps/publishing
allows for faster publishing dev as publishing-backend workflow
works against latest deps/publishing instead of cached version in .nbb
2024-10-30 12:37:02 -04:00
Tienson Qin
7d084abc5e fix: publishing app fails to load initial and then user data
fixes https://linear.app/logseq/issue/LOG-3257/publishing-app-fails-to-load-initial-and-then-user-data
2024-10-30 15:51:58 +08:00
Gabriel Horner
4214885b7c chore: mv remaining pdf properties to be in logseq.property.pdf 2024-10-16 11:10:15 -04:00
Tienson Qin
d06eb5f8d4 fix: pdf area annotation 2024-10-08 18:51:17 +08:00
Tienson Qin
998fc66132 Merge branch 'feat/db' into refactor/assets 2024-10-08 11:54:31 +08:00
Konstantinos
e09db5de59 Enhance (dev): Tabler icons (#11468)
* handle tabler-icons resources

* test removing tabler-icons-react

* Revert "test removing tabler-icons-react"

This reverts commit ea2553628d.

* replace @tabler/icons-react with tablerIcons on dist file

* fix: incorrect global react variable for the tabler react library

---------

Co-authored-by: charlie <xyhp915@qq.com>
2024-09-30 11:33:01 +08:00
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