Commit Graph

550 Commits (b7ce9a7ca5c66df760fd023070449d574e6100af)

Author SHA1 Message Date
Tienson Qin b7ce9a7ca5 fix: add transact and datoms load 2023-11-25 11:22:59 +08:00
Tienson Qin 67cb8d6213 wip: persistent datascript storage on Electron 2023-11-25 10:49:01 +08:00
Tienson Qin 40bffa32b0 Use forked datascript 2023-11-25 09:12:59 +08: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
Gabriel Horner f64f1461a3 enhance: make bb dev:db-transact usable for any task
closes LOG-2647. This task was used to update multiple graphs
that were now invalid with the removal of :block/type "object"
2023-11-16 16:40:35 -05:00
Gabriel Horner cca80e37a7 fix: remove unused :block/type "object"
fixes LOG-2914
2023-11-16 14:50:21 -05:00
Andelf 60159eba87 enhance(db): use wasm-based sqlite storage 2023-11-16 21:15:25 +08:00
Gabriel Horner d43fb23ef0 enhance: allow CLI and github action to set color accent 2023-11-15 16:37:03 -05:00
Gabriel Horner b359694c4b fix: multiple fixes for property validation
- couldn't use :default block property values
- couldn't add new closed number value
- couldn't select existing :page or :date closed values
- editor/CLI validation wasn't working - see failing db-graph-test job
- update schema for closed-value
Part of LOG-2871. Also fixed typo in ui.cljs
2023-11-15 14:55:57 -05:00
Tienson Qin 443eb3f2b8 fix: closed value validation
A closed value must be a UUID and exists in the predefined schema
values from its property.

Related to LOG-2871.
2023-11-15 22:58:05 +08:00
Gabriel Horner 86eb1b394d fix: update schema for latest changes to closed values
part of LOG-2871
2023-11-14 16:08:03 -05:00
Tienson Qin ee3442a44b Merge branch 'master' into feat/db 2023-11-14 20:40:36 +08:00
Tienson Qin 6a47648c6c
Replace enum type with available choices (#10438)
* Add type schema for enum values

* Refactor: closed values instead of enum to limit values

There's no need to add the enum type, we just want to limit the
values.

* feat: :page type supports closed values

* fix: can't set property values for text/number types

* fix: don't trigger on-chosen when unmounting any select component

* fix: can't apply both page classes limitation and closed values

* fix: merge conflicts

* fix: ui not refresh when changing closed value

* fix: can't set icon for closed value
2023-11-14 18:48:34 +08:00
Tienson Qin 2a62767f34 chore: replace shui__ with ui__
Theme creators don't need to know about shui.
2023-11-13 22:39:53 +08:00
charlie 0e1295b142 fix(ui): shui button internal theme state 2023-11-13 21:57:16 +08:00
Tienson Qin e4714668b9 fix: cmdk on mobile 2023-11-13 16:41:00 +08:00
Tienson Qin eaadd462ff fix: listitem hardcode css variable 2023-11-13 13:37:21 +08:00
Tienson Qin 80703328b0 fix: keyboard shortcuts style 2023-11-13 13:09:14 +08:00
Tienson Qin 96693439d0
Feat/cmdk radix tweaks (#10493)
* prefer --lx-gray-11

* Fix sidebar item color

* Update theme mode images

* Update shortcuts globally

* Assets updated to support radix

* fix: add missing keyboard-shortcut class

* fix: custom button background

* fix: lower case shortcuts

* chore: remove old shortcut list

* fix: shortcut ns

* enhance: shortcut accepts both sequence and string

* fix: shortcut remap ux

* fix: remove codemirror box shadow

---------

Co-authored-by: Ben Yorke <ben@yorke.io>
2023-11-12 20:43:10 +08:00
Gabriel Horner 61eeb96709 fix: 3 bugs with persisting whiteboard data
- :block/uuid was a string
- no timestamps on whiteboard blocks
- no created-at on whiteboard shape blocks

Also added missing page attributes for whiteboard page. Initially I
modeled whiteboards as its own schema type with fewer page attributes
but then I noticed it got format and journal? when referenced so just
added the missing attributes. Fixes LOG-2915
2023-11-09 11:21:18 -05:00
Tienson Qin f52e6bf127 enhance: replace ui/button with shui/button 2023-11-09 00:37:14 +08:00
Ben Yorke 018835b700 Specify gradient stops 2023-11-08 15:59:48 +01:00
Tienson Qin 117ebe0768 fix: create button bg 2023-11-08 22:00:59 +08:00
Tienson Qin 05da1618b6 enhance: tip style tweaks based on jakob's suggestions 2023-11-08 20:41:07 +08:00
Ben Yorke 1896d372b1 fix highlighted text color 2023-11-07 16:35:31 +01:00
Tienson Qin 69370db70e fix: esc handler 2023-11-07 16:49:00 +08:00
Gabriel Horner 3162a06c3d fix: page-tags filter shouldn't show :block/link duplicates 2023-11-06 14:22:44 -05:00
Tienson Qin eeeea39fa4 fix: button doesn't support href attribute 2023-11-06 22:34:17 +08:00
Tienson Qin b0b24f795a fix: lint 2023-11-06 22:09:41 +08:00
Tienson Qin 04b85f6572 fix: hidden text 2023-11-06 11:35:23 +08:00
Tienson Qin fc4c1d4c71 fix: highlight match 2023-11-05 21:37:55 +08:00
Tienson Qin 2d1d841926 fix: white text icon for dark theme only 2023-11-05 19:56:12 +08:00
Tienson Qin 3f18cebe7d enhance: add fade-in to shortcut 2023-11-03 01:48:16 +08:00
Tienson Qin 6e046fb3d1 enhance: display shortcut when highlighted 2023-11-03 01:03:09 +08:00
Tienson Qin 12ddf65a22 Add shui/shortcut component
Display mod+up/down for show more/less
2023-11-03 00:47:31 +08:00
Tienson Qin 8d2d857ca3 fix: add default value for button theme 2023-11-03 00:19:17 +08:00
Tienson Qin 07146f4b81 enhance: ESC to quit filter 2023-11-03 00:16:36 +08:00
Tienson Qin f16127c80b enhance: tile sm size 2023-11-03 00:16:36 +08:00
Tienson Qin 439d08cf8a enhance: move tip to the left 2023-11-03 00:16:36 +08:00
Gabriel Horner 3ccf80fcba add docs for new linter
also fix outliner lint
2023-11-02 09:32:51 -04:00
Tienson Qin 42aa66c8e1 fix: replace buggy shortcuts handler with mixins
Also, removes :none for sections expand/collapse because:
1. It's not needed that often, we also have filters
2. Highlighted item will be invisible when collapsing the section
2023-11-01 16:47:44 +08:00
Tienson Qin 3b336ba9b1 fix: display block breadcrumb instead of its page for search items 2023-11-01 13:18:24 +08:00
Gabriel Horner 3c134d4716 enhance: Make db validation configurable
Added 3 db validation options to more aggressively notify and to provide
stricter levels of validation. Part of LOG-2818
2023-10-30 17:25:12 -04:00
Gabriel Horner c88b0a2a4e fix: remove broken built-in enum properties from app and script
It's too complicated for now but hope to bring this back
Part of LOG-2871
2023-10-30 10:43:58 -04:00
Gabriel Horner 5f392a2260 fix: update schema to include new enum value block
Part of LOG-2871.
Also fixed create-graph failing due to renamed ns
2023-10-30 10:43:58 -04:00
Tienson Qin 8c7098b21f enhance: move enum property choices to hidden page
related to LOG-2871
2023-10-30 20:35:39 +08:00
Gabriel Horner 2ce35667c5 First pass at a general transact script for db graphs
Moved persist-graph ns into outliner dep so it can be used
by scripts
2023-10-27 17:40:12 -04:00
Gabriel Horner a6c30554af fix: 3 date related attrs missing from block schema 2023-10-27 15:13:32 -04:00
Tienson Qin e8d411b837 fix: typing markdown property results in a blank line
Fixes LOG-2741
2023-10-27 14:23:26 +08:00
Gabriel Horner 075efcb222 fix: malli schema missing two ref attributes
Validator errored when I collapsed a property. Added a sync
check so that future changes to datascript schema alert developer
to make a change in the malli schema.
Also removed a ds attribute for DB schema
2023-10-26 15:44:14 -04:00