Commit Graph

55 Commits (e7520cb095859ca798c1eeaf07bdc498bc692d68)

Author SHA1 Message Date
Gabriel Horner 0e1ada2ef6 enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin 89edb3af9a fix: can't remove Many values 2024-05-02 18:03:17 +08:00
rcmerci 2b27969b05 dev: add bb dev:lint-and-test 2024-04-07 00:02:40 +08:00
Gabriel Horner a61ee21e25 enhance: add basic script to test db graph import
also tweaked query script to work with db graphs by relative path
2024-02-24 00:42:46 -05:00
Gabriel Horner b55fe07768 Merge branch 'master' into feat/db 2024-01-24 09:08:41 -05:00
Gabriel Horner dc5127b48a enhance: publishing --dev also watches frontend
also provide a dedicated backend command for simpler
rebuilding of backend
2024-01-24 08:53:48 -05:00
Gabriel Horner 72f5218b39 dev: add tasks for saving and diffing datoms
part of LOG-2974
2023-12-19 13:19:10 -05:00
Gabriel Horner ea65a659d6 chore: remove bb task for validating previous sqlite data 2023-12-12 15:44:06 -05: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 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 c8ccc79e82 fix: db/ident and schema/version shouldn't create unknown blocks
Also log unknown blocks and make their entity more explicit with the
goal of eventually resolving all unknown blocks. Also added
a query bb task. Part of LOG-2818
2023-10-11 16:02:13 -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
Tienson Qin fd6b587235 Merge branch 'master' into feat/db 2023-06-21 14:09:16 +08:00
Gabriel Horner 3f1d32dd6c Update clj-kondo and bb-tasks for deps projects 2023-06-13 14:48:50 +08: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
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
Charlie 60fbfdf2f7
Enhance: plugin-related improvements (#8787)
- fix: Select and Input elements rendered using provideUI via onMacroRendererSlotted don't function #8374
 - fix: logseq.Editor.getPageBlocksTree does not work when page uuid is passed in as param #4920
 - feat: add a plug-in flag for the plugin slash commands item
 - feat: add logseq.App.setCurrentGraphConfigs: (configs: {}) => Promise<void>
 - feat: add hook logseq.App.onTodayJournalCreated: IUserHook<{ title: string }
 - enhance: auto-check updates for the installed plugins from Marketplace
 - feat: expose template-related APIs to SDK
2023-04-12 21:27:40 +08:00
Gabriel Horner fef07fe812 Add docs and workflow for dep
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Gabriel Horner 5186070248 Finish migration of publishing to deps
* Frontend and cmdline version use the same fns!
* Add docstrings and db tests
* Fix bug with intermittently failing asset copies
* Move publish cli to scripts since publish-spa shouldn't have graph-parser dependency
* Fix parse-graph bug noticed while testing publishing
2023-04-09 23:13:33 +08:00
Gabriel Horner 66fdb73bce Reorg namespaces and add package.json
Also add db support
2023-04-09 23:13:33 +08:00
Gabriel Horner 76c4e49f34 Working POC! 2023-04-09 23:13:33 +08:00
Gabriel Horner a748b4f6b3 PoC on porting electron.core to cmd
Also added dev:build-publishing
2023-04-09 23:13:33 +08:00
rcmerci c3f7417682
enhance: add mldoc ast schema (#8829)
* enhance: add mldoc ast schema

* Add bb task to validate mldoc

Also move mldoc schema to make room for other schemas

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-03-20 13:41:13 +08:00
Konstantinos 2cace8894c
Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Gabriel Horner b08e079ab7 Update :commands in config schema - fixes #8403
Update malli to pull in :some schema
2023-01-20 15:55:24 -05:00
Gabriel Horner c804e051cc Add validation for repo config.edn
- Add test, task and schema for repo config.edn
- Also removed no longer needed temp fix
2023-01-18 10:07:52 -05:00
rcmerci 21e8a2eab9 dev: add malli-schema & generate kondo config 2023-01-08 20:33:27 +08:00
Gabriel Horner 65955f2ba2 Address lint failures and rm unused spec dep
Spec dep is no longer needed since it ships with bb
2022-12-09 13:17:09 -05:00
Gabriel Horner 13277b875d Upgrade to latest clj-kondo - pods were pretty out of date 2022-12-09 13:17:09 -05:00
Gabriel Horner 72acd0f1d4 Change name of task to indicate it can be used on either config.edn 2022-12-07 23:04:55 +08:00
Gabriel Horner 8f5f4fc5b1 First pass at schema for global config 2022-12-07 23:04:55 +08:00
Gabriel Horner 2685cd1325 Fix bug with certain plugins and misc cleanup
- Plugins that used effects weren't loading correctly e.g.
  logseq-power-plugin
- Cleaned up translation, docs and some fn naming
2022-10-17 10:31:07 -04:00
Gabriel Horner c8cda90373 Fix plugin install bugs and add plugin-config tests
- Add validation for plugins.edn with malli
- Add bb task using malli schema
- Add first async test that interacts with frontend.fs
- Add test helpers to make future async testing easier
2022-10-17 10:13:27 -04:00
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Charlie 01d879c18e
feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Gabriel Horner 54c886597c
Split desktop and mobile dev to separate ns's (#5864)
Also replace shell script which required external deps with a bb fn
2022-06-29 09:22:59 -04:00
llcc 459262cd24
add bb tasks for mobile app development (#5765)
* add bb tasks for mobile development
* update mobile app development readme

Co-authored-by: Andelf <andelf@gmail.com>
2022-06-24 11:22:49 +08:00
Gabriel Horner ee9f390761 Localize bb-tasks for deps
Deps need to be independent to not introduce testing bugs.
These bb tasks are good candidates to move into bb-tasks gitlib
2022-06-10 15:39:11 +08:00
Gabriel Horner 29f73549aa Moved nbb tasks to another repo
They are useful outside of logseq development and don't need to be
embedded in the Logseq app
2022-06-01 01:17:29 -04:00
Gabriel Horner 70c0708f09 Add nbb:watch task and example
Also update to latest clj-kondo
2022-05-27 20:42:17 -04:00
Gabriel Horner b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner 1d390f7bd4 Replace medley/{map-keys/map-vals} with {update-keys,update-vals} 2022-05-19 14:58:33 +08:00
rcmerci b66b8d6cfc
dev: add bb lint cmd (#5354)
* dev: add bb lint cmd

* chore: better docstring for bb dev:lint
2022-05-18 11:50:56 -04:00
Gabriel Horner d6082156c5 Find namespaces for nbb-compatible CI step 2022-05-04 12:02:36 -04:00
Gabriel Horner 798bac18a5 First pass at file tests for file-sync
Each action usually passes by 5th try
2022-04-13 19:12:24 +08:00
Gabriel Horner 0ccbe4d046
Enhance: validate local storage (#4784)
* Validate localStorage with spec

This will help get at the source of errors like #4706 quicker

* Fix settings bugs

Close #4679 as shortcut tooltip setting is now visible.
No need to js/alert when a setting is changed. Probably leftover bugging

* Add docs and example of reusing specs in bb task

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-01 15:46:52 +08:00
Gabriel Horner f4839da1e1 Make dictionary namespaces bb compatible
Now that translations are just data no excuse for them not being bb
compatible. Also gets rid of needless sexp parsing
2022-03-28 12:33:28 -04:00
Gabriel Horner 0fcdb498d8 Update lang tasks to also read shortcuts
- Updated docs with more accurate picture of translation state
- invalid task found keys that were no longer used from 2 commands
- Cleaned up rewrite-clj
2022-02-02 11:26:20 -05:00