Commit Graph

13485 Commits (cce2ba50ed5affa40a0458d304ca59adbb84f4e4)

Author SHA1 Message Date
Gabriel Horner cce2ba50ed fix: slides don't work on published sites that aren't under '/' 2023-12-01 13:53:50 -05:00
Gabriel Horner b48f69b80b fix: assets not loading on published graphs that arent under / 2023-12-01 13:37:55 -05:00
Gabriel Horner 86928f9881 fix: can't select number closed values 2023-12-01 12:04:15 -05:00
Gabriel Horner 1f6f166d27 fix: page closed value crashing at beginning of block 2023-12-01 09:26:45 -05:00
Gabriel Horner 1669baa054 fix: existing closed values being deleted by property config changes
Also fixed delete sometimes being out of sync with property-schema
state. Fixes LOG-2954
2023-12-01 08:48:40 -05:00
Gabriel Horner 3d767b7167 fix: added closed values don't get deleted by other property config
part of LOG-2954
2023-11-30 18:06:59 -05:00
Gabriel Horner cfe8d809b8 fix: changing property shouldn't lead to invalid closed values
To reproduce, create a :default property with two closed values. Change
to url type, the previous closed values would stay on and would be
invalid when selected. Also added a tippy so users are aware that
changing types can alter their existing config
2023-11-30 16:57:36 -05:00
Gabriel Horner 0ffce18d15 chore: rename property.type vars
- renamed schema-type to property-type as its not
  a type of schema and schema is an ambiguous context
  as it also applies to a class
- renamed builtin to built-in to be more correct
2023-11-30 16:26:44 -05:00
Gabriel Horner f5e339293f fix: add validation for property types and :schema attributes
Part of LOG-2953. We shouldn't persist unusuable property type
configurations as shown by this bug. By enumerating what schema
attributes are allowed for each type, we can prevent future bugs
like this. When changing between property types, this also cleans up
:classes, :position and :values that were accidentally hanging around
for certain types. Also modify test since we don't allow users
to use a :default property with :cardinality
2023-11-30 16:24:11 -05:00
Gabriel Horner d218db4e6f fix: fixes bug with unusuable :default property
Part of LOG-2953. Also fixes bug when a new property first displays
configure modal and incorrectly shows cardinality for :default property
2023-11-29 17:15:35 -05:00
Gabriel Horner c0ad1aeb4c fix: outliner.core/-save id based fns not being called for uuid based tx
While fixing created-at being overwritten, I noticed that collapsed tx
use :block/uuid to identify blocks instead of :db/id.  Id fns weren't
being called for :block/uuid so this fixes that mistake.  QAed this
against another known use of :block/uuid tx and didn't see anything
buggy e.g. toggle numbered list in file graphs
2023-11-29 15:56:22 -05:00
Gabriel Horner 4a9f310937 fix: upstream tests failing 2023-11-29 14:52:19 -05:00
Tienson Qin 2f514bf089 Add class properties related test 2023-11-30 02:18:22 +08:00
Gabriel Horner aac1b4bf58 fix: created-at timestamps overwritten when toggling block collapse
Given where this bug was, it effected any tx where :block/created-at
wasn't explicitly passed in
2023-11-29 12:01:33 -05:00
Tienson Qin a57fbe6d6c Add delete-property-value! test and fix lint 2023-11-30 01:00:24 +08:00
Tienson Qin f342303e6a Add initial tests on property handler 2023-11-30 00:34:04 +08:00
Gabriel Horner 1117ad3cb4 fix lint
also comment out print that prevented chaining query results with bb
2023-11-29 10:14:53 -05:00
Gabriel Horner 6517f6f12a Merge branch 'master' into feat/db 2023-11-29 09:56:12 -05:00
Tienson Qin 9e412168ce fix: increase the default search length
Fixes #10569
2023-11-29 18:56:39 +08:00
Andelf 5a4bba1378 enhance(cmdk): click subsection heading to toggle result more or less 2023-11-29 14:24:56 +08:00
Gabriel Horner 81ec1e375e fix: doc typo 2023-11-28 12:19:20 -05:00
Andelf 02d97c27ba fix(cmdk): shift key state handling 2023-11-29 00:49:48 +08:00
Gabriel Horner 632c0dbcc4 fix: don't run unused file watcher for db graphs
I thought about removing this as part of LOG-2748 but
hesitated because assets weren't consistently working.
Now that we don't have any features that plan on using files,
we should disable this system component for db graphs
2023-11-28 11:28:42 -05:00
Gabriel Horner 78aa1acee2 fix: can type '#' in tags component without hard fail 2023-11-28 09:48:19 -05:00
Andelf c44715d9fe chore: bump version 0.10.0 2023-11-28 22:44:42 +08:00
Gabriel Horner 548fa98605 enhance: allow CLI and github action to set color accent 2023-11-28 22:32:34 +08:00
Gabriel Horner 4058b43d1c chore: move db specific page components to their own ns
Components were disorganized enough that we were resorting to declare
2023-11-27 16:17:01 -05:00
Gabriel Horner adb27d2888 fix: page properties not visible in the sidebar
properties can contain critical info for a page and should be visible in
as many page contexts as possible
2023-11-27 15:36:18 -05:00
Andelf 21418d6fe9 fix(cmdk): enter key while ime composing 2023-11-28 02:41:01 +08:00
Andelf 68bae90039 test(fs): add unittests for new fn 2023-11-28 02:39:52 +08:00
Andelf 3069f5d7e3 fix(fs): path-join testcase 2023-11-28 02:39:52 +08:00
Andelf 61a3c19176 fix(fs): windows unc path support 2023-11-28 02:39:52 +08:00
Andelf aa19b511f6 fix(fs): open file in folder under windows 2023-11-28 02:39:52 +08:00
Andelf 5ca28a3a56 fix(electron): open assets link in folder freezes file browser
Close #10491
2023-11-28 02:39:52 +08:00
Gabriel Horner ce94c56970 fix: lints 2023-11-27 12:33:06 -05:00
Gabriel Horner 097554719e fix: open another db graph url when in a db graph 2023-11-27 12:27:25 -05:00
Gabriel Horner 599e19f131 fix: graphs view showing logseq_db_ prefix 2023-11-27 11:39:01 -05:00
Gabriel Horner 5e547a1663 fix: open db graph urls
Also introduced var for logseq_db_ in deps
2023-11-27 10:55:22 -05:00
ormai 9bdcfcf791 Update italian translation 2023-11-27 08:45:42 -05:00
rcmerci c468d05845 feat(rtc): support whiteboard blocks sync 2023-11-25 15:53:22 +08:00
Tienson Qin 769b541790
enhance: batch refresh! when apply remote ops (#10545) 2023-11-24 18:16:59 +08:00
Tienson Qin e8acfdefea enhance: reactive whiteboard 2023-11-24 15:21:10 +08:00
Andelf bf808f345a
Feat: multi tab db worker (#10543)
* enhance(sqlite): refine db-worker

* feat(sqlite): allow multi-tab with differet graphs

* fix(sqlite): db lock

* fix: enter to insert a block does not work

The reason is that shortcut/refresh! is debounced with 1 second.

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-11-24 14:59:43 +08:00
Tienson Qin 7d0d5f93f7 enhance: show alias' original name instead 2023-11-23 14:53:45 +08:00
Tienson Qin a26494b325 fix: redirect to alias if possible 2023-11-23 14:53:45 +08:00
Tienson Qin dcf5f8f296 fix: show classes only when adding a tag to a block 2023-11-23 14:01:19 +08:00
Andelf d8c8b90143 fix(fs): impl mkdir-recur! for memory-fs 2023-11-23 12:26:42 +08:00
Gabriel Horner 15642394fc fix: misleading re-index messages show up in db graphs
re-index a graph should only show up for file graphs.
Also moved db.migrate to file-based since it contains re-index
and multiple file graph query assumptions
2023-11-22 17:11:04 -05:00
Gabriel Horner d860812b75 enhance: gracefully handle file graph only commands
Commands like graph/re-index resulted in a blank graph when run in
a db graph. This gracefully handles this command and other known
file graph commands by adding a :file-graph? config key to a command
2023-11-22 16:26:49 -05:00
Gabriel Horner 6c5072e7e6 fix: property completion should only include properties
Was including classes and blocks with :block/schema. Also not
hiding icon property correctly. Also updated outdated docstrings
2023-11-22 12:29:57 -05:00