Commit Graph

13134 Commits

Author SHA1 Message Date
rcmerci
6d4062cf8a chore: update goog-define vars 2025-02-21 15:49:46 +08:00
rcmerci
de21b0a908 fix lint 2025-02-21 15:29:58 +08:00
rcmerci
819b1775a7 fix: unable to delete first child block 2025-02-21 15:27:00 +08:00
charlie
531f586f19 enhance(ux): friendly downloads number label 2025-02-21 11:35:28 +08:00
charlie
1256d2ef94 enhance(ux): weighted sorting for the marketplace plugins 2025-02-21 11:30:35 +08:00
Gabriel Horner
04b832f5cb chore: mv file graph specific fns out ldb 2025-02-20 12:37:13 -05:00
Tienson Qin
8f6a7d85b5 fix: mod+e to embed block
Also being able to paste copied block ref when /node embed.
2025-02-21 00:42:26 +08:00
Tienson Qin
abb52d61a7 fix: block add button not shown when the last child is embeded block 2025-02-21 00:08:10 +08:00
Gabriel Horner
46e88dca24 Revert "fix: add workaround to hide buggy pages in file graphs"
This reverts commit d086ba85f7.

hashtag pages likely fixed by 2346df237c
2025-02-20 10:27:26 -05:00
Tienson Qin
226e268f88 fix: positioned properties height 2025-02-20 22:10:25 +08:00
Tienson Qin
2346df237c fix(regression): Query tables look smushed together
fixes LOG-3220
2025-02-20 22:05:10 +08:00
Tienson Qin
9de236165d fix(regression): {{function}} no longer works
fixes LOG-3252
2025-02-20 21:27:41 +08:00
Tienson Qin
b21960a858 fix(regression): query result table view not rendered on file graphs 2025-02-20 21:24:07 +08:00
Tienson Qin
32f56f016b fix: Page property autocomplete not filtering
fixes LOG-3203
2025-02-20 21:12:42 +08:00
Tienson Qin
3ceb147451 fix: Can't see selection in expanded block ref in sidebar
fixes LOG-3199
2025-02-20 20:51:29 +08:00
Tienson Qin
9c77b21fa7 enhance: show task status when referencing the task 2025-02-20 19:11:06 +08:00
rcmerci
e68f73b932 enhance: impl IPrintWithWriter for missionary.Cancelled 2025-02-20 18:25:44 +08:00
Tienson Qin
82bcea2fcf fix: lint 2025-02-20 17:40:40 +08:00
charlie
fdda66a854 enhance(ux): weighted sorting for the marketplace plugins 2025-02-20 16:42:16 +08:00
charlie
51cbb08ddc enhance(ux): weighted sorting for the marketplace plugins 2025-02-20 12:11:13 +08:00
Gabriel Horner
b2d5315a68 enhance(dev): add deps/db/src/logseq/{frontend,sqlite} to
separate linter. Will catch mistakes like
e92b107b5b next time. Also fixed
a few more ldb/* calls and expanded /db-based-graph? check
2025-02-19 16:44:17 -05:00
Gabriel Horner
e92b107b5b fix: entity-util/{journal?,whiteboard?,page?} calls
Split up fns of these checks into entity-util, file-entity-util and
common-entity-util so that we have explicit fns for checking in single
or multi-graph contexts. By doing this, were were able to fix more than
20+ fns that were calling general fns in a single graph context e.g.
checking for :block/type in DB graph only namespaces. Some of these
calls were happening on every :block/title lookup so there may be
some perf enhancements
2025-02-19 16:29:26 -05:00
Gabriel Horner
0964331b8a chore: move 2 more db namespaces to db.common
b/c they are used by both graph types
2025-02-19 16:29:26 -05:00
Gabriel Horner
73cff9db44 chore: mv file-specific vars in db dep
to their own file-based.* namespaces. logseq.db.frontend
can now be linted
2025-02-19 16:29:26 -05:00
Gabriel Horner
18db6b1937 chore: mv db namespaces common to both graphs to logseq.db.common 2025-02-19 16:29:26 -05:00
Tienson Qin
e7fd87b791 fix: restore scroll pos if only triggered by back/forward buttons 2025-02-20 04:07:03 +08:00
rcmerci
d1b9eadc5e enhance(rtc): replace console.log and prn with lambdaisland.glogi 2025-02-19 18:37:17 +08:00
Tienson Qin
59ad706a72 fix: remove unused property history blocks
Remove :logseq.property.attribute/xxx
2025-02-19 15:59:40 +08:00
Gabriel Horner
f597f7c9c0 chore: mv handler.common.file to file-based
now that this ns is only used by file graph namespaces.
This is important as it then makes explicit that another 500+ lines
in the graph-parser are file-graph specific. Also added docs to most
graph-parser namespaces to make explicit which are file-graph specific
and not
2025-02-17 14:02:49 -05:00
Gabriel Horner
885c06f1fb chore: mv file-handler dependent namespaces
that are now obviously file graph specific

- mv save-tree! as it calls file-handler/alter-files via events
- mv roam import which called file-handler/alter-files
- mv git component which is only enabled for file graphs
- fixed handler.code which allowed db graphs to call file graph code for
  an edge case
2025-02-17 14:02:49 -05:00
Gabriel Horner
8710195440 chore: mv handler ns to file-based
since it's only used by file graphs. Also remove unnecessary
db-based-graph? calls in in ns and make aliasing consistent for this ns
2025-02-17 14:02:49 -05:00
charlie
31e022f6e0 enhance(ux): persist custom shortcuts for web platform 2025-02-17 15:53:49 +08:00
charlie
14d623065d fix(ui): block content blink for the spent time label 2025-02-14 15:29:52 +08:00
Tienson Qin
bbcc497341 fix: schema version check 2025-02-14 13:39:28 +08:00
Gabriel Horner
1038d79292 fix: frontend lint 2025-02-13 14:04:59 -05:00
Gabriel Horner
7da4f7a9b7 enhance: improve error handling for exports + imports
Display user friendly notification when unexpected failures occur.
Also actively validate export to ensure it can even import
2025-02-13 14:00:57 -05:00
rcmerci
dd97879e81 fix(rtc): fix format of :server-schema-version in the API get-graph-skeleton response 2025-02-13 21:27:57 +08:00
charlie
d4b14d8e67 fix(ui): incorrect behavior for the table header action popups 2025-02-13 18:05:48 +08:00
Tienson Qin
fdf817667e fix: db-worker doesn't accept UUID parameter
Follow on 7703887c9
2025-02-13 07:50:22 +08:00
Gabriel Horner
5c8b23febd fix: don't run rtc task in publishing
Also forgot to commit better binding name for #11731
2025-02-12 13:11:50 -05:00
Tienson Qin
e7e4294088 Feat: view group by (#11731)
* wip: view group by

* feat: view group by rendering

* enhance: use current group's value when creating new block

* enhance: add icons for view layouts

* fix: group rows selection

* fix: property type migration from #11695

* refactor: use namespaced keyword for block export

instead of confusing :build/block. Also improved related tests,
simplified import steps, added some missing sqlite.build docs,
and fixed :build/uuid not working for some existing journals.

* fix: remove export+imports invalid

when uuids are kept and when journals are created.
Also removed :logseq.class/Journal from export as its needless noise

* fix(ux): incorrect behavior for the sub menu content within the table header popup

* fix: group rows delete

* fix: lint

* fix: group block delete

* fix: bump version

* fix: group by titles not correct for :checkbox

Also enable group-by for :date as they just work

* fix: disable nonsensical and unreadable groupings for :many properties

* fix: grouping not working for :default property type

and sometimes :number or :url.
Was grouping by entity and not what user reads. If there are
2 :default values with 'text ha', this seemed buggy

* fix: icons not showing for grouping by status

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2025-02-12 12:56:55 -05:00
rcmerci
7703887c99 fix: db-worker API does not currently support parameters of the UUID type 2025-02-12 23:29:24 +08:00
rcmerci
0533377e0f Merge remote-tracking branch 'origin/feat/db' into enhance/rtc-migrate-graph-schema 2025-02-12 15:05:36 +08:00
rcmerci
4195d40241 refactor: remove defrecord SchemaVersion, use a simple map for better compatible with nbb 2025-02-12 15:02:41 +08:00
Gabriel Horner
b6159b7a18 fix: typo 2025-02-11 15:37:42 -05:00
Gabriel Horner
4ed5897e4e chore: enable export+import edn commands
for any user. Better to get feedback early and iterate.
Easy to reverse this as needed
2025-02-11 15:31:29 -05:00
Gabriel Horner
4517f666c9 fix: frontend lint 2025-02-11 10:15:26 -05:00
Gabriel Horner
aae1bb04f2 fix: export commands return partial results
Use worker db to get full results. Using render db only returned
what had been lazy loaded
2025-02-11 10:11:58 -05:00
charlie
8d3dbaa0eb fix(ux): incorrect behavior for the sub menu content within the table header popup 2025-02-11 11:43:31 +08:00
Gabriel Horner
8b8055dd72 refactor: use namespaced keyword for block export
instead of confusing :build/block. Also improved related tests,
simplified import steps, added some missing sqlite.build docs,
and fixed :build/uuid not working for some existing journals.
2025-02-10 15:18:45 -05:00