Commit Graph

64 Commits (04dc1dc772ce86c58dc823a9237d8f1e30abba0c)

Author SHA1 Message Date
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
Zhizhen He 25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Andelf f6d4560044 ci: update actions and build deps 2023-02-22 00:32:05 +08:00
Bad3r ebb2a5c1d7
chore(dep): bump NodeJS from 16.x to 18.x LTS (#8406)
* chore(dep): bump NodeJS to LTS 18.x

* update nginx image CVE-2022-43551

* upgrade node version in GH workflows

* update nodejs version in dev docs

* upgrade tldraw version nodejs version to 18.x

* update static/yarn.lock

* fix yarn.lock electron version

---------

Co-authored-by: situ2001 <yongcong2001@outlook.com>
2023-02-21 23:07:35 +08:00
Bad3r 6bb925740e
chore(dep): bump actions/checkout to v3.3.0 (#8393) 2023-01-21 21:10:19 +08:00
Gabriel Horner 6bb805918a Upgrade bb - it's been awhile 2022-12-09 13:17:09 -05:00
Andelf 88b160e215 chore(dev): cleanup unused package.json entries 2022-12-03 00:28:42 +08:00
Junyi Du a84a8028bd test(e2e): alias test robustness 2 2022-12-01 15:41:37 +08:00
Junyi Du 7efa4d8da6 chore: enable e2e dump 2022-12-01 15:41:37 +08:00
Andelf 4bdfb59fb8 chore(ci): bump actions version 2022-11-30 13:35:17 +08:00
Andelf ee14560b2b chore(deps): update electron 19.1.8
fix(test): shard test
2022-11-30 11:22:55 +08:00
Andelf c1bec2fc44 fix(test): refine e2e test 2022-11-30 11:22:55 +08:00
Andelf f65fbc809e
fix(ci): use LOGSEQ_CI instead of reserved CI (#7516) 2022-11-30 00:42:27 +08:00
Andelf c837afd075 ci: ignore stderr for bb lint tasks 2022-10-10 13:14:50 +08: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
Andelf dda818c26a fix(e2e): add missing esc for (()) 2022-07-07 01:42:16 +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 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Tienson Qin f4f1ff1ba2 fix: outdent blocks and re-enable outliner tests
related to #5604
2022-06-08 13:06:10 +08:00
Gabriel Horner 47c4305f62 Temporarily disable outliner tests which are hanging
Hang started in 3fdac736d9
2022-06-07 14:01:07 -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 1e299052ce Setup cljs tests for graph-parser
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner 4813d903d5 Move graph-parser to its own dir 2022-05-26 18:04:45 -04:00
Gabriel Horner b79b1ca36e Mldoc tests run under nbb 2022-05-10 20:22:48 -04:00
Gabriel Horner 461f7e067d Forgot bb install in job 2022-05-04 12:02:36 -04:00
Gabriel Horner c0e1e16372 Finish up CI job for requiring nbb-compatible namespaces 2022-05-04 12:02:36 -04:00
Gabriel Horner d6082156c5 Find namespaces for nbb-compatible CI step 2022-05-04 12:02:36 -04:00
Andelf 115054736d
test(e2e): add test for backspace and cursor pos (#4896)
* test(e2e): add test for backspace and cursor pos
* fix(test): refine, fix wrong helper
2022-04-15 19:50:25 +08:00
Peng Xiao 3beb46261e fix: lock file & ci check 2022-04-12 10:00:06 -04:00
Junyi Du a97c37c2ad test(e2e): fix missing event_ property of KeyboardEvent in Google Closure Library 2022-04-01 17:36:39 +08:00
Gabriel Horner 9af9150a0a Add CI check to make sure static yarn.lock is updated 2022-03-18 11:04:47 -04:00
Gabriel Horner d34e53b6f7 Bump bb to a version that supports datalog parser 2022-03-09 14:10:38 +08:00
Gabriel Horner 6200ec70d3 Add rules linter for unbound vars and invalid queries
Linter caught one unbound var which wasn't an error but nonetheless good
to cleanup
2022-03-09 14:10:38 +08:00
Gabriel Horner 465765abc8 Fix outdated yarn.lock 2022-02-23 00:04:42 +08:00
Gabriel Horner c70bc56d75 Add CI check for outdated yarn.lock 2022-02-23 00:04:42 +08:00
Gabriel Horner 40eb74a47c Add first pass at large vars linter
Had to tweak rewrite-clj to read vars with metadata.
Added fail fast behavior to fns to prevent silent failure
which was impacting tasks. Started looking at a few vars. More to look
at
2022-02-04 14:06:50 -05: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
Gabriel Horner 04241dfe96 Merge branch 'master' into feature/lang-tasks-and-ci 2022-01-29 10:06:44 -05:00
Gabriel Horner 02c0489a26 Add CI job for invalid dicts
And tweak fn so that it actually fails
2022-01-27 17:43:10 -05:00
Gabriel Horner 8b428796bc Setup carve and ignore all unused vars by default
Also split out lint jobs to their own step
2022-01-27 14:11:59 -05:00
Tienson Qin 6aba8c3241
Improve long page editing performance (#3855)
* Remove expensive parsing when saving files

* Add limit to page blocks query

* Don't collapse block's body to make it compatible with other tools

* Alert if there're unsaved changes when switching graphs

* DB schema migration for :block/collapsed? from it's property

Co-authored-by: Andelf <andelf@gmail.com>
2022-01-18 10:37:31 +08:00
Gabriel Horner 2b46cc4938 Fix kondo invocation and output progress 2022-01-16 12:42:34 +08:00
Gabriel Horner 8b0026f34b Tweak lint docs 2022-01-16 12:42:34 +08:00
Gabriel Horner 3ec587d6eb lint :all-the-things: 2022-01-16 12:42:34 +08:00
Andelf 71ff117d59 ci(build): rename job 2022-01-13 22:48:27 +08:00
Andelf bee80914a6 ci: refacotr test, add as many cache to speedup 2022-01-13 12:27:47 +08:00
Gabriel Horner b7b3375f62 Lint extensions/ and wrap up hanging frontend dirs
fs/, format/ and logseq/ also added to linting by adding todos for later
inspection
2022-01-12 16:38:17 -05:00
Gabriel Horner f1d15b0e05 Lint components and address comments in review
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context
2022-01-12 15:32:47 -05:00
Gabriel Horner f864f0fd1c Add linting that passes so far to CI 2022-01-11 17:41:04 -05:00
Gabriel Horner 3ded9ee1ff Add comment about allowed node version
node 17.x is the default for homebrew which doesn't work with this repo.
Make allowed node version more explicit to avoid dev confusion
2022-01-12 00:22:37 +08:00