Gabriel Horner
0f4cdbbadf
bump outdated nbb-logseq and fix lint
2023-12-11 15:55:38 -05:00
Gabriel Horner
e0901b9d04
bump nbb-logseq to first version
...
that works for forked datascript. Deps tests pass locally
without needing to rely on local builds
2023-12-11 13:52:15 -05:00
Gabriel Horner
e847c0899a
enhance: bring back built-in properties using closed values
...
Fixes LOG-2903. Also fixed a bug with logseq.color property
not working with latest accent color
2023-12-04 17:29:41 -05:00
Gabriel Horner
2554016d63
enhance: make closed values scriptable
...
Added closed value examples of all 5 property types
to properties graph. Part of LOG-2903
2023-12-04 10:11:52 -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
6517f6f12a
Merge branch 'master' into feat/db
2023-11-29 09:56:12 -05: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
ormai
9bdcfcf791
Update italian translation
2023-11-27 08:45:42 -05: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
6f9143df4f
chore: add db and file graph linter to CI
...
This has run successfully locally for weeks. Also fix install doc for
bb tasks
2023-11-17 10:35:01 -05:00
Gabriel Horner
d43fb23ef0
enhance: allow CLI and github action to set color accent
2023-11-15 16:37:03 -05:00
Tienson Qin
ee3442a44b
Merge branch 'master' into feat/db
2023-11-14 20:40:36 +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
Tienson Qin
90c2b3800f
fix: lint warnings
2023-11-06 16:06:29 +08:00
Tienson Qin
b91fd4e6c8
Remove old cmdk && command palette
2023-11-06 15:25:35 +08:00
Gabriel Horner
1280f4e05d
fix: disable file sync for db graphs
2023-11-02 14:29:05 -04:00
Gabriel Horner
3ccf80fcba
add docs for new linter
...
also fix outliner lint
2023-11-02 09:32:51 -04:00
Gabriel Horner
3700cc37e6
fix: disable filename format config for db graphs
...
How to persist filenames and handle titles isn't relevant for db graphs.
Also updated lint to add related file-specific nss and concepts
2023-11-01 16:26:48 -04:00
Gabriel Horner
e847fce255
add additional db namespaces to linter
2023-11-01 14:23:45 -04:00
Gabriel Horner
54ecf01cd7
add lint for keeping file and db graphs separate
...
Detected some minor unused code. May run this in CI later.
Writing this script demonstrates more namespaces could be split
up but will wait till at least enum PR lands
2023-11-01 11:28:50 -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
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
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
e09a5d9988
fix: pages didn't consistenly have :block/format
...
Making attributes consistent reduce bugs in components and query layer (where
most wouldn't know to use get-else)
2023-10-16 12:58:11 -04:00
Gabriel Horner
f8fea1d7b0
Add enum to properties test graph
...
Also test classes with schema script for now
2023-10-13 17:20:37 -04:00
Gabriel Horner
8756600fd7
Add CI job to test creating and validating a db graph
...
also update older actions
2023-10-13 10:53:01 -04:00
Gabriel Horner
fe7a46eac9
Move db malli schema into db dep since it's stable
...
Also add a validate-db task. Part of LOG-2739
2023-10-11 08:40:26 -04:00
Gabriel Horner
ccc0bf9bad
Add validation for property values
...
Reuse schema for property types and values from frontend. Moved into db
deps as it will soon be needed for a db namespace. Also tweaked schema
for :template type
2023-10-10 17:31:30 -04:00
Gabriel Horner
32e9e6c06d
fix: malli db schema for blocks having object
...
also updated object-page to require tags
2023-10-09 12:24:41 -04:00
Gabriel Horner
3ebcfcd3d2
fix: hidden pages showing up in all pages and probably other places
...
Also updated schema to reflect new multi-line :default prop vals
implementation
2023-10-09 11:44:03 -04:00
Gabriel Horner
df8f16ba2c
add validation for internal and user properties
...
by reusing existing schema-types for db properties
2023-10-06 15:18:37 -04:00
Gabriel Horner
83e9cda446
fix: new properties that didn't have :block/journal?
...
Some page queries depend on the existence of this attribute including
graph view ones. This was caught by the validation script. After the fix
all pages have this attribute. Creation scripts also updated to use
standard timestamp approach
2023-10-06 12:29:33 -04:00
Gabriel Horner
e9c6fee11a
Improve db schema with different page types
...
Also improved group-errors option, addressed some attributes that hadn't
been typed yet and fixes multi-arity attributes
2023-10-05 16:49:33 -04:00
Gabriel Horner
05390f66e9
update db schema since multi-line :default properties have no left or parent
2023-10-04 17:15:53 -04:00
Gabriel Horner
a2a7f47057
add group-errors option to validation script
...
Reduces error noise and helped fix last two bugs.
Also improved schema by making left, parent and format
required for all normal blocks
2023-10-04 16:09:51 -04:00
Gabriel Horner
a19806839c
fix: blocks shouldn't have journal attributes
...
only pages should. Found no use for them in db graphs. TBD if they are
needed in file graphs. Part of LOG-2818
2023-10-04 12:59:17 -04:00
Gabriel Horner
4c525814b9
fix: some blocks didn't have timestamps
...
blocks created using editor-handler/api-insert-new-block! didn't have
timestamps. This includes quick capture and dummy blocks but there were
more cases this bug would occur since this was missing at the
outliner.core level
The dummy block can now be removed from the schema b/c it only existed
because it didn't have timestamps
2023-10-04 11:28:52 -04:00
Gabriel Horner
8541f85389
validation script can now validate multiple graphs
...
Also improved schema to differentiate between pages and a couple
types of blocks
2023-10-03 17:53:12 -04:00
Gabriel Horner
73b3748bb8
fix: property update causing inconsistent schema
...
Property :many values should be a set. Fixed one and there is still one
more to fix
2023-09-29 17:04:45 -04:00
Gabriel Horner
9c640fad9a
fix: remove invalid attribute for db graphs
...
added and used verbose option on a graph to find the cause of this error
2023-09-29 14:24:28 -04:00
Gabriel Horner
0ce19a5219
script fixes
...
- validation script for new :block/type and examples properties graph
now passes
- schema markdown links
2023-09-25 11:22:19 -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
0857a4e4a8
add closed-map option to validation script
...
use it to flesh out most of our datascript schema
2023-09-20 17:14:13 -04:00
Gabriel Horner
e052c2894a
enhance: Display page property descriptions with markdown formatter
...
like we do for property values. Also fixed related schema property
values that had incorrect links that would now be visible
2023-09-19 11:15:25 -04:00
Gabriel Horner
958971f8e9
fix: schema script and class renamed urls
...
also a minor change on update script I forgot to commit
2023-09-19 09:14:28 -04:00
Gabriel Horner
bdd3d7e05e
Add a script to validate datascript db for db graphs
...
fix schema script that was importing invalid descriptions and
was the source of CreativeWork failing
2023-09-18 14:58:11 -04:00
Gabriel Horner
f742864d0d
Add description to schema class pages now that they are visible
2023-09-18 12:07:41 -04:00
Gabriel Horner
02a902e6a4
update script to demo date properties
...
also update case statement as only :default expects string or uuids
2023-09-12 16:22:48 -04:00
Gabriel Horner
385d716257
fix: update scripts to use latest changes in property types
2023-09-12 13:54:16 -04:00
Gabriel Horner
36edf87db3
Move config.edn template to a library
...
so it can be used outside Electron e.g. when creating graphs from CLI.
Put a symlink in the old templates/config.edn location to make new
location easier to find but it's not needed for anything to work
2023-09-08 13:52:45 -04:00
Gabriel Horner
5f66ca027e
enhance: Use path-refs calculation in CLI namespaces
...
Also moved path-refs truncation into outliner so that it applies consistently
across environments
2023-09-08 11:57:35 -04:00
Gabriel Horner
41bd76a704
Merge branch 'master' into feat/db
2023-09-07 17:52:25 -04:00
Gabriel Horner
e63b9716b4
fix: Update create scripts to use :classes instead of :class
...
For schema script, changed property type detection and added all classes
For inferred script, also fixed a db/id issue caused by previous negative num
changes
2023-09-07 15:47:46 -04:00
Andelf
390a7f6bb9
chore(scripts): use prerelease style alpha version num
2023-09-07 11:37:19 +08:00
Gabriel Horner
c07da6cc80
Move handler.common.repo fn into sqlite-util
...
This makes create-graph* namespaces independent of frontend
as they should be to be used externally
2023-09-06 08:59:40 -04:00
Gabriel Horner
7f0f5f4f70
fix: create graph script not working
...
also fix not being able to use logseq.tasks.db-graph.* with nbb scripts
external to logseq
2023-09-05 16:10:31 -04:00
bluemeda
4b60ed2d9f
add some Indonesian terms to allowed-duplicates
2023-09-05 09:53:06 -04:00
Gabriel Horner
b3efb93335
Move initial namespaces to start outliner dep
2023-09-01 17:23:34 -04:00
Gabriel Horner
22d1cb54c5
fix: schema.org classes missing from tree
...
also fix typos
2023-09-01 15:08:11 -04:00
Gabriel Horner
7a48557ec9
Add url properties to schema and page properties
...
This required adding support for property :properties to create-graph.
Also fixed a subtle bug where transact! silently fails for positive
:db/id integers. Also misc script cleanup and docs
2023-08-30 16:15:46 -04:00
Gabriel Horner
43c299972c
Fix url and text type detection in script
2023-08-30 16:15:46 -04:00
Gabriel Horner
34248736c7
First pass at a script that creates a db graph with schema.org ontology
2023-08-30 16:15:46 -04:00
Gabriel Horner
16574ff3d0
fix: object properties not selecting their chosen class
...
Also adjusted script effected by this change
2023-08-28 18:04:58 -04:00
Zhizhen He
4cb23ab193
ci: upgrade typos to 1.16.8
2023-08-24 10:29:51 -04:00
Gabriel Horner
bb9312d068
Add script to generate inferred properties demo
...
Tweaked create-graph to allow for class definition and usage with
predefined :block/uuid. Also allowed for defining pages with
:block/original-name
2023-08-23 17:47:18 -04:00
Gabriel Horner
fc9b0d7b2c
Add example update script
...
Split out persist-graph as it is useful outside of just creating graphs.
Also updated docstring with more known limitations
2023-08-21 14:55:33 -04:00
Gabriel Horner
6212714812
Fix db graph script not creating refs for properties
...
Also add a readme and fix a bug with generating today pages
2023-08-21 14:55:33 -04:00
Gabriel Horner
9fff912f1e
Improve on create graph script
...
- Split out reusable fns to their own ns
- Created graph now initializes all the same data as in the app
- Had to make a copy of block-with-timestamps for nbb compatibility
and started using it in a couple places that are easy to QA
2023-08-20 02:38:53 -04:00
Gabriel Horner
31aa5a7e47
Working script to generate db graphs from CLI
...
Using this script to QA the variety of property type configurations.
Currently supports generating pages, blocks and properties.
Split out fns from outliner.pipeline to be able to use them in nbb
2023-08-18 16:48:30 -04:00
Gabriel Horner
e41adc6399
Disable more property editing for publishing app
...
Also fix some minor lints
2023-08-17 09:42:08 -04:00
Gabriel Horner
172ee0ae24
Provide sqlite.cli for reusable sqlite fns
...
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00
Gabriel Horner
bcc37eb298
Update publishing to optionally work with db graphs
...
Also updated commandline script
2023-08-15 16:35:03 -04:00
Tienson Qin
cb93cc3e9a
Merge branch 'master' into feat/db
2023-08-15 13:42:37 +08:00
Jonathan Courchesne
458ac81cb4
enhance: Translation to French ( #9981 )
...
* Update fr.edn
* Update fr.edn
Added new translations
Fixed some mistakes
* Update fr.edn
* Update fr.edn
* Update fr.edn
* Update fr.edn
* Update lang.clj for fr.edn
2023-08-04 10:08:58 -04:00
Gabriel Horner
5f91e6cf0f
Merge branch 'master' into feat/db
2023-07-24 12:21:19 -04:00
ingepettersen
183e153ead
Updated Norwegian translations ( #9905 )
...
* Update Norwegian translation
* Update two strings
* Update Norwegian translation
2023-07-21 09:15:27 -04:00
hasecilu
0aa76fbb26
Translate latest strings
2023-07-21 09:12:12 -04:00
hasecilu
41e2722143
Finish Spanish translations.
2023-07-21 09:12:12 -04:00
dependabot[bot]
298d46710b
chore(deps): bump semver from 5.7.1 to 5.7.2 in /scripts
...
Bumps [semver](https://github.com/npm/node-semver ) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 11:33:41 -04:00
Philippe Letourneau
fe87fe20cf
Added a configuration to specify a build version different than the release version
2023-07-02 23:41:03 +08:00
Gabriel Horner
271b074673
Merge branch 'master' into feat/db
2023-06-28 16:16:29 -04:00
Gabriel Horner
9ebc3c58ac
Fix lang --copy workflow
...
Closes #9727
2023-06-28 13:47:29 -04:00
Tienson Qin
fd6b587235
Merge branch 'master' into feat/db
2023-06-21 14:09:16 +08:00
queeup
083f5f69fc
i18n: update Turkish translation
2023-06-19 13:27:50 -04:00
Taylor Hoffmann
87c4667d95
chore: updated pt-BR translations ( #9655 )
...
* chore: language pt-br
* fix: removed lang duplications
* fix: added duplicated entries for "pt-br" and "en"
2023-06-15 14:40:09 -04:00
hasecilu
d34073c3b1
Fix translations
2023-06-15 11:45:27 -04:00
ingepettersen
bbc30fde81
Enhance(i18n): Updated Norwegian translation ( #9618 )
...
* Updated Norwegian translations.
* Fixed bad paste
* Updated Norwegian translation
* nb-NO: Fix a few translations + lang.clj script
---------
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2023-06-12 10:13:33 -04:00
Gabriel Horner
1765ecfb02
Fix duplicates that were caught by linter
...
Also undo removals in this PR of translations that were being used.
Also changed :misc/copy translation since it didn't have a meaningful
description
2023-06-05 14:00:11 -04:00
Gabriel Horner
2d60d95bc5
Update lang validation to detect duplicates
...
There are still a few to remove.
Remove lang:duplicates as it's now included in the linter
2023-06-05 11:09:35 -04:00
Gabriel Horner
f8780a910c
Update valid dicts lint and delete an unused key
2023-06-02 17:06:12 -04:00
rcmerci
20618afaa7
add bb task: validate sqlite data
2023-05-30 00:39:22 +08:00
Gabriel Horner
ad3eda7c25
Tutorial fix and refactor. Update docs
...
* Some langs like es didn't have tutorials translated and were
pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
2023-05-24 16:57:48 -04:00
Gabriel Horner
28ff6b1894
Move dictionaries to EDN
...
Also introduce src/resources/ for classpath resources as templates/ is a
misleading name for generic resources and resources/ is being used for
non-resource things. Confirmed translations are the same with bb
lang:list
2023-05-24 16:07:54 -04:00
Gabriel Horner
514b5faf6e
Refactor and simplify dicts
...
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
needless warning
2023-05-18 18:13:50 -04:00
Avelino
1d14f6a98f
centralize translation dictionary
...
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino
184ace5ad6
update documentation to new translation structure (standalone package)
...
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Gabriel Horner
f645daf724
Add a --copy to support suggested translation workflow
...
Follow up to #9115
2023-04-17 10:53:43 -04:00
Gabriel Horner
7dc9c41899
Fix nbb.edn paths with latest nbb-logseq
...
Also upgrade nbb-logseq in other deps
2023-04-12 11:02:43 +08:00