Commit Graph

255 Commits

Author SHA1 Message Date
Tienson Qin
a1c6a4e985 fix: A journal modified outside the app duplicates content
when syncing back to the app

related to LOG-3265
2024-11-25 16:10:29 +08:00
Tienson Qin
a638c848a9 enhance: display both file name and file in #Asset table 2024-10-08 22:28:27 +08:00
Tienson Qin
2e5a1dabd6 enhance: display parents breadcrumb when searching for a node 2024-09-10 18:06:50 +08:00
Tienson Qin
c268841121 refactor: query result with the new table view (#11508)
feat: table && list view
2024-09-09 06:55:37 +08:00
Tienson Qin
f86f3a58c7 fix: unlink graph 2024-08-29 14:53:05 +08:00
Gabriel Horner
5ff364ba1e fix: stop shadowing vars for components
Turn on kondo :shadowed-var lint and fix failures.  If this lint had
been turned on, it would have caught logseq/db-test#38 and saved us time
from debugging which random component was accidentally shadowed by a var
and failing with 'Objects are not valid as a React child'. Also fixed a
few outside components but stopped b/c there are too many to do right
now
2024-08-23 15:19:33 -04:00
Tienson Qin
b9f9fa0ca6 wip: Demo switch to use db graph 2024-08-10 13:42:37 +08:00
Tienson Qin
4cca2e5f69 enhance: remove sqlite usage from Electron
Use periodic db export instead. Manual saving db to the disk can be
triggered by `mod+s`.
2024-06-14 23:58:49 +08:00
Tienson Qin
eff37bdf2a fix: display object block as block reference 2024-05-30 16:06:03 +08:00
Tienson Qin
c9461dd745 fix: components not registered for property value 2024-05-27 21:18:01 +08:00
Gabriel Horner
073ae34730 Merge branch 'master' into feat/db 2024-03-21 12:13:01 -04:00
Andelf
157fd5c32a dev: print global error message 2024-03-20 15:29:30 +08:00
Tienson Qin
77d88aefe0 enhance(ux): use calendar icon for datepicker and title to redirect 2024-03-12 12:30:35 +08:00
Gabriel Horner
e2682c9902 fix: create-today-journal intermittently fails import
Annoying bug that created parent-left conflict failures.
create-today-journal behavior should be revisited at some point
2024-02-16 12:04:24 -05:00
Tienson Qin
ad67e90a53 fix: lint warnings 2024-02-07 05:36:50 +08:00
Tienson Qin
6f90958e4b Merge branch 'feat/db' into perf/lazy-load-data 2024-02-03 12:52:35 +08: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
Tienson Qin
420e361381 fix: async <get-file and <get-files 2024-01-30 21:17:18 +08:00
Tienson Qin
b06b01b88b Merge branch 'master' into feat/db 2024-01-22 12:08:37 +08:00
Tienson Qin
d37d91198f chore: remove main thread db listener since it's moved to worker 2024-01-09 17:13:02 +08:00
Tienson Qin
5fd91035df wip: transact to worker directly
Previously, the transactions will go though main thread db -> worker
db, this commit changes it to worker db first and then send the
updates to the main thread db.

This change does introduce some bugs because all the db transactions
are async now.
2024-01-08 20:53:23 +08:00
Tienson Qin
f14f7b0c95 wip: move rtc to worker 2024-01-08 04:43:28 +08:00
Tienson Qin
eb679bd941 wip: file worker 2023-12-28 17:32:43 +08:00
Tienson Qin
260ad89937 wip: move pipeline to worker 2023-12-26 22:00:21 +08:00
Charlie
8040168d1e Feat: New UI components (#10694)
* enhance(plugin): call apis with the sdk ns

* enhance(plugin): types

* enhance(api): get value from the computed style

* enhance(api): types

* enhance(plugin): types

* enhance(plugin): types

* fix: lint

* fix(apis): incorrect shortcut command registion for block editing mode #10392

* fix(api): types

* enhance(apis): support register shortcuts with multi binding vals

* fix(plugins): normalize command key to make the internal keyword legal

* chore(plugin): build libs core

* chore(plugin): bump version

* enhance(apis): normalize apis cljs data

* chore(plugin): update libs user sdk

* chore(plugin): CHANGELOG.md

* fix: typo

* feat(ui): add package

* Update .gitignore

* feat(ui): set up shui infrastructure

* feat(ui): add storybook macro

* enhance(ui): storybook themes

* feat(ui): adapt ui button to classic

* enhance(ui): shui story

* feat(ui): shui toaster

* enhance(ui): shui toaster

* feat(ui): imperative API for shui toaster

* enhance(shui): update API for shui toaster

* enhance(shui): update hooks for shui toaster

* enhance(shui): remove debug

* feat(ui): story for the shui toaster

* feat(ui): story

* feat(ui): story docs

* feat(ui): more variants for the shui toaster

* feat(ui): story

* fix(ux): support querying plugins with right space chars

* feat(ui): add shui `Alert` component

* enhance(ui): shui demo

* feat(ui): add logseq UI readme

* enhance(ui): default shui theme

* feat(ui): add shui `Badge` component & demo

* fix(ui): outline theme for shui button

* feat(ui): custom icon for the toaster item

* feat(ui): add shui dropdown & demo

* feat(ui): WIP shui form related components

* feat(ui): WIP shui form-related components

* feat(ui): WIP shui form

* feat(ui): WIP shui form state for validation

* fix(ui): missing rounded for ui button

* feat(ui): add yup for shui form as default validation resolver

* enhance(ui): simplify validation schema input for the shui form

* fix(ui): accent ring color for input

* feat(ui): add shui switch

* feat(ui): add shui checkbox & switch

* feat(ui): add shui radio group

* fix(ui): missing file

* feat(ui): add Textarea component

* feat(ui): add shui card & skeleton

* feat(ui): add shui context menu component & demo

* fix(ui): accent color for the context menu item

* feat(ui): add shui select component & demo

* enhance(ui): ui css priority

* feat(ui): add shui calendar & ui details

* feat(ui): add shui popover

* feat(ui): add date picker & demo

* feat(ui): add shui dialog

* feat(ui): WIP add shui dialog

* feat(ui): WIP shui dialog as modal

* feat(ui): WIP imperative APIs for the shui modal

* feat(ui): imperative APIs for the shui modal/alert

* feat(ui): support imperative API alert!/confirm! return promise

* feat(ui): simplify shui components resources

* feat(ui): response layout for the demo ui page

* feat(ui): simplify colors

* feat(ui): simplify colors

* feat(ui): simplify colors

* refactor(ui): WIP Adapt to the new button component

* refactor(ui): polish new button & colors

* fix(ui): the new theme color for the plugin settings nav item link

* fix(ui): blockquote colors

* enhance(ui): more custom colors for shui button

* feat(ui): WIP make logseq green as a theme color

* enhance(ui): polish logseq classical theme color

* fix(ui): theme details of all pages

* enhance(ui): polish logseq theme color for dark mode

* fix(ui): missing table style

* refactor(ui): simplify the all shui buttons & shortcuts for the cmdk component

* fix(ui): missing file

* refactor(ui): clear up stuff

* fix(ui): theme color related issues

* enhance(ui): polish button style

* enhance(ui): polish the keymap setting pane

* fix(ui): hint button from the cmdk pane footer

* fix(ui): logseq colors for the storybook

* enhance(ui): stories for the shui components

* fix(ui): active color for the old toggle component

* enhance(ui): keep the constant size of the settings pane

* fix(ui): polish search input for the plugins pane

* enhance(ui): polish number list bullet colors

* feat(ui): add shui tooltip component

* chore: build ui

* chore(ui): clean up resources

* fix: lint

* fix: lint

* fix: lint

* fix(ui): alignment of the keymap title from the settings pane

* fix: tests

* fix(ui): close button for the classic notification tip

* fix(ui): polish toaster viewport

* enhance(ui): polish the ghost button colors

* enhance(ui): demos for tips

* fix(ui): accent colors for the rc-datepicker

* fix(ui): accent color for the menu item

* refactor(ui): remove unless code for the accent colors

* enhance(ui): polish pdf viewer background color for the accent color mode

* fix: lint

* fix: lint

* fix: lint

* enhance(ui): support button with the custom href link

* enhance(ui): polish aside setting items

* enhance(ui): polish accent color for buttons

* enhance(ui): polish all pages

---------

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-12-26 16:31:37 +08:00
Tienson Qin
0e11226d01 fix: remove old transit file when unlink repo
Also, rename demo repo from "local" to "Logseq demo"
2023-12-21 23:41:45 +08:00
Tienson Qin
e0ced25999 fix: lint warning 2023-12-21 23:03:24 +08:00
Tienson Qin
57c43c89e1 fix: repos list 2023-12-21 22:12:42 +08:00
Tienson Qin
cd36c1a0ce Merge branch 'feat/db' into refactor/worker-search 2023-12-20 19:46:10 +08:00
Tienson Qin
dfaec37fef Merge branch 'feat/db' into enhance/write-to-disk 2023-12-19 22:52:51 +08:00
Tienson Qin
a9f62baf6d wip: transact tx to disk to avoid data-loss 2023-12-15 09:39:56 +08:00
Gabriel Horner
79a9c59dd5 fix: lint and minor cleanup from datascript-storage PR
- remove unused electron state
- remove comment with nonexistent fns
- rename fn which didn't read well
2023-12-13 09:53:16 -05:00
Tienson Qin
ac780a1aa4 enhance: save db to disk periodically
The interval is set to 10 minutes now.
New backup will be written if its size is not equal to the latest
backup one's.
2023-12-13 02:03:49 +08:00
Tienson Qin
8c3ec50c07 fix: no available handles to import to 2023-12-12 19:11:42 +08:00
Tienson Qin
b7a7c9b549 fix: open new window on Electron 2023-12-11 16:17:34 +08:00
Tienson Qin
6ea6ebaaa3 fix: refresh switch to the demo graph 2023-12-11 14:30:46 +08:00
Tienson Qin
ba2aaae000 Both load && persist work now 2023-12-07 23:15:04 +08:00
Tienson Qin
e2ea7d7c29 fix: comlink proxy method arguments shouldn't put in promesa 2023-12-07 21:01:07 +08:00
Tienson Qin
ecc322cdcf wip: replace sqlite-db with official sqlite-wasm 2023-12-07 20:27:21 +08:00
Tienson Qin
fb9e1057fa chore: remove react/db-graph? 2023-12-05 01:29:05 +08: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
Tienson Qin
cb7bcb3816 fix: a non-journal home page is empty on initial graph load
Fixes LOG-2813
2023-11-21 11:26:48 +08:00
Tienson Qin
bb5762df62 fix: uuid based property values appear blank on initial graph load
Fixes LOG-2909
2023-11-21 10:48:09 +08:00
Tienson Qin
ee3442a44b Merge branch 'master' into feat/db 2023-11-14 20:40:36 +08:00
Gabriel Horner
fc03842150 fix: local config doesn't work if it's not started 2023-11-08 09:11:28 -05:00
rcmerci
efcf189c95 chore: fix lint 2023-11-08 20:26:22 +08:00
rcmerci
5494286263 fix(rtc): ensure rtc-db-graph? when persist ops 2023-11-08 20:11:25 +08:00
Gabriel Horner
309826df89 enhance: place rtc feature behind feature flag
Moved restore-graph to be first action since all user behavior comes from it.
Disabled rtc by default since rtc is currently failing to load graphs
2023-11-07 12:10:44 -05:00
rcmerci
a7cd7b92bf enhance(rtc): refactor client-op related ns 2023-11-07 21:31:56 +08:00
Tienson Qin
a5098d3fb8 fix: clear local storage for whiteboards when e2e tests 2023-10-17 20:11:19 +08:00