Gabriel Horner
2acac87094
fix: macros were not being saved
...
macros were being discarded as unknown blocks when they should've been
saved as a block with a known type. Introduced a new type number as
macros don't have most of the attributes that blocks or pages do.
Features like collapsible queries now work in db graphs. Also removed
an outdated reference that assumed macro was a page (which it no longer
is)
2023-10-25 17:05:31 -04: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
Tienson Qin
d9ab81e00d
enhance: use block dom node for editing instead of container
2023-10-11 00:46:47 +08:00
Tienson Qin
b44e4d7d1f
Use dnd-kit instead of beautiful-dnd
2023-10-04 09:54:33 +08:00
Tienson Qin
51c7f6319b
enhance: replace favorites with beautiful dnd
2023-10-03 14:52:54 +08:00
Gabriel Horner
4b0100cb25
chore: cleanup page-property file based ns
...
All of frontend.util.page-property was file based except for one line.
Moved that ns to a file-based ns and moved the line out to the more
appropriate property-handler
2023-10-02 15:59:43 -04:00
Gabriel Horner
fceb6ddb72
chore: split up page-handler into file-based, db-based and graph
...
Did this cleanup as I noticed that multiple fns were checking if they are in a
db context when they didn't need to. By organizing these namespaces, the
db and file versions will be easier to maintain.
While doing this refactor, I didn't change any logic except for removing
unnecessary db-based-graph? checks. Also renamed a few fns to remove
redundant file- and db- prefixes
2023-10-02 14:32:02 -04:00
Gabriel Horner
2410fc243f
fix: page rename doesn't handle capitalization
...
Didn't work for renaming to other page or same page
close LOG-2814
2023-10-02 13:33:48 -04:00
Gabriel Horner
fcd4ee1d33
chore: block/pre-block isn't used in db graphs
...
Move related fn into a file only ns and fix lints in that ns
2023-09-29 22:21:34 -04:00
Gabriel Horner
0483e60eeb
fix: disallow db version from creating deprecated title property
...
also add fixmes for other known properties conversions
2023-09-28 18:01:16 -04:00
Tienson Qin
53df250cc8
enhance: enum choices drag && drop support
2023-09-28 06:02:35 +08:00
Gabriel Horner
298c86a1e2
enhance: allow property pages to be deleted
...
with appropriate checks. Also improve all-pages ux so
that users are notified of property and class pages that fail to delete
2023-09-26 13:49:41 -04:00
Tienson Qin
0e8653985d
refactor: allow a block to have multiple types
...
For example, a whiteboard page can be used both as a property and a class.
2023-09-25 10:46:00 +08:00
Gabriel Horner
e7423f93ac
enhance: allow class pages to be deleted if unused
2023-09-22 15:28:59 -04:00
Tienson Qin
c6a46c43f2
fix: can't backspace to edit tagged page block
2023-09-13 20:48:29 +08:00
Tienson Qin
46838785b1
fix: focus on editor after tag has been added
2023-09-11 15:39:33 +08:00
Tienson Qin
f8b048ca8b
enhance: add a toggle for creating tagged blocks or pages
2023-09-11 15:25:55 +08:00
Gabriel Horner
41bd76a704
Merge branch 'master' into feat/db
2023-09-07 17:52:25 -04:00
Gabriel Horner
b264d17309
Move db-graph property fns to its own logseq.db ns
...
db-graph related fns like these shouldn't be in the graph-parser dep as
that dep should only really be used with file graphs as much as possible.
This is also being done in preparation for making the create-graph ns independent of
the frontend
Also db- prefixes in fns were dropped since the ns now carries the db-
prefix
2023-09-05 17:15:45 -04:00
rcmerci
510df28e06
support page create/rename/delete in rtc
2023-08-30 22:10:55 +08:00
Zhizhen He
4cb23ab193
ci: upgrade typos to 1.16.8
2023-08-24 10:29:51 -04:00
Gabriel Horner
6d303a9d02
enhance: add class to a new object option
...
If a user enters new option in an object property, give
the new option the user's intended class rather than error out
2023-08-24 10:22:07 -04:00
Andelf
ebc8e8171f
refacotr(editor): reorder create-today-journal condition, avoid file reading
2023-08-24 18:56:39 +08:00
Tienson Qin
03ec9580c3
Merge branch 'master' into feat/db
2023-08-22 20:32:15 +08:00
Konstantinos Kaloutas
6ce6b1933c
reorder fix
2023-08-22 16:08:26 +08:00
Tienson Qin
e19613f2d8
Use db/transact! when possible
2023-08-18 19:45:41 +08:00
Tienson Qin
d57e8b1b86
fix: add new tags should be classes
2023-08-17 18:25:12 +08:00
Andelf
7cf2d5d387
chore: DB version for browser support ( #10016 )
...
- impl storage
- still not working: refreshing, init code
2023-08-15 21:07:31 +08:00
Tienson Qin
15cb78fbf7
fix: add pre-configured properties when creating a new db graph
2023-08-02 01:49:23 +08:00
Tienson Qin
73ce46483b
handle more properties including title, icon, public and filters
2023-08-01 20:50:13 +08:00
Tienson Qin
8ed57c04c9
fix: page add-property! for db based graphs
2023-08-01 14:18:36 +08:00
Tienson Qin
1671f540fb
Move property-edit to file-based.property
...
Also, util.property -> file-based.property.util
2023-07-27 11:47:08 +08:00
Tienson Qin
b2d4671f0e
fix: merge pages for db based graphs
2023-07-15 12:25:28 +08:00
Tienson Qin
1832bdf2e8
fix: case-sensitive page rename
2023-07-15 11:17:00 +08:00
Tienson Qin
4d53f0d61f
fix: remove [[]] ref and property values when deleting a page
2023-07-15 10:49:50 +08:00
Tienson Qin
23d3091fce
Added :block/instance to db schema
2023-07-10 16:44:51 +08:00
Tienson Qin
bd9a074888
fix: don't create today's journal when it's loading graph
2023-07-07 15:01:38 +08:00
Tienson Qin
70406332dc
fix: namespace whiteboard pages import
2023-06-27 14:00:33 +08:00
Tienson Qin
abf574a90a
fix: store page uuids in recent/pages for db graphs
2023-06-26 18:48:54 +08:00
Tienson Qin
fd6b587235
Merge branch 'master' into feat/db
2023-06-21 14:09:16 +08:00
Tienson Qin
c238a7b08a
chore: remove pprint debug
2023-06-20 13:33:51 +08:00
Tienson Qin
aa3510bb12
fix: page namespace
2023-06-20 13:31:31 +08:00
Tienson Qin
229263b598
fix: page rename
2023-06-19 17:35:47 +08:00
rcmerci
d85da1edb7
fix missing repo arg
2023-06-17 01:52:03 +08:00
rcmerci
3dc67e550d
replace all property/Fns with property-edit/Fns
...
property-edit/Fns do nothing if current repo is db-based version
2023-06-17 01:37:39 +08:00
rcmerci
d38afc9b71
better func names to differentiate between 2 types of graphs
...
- local file based
- db based (sqlite for now)
2023-06-14 13:03:08 +08:00
Konstantinos Kaloutas
0af72a85a4
fix: linter warning
2023-06-09 14:11:39 +03:00
Konstantinos Kaloutas
135e3228b6
fix: translations
2023-06-09 13:54:32 +03:00
rcmerci
628a8b3826
use atom to replace some high frequency used state vars
2023-06-01 00:14:52 +08:00
Tienson Qin
1758157bc8
fix: entity not exists when loading graph from sqlite
2023-05-26 02:32:17 +08:00