Commit Graph

50 Commits

Author SHA1 Message Date
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
charlie
c4abc29c1c enhance(ux): sort local graphs by create/update time 2024-06-03 15:04:57 +08:00
charlie
db6990ab66 enhance(ux): persist client graph metadata to local 2024-05-31 17:26:28 +08:00
Tienson Qin
8d9e6da41e refactor: use :block/type for journal pages instead of :block/journal?
breaking change:
removes :block/journal attribute
2024-04-24 20:12:15 +08:00
Tienson Qin
a15066c862 perf: db reload
Load as less pages && closed values as we can to avoid loading too
much data.

We already know that transacting db attributes is slow, going to
investigate it later.
2024-04-22 23:48:40 +08:00
Tienson Qin
6eb6e60b55 Bring back namespaces/page merge/nested pages 2024-04-07 13:48:55 +08:00
Tienson Qin
5a3bbcddac fix: lint warnings 2024-04-04 15:57:49 +08:00
Tienson Qin
c018f1517d perfer to use get-page instead of get-first-page-by-name 2024-04-04 15:57:48 +08: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
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
Gabriel Horner
9c5309da47 enhance: frontend consistently uses :db/ident
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Tienson Qin
036f1b5ab7 feat: /todo/other-status and /urgent/other-priority to set property 2024-01-19 02:36:23 +08:00
Gabriel Horner
2305d09cc8 chore: DRY up duplicated vars and needless/confusing aliases 2024-01-15 16:51:27 -05:00
Tienson Qin
b7d9098e80 Move gp-util and gp-config to the common dep 2024-01-03 16:38:05 +08:00
Gabriel Horner
e8b26954a0 fix: property completion for db graphs
Also complete page-tags filter with original case so that resulting query is
case sensitive. As much as possible the query builder should result what
users would type in the editor and users would type case sensitive page
refs. Also update scripts to reflect that property values should be
written as page refs for :date and :page properties
2023-11-06 12:48:12 -05:00
Gabriel Horner
edaf9b286a chore: move frontend db namespaces to a dedicated parent ns
Moved these namespaces to logseq.db.frontend.* to make their purpose
explicit and make the namespaces easier to maintain
2023-10-16 17:24:51 -04:00
Gabriel Horner
658918b2b9 feat: add a created-at slider for graph view 2023-09-27 17:47:21 -04:00
Gabriel Horner
96f1e2ab28 fix: tags in page graph
also add fixmes
2023-09-26 18:41:06 -04:00
Tienson Qin
73ce46483b handle more properties including title, icon, public and filters 2023-08-01 20:50:13 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
8N9KT
83d51ab23f hide journals in page graph
add "Show Journals" toggle in page-graph-inner
add :right-side-bar/show-journals in en and it (dicts.cljc)
add "include-journals" parameter to db/get-pages-that-mentioned-page
add "show-journal" parameter to graph-handler/build-page-graph
2022-07-20 18:44:05 +02:00
8N9KT
f79888b4d8 raname ":exclude-in-graph" to ":exclude-from-graph-view"
- raname ":exclude-in-graph" to ":exclude-from-graph-view"
- add ":exclude-from-graph-view" in "editable-built-in-properties"
2022-07-19 16:55:04 +02:00
8N9KT
11436d032a feat: added property exclude-in-graph
- Like this thread https://discuss.logseq.com/t/option-to-ignore-certain-nodes-in-the-graph/1312, I added the ability to exclude a page in graph by adding the property exclude-in-graph:: true
	- added property exclude-in-graph
	- added settings paramenter :excluded-pages
	- added "Excluded pages" toggle in in graph filters
2022-07-16 12:25:00 +02:00
Junyi Du
0cdacc35e2 feat: import from logseq edn
feat: import edn with provided uuid

feat: overwrite page uuid; use properties in content

feat: error handling for importing

feat: support json import

chore: fix lint by splitting setup ui
2022-06-24 17:11:24 +08:00
Gabriel Horner
6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Gabriel Horner
2b48d95493 Move frontend db namespaces that graph-parser depends on
graph-parser should be independent of the app
2022-05-26 18:04:45 -04:00
Gabriel Horner
5b0d5fb8b5 Decouple graph-parser util from app util usage
For tiny util heavily used fns like safe-re-find and uuid-string?,
decouple graph-parser from so much of the app
2022-05-13 16:17:44 -04:00
Gabriel Horner
85bd1fecb2 Move first batch of util fns to graph-parser.util
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
Gabriel Horner
3ec587d6eb lint :all-the-things: 2022-01-16 12:42:34 +08:00
Junyi Du
e5dcb014e1 enhance: yet another page-name sanity improve 2022-01-10 13:29:40 +08:00
Moritz Ulrich
14a87b72b8 graph/build-nodes: Remove redundant let 2021-12-16 19:49:38 +08:00
Moritz Ulrich
6f5d6934df Graph: Remove redundant nil? checks 2021-12-16 19:49:38 +08:00
Moritz Ulrich
1b7bfd6511 Graph: Use a smoother scale function
The scaling is pretty much the same - it just gets rid of some stackiness caused by the `<` etc. conditions in previous code.
2021-12-16 19:49:38 +08:00
Tienson Qin
6db64f9f1a fix: Contents is not considered a "Built-in page" for Graph view
close #3265
2021-11-25 15:17:53 +08:00
llcc
fef5bbf068 enhance(clock): support recording in repeated block // cleanup unused namespaces (#2777)
* enhance(clock): support recording in repeated block

* cleanup: unused namespaces

* cleanup: missing-else-branch if --> when

* enhance: wider search results window for mobile browser

* fix: namespace requirement
2021-09-08 10:23:16 +08:00
Tienson Qin
5a41300e80 Graph revamp (#2372)
Graph revamp
2021-07-06 23:48:58 +08:00
Tienson Qin
825910f34d fix: multiple tags error in graph view 2021-06-07 20:25:57 +08:00
Tienson Qin
2292ad8b6a fix: local page graph 2021-05-10 23:02:32 +08:00
Tienson Qin
1375d1fab5 Merge branch 'master' into feat/outliner-core 2021-04-18 15:40:56 +08:00
Tienson Qin
dcf37edc10 fix: several issues related to graph
fixed position: sticky not working on safari
2021-04-18 12:56:44 +08:00
Tienson Qin
71c854bce7 fix: remove "name" 2021-04-13 22:28:25 +08:00
Tienson Qin
f2077701ab Merge branch 'master' into feat/outliner-core 2021-04-05 09:53:18 +08:00
Tienson Qin
88c8803fd4 Fix: blank page for page graph (zoom block view)
Resolved #1571
2021-04-01 16:46:34 +08:00
Tienson Qin
4132d9ed1f enhance: page graph will auto-refresh when redirecting to a new page 2021-03-30 21:49:57 +08:00
Tienson Qin
d29b265e28 refactor: db migrate wip 2021-03-13 20:43:04 +08:00
Tienson Qin
b907255d86 fix: page graph for block 2021-02-24 13:00:46 +08:00
Tienson Qin
d53ed3fb69 fix: display original page name 2021-01-19 20:46:18 +08:00
Tienson Qin
48b6ccbdca DB refactor and fix issues related to tags and aliases
1. add a `page` filter.
2. keep word case for both page and block's properties
3. remove `:tag/name` from the db schema

Fixed #1031
2021-01-04 12:38:54 +08:00
Tienson Qin
a16d360611 feat(query-dsl): add more filters
There're some graph improvements too:
1. the fly dots are smaller now
2. page tags have a different color
2020-12-28 22:20:49 +08:00
Tienson Qin
fe70356d57 refactor(db): separate frontend.db into multiple parts 2020-12-15 22:18:29 +08:00