Commit Graph

59 Commits

Author SHA1 Message Date
Gabriel Horner
2c67b6de11 chore: cleanup unnecessary multi graph calls in db
namespaces. Add fn and related namespaces to linter
2025-05-09 15:05:14 -04:00
Gabriel Horner
691b8866ef refactor: mv another common ns out of db dir
Allows for more improved separate linting
2025-04-28 11:27:49 -04:00
Gabriel Horner
6a635ecb49 refactor: mv common ns out of db ns
Also move common and file fns out of db ns. Cleanup allows
for better separation linting
2025-04-28 10:37:13 -04:00
Gabriel Horner
4d37ce8565 enhance: add import edn graph option
Also fix lint and move other db import fns to db ns
2025-03-17 17:16:49 -04:00
Gabriel Horner
0fc8af5686 refactor: remove db-graph behavior from file-graph gp-extract
Makes importer easier to maintain as there's less confusion with unused
checks in gp-extract
2025-02-27 11:20:24 -05:00
Gabriel Horner
3d34224143 fix: remove a few more file-graph fns in db graph only namespaces
Found by configuring separate linter for most of remaining deps
2025-02-26 18:02:22 -05:00
Gabriel Horner
04b832f5cb chore: mv file graph specific fns out ldb 2025-02-20 12:37:13 -05: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
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
Tienson Qin
2c04eb76d7 fix: db tests 2025-01-13 16:20:45 +08:00
Gabriel Horner
b2a3559df8 chore: add block/format to file linter
follow up to #11667
2025-01-07 16:42:11 -05:00
Gabriel Horner
cf4de2f5fa chore: update lint to check for two very common db namespaces 2025-01-07 14:11:07 -05:00
Tienson Qin
b107525c7d fix: lint 2024-12-24 18:43:56 +08:00
Gabriel Horner
87caca8c68 fix: some imported pages were missing Page class
Also fix error reporting for users wasn't working. Also fix lint
and add another attribute to linter
2024-12-17 22:04:28 +08:00
Gabriel Horner
41554646de fix: objects with empty properties weren't collapsible
Also
- moved file specific collapse to only apply to file graphs
- removed db Query collapse branch b/c it was covered by other db
  branches
- updated separate lint to include org mode syntax that is deprecated in
  db graphs
2024-09-26 13:19:40 -04:00
Gabriel Horner
6363dc11ff fix: invalid advanced query displays simple query editor
Also temp fix for separate lint
2024-09-25 10:04:53 -04:00
Gabriel Horner
52eb6985ff chore: update db file lint to remove namespace
and update more unused attributes
2024-09-23 15:00:52 -04:00
Gabriel Horner
a3f8315e01 chore: db file linter can have exceptions 2024-09-23 09:53:31 -04:00
Tienson Qin
fe3d445f32 chore: typo 2024-09-22 13:42:47 +08:00
Tienson Qin
c5c0f5d822 feat: add datetime type 2024-09-22 10:25:07 +08:00
Tienson Qin
4b3534476c fix: display parent in editor mode 2024-09-13 23:56:00 +08:00
Gabriel Horner
366e01b7ef chore: add new ns from #11508 to db lint
Also forgot to update docstring in recent commit
2024-09-09 14:40:38 -04:00
Gabriel Horner
e5e9c5c687 chore: mv file-based util namespaces to their own directory
Makes maintenance of different graph types easier and increases linting
of what occurs in these namespaces
2024-09-09 14:31:56 -04:00
Tienson Qin
c7677c813e refactor: set parent for any page, not just tags (#11494)
* refactor: replace :class/parent with :logseq.property/parent

* replace :class/schema.properties with property.class/properties

* enhance: display schema properties directly in Tag properties

* tag properties style tweaks

* fix: properties view context

* fix: limit parent to be classes or pages depends on the current node

* enhance: display ancestors in Parent

* fix: ancestors

* enhance: display tag properties always for tags

* enhance: display tag block container instead of properties area

* enhance: show add property as popup instead of dialog

* fix: tag parent must be a tag

* enhance: display properties in the right sidebar

* fix: tags style

* fix: icon style

* fix: positioned icons

* fix: lint

* fix: tests

* fix: remove properties from rtc watched attrs

* fix: graph-parser tests

* enhance: style tweaks

* enhance: page/create parses tags from user-input title

* enhance(ux): [[ref]] followed by # (no whitespace) to add tags

* fix: tests

* fix: graph-parser lint and tests

* fix: allow tagged nodes to be parents

* enhance(ux): display tag property descriptions

Also, make it editable.
2024-09-03 07:32:38 +08:00
Gabriel Horner
d431f62c97 fix: add more file graph concepts to db linter 2024-08-29 11:40:37 -04:00
Gabriel Horner
7a96fc0e32 fix: show blank page error to user instead of silent failure
also fix outdated lint
2024-08-27 17:11:36 -04:00
Tienson Qin
f442c9e954 fix: lint 2024-08-27 23:22:27 +08:00
Gabriel Horner
e0b2a75747 chore: add another file to db-file graph linter 2024-08-21 09:19:00 -04:00
Gabriel Horner
85e358e57b fix: not able to create case sensitive classes
Also important to keep db graphs decoupled from file specific
:block/name. Made sure that related fix in logseq/db-test#9 still works
2024-08-20 17:08:14 -04:00
Tienson Qin
8b470dd455 enhance: remove unused dicts automatically 2024-08-16 15:16:56 +08:00
Gabriel Horner
2e13c9758b enhance: add a table for property pages
that display all nodes for the current property.
Property pages now behave like classes and display a table instead of blocks.
Also update linter to include objects ns
2024-07-31 15:25:03 -04:00
Tienson Qin
dec56b31f0 chore: remove unused :file/handle 2024-06-20 20:53:15 +08:00
Gabriel Horner
13f5971d3c chore: mv worker.file.page-rename to appropriate ns
This ns is file graph specific so it should be in a file-graph
specific ns. Its current location was confusing as it was next to
other namespaces in frontend.worker.file.* that are not
file graph specific. Also moved related tests to correct location
2024-06-12 11:38:00 -04:00
Gabriel Horner
99939c600f fix: remove dead code caught when updating linter
Also added a db-concepts not in file linter fn
2024-06-12 10:36:22 -04:00
Gabriel Horner
790d0460a1 fix: remove + disable :block/macros for db graphs
part of LOG-3137
2024-05-30 11:01:37 -04:00
Gabriel Horner
a8081ef73a chore: update linter to validate more file-graph attrs aren't in db 2024-05-06 09:40:33 -04:00
Gabriel Horner
4276a3f109 fix: replace file graph helper in db graph namespaces
with db graph equivalent
2024-04-25 12:19:58 -04:00
Gabriel Horner
e0059892aa chore: mv file-based repo and repo-config fns as well nfs
to file-based namespaces. Confirmed and QAed these are only for
file-based. This moves the majority of graph-parser/parse-file calls
into file-based namespaces. The only ones left are in handler.file which
can be done later
2024-02-02 14:40:05 -05:00
Gabriel Horner
d232a8e08c fix: new db graph couldn't be created
Caused by duplicate transacting of default-pages. Also
removed reference to deleted ns
2024-01-16 11:37:25 -05:00
Gabriel Horner
74a76f0365 chore: dry up db-based vars and update related lint 2024-01-12 17:25:21 -05:00
Tienson Qin
9ee04feeb5 Merge branch 'feat/db' into refactor/pipeline-worker 2024-01-10 16:13:56 +08:00
Tienson Qin
eb6e5942f8 fix: lint warnings 2024-01-10 01:34:15 +08:00
Gabriel Horner
c7ab2e763c fix: api call that failed with new async call
Also update lint for recent change with frontend.db.async
2024-01-04 14:29:42 -05:00
Tienson Qin
4016f93884 Move db validate to worker 2023-12-28 21:25:00 +08:00
Tienson Qin
eb679bd941 wip: file worker 2023-12-28 17:32:43 +08:00
Tienson Qin
77a8ea13ab Merge branch 'feat/db' into refactor/worker-search 2023-12-21 21:35:41 +08:00
Gabriel Horner
1026e1eb22 fix: add graph name warning to import as well 2023-12-20 12:25:27 -05:00
Tienson Qin
2811dc7d51 Merge branch 'enhance/write-to-disk' into refactor/worker-search 2023-12-20 01:34:48 +08:00
Gabriel Horner
6f8badf18f add frontend.persist.db* to list of db namespaces
also cleaned up inconsistent alias and fixed export-db calling
db-based-graph? when caller fns already do this
2023-12-15 09:50:22 -05:00